proteus  1.8.1
C/C++/Fortran libraries
ctransportCoefficients.c
Go to the documentation of this file.
1 /* Generated by Cython 0.29.30 */
2 
3 #ifndef PY_SSIZE_T_CLEAN
4 #define PY_SSIZE_T_CLEAN
5 #endif /* PY_SSIZE_T_CLEAN */
6 #include "Python.h"
7 #ifndef Py_PYTHON_H
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+.
11 #else
12 #define CYTHON_ABI "0_29_30"
13 #define CYTHON_HEX_VERSION 0x001D1EF0
14 #define CYTHON_FUTURE_DIVISION 0
15 #include <stddef.h>
16 #ifndef offsetof
17  #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
18 #endif
19 #if !defined(WIN32) && !defined(MS_WINDOWS)
20  #ifndef __stdcall
21  #define __stdcall
22  #endif
23  #ifndef __cdecl
24  #define __cdecl
25  #endif
26  #ifndef __fastcall
27  #define __fastcall
28  #endif
29 #endif
30 #ifndef DL_IMPORT
31  #define DL_IMPORT(t) t
32 #endif
33 #ifndef DL_EXPORT
34  #define DL_EXPORT(t) t
35 #endif
36 #define __PYX_COMMA ,
37 #ifndef HAVE_LONG_LONG
38  #if PY_VERSION_HEX >= 0x02070000
39  #define HAVE_LONG_LONG
40  #endif
41 #endif
42 #ifndef PY_LONG_LONG
43  #define PY_LONG_LONG LONG_LONG
44 #endif
45 #ifndef Py_HUGE_VAL
46  #define Py_HUGE_VAL HUGE_VAL
47 #endif
48 #ifdef PYPY_VERSION
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
61  #endif
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)
90  #endif
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
97  #endif
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
106  #endif
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
113  #endif
114  #ifndef CYTHON_ASSUME_SAFE_MACROS
115  #define CYTHON_ASSUME_SAFE_MACROS 1
116  #endif
117  #ifndef CYTHON_UNPACK_METHODS
118  #define CYTHON_UNPACK_METHODS 1
119  #endif
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
134  #endif
135 #else
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
141  #endif
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
147  #endif
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
153  #endif
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
159  #endif
160  #ifndef CYTHON_USE_PYLIST_INTERNALS
161  #define CYTHON_USE_PYLIST_INTERNALS 1
162  #endif
163  #ifndef CYTHON_USE_UNICODE_INTERNALS
164  #define CYTHON_USE_UNICODE_INTERNALS 1
165  #endif
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
171  #endif
172  #ifndef CYTHON_AVOID_BORROWED_REFS
173  #define CYTHON_AVOID_BORROWED_REFS 0
174  #endif
175  #ifndef CYTHON_ASSUME_SAFE_MACROS
176  #define CYTHON_ASSUME_SAFE_MACROS 1
177  #endif
178  #ifndef CYTHON_UNPACK_METHODS
179  #define CYTHON_UNPACK_METHODS 1
180  #endif
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
186  #endif
187  #ifndef CYTHON_FAST_PYCALL
188  #define CYTHON_FAST_PYCALL (PY_VERSION_HEX < 0x030A0000)
189  #endif
190  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
191  #define CYTHON_PEP489_MULTI_PHASE_INIT (PY_VERSION_HEX >= 0x03050000)
192  #endif
193  #ifndef CYTHON_USE_TP_FINALIZE
194  #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1)
195  #endif
196  #ifndef CYTHON_USE_DICT_VERSIONS
197  #define CYTHON_USE_DICT_VERSIONS (PY_VERSION_HEX >= 0x030600B1)
198  #endif
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)
204  #endif
205  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
206  #define CYTHON_UPDATE_DESCRIPTOR_DOC 1
207  #endif
208 #endif
209 #if !defined(CYTHON_FAST_PYCCALL)
210 #define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1)
211 #endif
212 #if CYTHON_USE_PYLONG_INTERNALS
213  #if PY_MAJOR_VERSION < 3
214  #include "longintrepr.h"
215  #endif
216  #undef SHIFT
217  #undef BASE
218  #undef MASK
219  #ifdef SIZEOF_VOID_P
220  enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
221  #endif
222 #endif
223 #ifndef __has_attribute
224  #define __has_attribute(x) 0
225 #endif
226 #ifndef __has_cpp_attribute
227  #define __has_cpp_attribute(x) 0
228 #endif
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
236  #else
237  #define CYTHON_RESTRICT
238  #endif
239 #endif
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__))
244 # else
245 # define CYTHON_UNUSED
246 # endif
247 # elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
248 # define CYTHON_UNUSED __attribute__ ((__unused__))
249 # else
250 # define CYTHON_UNUSED
251 # endif
252 #endif
253 #ifndef CYTHON_MAYBE_UNUSED_VAR
254 # if defined(__cplusplus)
255  template<class T> void CYTHON_MAYBE_UNUSED_VAR( const T& ) { }
256 # else
257 # define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x)
258 # endif
259 #endif
260 #ifndef CYTHON_NCP_UNUSED
261 # if CYTHON_COMPILING_IN_CPYTHON
262 # define CYTHON_NCP_UNUSED
263 # else
264 # define CYTHON_NCP_UNUSED CYTHON_UNUSED
265 # endif
266 #endif
267 #define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)
268 #ifdef _MSC_VER
269  #ifndef _MSC_STDINT_H_
270  #if _MSC_VER < 1300
271  typedef unsigned char uint8_t;
272  typedef unsigned int uint32_t;
273  #else
274  typedef unsigned __int8 uint8_t;
275  typedef unsigned __int32 uint32_t;
276  #endif
277  #endif
278 #else
279  #include <stdint.h>
280 #endif
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]]
289  #endif
290  #endif
291  #ifndef CYTHON_FALLTHROUGH
292  #if __has_attribute(fallthrough)
293  #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
294  #else
295  #define CYTHON_FALLTHROUGH
296  #endif
297  #endif
298  #if defined(__clang__ ) && defined(__apple_build_version__)
299  #if __apple_build_version__ < 7000000
300  #undef CYTHON_FALLTHROUGH
301  #define CYTHON_FALLTHROUGH
302  #endif
303  #endif
304 #endif
305 
306 #ifndef CYTHON_INLINE
307  #if defined(__clang__)
308  #define CYTHON_INLINE __inline__ __attribute__ ((__unused__))
309  #elif defined(__GNUC__)
310  #define CYTHON_INLINE __inline__
311  #elif defined(_MSC_VER)
312  #define CYTHON_INLINE __inline
313  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
314  #define CYTHON_INLINE inline
315  #else
316  #define CYTHON_INLINE
317  #endif
318 #endif
319 
320 #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag)
321  #define Py_OptimizeFlag 0
322 #endif
323 #define __PYX_BUILD_PY_SSIZE_T "n"
324 #define CYTHON_FORMAT_SSIZE_T "z"
325 #if PY_MAJOR_VERSION < 3
326  #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
327  #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
328  PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
329  #define __Pyx_DefaultClassType PyClass_Type
330 #else
331  #define __Pyx_BUILTIN_MODULE_NAME "builtins"
332  #define __Pyx_DefaultClassType PyType_Type
333 #if PY_VERSION_HEX >= 0x030B00A1
334  static CYTHON_INLINE PyCodeObject* __Pyx_PyCode_New(int a, int k, int l, int s, int f,
335  PyObject *code, PyObject *c, PyObject* n, PyObject *v,
336  PyObject *fv, PyObject *cell, PyObject* fn,
337  PyObject *name, int fline, PyObject *lnos) {
338  PyObject *kwds=NULL, *argcount=NULL, *posonlyargcount=NULL, *kwonlyargcount=NULL;
339  PyObject *nlocals=NULL, *stacksize=NULL, *flags=NULL, *replace=NULL, *call_result=NULL, *empty=NULL;
340  const char *fn_cstr=NULL;
341  const char *name_cstr=NULL;
342  PyCodeObject* co=NULL;
343  PyObject *type, *value, *traceback;
344  PyErr_Fetch(&type, &value, &traceback);
345  if (!(kwds=PyDict_New())) goto end;
346  if (!(argcount=PyLong_FromLong(a))) goto end;
347  if (PyDict_SetItemString(kwds, "co_argcount", argcount) != 0) goto end;
348  if (!(posonlyargcount=PyLong_FromLong(0))) goto end;
349  if (PyDict_SetItemString(kwds, "co_posonlyargcount", posonlyargcount) != 0) goto end;
350  if (!(kwonlyargcount=PyLong_FromLong(k))) goto end;
351  if (PyDict_SetItemString(kwds, "co_kwonlyargcount", kwonlyargcount) != 0) goto end;
352  if (!(nlocals=PyLong_FromLong(l))) goto end;
353  if (PyDict_SetItemString(kwds, "co_nlocals", nlocals) != 0) goto end;
354  if (!(stacksize=PyLong_FromLong(s))) goto end;
355  if (PyDict_SetItemString(kwds, "co_stacksize", stacksize) != 0) goto end;
356  if (!(flags=PyLong_FromLong(f))) goto end;
357  if (PyDict_SetItemString(kwds, "co_flags", flags) != 0) goto end;
358  if (PyDict_SetItemString(kwds, "co_code", code) != 0) goto end;
359  if (PyDict_SetItemString(kwds, "co_consts", c) != 0) goto end;
360  if (PyDict_SetItemString(kwds, "co_names", n) != 0) goto end;
361  if (PyDict_SetItemString(kwds, "co_varnames", v) != 0) goto end;
362  if (PyDict_SetItemString(kwds, "co_freevars", fv) != 0) goto end;
363  if (PyDict_SetItemString(kwds, "co_cellvars", cell) != 0) goto end;
364  if (PyDict_SetItemString(kwds, "co_linetable", lnos) != 0) goto end;
365  if (!(fn_cstr=PyUnicode_AsUTF8AndSize(fn, NULL))) goto end;
366  if (!(name_cstr=PyUnicode_AsUTF8AndSize(name, NULL))) goto end;
367  if (!(co = PyCode_NewEmpty(fn_cstr, name_cstr, fline))) goto end;
368  if (!(replace = PyObject_GetAttrString((PyObject*)co, "replace"))) goto cleanup_code_too;
369  if (!(empty = PyTuple_New(0))) goto cleanup_code_too; // unfortunately __pyx_empty_tuple isn't available here
370  if (!(call_result = PyObject_Call(replace, empty, kwds))) goto cleanup_code_too;
371  Py_XDECREF((PyObject*)co);
372  co = (PyCodeObject*)call_result;
373  call_result = NULL;
374  if (0) {
375  cleanup_code_too:
376  Py_XDECREF((PyObject*)co);
377  co = NULL;
378  }
379  end:
380  Py_XDECREF(kwds);
381  Py_XDECREF(argcount);
382  Py_XDECREF(posonlyargcount);
383  Py_XDECREF(kwonlyargcount);
384  Py_XDECREF(nlocals);
385  Py_XDECREF(stacksize);
386  Py_XDECREF(replace);
387  Py_XDECREF(call_result);
388  Py_XDECREF(empty);
389  if (type) {
390  PyErr_Restore(type, value, traceback);
391  }
392  return co;
393  }
394 #else
395  #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
396  PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
397 #endif
398  #define __Pyx_DefaultClassType PyType_Type
399 #endif
400 #ifndef Py_TPFLAGS_CHECKTYPES
401  #define Py_TPFLAGS_CHECKTYPES 0
402 #endif
403 #ifndef Py_TPFLAGS_HAVE_INDEX
404  #define Py_TPFLAGS_HAVE_INDEX 0
405 #endif
406 #ifndef Py_TPFLAGS_HAVE_NEWBUFFER
407  #define Py_TPFLAGS_HAVE_NEWBUFFER 0
408 #endif
409 #ifndef Py_TPFLAGS_HAVE_FINALIZE
410  #define Py_TPFLAGS_HAVE_FINALIZE 0
411 #endif
412 #ifndef METH_STACKLESS
413  #define METH_STACKLESS 0
414 #endif
415 #if PY_VERSION_HEX <= 0x030700A3 || !defined(METH_FASTCALL)
416  #ifndef METH_FASTCALL
417  #define METH_FASTCALL 0x80
418  #endif
419  typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs);
420  typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args,
421  Py_ssize_t nargs, PyObject *kwnames);
422 #else
423  #define __Pyx_PyCFunctionFast _PyCFunctionFast
424  #define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
425 #endif
426 #if CYTHON_FAST_PYCCALL
427 #define __Pyx_PyFastCFunction_Check(func)\
428  ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS)))))
429 #else
430 #define __Pyx_PyFastCFunction_Check(func) 0
431 #endif
432 #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc)
433  #define PyObject_Malloc(s) PyMem_Malloc(s)
434  #define PyObject_Free(p) PyMem_Free(p)
435  #define PyObject_Realloc(p) PyMem_Realloc(p)
436 #endif
437 #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030400A1
438  #define PyMem_RawMalloc(n) PyMem_Malloc(n)
439  #define PyMem_RawRealloc(p, n) PyMem_Realloc(p, n)
440  #define PyMem_RawFree(p) PyMem_Free(p)
441 #endif
442 #if CYTHON_COMPILING_IN_PYSTON
443  #define __Pyx_PyCode_HasFreeVars(co) PyCode_HasFreeVars(co)
444  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno)
445 #else
446  #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0)
447  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno)
448 #endif
449 #if !CYTHON_FAST_THREAD_STATE || PY_VERSION_HEX < 0x02070000
450  #define __Pyx_PyThreadState_Current PyThreadState_GET()
451 #elif PY_VERSION_HEX >= 0x03060000
452  #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet()
453 #elif PY_VERSION_HEX >= 0x03000000
454  #define __Pyx_PyThreadState_Current PyThreadState_GET()
455 #else
456  #define __Pyx_PyThreadState_Current _PyThreadState_Current
457 #endif
458 #if PY_VERSION_HEX < 0x030700A2 && !defined(PyThread_tss_create) && !defined(Py_tss_NEEDS_INIT)
459 #include "pythread.h"
460 #define Py_tss_NEEDS_INIT 0
461 typedef int Py_tss_t;
462 static CYTHON_INLINE int PyThread_tss_create(Py_tss_t *key) {
463  *key = PyThread_create_key();
464  return 0;
465 }
466 static CYTHON_INLINE Py_tss_t * PyThread_tss_alloc(void) {
467  Py_tss_t *key = (Py_tss_t *)PyObject_Malloc(sizeof(Py_tss_t));
468  *key = Py_tss_NEEDS_INIT;
469  return key;
470 }
471 static CYTHON_INLINE void PyThread_tss_free(Py_tss_t *key) {
472  PyObject_Free(key);
473 }
474 static CYTHON_INLINE int PyThread_tss_is_created(Py_tss_t *key) {
475  return *key != Py_tss_NEEDS_INIT;
476 }
477 static CYTHON_INLINE void PyThread_tss_delete(Py_tss_t *key) {
478  PyThread_delete_key(*key);
479  *key = Py_tss_NEEDS_INIT;
480 }
481 static CYTHON_INLINE int PyThread_tss_set(Py_tss_t *key, void *value) {
482  return PyThread_set_key_value(*key, value);
483 }
484 static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) {
485  return PyThread_get_key_value(*key);
486 }
487 #endif
488 #if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized)
489 #define __Pyx_PyDict_NewPresized(n) ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n))
490 #else
491 #define __Pyx_PyDict_NewPresized(n) PyDict_New()
492 #endif
493 #if PY_MAJOR_VERSION >= 3 || CYTHON_FUTURE_DIVISION
494  #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y)
495  #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y)
496 #else
497  #define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y)
498  #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y)
499 #endif
500 #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 && CYTHON_USE_UNICODE_INTERNALS
501 #define __Pyx_PyDict_GetItemStr(dict, name) _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
502 #else
503 #define __Pyx_PyDict_GetItemStr(dict, name) PyDict_GetItem(dict, name)
504 #endif
505 #if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
506  #define CYTHON_PEP393_ENABLED 1
507  #if defined(PyUnicode_IS_READY)
508  #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\
509  0 : _PyUnicode_Ready((PyObject *)(op)))
510  #else
511  #define __Pyx_PyUnicode_READY(op) (0)
512  #endif
513  #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u)
514  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
515  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u)
516  #define __Pyx_PyUnicode_KIND(u) PyUnicode_KIND(u)
517  #define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u)
518  #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i)
519  #define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, ch)
520  #if defined(PyUnicode_IS_READY) && defined(PyUnicode_GET_SIZE)
521  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03090000
522  #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : ((PyCompactUnicodeObject *)(u))->wstr_length))
523  #else
524  #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
525  #endif
526  #else
527  #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_LENGTH(u))
528  #endif
529 #else
530  #define CYTHON_PEP393_ENABLED 0
531  #define PyUnicode_1BYTE_KIND 1
532  #define PyUnicode_2BYTE_KIND 2
533  #define PyUnicode_4BYTE_KIND 4
534  #define __Pyx_PyUnicode_READY(op) (0)
535  #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u)
536  #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i]))
537  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111)
538  #define __Pyx_PyUnicode_KIND(u) (sizeof(Py_UNICODE))
539  #define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u))
540  #define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
541  #define __Pyx_PyUnicode_WRITE(k, d, i, ch) (((void)(k)), ((Py_UNICODE*)d)[i] = ch)
542  #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u))
543 #endif
544 #if CYTHON_COMPILING_IN_PYPY
545  #define __Pyx_PyUnicode_Concat(a, b) PyNumber_Add(a, b)
546  #define __Pyx_PyUnicode_ConcatSafe(a, b) PyNumber_Add(a, b)
547 #else
548  #define __Pyx_PyUnicode_Concat(a, b) PyUnicode_Concat(a, b)
549  #define __Pyx_PyUnicode_ConcatSafe(a, b) ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\
550  PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
551 #endif
552 #if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains)
553  #define PyUnicode_Contains(u, s) PySequence_Contains(u, s)
554 #endif
555 #if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check)
556  #define PyByteArray_Check(obj) PyObject_TypeCheck(obj, &PyByteArray_Type)
557 #endif
558 #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format)
559  #define PyObject_Format(obj, fmt) PyObject_CallMethod(obj, "__format__", "O", fmt)
560 #endif
561 #define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None || (PyString_Check(b) && !PyString_CheckExact(b)))) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b))
562 #define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
563 #if PY_MAJOR_VERSION >= 3
564  #define __Pyx_PyString_Format(a, b) PyUnicode_Format(a, b)
565 #else
566  #define __Pyx_PyString_Format(a, b) PyString_Format(a, b)
567 #endif
568 #if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII)
569  #define PyObject_ASCII(o) PyObject_Repr(o)
570 #endif
571 #if PY_MAJOR_VERSION >= 3
572  #define PyBaseString_Type PyUnicode_Type
573  #define PyStringObject PyUnicodeObject
574  #define PyString_Type PyUnicode_Type
575  #define PyString_Check PyUnicode_Check
576  #define PyString_CheckExact PyUnicode_CheckExact
577 #ifndef PyObject_Unicode
578  #define PyObject_Unicode PyObject_Str
579 #endif
580 #endif
581 #if PY_MAJOR_VERSION >= 3
582  #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj)
583  #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj)
584 #else
585  #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj))
586  #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj))
587 #endif
588 #ifndef PySet_CheckExact
589  #define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type)
590 #endif
591 #if PY_VERSION_HEX >= 0x030900A4
592  #define __Pyx_SET_REFCNT(obj, refcnt) Py_SET_REFCNT(obj, refcnt)
593  #define __Pyx_SET_SIZE(obj, size) Py_SET_SIZE(obj, size)
594 #else
595  #define __Pyx_SET_REFCNT(obj, refcnt) Py_REFCNT(obj) = (refcnt)
596  #define __Pyx_SET_SIZE(obj, size) Py_SIZE(obj) = (size)
597 #endif
598 #if CYTHON_ASSUME_SAFE_MACROS
599  #define __Pyx_PySequence_SIZE(seq) Py_SIZE(seq)
600 #else
601  #define __Pyx_PySequence_SIZE(seq) PySequence_Size(seq)
602 #endif
603 #if PY_MAJOR_VERSION >= 3
604  #define PyIntObject PyLongObject
605  #define PyInt_Type PyLong_Type
606  #define PyInt_Check(op) PyLong_Check(op)
607  #define PyInt_CheckExact(op) PyLong_CheckExact(op)
608  #define PyInt_FromString PyLong_FromString
609  #define PyInt_FromUnicode PyLong_FromUnicode
610  #define PyInt_FromLong PyLong_FromLong
611  #define PyInt_FromSize_t PyLong_FromSize_t
612  #define PyInt_FromSsize_t PyLong_FromSsize_t
613  #define PyInt_AsLong PyLong_AsLong
614  #define PyInt_AS_LONG PyLong_AS_LONG
615  #define PyInt_AsSsize_t PyLong_AsSsize_t
616  #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask
617  #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
618  #define PyNumber_Int PyNumber_Long
619 #endif
620 #if PY_MAJOR_VERSION >= 3
621  #define PyBoolObject PyLongObject
622 #endif
623 #if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY
624  #ifndef PyUnicode_InternFromString
625  #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
626  #endif
627 #endif
628 #if PY_VERSION_HEX < 0x030200A4
629  typedef long Py_hash_t;
630  #define __Pyx_PyInt_FromHash_t PyInt_FromLong
631  #define __Pyx_PyInt_AsHash_t __Pyx_PyIndex_AsHash_t
632 #else
633  #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
634  #define __Pyx_PyInt_AsHash_t __Pyx_PyIndex_AsSsize_t
635 #endif
636 #if PY_MAJOR_VERSION >= 3
637  #define __Pyx_PyMethod_New(func, self, klass) ((self) ? ((void)(klass), PyMethod_New(func, self)) : __Pyx_NewRef(func))
638 #else
639  #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass)
640 #endif
641 #if CYTHON_USE_ASYNC_SLOTS
642  #if PY_VERSION_HEX >= 0x030500B1
643  #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
644  #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async)
645  #else
646  #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved))
647  #endif
648 #else
649  #define __Pyx_PyType_AsAsync(obj) NULL
650 #endif
651 #ifndef __Pyx_PyAsyncMethodsStruct
652  typedef struct {
653  unaryfunc am_await;
654  unaryfunc am_aiter;
655  unaryfunc am_anext;
656  } __Pyx_PyAsyncMethodsStruct;
657 #endif
658 
659 #if defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)
660  #if !defined(_USE_MATH_DEFINES)
661  #define _USE_MATH_DEFINES
662  #endif
663 #endif
664 #include <math.h>
665 #ifdef NAN
666 #define __PYX_NAN() ((float) NAN)
667 #else
668 static CYTHON_INLINE float __PYX_NAN() {
669  float value;
670  memset(&value, 0xFF, sizeof(value));
671  return value;
672 }
673 #endif
674 #if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
675 #define __Pyx_truncl trunc
676 #else
677 #define __Pyx_truncl truncl
678 #endif
679 
680 #define __PYX_MARK_ERR_POS(f_index, lineno) \
681  { __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno = lineno; (void)__pyx_lineno; __pyx_clineno = __LINE__; (void)__pyx_clineno; }
682 #define __PYX_ERR(f_index, lineno, Ln_error) \
683  { __PYX_MARK_ERR_POS(f_index, lineno) goto Ln_error; }
684 
685 #ifndef __PYX_EXTERN_C
686  #ifdef __cplusplus
687  #define __PYX_EXTERN_C extern "C"
688  #else
689  #define __PYX_EXTERN_C extern
690  #endif
691 #endif
692 
693 #define __PYX_HAVE__ctransportCoefficients
694 #define __PYX_HAVE_API__ctransportCoefficients
695 /* Early includes */
696 #include <string.h>
697 #include <stdio.h>
698 #include "numpy/arrayobject.h"
699 #include "numpy/ndarrayobject.h"
700 #include "numpy/ndarraytypes.h"
701 #include "numpy/arrayscalars.h"
702 #include "numpy/ufuncobject.h"
703 
704  /* NumPy API declarations from "numpy/__init__.pxd" */
705 
706 #include "transportCoefficients.h"
707 #ifdef _OPENMP
708 #include <omp.h>
709 #endif /* _OPENMP */
710 
711 #if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS)
712 #define CYTHON_WITHOUT_ASSERTIONS
713 #endif
714 
715 typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding;
716  const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry;
717 
718 #define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
719 #define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 0
720 #define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT (PY_MAJOR_VERSION >= 3 && __PYX_DEFAULT_STRING_ENCODING_IS_UTF8)
721 #define __PYX_DEFAULT_STRING_ENCODING ""
722 #define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
723 #define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
724 #define __Pyx_uchar_cast(c) ((unsigned char)c)
725 #define __Pyx_long_cast(x) ((long)x)
726 #define __Pyx_fits_Py_ssize_t(v, type, is_signed) (\
727  (sizeof(type) < sizeof(Py_ssize_t)) ||\
728  (sizeof(type) > sizeof(Py_ssize_t) &&\
729  likely(v < (type)PY_SSIZE_T_MAX ||\
730  v == (type)PY_SSIZE_T_MAX) &&\
731  (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\
732  v == (type)PY_SSIZE_T_MIN))) ||\
733  (sizeof(type) == sizeof(Py_ssize_t) &&\
734  (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\
735  v == (type)PY_SSIZE_T_MAX))) )
736 static CYTHON_INLINE int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) {
737  return (size_t) i < (size_t) limit;
738 }
739 #if defined (__cplusplus) && __cplusplus >= 201103L
740  #include <cstdlib>
741  #define __Pyx_sst_abs(value) std::abs(value)
742 #elif SIZEOF_INT >= SIZEOF_SIZE_T
743  #define __Pyx_sst_abs(value) abs(value)
744 #elif SIZEOF_LONG >= SIZEOF_SIZE_T
745  #define __Pyx_sst_abs(value) labs(value)
746 #elif defined (_MSC_VER)
747  #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value))
748 #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
749  #define __Pyx_sst_abs(value) llabs(value)
750 #elif defined (__GNUC__)
751  #define __Pyx_sst_abs(value) __builtin_llabs(value)
752 #else
753  #define __Pyx_sst_abs(value) ((value<0) ? -value : value)
754 #endif
755 static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*);
756 static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
757 #define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
758 #define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
759 #define __Pyx_PyBytes_FromString PyBytes_FromString
760 #define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
761 static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*);
762 #if PY_MAJOR_VERSION < 3
763  #define __Pyx_PyStr_FromString __Pyx_PyBytes_FromString
764  #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
765 #else
766  #define __Pyx_PyStr_FromString __Pyx_PyUnicode_FromString
767  #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize
768 #endif
769 #define __Pyx_PyBytes_AsWritableString(s) ((char*) PyBytes_AS_STRING(s))
770 #define __Pyx_PyBytes_AsWritableSString(s) ((signed char*) PyBytes_AS_STRING(s))
771 #define __Pyx_PyBytes_AsWritableUString(s) ((unsigned char*) PyBytes_AS_STRING(s))
772 #define __Pyx_PyBytes_AsString(s) ((const char*) PyBytes_AS_STRING(s))
773 #define __Pyx_PyBytes_AsSString(s) ((const signed char*) PyBytes_AS_STRING(s))
774 #define __Pyx_PyBytes_AsUString(s) ((const unsigned char*) PyBytes_AS_STRING(s))
775 #define __Pyx_PyObject_AsWritableString(s) ((char*) __Pyx_PyObject_AsString(s))
776 #define __Pyx_PyObject_AsWritableSString(s) ((signed char*) __Pyx_PyObject_AsString(s))
777 #define __Pyx_PyObject_AsWritableUString(s) ((unsigned char*) __Pyx_PyObject_AsString(s))
778 #define __Pyx_PyObject_AsSString(s) ((const signed char*) __Pyx_PyObject_AsString(s))
779 #define __Pyx_PyObject_AsUString(s) ((const unsigned char*) __Pyx_PyObject_AsString(s))
780 #define __Pyx_PyObject_FromCString(s) __Pyx_PyObject_FromString((const char*)s)
781 #define __Pyx_PyBytes_FromCString(s) __Pyx_PyBytes_FromString((const char*)s)
782 #define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s)
783 #define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s)
784 #define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
785 static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) {
786  const Py_UNICODE *u_end = u;
787  while (*u_end++) ;
788  return (size_t)(u_end - u - 1);
789 }
790 #define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u))
791 #define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode
792 #define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode
793 #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj)
794 #define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None)
795 static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b);
796 static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
797 static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject*);
798 static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x);
799 #define __Pyx_PySequence_Tuple(obj)\
800  (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj))
801 static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
802 static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
803 static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*);
804 #if CYTHON_ASSUME_SAFE_MACROS
805 #define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
806 #else
807 #define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
808 #endif
809 #define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x))
810 #if PY_MAJOR_VERSION >= 3
811 #define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x))
812 #else
813 #define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x))
814 #endif
815 #define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x))
816 #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
817 static int __Pyx_sys_getdefaultencoding_not_ascii;
818 static int __Pyx_init_sys_getdefaultencoding_params(void) {
819  PyObject* sys;
820  PyObject* default_encoding = NULL;
821  PyObject* ascii_chars_u = NULL;
822  PyObject* ascii_chars_b = NULL;
823  const char* default_encoding_c;
824  sys = PyImport_ImportModule("sys");
825  if (!sys) goto bad;
826  default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL);
827  Py_DECREF(sys);
828  if (!default_encoding) goto bad;
829  default_encoding_c = PyBytes_AsString(default_encoding);
830  if (!default_encoding_c) goto bad;
831  if (strcmp(default_encoding_c, "ascii") == 0) {
832  __Pyx_sys_getdefaultencoding_not_ascii = 0;
833  } else {
834  char ascii_chars[128];
835  int c;
836  for (c = 0; c < 128; c++) {
837  ascii_chars[c] = c;
838  }
839  __Pyx_sys_getdefaultencoding_not_ascii = 1;
840  ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL);
841  if (!ascii_chars_u) goto bad;
842  ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL);
843  if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) {
844  PyErr_Format(
845  PyExc_ValueError,
846  "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.",
847  default_encoding_c);
848  goto bad;
849  }
850  Py_DECREF(ascii_chars_u);
851  Py_DECREF(ascii_chars_b);
852  }
853  Py_DECREF(default_encoding);
854  return 0;
855 bad:
856  Py_XDECREF(default_encoding);
857  Py_XDECREF(ascii_chars_u);
858  Py_XDECREF(ascii_chars_b);
859  return -1;
860 }
861 #endif
862 #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3
863 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
864 #else
865 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
866 #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
867 static char* __PYX_DEFAULT_STRING_ENCODING;
868 static int __Pyx_init_sys_getdefaultencoding_params(void) {
869  PyObject* sys;
870  PyObject* default_encoding = NULL;
871  char* default_encoding_c;
872  sys = PyImport_ImportModule("sys");
873  if (!sys) goto bad;
874  default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL);
875  Py_DECREF(sys);
876  if (!default_encoding) goto bad;
877  default_encoding_c = PyBytes_AsString(default_encoding);
878  if (!default_encoding_c) goto bad;
879  __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c) + 1);
880  if (!__PYX_DEFAULT_STRING_ENCODING) goto bad;
881  strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
882  Py_DECREF(default_encoding);
883  return 0;
884 bad:
885  Py_XDECREF(default_encoding);
886  return -1;
887 }
888 #endif
889 #endif
890 
891 
892 /* Test for GCC > 2.95 */
893 #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))
894  #define likely(x) __builtin_expect(!!(x), 1)
895  #define unlikely(x) __builtin_expect(!!(x), 0)
896 #else /* !__GNUC__ or GCC < 2.95 */
897  #define likely(x) (x)
898  #define unlikely(x) (x)
899 #endif /* __GNUC__ */
900 static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; }
901 
902 static PyObject *__pyx_m = NULL;
903 static PyObject *__pyx_d;
904 static PyObject *__pyx_b;
905 static PyObject *__pyx_cython_runtime = NULL;
906 static PyObject *__pyx_empty_tuple;
907 static PyObject *__pyx_empty_bytes;
908 static PyObject *__pyx_empty_unicode;
909 static int __pyx_lineno;
910 static int __pyx_clineno = 0;
911 static const char * __pyx_cfilenm= __FILE__;
912 static const char *__pyx_filename;
913 
914 /* Header.proto */
915 #if !defined(CYTHON_CCOMPLEX)
916  #if defined(__cplusplus)
917  #define CYTHON_CCOMPLEX 1
918  #elif defined(_Complex_I)
919  #define CYTHON_CCOMPLEX 1
920  #else
921  #define CYTHON_CCOMPLEX 0
922  #endif
923 #endif
924 #if CYTHON_CCOMPLEX
925  #ifdef __cplusplus
926  #include <complex>
927  #else
928  #include <complex.h>
929  #endif
930 #endif
931 #if CYTHON_CCOMPLEX && !defined(__cplusplus) && defined(__sun__) && defined(__GNUC__)
932  #undef _Complex_I
933  #define _Complex_I 1.0fj
934 #endif
935 
936 
937 static const char *__pyx_f[] = {
938  "proteus/ctransportCoefficients.pyx",
939  "__init__.pxd",
940  "type.pxd",
941 };
942 
943 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":690
944  * # in Cython to enable them only on the right systems.
945  *
946  * ctypedef npy_int8 int8_t # <<<<<<<<<<<<<<
947  * ctypedef npy_int16 int16_t
948  * ctypedef npy_int32 int32_t
949  */
950 typedef npy_int8 __pyx_t_5numpy_int8_t;
951 
952 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":691
953  *
954  * ctypedef npy_int8 int8_t
955  * ctypedef npy_int16 int16_t # <<<<<<<<<<<<<<
956  * ctypedef npy_int32 int32_t
957  * ctypedef npy_int64 int64_t
958  */
959 typedef npy_int16 __pyx_t_5numpy_int16_t;
960 
961 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":692
962  * ctypedef npy_int8 int8_t
963  * ctypedef npy_int16 int16_t
964  * ctypedef npy_int32 int32_t # <<<<<<<<<<<<<<
965  * ctypedef npy_int64 int64_t
966  * #ctypedef npy_int96 int96_t
967  */
968 typedef npy_int32 __pyx_t_5numpy_int32_t;
969 
970 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":693
971  * ctypedef npy_int16 int16_t
972  * ctypedef npy_int32 int32_t
973  * ctypedef npy_int64 int64_t # <<<<<<<<<<<<<<
974  * #ctypedef npy_int96 int96_t
975  * #ctypedef npy_int128 int128_t
976  */
977 typedef npy_int64 __pyx_t_5numpy_int64_t;
978 
979 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":697
980  * #ctypedef npy_int128 int128_t
981  *
982  * ctypedef npy_uint8 uint8_t # <<<<<<<<<<<<<<
983  * ctypedef npy_uint16 uint16_t
984  * ctypedef npy_uint32 uint32_t
985  */
986 typedef npy_uint8 __pyx_t_5numpy_uint8_t;
987 
988 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":698
989  *
990  * ctypedef npy_uint8 uint8_t
991  * ctypedef npy_uint16 uint16_t # <<<<<<<<<<<<<<
992  * ctypedef npy_uint32 uint32_t
993  * ctypedef npy_uint64 uint64_t
994  */
995 typedef npy_uint16 __pyx_t_5numpy_uint16_t;
996 
997 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":699
998  * ctypedef npy_uint8 uint8_t
999  * ctypedef npy_uint16 uint16_t
1000  * ctypedef npy_uint32 uint32_t # <<<<<<<<<<<<<<
1001  * ctypedef npy_uint64 uint64_t
1002  * #ctypedef npy_uint96 uint96_t
1003  */
1004 typedef npy_uint32 __pyx_t_5numpy_uint32_t;
1005 
1006 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":700
1007  * ctypedef npy_uint16 uint16_t
1008  * ctypedef npy_uint32 uint32_t
1009  * ctypedef npy_uint64 uint64_t # <<<<<<<<<<<<<<
1010  * #ctypedef npy_uint96 uint96_t
1011  * #ctypedef npy_uint128 uint128_t
1012  */
1013 typedef npy_uint64 __pyx_t_5numpy_uint64_t;
1014 
1015 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":704
1016  * #ctypedef npy_uint128 uint128_t
1017  *
1018  * ctypedef npy_float32 float32_t # <<<<<<<<<<<<<<
1019  * ctypedef npy_float64 float64_t
1020  * #ctypedef npy_float80 float80_t
1021  */
1022 typedef npy_float32 __pyx_t_5numpy_float32_t;
1023 
1024 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":705
1025  *
1026  * ctypedef npy_float32 float32_t
1027  * ctypedef npy_float64 float64_t # <<<<<<<<<<<<<<
1028  * #ctypedef npy_float80 float80_t
1029  * #ctypedef npy_float128 float128_t
1030  */
1031 typedef npy_float64 __pyx_t_5numpy_float64_t;
1032 
1033 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":714
1034  * # The int types are mapped a bit surprising --
1035  * # numpy.int corresponds to 'l' and numpy.long to 'q'
1036  * ctypedef npy_long int_t # <<<<<<<<<<<<<<
1037  * ctypedef npy_longlong long_t
1038  * ctypedef npy_longlong longlong_t
1039  */
1040 typedef npy_long __pyx_t_5numpy_int_t;
1041 
1042 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":715
1043  * # numpy.int corresponds to 'l' and numpy.long to 'q'
1044  * ctypedef npy_long int_t
1045  * ctypedef npy_longlong long_t # <<<<<<<<<<<<<<
1046  * ctypedef npy_longlong longlong_t
1047  *
1048  */
1049 typedef npy_longlong __pyx_t_5numpy_long_t;
1050 
1051 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":716
1052  * ctypedef npy_long int_t
1053  * ctypedef npy_longlong long_t
1054  * ctypedef npy_longlong longlong_t # <<<<<<<<<<<<<<
1055  *
1056  * ctypedef npy_ulong uint_t
1057  */
1058 typedef npy_longlong __pyx_t_5numpy_longlong_t;
1059 
1060 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":718
1061  * ctypedef npy_longlong longlong_t
1062  *
1063  * ctypedef npy_ulong uint_t # <<<<<<<<<<<<<<
1064  * ctypedef npy_ulonglong ulong_t
1065  * ctypedef npy_ulonglong ulonglong_t
1066  */
1067 typedef npy_ulong __pyx_t_5numpy_uint_t;
1068 
1069 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":719
1070  *
1071  * ctypedef npy_ulong uint_t
1072  * ctypedef npy_ulonglong ulong_t # <<<<<<<<<<<<<<
1073  * ctypedef npy_ulonglong ulonglong_t
1074  *
1075  */
1076 typedef npy_ulonglong __pyx_t_5numpy_ulong_t;
1077 
1078 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":720
1079  * ctypedef npy_ulong uint_t
1080  * ctypedef npy_ulonglong ulong_t
1081  * ctypedef npy_ulonglong ulonglong_t # <<<<<<<<<<<<<<
1082  *
1083  * ctypedef npy_intp intp_t
1084  */
1085 typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;
1086 
1087 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":722
1088  * ctypedef npy_ulonglong ulonglong_t
1089  *
1090  * ctypedef npy_intp intp_t # <<<<<<<<<<<<<<
1091  * ctypedef npy_uintp uintp_t
1092  *
1093  */
1094 typedef npy_intp __pyx_t_5numpy_intp_t;
1095 
1096 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":723
1097  *
1098  * ctypedef npy_intp intp_t
1099  * ctypedef npy_uintp uintp_t # <<<<<<<<<<<<<<
1100  *
1101  * ctypedef npy_double float_t
1102  */
1103 typedef npy_uintp __pyx_t_5numpy_uintp_t;
1104 
1105 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":725
1106  * ctypedef npy_uintp uintp_t
1107  *
1108  * ctypedef npy_double float_t # <<<<<<<<<<<<<<
1109  * ctypedef npy_double double_t
1110  * ctypedef npy_longdouble longdouble_t
1111  */
1112 typedef npy_double __pyx_t_5numpy_float_t;
1113 
1114 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":726
1115  *
1116  * ctypedef npy_double float_t
1117  * ctypedef npy_double double_t # <<<<<<<<<<<<<<
1118  * ctypedef npy_longdouble longdouble_t
1119  *
1120  */
1121 typedef npy_double __pyx_t_5numpy_double_t;
1122 
1123 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":727
1124  * ctypedef npy_double float_t
1125  * ctypedef npy_double double_t
1126  * ctypedef npy_longdouble longdouble_t # <<<<<<<<<<<<<<
1127  *
1128  * ctypedef npy_cfloat cfloat_t
1129  */
1130 typedef npy_longdouble __pyx_t_5numpy_longdouble_t;
1131 /* Declarations.proto */
1132 #if CYTHON_CCOMPLEX
1133  #ifdef __cplusplus
1134  typedef ::std::complex< float > __pyx_t_float_complex;
1135  #else
1136  typedef float _Complex __pyx_t_float_complex;
1137  #endif
1138 #else
1139  typedef struct { float real, imag; } __pyx_t_float_complex;
1140 #endif
1141 static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float, float);
1142 
1143 /* Declarations.proto */
1144 #if CYTHON_CCOMPLEX
1145  #ifdef __cplusplus
1146  typedef ::std::complex< double > __pyx_t_double_complex;
1147  #else
1148  typedef double _Complex __pyx_t_double_complex;
1149  #endif
1150 #else
1151  typedef struct { double real, imag; } __pyx_t_double_complex;
1152 #endif
1153 static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double, double);
1154 
1155 
1156 /*--- Type declarations ---*/
1157 
1158 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":729
1159  * ctypedef npy_longdouble longdouble_t
1160  *
1161  * ctypedef npy_cfloat cfloat_t # <<<<<<<<<<<<<<
1162  * ctypedef npy_cdouble cdouble_t
1163  * ctypedef npy_clongdouble clongdouble_t
1164  */
1165 typedef npy_cfloat __pyx_t_5numpy_cfloat_t;
1166 
1167 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":730
1168  *
1169  * ctypedef npy_cfloat cfloat_t
1170  * ctypedef npy_cdouble cdouble_t # <<<<<<<<<<<<<<
1171  * ctypedef npy_clongdouble clongdouble_t
1172  *
1173  */
1174 typedef npy_cdouble __pyx_t_5numpy_cdouble_t;
1175 
1176 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":731
1177  * ctypedef npy_cfloat cfloat_t
1178  * ctypedef npy_cdouble cdouble_t
1179  * ctypedef npy_clongdouble clongdouble_t # <<<<<<<<<<<<<<
1180  *
1181  * ctypedef npy_cdouble complex_t
1182  */
1183 typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t;
1184 
1185 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":733
1186  * ctypedef npy_clongdouble clongdouble_t
1187  *
1188  * ctypedef npy_cdouble complex_t # <<<<<<<<<<<<<<
1189  *
1190  * cdef inline object PyArray_MultiIterNew1(a):
1191  */
1192 typedef npy_cdouble __pyx_t_5numpy_complex_t;
1193 
1194 /* --- Runtime support code (head) --- */
1195 /* Refnanny.proto */
1196 #ifndef CYTHON_REFNANNY
1197  #define CYTHON_REFNANNY 0
1198 #endif
1199 #if CYTHON_REFNANNY
1200  typedef struct {
1201  void (*INCREF)(void*, PyObject*, int);
1202  void (*DECREF)(void*, PyObject*, int);
1203  void (*GOTREF)(void*, PyObject*, int);
1204  void (*GIVEREF)(void*, PyObject*, int);
1205  void* (*SetupContext)(const char*, int, const char*);
1206  void (*FinishContext)(void**);
1207  } __Pyx_RefNannyAPIStruct;
1208  static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
1209  static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname);
1210  #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
1211 #ifdef WITH_THREAD
1212  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
1213  if (acquire_gil) {\
1214  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
1215  __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
1216  PyGILState_Release(__pyx_gilstate_save);\
1217  } else {\
1218  __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
1219  }
1220 #else
1221  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
1222  __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
1223 #endif
1224  #define __Pyx_RefNannyFinishContext()\
1225  __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
1226  #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
1227  #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
1228  #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
1229  #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
1230  #define __Pyx_XINCREF(r) do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0)
1231  #define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0)
1232  #define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0)
1233  #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0)
1234 #else
1235  #define __Pyx_RefNannyDeclarations
1236  #define __Pyx_RefNannySetupContext(name, acquire_gil)
1237  #define __Pyx_RefNannyFinishContext()
1238  #define __Pyx_INCREF(r) Py_INCREF(r)
1239  #define __Pyx_DECREF(r) Py_DECREF(r)
1240  #define __Pyx_GOTREF(r)
1241  #define __Pyx_GIVEREF(r)
1242  #define __Pyx_XINCREF(r) Py_XINCREF(r)
1243  #define __Pyx_XDECREF(r) Py_XDECREF(r)
1244  #define __Pyx_XGOTREF(r)
1245  #define __Pyx_XGIVEREF(r)
1246 #endif
1247 #define __Pyx_XDECREF_SET(r, v) do {\
1248  PyObject *tmp = (PyObject *) r;\
1249  r = v; __Pyx_XDECREF(tmp);\
1250  } while (0)
1251 #define __Pyx_DECREF_SET(r, v) do {\
1252  PyObject *tmp = (PyObject *) r;\
1253  r = v; __Pyx_DECREF(tmp);\
1254  } while (0)
1255 #define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
1256 #define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)
1257 
1258 /* RaiseArgTupleInvalid.proto */
1259 static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
1260  Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);
1261 
1262 /* RaiseDoubleKeywords.proto */
1263 static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name);
1264 
1265 /* ParseKeywords.proto */
1266 static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\
1267  PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\
1268  const char* function_name);
1269 
1270 /* ArgTypeTest.proto */
1271 #define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\
1272  ((likely((Py_TYPE(obj) == type) | (none_allowed && (obj == Py_None)))) ? 1 :\
1273  __Pyx__ArgTypeTest(obj, type, name, exact))
1274 static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact);
1275 
1276 /* PyObjectGetAttrStr.proto */
1277 #if CYTHON_USE_TYPE_SLOTS
1278 static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name);
1279 #else
1280 #define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
1281 #endif
1282 
1283 /* GetItemInt.proto */
1284 #define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
1285  (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
1286  __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\
1287  (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\
1288  __Pyx_GetItemInt_Generic(o, to_py_func(i))))
1289 #define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
1290  (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
1291  __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
1292  (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
1293 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
1294  int wraparound, int boundscheck);
1295 #define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
1296  (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
1297  __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
1298  (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL))
1299 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
1300  int wraparound, int boundscheck);
1301 static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j);
1302 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
1303  int is_list, int wraparound, int boundscheck);
1304 
1305 /* GetBuiltinName.proto */
1306 static PyObject *__Pyx_GetBuiltinName(PyObject *name);
1307 
1308 /* PyDictVersioning.proto */
1309 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
1310 #define __PYX_DICT_VERSION_INIT ((PY_UINT64_T) -1)
1311 #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag)
1312 #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\
1313  (version_var) = __PYX_GET_DICT_VERSION(dict);\
1314  (cache_var) = (value);
1315 #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\
1316  static PY_UINT64_T __pyx_dict_version = 0;\
1317  static PyObject *__pyx_dict_cached_value = NULL;\
1318  if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
1319  (VAR) = __pyx_dict_cached_value;\
1320  } else {\
1321  (VAR) = __pyx_dict_cached_value = (LOOKUP);\
1322  __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
1323  }\
1324 }
1325 static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj);
1326 static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj);
1327 static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version);
1328 #else
1329 #define __PYX_GET_DICT_VERSION(dict) (0)
1330 #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)
1331 #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) (VAR) = (LOOKUP);
1332 #endif
1333 
1334 /* GetModuleGlobalName.proto */
1335 #if CYTHON_USE_DICT_VERSIONS
1336 #define __Pyx_GetModuleGlobalName(var, name) {\
1337  static PY_UINT64_T __pyx_dict_version = 0;\
1338  static PyObject *__pyx_dict_cached_value = NULL;\
1339  (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
1340  (likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\
1341  __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
1342 }
1343 #define __Pyx_GetModuleGlobalNameUncached(var, name) {\
1344  PY_UINT64_T __pyx_dict_version;\
1345  PyObject *__pyx_dict_cached_value;\
1346  (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
1347 }
1348 static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value);
1349 #else
1350 #define __Pyx_GetModuleGlobalName(var, name) (var) = __Pyx__GetModuleGlobalName(name)
1351 #define __Pyx_GetModuleGlobalNameUncached(var, name) (var) = __Pyx__GetModuleGlobalName(name)
1352 static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name);
1353 #endif
1354 
1355 /* PyFunctionFastCall.proto */
1356 #if CYTHON_FAST_PYCALL
1357 #define __Pyx_PyFunction_FastCall(func, args, nargs)\
1358  __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL)
1359 #if 1 || PY_VERSION_HEX < 0x030600B1
1360 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs);
1361 #else
1362 #define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs)
1363 #endif
1364 #define __Pyx_BUILD_ASSERT_EXPR(cond)\
1365  (sizeof(char [1 - 2*!(cond)]) - 1)
1366 #ifndef Py_MEMBER_SIZE
1367 #define Py_MEMBER_SIZE(type, member) sizeof(((type *)0)->member)
1368 #endif
1369 #if CYTHON_FAST_PYCALL
1370  static size_t __pyx_pyframe_localsplus_offset = 0;
1371  #include "frameobject.h"
1372 #if PY_VERSION_HEX >= 0x030b00a6
1373  #ifndef Py_BUILD_CORE
1374  #define Py_BUILD_CORE 1
1375  #endif
1376  #include "internal/pycore_frame.h"
1377 #endif
1378  #define __Pxy_PyFrame_Initialize_Offsets()\
1379  ((void)__Pyx_BUILD_ASSERT_EXPR(sizeof(PyFrameObject) == offsetof(PyFrameObject, f_localsplus) + Py_MEMBER_SIZE(PyFrameObject, f_localsplus)),\
1380  (void)(__pyx_pyframe_localsplus_offset = ((size_t)PyFrame_Type.tp_basicsize) - Py_MEMBER_SIZE(PyFrameObject, f_localsplus)))
1381  #define __Pyx_PyFrame_GetLocalsplus(frame)\
1382  (assert(__pyx_pyframe_localsplus_offset), (PyObject **)(((char *)(frame)) + __pyx_pyframe_localsplus_offset))
1383 #endif // CYTHON_FAST_PYCALL
1384 #endif
1385 
1386 /* PyCFunctionFastCall.proto */
1387 #if CYTHON_FAST_PYCCALL
1388 static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs);
1389 #else
1390 #define __Pyx_PyCFunction_FastCall(func, args, nargs) (assert(0), NULL)
1391 #endif
1392 
1393 /* PyObjectCall.proto */
1394 #if CYTHON_COMPILING_IN_CPYTHON
1395 static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
1396 #else
1397 #define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
1398 #endif
1399 
1400 /* GetTopmostException.proto */
1401 #if CYTHON_USE_EXC_INFO_STACK
1402 static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate);
1403 #endif
1404 
1405 /* PyThreadStateGet.proto */
1406 #if CYTHON_FAST_THREAD_STATE
1407 #define __Pyx_PyThreadState_declare PyThreadState *__pyx_tstate;
1408 #define __Pyx_PyThreadState_assign __pyx_tstate = __Pyx_PyThreadState_Current;
1409 #define __Pyx_PyErr_Occurred() __pyx_tstate->curexc_type
1410 #else
1411 #define __Pyx_PyThreadState_declare
1412 #define __Pyx_PyThreadState_assign
1413 #define __Pyx_PyErr_Occurred() PyErr_Occurred()
1414 #endif
1415 
1416 /* SaveResetException.proto */
1417 #if CYTHON_FAST_THREAD_STATE
1418 #define __Pyx_ExceptionSave(type, value, tb) __Pyx__ExceptionSave(__pyx_tstate, type, value, tb)
1419 static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
1420 #define __Pyx_ExceptionReset(type, value, tb) __Pyx__ExceptionReset(__pyx_tstate, type, value, tb)
1421 static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
1422 #else
1423 #define __Pyx_ExceptionSave(type, value, tb) PyErr_GetExcInfo(type, value, tb)
1424 #define __Pyx_ExceptionReset(type, value, tb) PyErr_SetExcInfo(type, value, tb)
1425 #endif
1426 
1427 /* PyErrExceptionMatches.proto */
1428 #if CYTHON_FAST_THREAD_STATE
1429 #define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err)
1430 static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
1431 #else
1432 #define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err)
1433 #endif
1434 
1435 /* GetException.proto */
1436 #if CYTHON_FAST_THREAD_STATE
1437 #define __Pyx_GetException(type, value, tb) __Pyx__GetException(__pyx_tstate, type, value, tb)
1438 static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
1439 #else
1440 static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb);
1441 #endif
1442 
1443 /* PyErrFetchRestore.proto */
1444 #if CYTHON_FAST_THREAD_STATE
1445 #define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL)
1446 #define __Pyx_ErrRestoreWithState(type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
1447 #define __Pyx_ErrFetchWithState(type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
1448 #define __Pyx_ErrRestore(type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
1449 #define __Pyx_ErrFetch(type, value, tb) __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
1450 static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
1451 static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
1452 #if CYTHON_COMPILING_IN_CPYTHON
1453 #define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL))
1454 #else
1455 #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
1456 #endif
1457 #else
1458 #define __Pyx_PyErr_Clear() PyErr_Clear()
1459 #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
1460 #define __Pyx_ErrRestoreWithState(type, value, tb) PyErr_Restore(type, value, tb)
1461 #define __Pyx_ErrFetchWithState(type, value, tb) PyErr_Fetch(type, value, tb)
1462 #define __Pyx_ErrRestoreInState(tstate, type, value, tb) PyErr_Restore(type, value, tb)
1463 #define __Pyx_ErrFetchInState(tstate, type, value, tb) PyErr_Fetch(type, value, tb)
1464 #define __Pyx_ErrRestore(type, value, tb) PyErr_Restore(type, value, tb)
1465 #define __Pyx_ErrFetch(type, value, tb) PyErr_Fetch(type, value, tb)
1466 #endif
1467 
1468 /* RaiseException.proto */
1469 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause);
1470 
1471 /* TypeImport.proto */
1472 #ifndef __PYX_HAVE_RT_ImportType_proto
1473 #define __PYX_HAVE_RT_ImportType_proto
1474 enum __Pyx_ImportType_CheckSize {
1475  __Pyx_ImportType_CheckSize_Error = 0,
1476  __Pyx_ImportType_CheckSize_Warn = 1,
1477  __Pyx_ImportType_CheckSize_Ignore = 2
1478 };
1479 static PyTypeObject *__Pyx_ImportType(PyObject* module, const char *module_name, const char *class_name, size_t size, enum __Pyx_ImportType_CheckSize check_size);
1480 #endif
1481 
1482 /* Import.proto */
1483 static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level);
1484 
1485 /* CLineInTraceback.proto */
1486 #ifdef CYTHON_CLINE_IN_TRACEBACK
1487 #define __Pyx_CLineForTraceback(tstate, c_line) (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
1488 #else
1489 static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line);
1490 #endif
1491 
1492 /* CodeObjectCache.proto */
1493 typedef struct {
1494  PyCodeObject* code_object;
1495  int code_line;
1496 } __Pyx_CodeObjectCacheEntry;
1497 struct __Pyx_CodeObjectCache {
1498  int count;
1499  int max_count;
1500  __Pyx_CodeObjectCacheEntry* entries;
1501 };
1502 static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL};
1503 static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
1504 static PyCodeObject *__pyx_find_code_object(int code_line);
1505 static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object);
1506 
1507 /* AddTraceback.proto */
1508 static void __Pyx_AddTraceback(const char *funcname, int c_line,
1509  int py_line, const char *filename);
1510 
1511 /* GCCDiagnostics.proto */
1512 #if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
1513 #define __Pyx_HAS_GCC_DIAGNOSTIC
1514 #endif
1515 
1516 /* RealImag.proto */
1517 #if CYTHON_CCOMPLEX
1518  #ifdef __cplusplus
1519  #define __Pyx_CREAL(z) ((z).real())
1520  #define __Pyx_CIMAG(z) ((z).imag())
1521  #else
1522  #define __Pyx_CREAL(z) (__real__(z))
1523  #define __Pyx_CIMAG(z) (__imag__(z))
1524  #endif
1525 #else
1526  #define __Pyx_CREAL(z) ((z).real)
1527  #define __Pyx_CIMAG(z) ((z).imag)
1528 #endif
1529 #if defined(__cplusplus) && CYTHON_CCOMPLEX\
1530  && (defined(_WIN32) || defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 5 || __GNUC__ == 4 && __GNUC_MINOR__ >= 4 )) || __cplusplus >= 201103)
1531  #define __Pyx_SET_CREAL(z,x) ((z).real(x))
1532  #define __Pyx_SET_CIMAG(z,y) ((z).imag(y))
1533 #else
1534  #define __Pyx_SET_CREAL(z,x) __Pyx_CREAL(z) = (x)
1535  #define __Pyx_SET_CIMAG(z,y) __Pyx_CIMAG(z) = (y)
1536 #endif
1537 
1538 /* Arithmetic.proto */
1539 #if CYTHON_CCOMPLEX
1540  #define __Pyx_c_eq_float(a, b) ((a)==(b))
1541  #define __Pyx_c_sum_float(a, b) ((a)+(b))
1542  #define __Pyx_c_diff_float(a, b) ((a)-(b))
1543  #define __Pyx_c_prod_float(a, b) ((a)*(b))
1544  #define __Pyx_c_quot_float(a, b) ((a)/(b))
1545  #define __Pyx_c_neg_float(a) (-(a))
1546  #ifdef __cplusplus
1547  #define __Pyx_c_is_zero_float(z) ((z)==(float)0)
1548  #define __Pyx_c_conj_float(z) (::std::conj(z))
1549  #if 1
1550  #define __Pyx_c_abs_float(z) (::std::abs(z))
1551  #define __Pyx_c_pow_float(a, b) (::std::pow(a, b))
1552  #endif
1553  #else
1554  #define __Pyx_c_is_zero_float(z) ((z)==0)
1555  #define __Pyx_c_conj_float(z) (conjf(z))
1556  #if 1
1557  #define __Pyx_c_abs_float(z) (cabsf(z))
1558  #define __Pyx_c_pow_float(a, b) (cpowf(a, b))
1559  #endif
1560  #endif
1561 #else
1562  static CYTHON_INLINE int __Pyx_c_eq_float(__pyx_t_float_complex, __pyx_t_float_complex);
1563  static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sum_float(__pyx_t_float_complex, __pyx_t_float_complex);
1564  static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_diff_float(__pyx_t_float_complex, __pyx_t_float_complex);
1565  static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prod_float(__pyx_t_float_complex, __pyx_t_float_complex);
1566  static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex, __pyx_t_float_complex);
1567  static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_neg_float(__pyx_t_float_complex);
1568  static CYTHON_INLINE int __Pyx_c_is_zero_float(__pyx_t_float_complex);
1569  static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conj_float(__pyx_t_float_complex);
1570  #if 1
1571  static CYTHON_INLINE float __Pyx_c_abs_float(__pyx_t_float_complex);
1572  static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_pow_float(__pyx_t_float_complex, __pyx_t_float_complex);
1573  #endif
1574 #endif
1575 
1576 /* Arithmetic.proto */
1577 #if CYTHON_CCOMPLEX
1578  #define __Pyx_c_eq_double(a, b) ((a)==(b))
1579  #define __Pyx_c_sum_double(a, b) ((a)+(b))
1580  #define __Pyx_c_diff_double(a, b) ((a)-(b))
1581  #define __Pyx_c_prod_double(a, b) ((a)*(b))
1582  #define __Pyx_c_quot_double(a, b) ((a)/(b))
1583  #define __Pyx_c_neg_double(a) (-(a))
1584  #ifdef __cplusplus
1585  #define __Pyx_c_is_zero_double(z) ((z)==(double)0)
1586  #define __Pyx_c_conj_double(z) (::std::conj(z))
1587  #if 1
1588  #define __Pyx_c_abs_double(z) (::std::abs(z))
1589  #define __Pyx_c_pow_double(a, b) (::std::pow(a, b))
1590  #endif
1591  #else
1592  #define __Pyx_c_is_zero_double(z) ((z)==0)
1593  #define __Pyx_c_conj_double(z) (conj(z))
1594  #if 1
1595  #define __Pyx_c_abs_double(z) (cabs(z))
1596  #define __Pyx_c_pow_double(a, b) (cpow(a, b))
1597  #endif
1598  #endif
1599 #else
1600  static CYTHON_INLINE int __Pyx_c_eq_double(__pyx_t_double_complex, __pyx_t_double_complex);
1601  static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum_double(__pyx_t_double_complex, __pyx_t_double_complex);
1602  static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff_double(__pyx_t_double_complex, __pyx_t_double_complex);
1603  static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod_double(__pyx_t_double_complex, __pyx_t_double_complex);
1604  static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex, __pyx_t_double_complex);
1605  static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg_double(__pyx_t_double_complex);
1606  static CYTHON_INLINE int __Pyx_c_is_zero_double(__pyx_t_double_complex);
1607  static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj_double(__pyx_t_double_complex);
1608  #if 1
1609  static CYTHON_INLINE double __Pyx_c_abs_double(__pyx_t_double_complex);
1610  static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow_double(__pyx_t_double_complex, __pyx_t_double_complex);
1611  #endif
1612 #endif
1613 
1614 /* CIntFromPy.proto */
1615 static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *);
1616 
1617 /* CIntToPy.proto */
1618 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_Py_intptr_t(Py_intptr_t value);
1619 
1620 /* CIntToPy.proto */
1621 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value);
1622 
1623 /* CIntFromPy.proto */
1624 static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *);
1625 
1626 /* FastTypeChecks.proto */
1627 #if CYTHON_COMPILING_IN_CPYTHON
1628 #define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
1629 static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b);
1630 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
1631 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2);
1632 #else
1633 #define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
1634 #define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
1635 #define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2))
1636 #endif
1637 #define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)
1638 
1639 /* CheckBinaryVersion.proto */
1640 static int __Pyx_check_binary_version(void);
1641 
1642 /* InitStrings.proto */
1643 static int __Pyx_InitStrings(__Pyx_StringTabEntry *t);
1644 
1645 
1646 /* Module declarations from 'cpython.buffer' */
1647 
1648 /* Module declarations from 'libc.string' */
1649 
1650 /* Module declarations from 'libc.stdio' */
1651 
1652 /* Module declarations from '__builtin__' */
1653 
1654 /* Module declarations from 'cpython.type' */
1655 static PyTypeObject *__pyx_ptype_7cpython_4type_type = 0;
1656 
1657 /* Module declarations from 'cpython' */
1658 
1659 /* Module declarations from 'cpython.object' */
1660 
1661 /* Module declarations from 'cpython.ref' */
1662 
1663 /* Module declarations from 'cpython.mem' */
1664 
1665 /* Module declarations from 'numpy' */
1666 
1667 /* Module declarations from 'numpy' */
1668 static PyTypeObject *__pyx_ptype_5numpy_dtype = 0;
1669 static PyTypeObject *__pyx_ptype_5numpy_flatiter = 0;
1670 static PyTypeObject *__pyx_ptype_5numpy_broadcast = 0;
1671 static PyTypeObject *__pyx_ptype_5numpy_ndarray = 0;
1672 static PyTypeObject *__pyx_ptype_5numpy_generic = 0;
1673 static PyTypeObject *__pyx_ptype_5numpy_number = 0;
1674 static PyTypeObject *__pyx_ptype_5numpy_integer = 0;
1675 static PyTypeObject *__pyx_ptype_5numpy_signedinteger = 0;
1676 static PyTypeObject *__pyx_ptype_5numpy_unsignedinteger = 0;
1677 static PyTypeObject *__pyx_ptype_5numpy_inexact = 0;
1678 static PyTypeObject *__pyx_ptype_5numpy_floating = 0;
1679 static PyTypeObject *__pyx_ptype_5numpy_complexfloating = 0;
1680 static PyTypeObject *__pyx_ptype_5numpy_flexible = 0;
1681 static PyTypeObject *__pyx_ptype_5numpy_character = 0;
1682 static PyTypeObject *__pyx_ptype_5numpy_ufunc = 0;
1683 
1684 /* Module declarations from 'ctransportCoefficients' */
1685 #define __Pyx_MODULE_NAME "ctransportCoefficients"
1686 extern int __pyx_module_is_main_ctransportCoefficients;
1687 int __pyx_module_is_main_ctransportCoefficients = 0;
1688 
1689 /* Implementation of 'ctransportCoefficients' */
1690 static PyObject *__pyx_builtin_ImportError;
1691 static const char __pyx_k_A[] = "A";
1692 static const char __pyx_k_B[] = "B";
1693 static const char __pyx_k_C[] = "C";
1694 static const char __pyx_k_E[] = "E";
1695 static const char __pyx_k_H[] = "H";
1696 static const char __pyx_k_M[] = "M";
1697 static const char __pyx_k_S[] = "S";
1698 static const char __pyx_k_a[] = "a";
1699 static const char __pyx_k_b[] = "b";
1700 static const char __pyx_k_d[] = "d";
1701 static const char __pyx_k_f[] = "f";
1702 static const char __pyx_k_g[] = "g";
1703 static const char __pyx_k_h[] = "h";
1704 static const char __pyx_k_k[] = "k";
1705 static const char __pyx_k_m[] = "m";
1706 static const char __pyx_k_n[] = "n";
1707 static const char __pyx_k_p[] = "p";
1708 static const char __pyx_k_r[] = "r";
1709 static const char __pyx_k_t[] = "t";
1710 static const char __pyx_k_u[] = "u";
1711 static const char __pyx_k_v[] = "v";
1712 static const char __pyx_k_w[] = "w";
1713 static const char __pyx_k_x[] = "x";
1714 static const char __pyx_k_A1[] = "A1";
1715 static const char __pyx_k_A2[] = "A2";
1716 static const char __pyx_k_B1[] = "B1";
1717 static const char __pyx_k_B2[] = "B2";
1718 static const char __pyx_k_C1[] = "C1";
1719 static const char __pyx_k_C2[] = "C2";
1720 static const char __pyx_k_E0[] = "E0";
1721 static const char __pyx_k_Km[] = "Km";
1722 static const char __pyx_k_Kp[] = "Kp";
1723 static const char __pyx_k_M1[] = "M1";
1724 static const char __pyx_k_M2[] = "M2";
1725 static const char __pyx_k_dH[] = "dH";
1726 static const char __pyx_k_dV[] = "dV";
1727 static const char __pyx_k_da[] = "da";
1728 static const char __pyx_k_df[] = "df";
1729 static const char __pyx_k_dh[] = "dh";
1730 static const char __pyx_k_dm[] = "dm";
1731 static const char __pyx_k_dr[] = "dr";
1732 static const char __pyx_k_hu[] = "hu";
1733 static const char __pyx_k_hv[] = "hv";
1734 static const char __pyx_k_mu[] = "mu";
1735 static const char __pyx_k_nd[] = "nd";
1736 static const char __pyx_k_nk[] = "nk";
1737 static const char __pyx_k_np[] = "np";
1738 static const char __pyx_k_ns[] = "ns";
1739 static const char __pyx_k_nu[] = "nu";
1740 static const char __pyx_k_p1[] = "p1";
1741 static const char __pyx_k_p2[] = "p2";
1742 static const char __pyx_k_pd[] = "pd";
1743 static const char __pyx_k_q1[] = "q1";
1744 static const char __pyx_k_q2[] = "q2";
1745 static const char __pyx_k_r1[] = "r1";
1746 static const char __pyx_k_r2[] = "r2";
1747 static const char __pyx_k_rh[] = "rh";
1748 static const char __pyx_k_s1[] = "s1";
1749 static const char __pyx_k_s2[] = "s2";
1750 static const char __pyx_k_t1[] = "t1";
1751 static const char __pyx_k_t2[] = "t2";
1752 static const char __pyx_k_KWs[] = "KWs";
1753 static const char __pyx_k_K_h[] = "K_h";
1754 static const char __pyx_k_K_m[] = "K_m";
1755 static const char __pyx_k_K_w[] = "K_w";
1756 static const char __pyx_k_a_c[] = "a_c";
1757 static const char __pyx_k_a_e[] = "a_e";
1758 static const char __pyx_k_a_h[] = "a_h";
1759 static const char __pyx_k_a_k[] = "a_k";
1760 static const char __pyx_k_a_m[] = "a_m";
1761 static const char __pyx_k_c_1[] = "c_1";
1762 static const char __pyx_k_c_2[] = "c_2";
1763 static const char __pyx_k_c_c[] = "c_c";
1764 static const char __pyx_k_c_e[] = "c_e";
1765 static const char __pyx_k_c_h[] = "c_h";
1766 static const char __pyx_k_c_m[] = "c_m";
1767 static const char __pyx_k_c_x[] = "c_x";
1768 static const char __pyx_k_d_c[] = "d_c";
1769 static const char __pyx_k_d_e[] = "d_e";
1770 static const char __pyx_k_d_h[] = "d_h";
1771 static const char __pyx_k_d_m[] = "d_m";
1772 static const char __pyx_k_eps[] = "eps";
1773 static const char __pyx_k_f_c[] = "f_c";
1774 static const char __pyx_k_f_e[] = "f_e";
1775 static const char __pyx_k_f_h[] = "f_h";
1776 static const char __pyx_k_f_k[] = "f_k";
1777 static const char __pyx_k_f_m[] = "f_m";
1778 static const char __pyx_k_h_e[] = "h_e";
1779 static const char __pyx_k_k_d[] = "k_d";
1780 static const char __pyx_k_kr0[] = "kr0";
1781 static const char __pyx_k_m_c[] = "m_c";
1782 static const char __pyx_k_m_e[] = "m_e";
1783 static const char __pyx_k_m_h[] = "m_h";
1784 static const char __pyx_k_m_k[] = "m_k";
1785 static const char __pyx_k_m_m[] = "m_m";
1786 static const char __pyx_k_m_x[] = "m_x";
1787 static const char __pyx_k_n_s[] = "n_s";
1788 static const char __pyx_k_phi[] = "phi";
1789 static const char __pyx_k_r_c[] = "r_c";
1790 static const char __pyx_k_r_e[] = "r_e";
1791 static const char __pyx_k_r_h[] = "r_h";
1792 static const char __pyx_k_r_k[] = "r_k";
1793 static const char __pyx_k_r_m[] = "r_m";
1794 static const char __pyx_k_r_x[] = "r_x";
1795 static const char __pyx_k_rho[] = "rho";
1796 static const char __pyx_k_rhs[] = "rhs";
1797 static const char __pyx_k_vIn[] = "vIn";
1798 static const char __pyx_k_vof[] = "vof";
1799 static const char __pyx_k_Bcon[] = "Bcon";
1800 static const char __pyx_k_beta[] = "beta";
1801 static const char __pyx_k_c_mu[] = "c_mu";
1802 static const char __pyx_k_df_c[] = "df_c";
1803 static const char __pyx_k_df_e[] = "df_e";
1804 static const char __pyx_k_df_h[] = "df_h";
1805 static const char __pyx_k_df_k[] = "df_k";
1806 static const char __pyx_k_df_m[] = "df_m";
1807 static const char __pyx_k_dm_c[] = "dm_c";
1808 static const char __pyx_k_dm_e[] = "dm_e";
1809 static const char __pyx_k_dm_k[] = "dm_k";
1810 static const char __pyx_k_dm_x[] = "dm_x";
1811 static const char __pyx_k_dphi[] = "dphi";
1812 static const char __pyx_k_kr0x[] = "kr0x";
1813 static const char __pyx_k_kr0y[] = "kr0y";
1814 static const char __pyx_k_kr0z[] = "kr0z";
1815 static const char __pyx_k_main[] = "__main__";
1816 static const char __pyx_k_mass[] = "mass";
1817 static const char __pyx_k_n_vg[] = "n_vg";
1818 static const char __pyx_k_name[] = "__name__";
1819 static const char __pyx_k_nu_0[] = "nu_0";
1820 static const char __pyx_k_nu_1[] = "nu_1";
1821 static const char __pyx_k_nu_s[] = "nu_s";
1822 static const char __pyx_k_nu_t[] = "nu_t";
1823 static const char __pyx_k_psiD[] = "psiD";
1824 static const char __pyx_k_rank[] = "rank";
1825 static const char __pyx_k_rhoM[] = "rhoM";
1826 static const char __pyx_k_rhoP[] = "rhoP";
1827 static const char __pyx_k_size[] = "size";
1828 static const char __pyx_k_test[] = "__test__";
1829 static const char __pyx_k_u_ls[] = "u_ls";
1830 static const char __pyx_k_vOut[] = "vOut";
1831 static const char __pyx_k_Bcon1[] = "Bcon1";
1832 static const char __pyx_k_Bcon2[] = "Bcon2";
1833 static const char __pyx_k_H_vof[] = "H_vof";
1834 static const char __pyx_k_Kox_C[] = "Kox_C";
1835 static const char __pyx_k_Kox_E[] = "Kox_E";
1836 static const char __pyx_k_Kox_X[] = "Kox_X";
1837 static const char __pyx_k_S_nwr[] = "S_nwr";
1838 static const char __pyx_k_Yield[] = "Yield";
1839 static const char __pyx_k_Z_tot[] = "Z_tot";
1840 static const char __pyx_k_a_avg[] = "a_avg";
1841 static const char __pyx_k_alpha[] = "alpha";
1842 static const char __pyx_k_db_dx[] = "db_dx";
1843 static const char __pyx_k_det_J[] = "det_J";
1844 static const char __pyx_k_dmass[] = "dmass";
1845 static const char __pyx_k_f_avg[] = "f_avg";
1846 static const char __pyx_k_gamma[] = "gamma";
1847 static const char __pyx_k_gradu[] = "gradu";
1848 static const char __pyx_k_gradv[] = "gradv";
1849 static const char __pyx_k_gradw[] = "gradw";
1850 static const char __pyx_k_h_eps[] = "h_eps";
1851 static const char __pyx_k_kappa[] = "kappa";
1852 static const char __pyx_k_numpy[] = "numpy";
1853 static const char __pyx_k_omega[] = "omega";
1854 static const char __pyx_k_p_pow[] = "p_pow";
1855 static const char __pyx_k_phi_e[] = "phi_e";
1856 static const char __pyx_k_phi_h[] = "phi_h";
1857 static const char __pyx_k_phi_k[] = "phi_k";
1858 static const char __pyx_k_phi_s[] = "phi_s";
1859 static const char __pyx_k_q_pow[] = "q_pow";
1860 static const char __pyx_k_r_pow[] = "r_pow";
1861 static const char __pyx_k_radii[] = "radii";
1862 static const char __pyx_k_rho_0[] = "rho_0";
1863 static const char __pyx_k_rho_1[] = "rho_1";
1864 static const char __pyx_k_rho_n[] = "rho_n";
1865 static const char __pyx_k_rho_s[] = "rho_s";
1866 static const char __pyx_k_rho_w[] = "rho_w";
1867 static const char __pyx_k_s_pow[] = "s_pow";
1868 static const char __pyx_k_sigma[] = "sigma";
1869 static const char __pyx_k_t_pow[] = "t_pow";
1870 static const char __pyx_k_theta[] = "theta";
1871 static const char __pyx_k_u_dof[] = "u_dof";
1872 static const char __pyx_k_u_l2g[] = "u_l2g";
1873 static const char __pyx_k_Lambda[] = "Lambda";
1874 static const char __pyx_k_S_wirr[] = "S_wirr";
1875 static const char __pyx_k_colind[] = "colind";
1876 static const char __pyx_k_da_avg[] = "da_avg";
1877 static const char __pyx_k_df_avg[] = "df_avg";
1878 static const char __pyx_k_dm_h_h[] = "dm_h_h";
1879 static const char __pyx_k_dm_h_m[] = "dm_h_m";
1880 static const char __pyx_k_dm_m_h[] = "dm_m_h";
1881 static const char __pyx_k_dm_m_m[] = "dm_m_m";
1882 static const char __pyx_k_dphi_e[] = "dphi_e";
1883 static const char __pyx_k_dphi_h[] = "dphi_h";
1884 static const char __pyx_k_dphi_k[] = "dphi_k";
1885 static const char __pyx_k_eps_mu[] = "eps_mu";
1886 static const char __pyx_k_grad_b[] = "grad_b";
1887 static const char __pyx_k_grad_k[] = "grad_k";
1888 static const char __pyx_k_grad_p[] = "grad_p";
1889 static const char __pyx_k_grad_u[] = "grad_u";
1890 static const char __pyx_k_grad_v[] = "grad_v";
1891 static const char __pyx_k_grad_w[] = "grad_w";
1892 static const char __pyx_k_import[] = "__import__";
1893 static const char __pyx_k_nSpace[] = "nSpace";
1894 static const char __pyx_k_offset[] = "offset";
1895 static const char __pyx_k_pc_eps[] = "pc_eps";
1896 static const char __pyx_k_phi_ls[] = "phi_ls";
1897 static const char __pyx_k_rowptr[] = "rowptr";
1898 static const char __pyx_k_self_a[] = "self_a";
1899 static const char __pyx_k_self_v[] = "self_v";
1900 static const char __pyx_k_source[] = "source";
1901 static const char __pyx_k_thetaR[] = "thetaR";
1902 static const char __pyx_k_thetaS[] = "thetaS";
1903 static const char __pyx_k_Kox_max[] = "Kox_max";
1904 static const char __pyx_k_alpha_L[] = "alpha_L";
1905 static const char __pyx_k_alpha_T[] = "alpha_T";
1906 static const char __pyx_k_centers[] = "centers";
1907 static const char __pyx_k_da_e_de[] = "da_e_de";
1908 static const char __pyx_k_da_e_dk[] = "da_e_dk";
1909 static const char __pyx_k_da_k_de[] = "da_k_de";
1910 static const char __pyx_k_da_k_dk[] = "da_k_dk";
1911 static const char __pyx_k_dr_c_dc[] = "dr_c_dc";
1912 static const char __pyx_k_dr_c_de[] = "dr_c_de";
1913 static const char __pyx_k_dr_c_dx[] = "dr_c_dx";
1914 static const char __pyx_k_dr_e_dc[] = "dr_e_dc";
1915 static const char __pyx_k_dr_e_de[] = "dr_e_de";
1916 static const char __pyx_k_dr_e_dk[] = "dr_e_dk";
1917 static const char __pyx_k_dr_e_dx[] = "dr_e_dx";
1918 static const char __pyx_k_dr_h_dh[] = "dr_h_dh";
1919 static const char __pyx_k_dr_h_dm[] = "dr_h_dm";
1920 static const char __pyx_k_dr_k_de[] = "dr_k_de";
1921 static const char __pyx_k_dr_k_dk[] = "dr_k_dk";
1922 static const char __pyx_k_dr_m_dh[] = "dr_m_dh";
1923 static const char __pyx_k_dr_m_dm[] = "dr_m_dm";
1924 static const char __pyx_k_dr_x_dc[] = "dr_x_dc";
1925 static const char __pyx_k_dr_x_de[] = "dr_x_de";
1926 static const char __pyx_k_dr_x_dx[] = "dr_x_dx";
1927 static const char __pyx_k_epsFact[] = "epsFact";
1928 static const char __pyx_k_eps_rho[] = "eps_rho";
1929 static const char __pyx_k_epsilon[] = "epsilon";
1930 static const char __pyx_k_gravity[] = "gravity";
1931 static const char __pyx_k_mom_acc[] = "mom_acc";
1932 static const char __pyx_k_mom_adv[] = "mom_adv";
1933 static const char __pyx_k_nPoints[] = "nPoints";
1934 static const char __pyx_k_phi_pot[] = "phi_pot";
1935 static const char __pyx_k_sigma_e[] = "sigma_e";
1936 static const char __pyx_k_sigma_k[] = "sigma_k";
1937 static const char __pyx_k_thetaSR[] = "thetaSR";
1938 static const char __pyx_k_u_force[] = "u_force";
1939 static const char __pyx_k_v_force[] = "v_force";
1940 static const char __pyx_k_v_scale[] = "v_scale";
1941 static const char __pyx_k_w_force[] = "w_force";
1942 static const char __pyx_k_dphi_pot[] = "dphi_pot";
1943 static const char __pyx_k_epsDirac[] = "epsDirac";
1944 static const char __pyx_k_grad_phi[] = "grad_phi";
1945 static const char __pyx_k_mass_acc[] = "mass_acc";
1946 static const char __pyx_k_mass_adv[] = "mass_adv";
1947 static const char __pyx_k_mesh_dof[] = "mesh_dof";
1948 static const char __pyx_k_mesh_l2g[] = "mesh_l2g";
1949 static const char __pyx_k_mom_diff[] = "mom_diff";
1950 static const char __pyx_k_nSimplex[] = "nSimplex";
1951 static const char __pyx_k_n_global[] = "n_global";
1952 static const char __pyx_k_porosity[] = "porosity";
1953 static const char __pyx_k_velocity[] = "velocity";
1954 static const char __pyx_k_vol_frac[] = "vol_frac";
1955 static const char __pyx_k_waveFlag[] = "waveFlag";
1956 static const char __pyx_k_gravity_u[] = "gravity_u";
1957 static const char __pyx_k_mom_p_acc[] = "mom_p_acc";
1958 static const char __pyx_k_mom_u_acc[] = "mom_u_acc";
1959 static const char __pyx_k_mom_u_adv[] = "mom_u_adv";
1960 static const char __pyx_k_mom_u_ham[] = "mom_u_ham";
1961 static const char __pyx_k_mom_v_acc[] = "mom_v_acc";
1962 static const char __pyx_k_mom_v_adv[] = "mom_v_adv";
1963 static const char __pyx_k_mom_v_ham[] = "mom_v_ham";
1964 static const char __pyx_k_mom_w_acc[] = "mom_w_acc";
1965 static const char __pyx_k_mom_w_adv[] = "mom_w_adv";
1966 static const char __pyx_k_mom_w_ham[] = "mom_w_ham";
1967 static const char __pyx_k_omega_s_x[] = "omega_s_x";
1968 static const char __pyx_k_omega_s_y[] = "omega_s_y";
1969 static const char __pyx_k_omega_s_z[] = "omega_s_z";
1970 static const char __pyx_k_mom_source[] = "mom_source";
1971 static const char __pyx_k_mom_u_diff[] = "mom_u_diff";
1972 static const char __pyx_k_mom_v_diff[] = "mom_v_diff";
1973 static const char __pyx_k_nSimplices[] = "nSimplices";
1974 static const char __pyx_k_u_levelSet[] = "u_levelSet";
1975 static const char __pyx_k_upwindFlag[] = "upwindFlag";
1976 static const char __pyx_k_waterDepth[] = "waterDepth";
1977 static const char __pyx_k_waveHeight[] = "waveHeight";
1978 static const char __pyx_k_waveNumber[] = "waveNumber";
1979 static const char __pyx_k_ImportError[] = "ImportError";
1980 static const char __pyx_k_dmass_adv_p[] = "dmass_adv_p";
1981 static const char __pyx_k_dmass_adv_u[] = "dmass_adv_u";
1982 static const char __pyx_k_dmass_adv_v[] = "dmass_adv_v";
1983 static const char __pyx_k_dmass_adv_w[] = "dmass_adv_w";
1984 static const char __pyx_k_dmom_adv_dh[] = "dmom_adv_dh";
1985 static const char __pyx_k_omega_types[] = "omega_types";
1986 static const char __pyx_k_rho_s_types[] = "rho_s_types";
1987 static const char __pyx_k_uu_diff_ten[] = "uu_diff_ten";
1988 static const char __pyx_k_uv_diff_ten[] = "uv_diff_ten";
1989 static const char __pyx_k_uw_diff_ten[] = "uw_diff_ten";
1990 static const char __pyx_k_vu_diff_ten[] = "vu_diff_ten";
1991 static const char __pyx_k_vv_diff_ten[] = "vv_diff_ten";
1992 static const char __pyx_k_vw_diff_ten[] = "vw_diff_ten";
1993 static const char __pyx_k_wu_diff_ten[] = "wu_diff_ten";
1994 static const char __pyx_k_wv_diff_ten[] = "wv_diff_ten";
1995 static const char __pyx_k_ww_diff_ten[] = "ww_diff_ten";
1996 static const char __pyx_k_dmass_acc_dh[] = "dmass_acc_dh";
1997 static const char __pyx_k_dmom_acc_dhu[] = "dmom_acc_dhu";
1998 static const char __pyx_k_dmom_adv_dhu[] = "dmom_adv_dhu";
1999 static const char __pyx_k_dmom_p_acc_p[] = "dmom_p_acc_p";
2000 static const char __pyx_k_dmom_u_acc_u[] = "dmom_u_acc_u";
2001 static const char __pyx_k_dmom_u_adv_p[] = "dmom_u_adv_p";
2002 static const char __pyx_k_dmom_u_adv_u[] = "dmom_u_adv_u";
2003 static const char __pyx_k_dmom_u_adv_v[] = "dmom_u_adv_v";
2004 static const char __pyx_k_dmom_u_adv_w[] = "dmom_u_adv_w";
2005 static const char __pyx_k_dmom_v_acc_v[] = "dmom_v_acc_v";
2006 static const char __pyx_k_dmom_v_adv_p[] = "dmom_v_adv_p";
2007 static const char __pyx_k_dmom_v_adv_u[] = "dmom_v_adv_u";
2008 static const char __pyx_k_dmom_v_adv_v[] = "dmom_v_adv_v";
2009 static const char __pyx_k_dmom_v_adv_w[] = "dmom_v_adv_w";
2010 static const char __pyx_k_dmom_w_acc_w[] = "dmom_w_acc_w";
2011 static const char __pyx_k_dmom_w_adv_p[] = "dmom_w_adv_p";
2012 static const char __pyx_k_dmom_w_adv_u[] = "dmom_w_adv_u";
2013 static const char __pyx_k_dmom_w_adv_v[] = "dmom_w_adv_v";
2014 static const char __pyx_k_dmom_w_adv_w[] = "dmom_w_adv_w";
2015 static const char __pyx_k_epsDiffusion[] = "epsDiffusion";
2016 static const char __pyx_k_epsHeaviside[] = "epsHeaviside";
2017 static const char __pyx_k_fluxJacobian[] = "fluxJacobian";
2018 static const char __pyx_k_mom_u_source[] = "mom_u_source";
2019 static const char __pyx_k_mom_v_source[] = "mom_v_source";
2020 static const char __pyx_k_mom_w_source[] = "mom_w_source";
2021 static const char __pyx_k_thetaS_types[] = "thetaS_types";
2022 static const char __pyx_k_waveCelerity[] = "waveCelerity";
2023 static const char __pyx_k_advectiveFlux[] = "advectiveFlux";
2024 static const char __pyx_k_alpha_L_types[] = "alpha_L_types";
2025 static const char __pyx_k_alpha_T_types[] = "alpha_T_types";
2026 static const char __pyx_k_diffusiveFlux[] = "diffusiveFlux";
2027 static const char __pyx_k_dmass_adv_dhu[] = "dmass_adv_dhu";
2028 static const char __pyx_k_dmass_adv_dhv[] = "dmass_adv_dhv";
2029 static const char __pyx_k_dmom_u_adv_dh[] = "dmom_u_adv_dh";
2030 static const char __pyx_k_dmom_v_adv_dh[] = "dmom_v_adv_dh";
2031 static const char __pyx_k_eddyViscosity[] = "eddyViscosity";
2032 static const char __pyx_k_isDOFBoundary[] = "isDOFBoundary";
2033 static const char __pyx_k_materialTypes[] = "materialTypes";
2034 static const char __pyx_k_meanGrainSize[] = "meanGrainSize";
2035 static const char __pyx_k_seepageBrezis[] = "seepageBrezis";
2036 static const char __pyx_k_smoothedDirac[] = "smoothedDirac";
2037 static const char __pyx_k_waveFrequency[] = "waveFrequency";
2038 static const char __pyx_k_Lambda_penalty[] = "Lambda_penalty";
2039 static const char __pyx_k_disVelEvaluate[] = "disVelEvaluate";
2040 static const char __pyx_k_dmom_source_dh[] = "dmom_source_dh";
2041 static const char __pyx_k_dmom_u_acc_dhu[] = "dmom_u_acc_dhu";
2042 static const char __pyx_k_dmom_u_adv_dhu[] = "dmom_u_adv_dhu";
2043 static const char __pyx_k_dmom_u_adv_dhv[] = "dmom_u_adv_dhv";
2044 static const char __pyx_k_dmom_v_acc_dhv[] = "dmom_v_acc_dhv";
2045 static const char __pyx_k_dmom_v_adv_dhu[] = "dmom_v_adv_dhu";
2046 static const char __pyx_k_dmom_v_adv_dhv[] = "dmom_v_adv_dhv";
2047 static const char __pyx_k_mesh_trial_ref[] = "mesh_trial_ref";
2048 static const char __pyx_k_mom_p_diff_ten[] = "mom_p_diff_ten";
2049 static const char __pyx_k_mom_u_diff_ten[] = "mom_u_diff_ten";
2050 static const char __pyx_k_mom_v_diff_ten[] = "mom_v_diff_ten";
2051 static const char __pyx_k_mom_w_diff_ten[] = "mom_w_diff_ten";
2052 static const char __pyx_k_specificHeat_n[] = "specificHeat_n";
2053 static const char __pyx_k_specificHeat_w[] = "specificHeat_w";
2054 static const char __pyx_k_computeAverages[] = "computeAverages";
2055 static const char __pyx_k_dmom_source_dhu[] = "dmom_source_dhu";
2056 static const char __pyx_k_dmom_u_source_u[] = "dmom_u_source_u";
2057 static const char __pyx_k_dmom_u_source_v[] = "dmom_u_source_v";
2058 static const char __pyx_k_dmom_u_source_w[] = "dmom_u_source_w";
2059 static const char __pyx_k_dmom_v_source_u[] = "dmom_v_source_u";
2060 static const char __pyx_k_dmom_v_source_v[] = "dmom_v_source_v";
2061 static const char __pyx_k_dmom_v_source_w[] = "dmom_v_source_w";
2062 static const char __pyx_k_dmom_w_source_u[] = "dmom_w_source_u";
2063 static const char __pyx_k_dmom_w_source_v[] = "dmom_w_source_v";
2064 static const char __pyx_k_dmom_w_source_w[] = "dmom_w_source_w";
2065 static const char __pyx_k_elementDiameter[] = "elementDiameter";
2066 static const char __pyx_k_l2projectScalar[] = "l2projectScalar";
2067 static const char __pyx_k_l2projectVector[] = "l2projectVector";
2068 static const char __pyx_k_mom_uv_diff_ten[] = "mom_uv_diff_ten";
2069 static const char __pyx_k_mom_uw_diff_ten[] = "mom_uw_diff_ten";
2070 static const char __pyx_k_mom_vu_diff_ten[] = "mom_vu_diff_ten";
2071 static const char __pyx_k_mom_vw_diff_ten[] = "mom_vw_diff_ten";
2072 static const char __pyx_k_mom_wu_diff_ten[] = "mom_wu_diff_ten";
2073 static const char __pyx_k_mom_wv_diff_ten[] = "mom_wv_diff_ten";
2074 static const char __pyx_k_Lambda_dry_types[] = "Lambda_dry_types";
2075 static const char __pyx_k_Lambda_sat_types[] = "Lambda_sat_types";
2076 static const char __pyx_k_Mass_2D_Evaluate[] = "Mass_2D_Evaluate";
2077 static const char __pyx_k_Mass_3D_Evaluate[] = "Mass_3D_Evaluate";
2078 static const char __pyx_k_bedFrictionPower[] = "bedFrictionPower";
2079 static const char __pyx_k_dmom_u_source_dh[] = "dmom_u_source_dh";
2080 static const char __pyx_k_dmom_v_source_dh[] = "dmom_v_source_dh";
2081 static const char __pyx_k_freeze_nodes_tmp[] = "freeze_nodes_tmp";
2082 static const char __pyx_k_l2project2Tensor[] = "l2project2Tensor";
2083 static const char __pyx_k_nElements_global[] = "nElements_global";
2084 static const char __pyx_k_HJBurgersEvaluate[] = "HJBurgersEvaluate";
2085 static const char __pyx_k_L2projectEvaluate[] = "L2projectEvaluate";
2086 static const char __pyx_k_dmom_u_ham_grad_p[] = "dmom_u_ham_grad_p";
2087 static const char __pyx_k_dmom_u_source_dhu[] = "dmom_u_source_dhu";
2088 static const char __pyx_k_dmom_u_source_dhv[] = "dmom_u_source_dhv";
2089 static const char __pyx_k_dmom_v_ham_grad_p[] = "dmom_v_ham_grad_p";
2090 static const char __pyx_k_dmom_v_source_dhu[] = "dmom_v_source_dhu";
2091 static const char __pyx_k_dmom_v_source_dhv[] = "dmom_v_source_dhv";
2092 static const char __pyx_k_dmom_w_ham_grad_p[] = "dmom_w_ham_grad_p";
2093 static const char __pyx_k_killNonlinearDrag[] = "killNonlinearDrag";
2094 static const char __pyx_k_linearize_at_zero[] = "linearize_at_zero";
2095 static const char __pyx_k_nPointsPerSimplex[] = "nPointsPerSimplex";
2096 static const char __pyx_k_smoothedHeaviside[] = "smoothedHeaviside";
2097 static const char __pyx_k_volumePenaltyCoef[] = "volumePenaltyCoef";
2098 static const char __pyx_k_Lambda_aniso_types[] = "Lambda_aniso_types";
2099 static const char __pyx_k_Stokes_2D_Evaluate[] = "Stokes_2D_Evaluate";
2100 static const char __pyx_k_Stokes_3D_Evaluate[] = "Stokes_3D_Evaluate";
2101 static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback";
2102 static const char __pyx_k_nDOF_trial_element[] = "nDOF_trial_element";
2103 static const char __pyx_k_Laplace_2D_Evaluate[] = "Laplace_2D_Evaluate";
2104 static const char __pyx_k_Laplace_3D_Evaluate[] = "Laplace_3D_Evaluate";
2105 static const char __pyx_k_StokesP_2D_Evaluate[] = "StokesP_2D_Evaluate";
2106 static const char __pyx_k_StokesP_3D_Evaluate[] = "StokesP_3D_Evaluate";
2107 static const char __pyx_k_boundaryPenaltyCoef[] = "boundaryPenaltyCoef";
2108 static const char __pyx_k_smagorinskyConstant[] = "smagorinskyConstant";
2109 static const char __pyx_k_applyContactLineSlip[] = "applyContactLineSlip";
2110 static const char __pyx_k_kEpsilon_2D_Evaluate[] = "kEpsilon_2D_Evaluate";
2111 static const char __pyx_k_kEpsilon_3D_Evaluate[] = "kEpsilon_3D_Evaluate";
2112 static const char __pyx_k_specificHeat_s_types[] = "specificHeat_s_types";
2113 static const char __pyx_k_elementDiametersArray[] = "elementDiametersArray";
2114 static const char __pyx_k_epsilon_freeze_factor[] = "epsilon_freeze_factor";
2115 static const char __pyx_k_smagorinskyConstant_0[] = "smagorinskyConstant_0";
2116 static const char __pyx_k_smagorinskyConstant_1[] = "smagorinskyConstant_1";
2117 static const char __pyx_k_MovingMesh_1D_Evaluate[] = "MovingMesh_1D_Evaluate";
2118 static const char __pyx_k_MovingMesh_2D_Evaluate[] = "MovingMesh_2D_Evaluate";
2119 static const char __pyx_k_MovingMesh_3D_Evaluate[] = "MovingMesh_3D_Evaluate";
2120 static const char __pyx_k_bedFrictionCoefficient[] = "bedFrictionCoefficient";
2121 static const char __pyx_k_ctransportCoefficients[] = "ctransportCoefficients";
2122 static const char __pyx_k_VOFCoefficientsEvaluate[] = "VOFCoefficientsEvaluate";
2123 static const char __pyx_k_eddyViscosity_2D_Update[] = "eddyViscosity_2D_Update";
2124 static const char __pyx_k_eddyViscosity_3D_Update[] = "eddyViscosity_3D_Update";
2125 static const char __pyx_k_eikonalEquationEvaluate[] = "eikonalEquationEvaluate";
2126 static const char __pyx_k_kEpsilon_2D_Evaluate_sd[] = "kEpsilon_2D_Evaluate_sd";
2127 static const char __pyx_k_kEpsilon_3D_Evaluate_sd[] = "kEpsilon_3D_Evaluate_sd";
2128 static const char __pyx_k_NavierStokes_2D_Evaluate[] = "NavierStokes_2D_Evaluate";
2129 static const char __pyx_k_NavierStokes_3D_Evaluate[] = "NavierStokes_3D_Evaluate";
2130 static const char __pyx_k_rotatingPulseVelEvaluate[] = "rotatingPulseVelEvaluate";
2131 static const char __pyx_k_shallowWater_1D_Evaluate[] = "shallowWater_1D_Evaluate";
2132 static const char __pyx_k_shallowWater_2D_Evaluate[] = "shallowWater_2D_Evaluate";
2133 static const char __pyx_k_unitCubeRotationEvaluate[] = "unitCubeRotationEvaluate";
2134 static const char __pyx_k_unitSquareVortexEvaluate[] = "unitSquareVortexEvaluate";
2135 static const char __pyx_k_kEpsilon_k_2D_Evaluate_sd[] = "kEpsilon_k_2D_Evaluate_sd";
2136 static const char __pyx_k_kEpsilon_k_3D_Evaluate_sd[] = "kEpsilon_k_3D_Evaluate_sd";
2137 static const char __pyx_k_burgersDiagonalVelEvaluate[] = "burgersDiagonalVelEvaluate";
2138 static const char __pyx_k_eddyViscosity_2D_Update_sd[] = "eddyViscosity_2D_Update_sd";
2139 static const char __pyx_k_eddyViscosity_3D_Update_sd[] = "eddyViscosity_3D_Update_sd";
2140 static const char __pyx_k_nonlinearADR_pqrstEvaluate[] = "nonlinearADR_pqrstEvaluate";
2141 static const char __pyx_k_smoothedHeaviside_integral[] = "smoothedHeaviside_integral";
2142 static const char __pyx_k_unitSquareRotationEvaluate[] = "unitSquareRotationEvaluate";
2143 static const char __pyx_k_calculateWaveFunction3d_ref[] = "calculateWaveFunction3d_ref";
2144 static const char __pyx_k_disRotatingPulseVelEvaluate[] = "disRotatingPulseVelEvaluate";
2145 static const char __pyx_k_weakDirichletConditionFlags[] = "weakDirichletConditionFlags";
2146 static const char __pyx_k_LinearElasticity_1D_Evaluate[] = "LinearElasticity_1D_Evaluate";
2147 static const char __pyx_k_LinearElasticity_2D_Evaluate[] = "LinearElasticity_2D_Evaluate";
2148 static const char __pyx_k_LinearElasticity_3D_Evaluate[] = "LinearElasticity_3D_Evaluate";
2149 static const char __pyx_k_applyContactLineSlipJacobian[] = "applyContactLineSlipJacobian";
2150 static const char __pyx_k_burgersDiagonalVelHJEvaluate[] = "burgersDiagonalVelHJEvaluate";
2151 static const char __pyx_k_elementBoundaryElementsArray[] = "elementBoundaryElementsArray";
2152 static const char __pyx_k_TwoPhaseAdvection_2D_Evaluate[] = "TwoPhaseAdvection_2D_Evaluate";
2153 static const char __pyx_k_cLevelSetCoefficientsEvaluate[] = "cLevelSetCoefficientsEvaluate";
2154 static const char __pyx_k_twophasePotentialFlowEvaluate[] = "twophasePotentialFlowEvaluate";
2155 static const char __pyx_k_ncLevelSetCoefficientsEvaluate[] = "ncLevelSetCoefficientsEvaluate";
2156 static const char __pyx_k_nonlinearADR_pqrstDualEvaluate[] = "nonlinearADR_pqrstDualEvaluate";
2157 static const char __pyx_k_ThreephaseNavierStokes_ST_LS_SO[] = "ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate";
2158 static const char __pyx_k_darcySharpInterfaceFlowEvaluate[] = "darcySharpInterfaceFlowEvaluate";
2159 static const char __pyx_k_kEpsilon_epsilon_2D_Evaluate_sd[] = "kEpsilon_epsilon_2D_Evaluate_sd";
2160 static const char __pyx_k_kEpsilon_epsilon_3D_Evaluate_sd[] = "kEpsilon_epsilon_3D_Evaluate_sd";
2161 static const char __pyx_k_numpy_core_multiarray_failed_to[] = "numpy.core.multiarray failed to import";
2162 static const char __pyx_k_ReynoldsAveragedNavierStokes_kEp[] = "ReynoldsAveragedNavierStokes_kEpsilon_2D_Update";
2163 static const char __pyx_k_TwophaseNavierStokes_LS_SO_2D_Ev[] = "TwophaseNavierStokes_LS_SO_2D_Evaluate";
2164 static const char __pyx_k_TwophaseNavierStokes_LS_SO_3D_Ev[] = "TwophaseNavierStokes_LS_SO_3D_Evaluate";
2165 static const char __pyx_k_TwophaseNavierStokes_ST_LS_SO_2D[] = "TwophaseNavierStokes_ST_LS_SO_2D_Evaluate";
2166 static const char __pyx_k_TwophaseNavierStokes_ST_LS_SO_3D[] = "TwophaseNavierStokes_ST_LS_SO_3D_Evaluate";
2167 static const char __pyx_k_TwophaseNavierStokes_VOF_SO_2D_E[] = "TwophaseNavierStokes_VOF_SO_2D_Evaluate";
2168 static const char __pyx_k_TwophaseNavierStokes_VOF_SO_3D_E[] = "TwophaseNavierStokes_VOF_SO_3D_Evaluate";
2169 static const char __pyx_k_TwophaseStokes_LS_SO_2D_Evaluate[] = "TwophaseStokes_LS_SO_2D_Evaluate";
2170 static const char __pyx_k_TwophaseStokes_LS_SO_3D_Evaluate[] = "TwophaseStokes_LS_SO_3D_Evaluate";
2171 static const char __pyx_k_TwophaseStokes_VOF_SO_2D_Evaluat[] = "TwophaseStokes_VOF_SO_2D_Evaluate";
2172 static const char __pyx_k_TwophaseStokes_VOF_SO_3D_Evaluat[] = "TwophaseStokes_VOF_SO_3D_Evaluate";
2173 static const char __pyx_k_VolumeAveragedNavierStokesFullDe[] = "VolumeAveragedNavierStokesFullDevStress_2D_Evaluate";
2174 static const char __pyx_k_VolumeAveragedTwophaseNavierStok[] = "VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate";
2175 static const char __pyx_k_VolumeAveragedVOFCoefficientsEva[] = "VolumeAveragedVOFCoefficientsEvaluate";
2176 static const char __pyx_k_calculateEddyViscosity_Smagorins[] = "calculateEddyViscosity_Smagorinsky_2D";
2177 static const char __pyx_k_conservativeHeadRichardsBCBfromM[] = "conservativeHeadRichardsBCBfromMVGHomEvaluate";
2178 static const char __pyx_k_conservativeHeadRichardsBrooksCo[] = "conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate";
2179 static const char __pyx_k_conservativeHeadRichardsJLeveret[] = "conservativeHeadRichardsJLeverettEvaluate";
2180 static const char __pyx_k_conservativeHeadRichardsL2projBn[] = "conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate";
2181 static const char __pyx_k_conservativeHeadRichardsL2projMu[] = "conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate";
2182 static const char __pyx_k_conservativeHeadRichardsMualemVa[] = "conservativeHeadRichardsMualemVanGenuchtenHomEvaluate";
2183 static const char __pyx_k_conservativeSatRichardsBrooksCor[] = "conservativeSatRichardsBrooksCoreyBurdineHomEvaluate";
2184 static const char __pyx_k_conservativeSatRichardsMualemVan[] = "conservativeSatRichardsMualemVanGenuchtenHomEvaluate";
2185 static const char __pyx_k_conservativeTotalHeadRichardsMua[] = "conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate";
2186 static const char __pyx_k_constantNormalVelocityLevelSetEv[] = "constantNormalVelocityLevelSetEvaluate";
2187 static const char __pyx_k_constantVelocityLevelSetEvaluate[] = "constantVelocityLevelSetEvaluate";
2188 static const char __pyx_k_darcySharpInterfaceFlowImEvaluat[] = "darcySharpInterfaceFlowImEvaluate";
2189 static const char __pyx_k_diffusiveWave1DCoefficientsEvalu[] = "diffusiveWave1DCoefficientsEvaluate";
2190 static const char __pyx_k_diffusiveWave2DCoefficientsEvalu[] = "diffusiveWave2DCoefficientsEvaluate";
2191 static const char __pyx_k_evaluateBuckleyLeverettLiuExampl[] = "evaluateBuckleyLeverettLiuExample";
2192 static const char __pyx_k_groundwaterBiodegradation01Evalu[] = "groundwaterBiodegradation01EvaluateFC";
2193 static const char __pyx_k_groundwaterBryantDawsonIonExEval[] = "groundwaterBryantDawsonIonExEvaluateFC";
2194 static const char __pyx_k_groundwaterTransportCoefficients[] = "groundwaterTransportCoefficientsEvaluate";
2195 static const char __pyx_k_levelSetConservationCoefficients[] = "levelSetConservationCoefficientsEvaluate";
2196 static const char __pyx_k_levelSetCurvatureCoefficientsEva[] = "levelSetCurvatureCoefficientsEvaluate";
2197 static const char __pyx_k_linearADR_ConstantCoefficientsEv[] = "linearADR_ConstantCoefficientsEvaluate";
2198 static const char __pyx_k_nQuadraturePoints_elementBoundar[] = "nQuadraturePoints_elementBoundary";
2199 static const char __pyx_k_numpy_core_umath_failed_to_impor[] = "numpy.core.umath failed to import";
2200 static const char __pyx_k_proteus_ctransportCoefficients_p[] = "proteus/ctransportCoefficients.pyx";
2201 static const char __pyx_k_quadraturePointToElementBoundary[] = "quadraturePointToElementBoundary";
2202 static const char __pyx_k_redistanceLevelSetCoefficientsEv[] = "redistanceLevelSetCoefficientsEvaluate";
2203 static const char __pyx_k_redistanceLevelSetCoefficientsWi[] = "redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate";
2204 static const char __pyx_k_redistanceLevelSetSandFCoefficie[] = "redistanceLevelSetSandFCoefficientsEvaluate";
2205 static const char __pyx_k_scriptedSphereMotionSignedDistan[] = "scriptedSphereMotionSignedDistance";
2206 static const char __pyx_k_setSimpleWeakDirichletConditions[] = "setSimpleWeakDirichletConditionsForLevelSet";
2207 static const char __pyx_k_setWeakDirichletConditionsForLev[] = "setWeakDirichletConditionsForLevelSet";
2208 static const char __pyx_k_twophaseLevelSetCoefficientsEval[] = "twophaseLevelSetCoefficientsEvaluate";
2209 static const char __pyx_k_twophaseLevelSetCoefficientsUpda[] = "twophaseLevelSetCoefficientsUpdateVelocity";
2210 static const char __pyx_k_twophasePotentialFlowUpdateFreeS[] = "twophasePotentialFlowUpdateFreeSurface";
2211 static const char __pyx_k_twophaseSignedDistanceCoefficien[] = "twophaseSignedDistanceCoefficientsEvaluate";
2212 static const char __pyx_k_twophaseSignedDistanceUpdateSign[] = "twophaseSignedDistanceUpdateSignFunction";
2213 static const char __pyx_k_unitSquareRotationLevelSetEvalua[] = "unitSquareRotationLevelSetEvaluate";
2214 static const char __pyx_k_unitSquareVortexLevelSetEvaluate[] = "unitSquareVortexLevelSetEvaluate";
2215 static const char __pyx_k_variablySaturatedGroundwaterEner[] = "variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat";
2216 static const char __pyx_k_variablySaturatedGroundwaterTran[] = "variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat";
2217 static const char __pyx_k_ThreephaseNavierStokes_ST_LS_SO_2[] = "ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate";
2218 static const char __pyx_k_ReynoldsAveragedNavierStokes_kEp_2[] = "ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd";
2219 static const char __pyx_k_ReynoldsAveragedNavierStokes_kEp_3[] = "ReynoldsAveragedNavierStokes_kEpsilon_3D_Update";
2220 static const char __pyx_k_ReynoldsAveragedNavierStokes_kEp_4[] = "ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd";
2221 static const char __pyx_k_TwophaseNavierStokes_ST_LS_SO_2D_2[] = "TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd";
2222 static const char __pyx_k_TwophaseNavierStokes_ST_LS_SO_3D_2[] = "TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd";
2223 static const char __pyx_k_VolumeAveragedNavierStokesFullDe_2[] = "VolumeAveragedNavierStokesFullDevStress_3D_Evaluate";
2224 static const char __pyx_k_VolumeAveragedTwophaseNavierStok_2[] = "VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd";
2225 static const char __pyx_k_VolumeAveragedTwophaseNavierStok_3[] = "VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate";
2226 static const char __pyx_k_VolumeAveragedTwophaseNavierStok_4[] = "VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd";
2227 static const char __pyx_k_calculateEddyViscosity_Smagorins_2[] = "calculateEddyViscosity_Smagorinsky_3D";
2228 static const char __pyx_k_calculateEddyViscosity_Smagorins_3[] = "calculateEddyViscosity_Smagorinsky2P_2D";
2229 static const char __pyx_k_calculateEddyViscosity_Smagorins_4[] = "calculateEddyViscosity_Smagorinsky2P_3D";
2230 static const char __pyx_k_conservativeHeadRichardsBrooksCo_2[] = "conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate";
2231 static const char __pyx_k_conservativeHeadRichardsJLeveret_2[] = "conservativeHeadRichardsJLeverettAniEvaluate";
2232 static const char __pyx_k_conservativeHeadRichardsL2projMu_2[] = "conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate";
2233 static const char __pyx_k_conservativeHeadRichardsMualemVa_2[] = "conservativeHeadRichardsMualemVanGenuchten_sd_het";
2234 static const char __pyx_k_conservativeHeadRichardsMualemVa_3[] = "conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2";
2235 static const char __pyx_k_conservativeHeadRichardsMualemVa_4[] = "conservativeHeadRichardsMualemVanGenuchtenHetEvaluate";
2236 static const char __pyx_k_conservativeHeadRichardsMualemVa_5[] = "conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind";
2237 static const char __pyx_k_conservativeHeadRichardsMualemVa_6[] = "conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm";
2238 static const char __pyx_k_conservativeHeadRichardsMualemVa_7[] = "conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd";
2239 static const char __pyx_k_groundwaterTransportCoefficients_2[] = "groundwaterTransportCoefficientsEvaluate_hetMat";
2240 static const char __pyx_k_levelSetConservationCoefficients_2[] = "levelSetConservationCoefficientsEvaluate_sd";
2241 static const char __pyx_k_twophaseLevelSetCoefficientsEval_2[] = "twophaseLevelSetCoefficientsEvaluateCI";
2242 static PyObject *__pyx_n_s_A;
2243 static PyObject *__pyx_n_s_A1;
2244 static PyObject *__pyx_n_s_A2;
2245 static PyObject *__pyx_n_s_B;
2246 static PyObject *__pyx_n_s_B1;
2247 static PyObject *__pyx_n_s_B2;
2248 static PyObject *__pyx_n_s_Bcon;
2249 static PyObject *__pyx_n_s_Bcon1;
2250 static PyObject *__pyx_n_s_Bcon2;
2251 static PyObject *__pyx_n_s_C;
2252 static PyObject *__pyx_n_s_C1;
2253 static PyObject *__pyx_n_s_C2;
2254 static PyObject *__pyx_n_s_E;
2255 static PyObject *__pyx_n_s_E0;
2256 static PyObject *__pyx_n_s_H;
2257 static PyObject *__pyx_n_s_HJBurgersEvaluate;
2258 static PyObject *__pyx_n_s_H_vof;
2259 static PyObject *__pyx_n_s_ImportError;
2260 static PyObject *__pyx_n_s_KWs;
2261 static PyObject *__pyx_n_s_K_h;
2262 static PyObject *__pyx_n_s_K_m;
2263 static PyObject *__pyx_n_s_K_w;
2264 static PyObject *__pyx_n_s_Km;
2265 static PyObject *__pyx_n_s_Kox_C;
2266 static PyObject *__pyx_n_s_Kox_E;
2267 static PyObject *__pyx_n_s_Kox_X;
2268 static PyObject *__pyx_n_s_Kox_max;
2269 static PyObject *__pyx_n_s_Kp;
2270 static PyObject *__pyx_n_s_L2projectEvaluate;
2271 static PyObject *__pyx_n_s_Lambda;
2272 static PyObject *__pyx_n_s_Lambda_aniso_types;
2273 static PyObject *__pyx_n_s_Lambda_dry_types;
2274 static PyObject *__pyx_n_s_Lambda_penalty;
2275 static PyObject *__pyx_n_s_Lambda_sat_types;
2276 static PyObject *__pyx_n_s_Laplace_2D_Evaluate;
2277 static PyObject *__pyx_n_s_Laplace_3D_Evaluate;
2278 static PyObject *__pyx_n_s_LinearElasticity_1D_Evaluate;
2279 static PyObject *__pyx_n_s_LinearElasticity_2D_Evaluate;
2280 static PyObject *__pyx_n_s_LinearElasticity_3D_Evaluate;
2281 static PyObject *__pyx_n_s_M;
2282 static PyObject *__pyx_n_s_M1;
2283 static PyObject *__pyx_n_s_M2;
2284 static PyObject *__pyx_n_s_Mass_2D_Evaluate;
2285 static PyObject *__pyx_n_s_Mass_3D_Evaluate;
2286 static PyObject *__pyx_n_s_MovingMesh_1D_Evaluate;
2287 static PyObject *__pyx_n_s_MovingMesh_2D_Evaluate;
2288 static PyObject *__pyx_n_s_MovingMesh_3D_Evaluate;
2289 static PyObject *__pyx_n_s_NavierStokes_2D_Evaluate;
2290 static PyObject *__pyx_n_s_NavierStokes_3D_Evaluate;
2291 static PyObject *__pyx_n_s_ReynoldsAveragedNavierStokes_kEp;
2292 static PyObject *__pyx_n_s_ReynoldsAveragedNavierStokes_kEp_2;
2293 static PyObject *__pyx_n_s_ReynoldsAveragedNavierStokes_kEp_3;
2294 static PyObject *__pyx_n_s_ReynoldsAveragedNavierStokes_kEp_4;
2295 static PyObject *__pyx_n_s_S;
2296 static PyObject *__pyx_n_s_S_nwr;
2297 static PyObject *__pyx_n_s_S_wirr;
2298 static PyObject *__pyx_n_s_StokesP_2D_Evaluate;
2299 static PyObject *__pyx_n_s_StokesP_3D_Evaluate;
2300 static PyObject *__pyx_n_s_Stokes_2D_Evaluate;
2301 static PyObject *__pyx_n_s_Stokes_3D_Evaluate;
2302 static PyObject *__pyx_n_s_ThreephaseNavierStokes_ST_LS_SO;
2303 static PyObject *__pyx_n_s_ThreephaseNavierStokes_ST_LS_SO_2;
2304 static PyObject *__pyx_n_s_TwoPhaseAdvection_2D_Evaluate;
2305 static PyObject *__pyx_n_s_TwophaseNavierStokes_LS_SO_2D_Ev;
2306 static PyObject *__pyx_n_s_TwophaseNavierStokes_LS_SO_3D_Ev;
2307 static PyObject *__pyx_n_s_TwophaseNavierStokes_ST_LS_SO_2D;
2308 static PyObject *__pyx_n_s_TwophaseNavierStokes_ST_LS_SO_2D_2;
2309 static PyObject *__pyx_n_s_TwophaseNavierStokes_ST_LS_SO_3D;
2310 static PyObject *__pyx_n_s_TwophaseNavierStokes_ST_LS_SO_3D_2;
2311 static PyObject *__pyx_n_s_TwophaseNavierStokes_VOF_SO_2D_E;
2312 static PyObject *__pyx_n_s_TwophaseNavierStokes_VOF_SO_3D_E;
2313 static PyObject *__pyx_n_s_TwophaseStokes_LS_SO_2D_Evaluate;
2314 static PyObject *__pyx_n_s_TwophaseStokes_LS_SO_3D_Evaluate;
2315 static PyObject *__pyx_n_s_TwophaseStokes_VOF_SO_2D_Evaluat;
2316 static PyObject *__pyx_n_s_TwophaseStokes_VOF_SO_3D_Evaluat;
2317 static PyObject *__pyx_n_s_VOFCoefficientsEvaluate;
2318 static PyObject *__pyx_n_s_VolumeAveragedNavierStokesFullDe;
2319 static PyObject *__pyx_n_s_VolumeAveragedNavierStokesFullDe_2;
2320 static PyObject *__pyx_n_s_VolumeAveragedTwophaseNavierStok;
2321 static PyObject *__pyx_n_s_VolumeAveragedTwophaseNavierStok_2;
2322 static PyObject *__pyx_n_s_VolumeAveragedTwophaseNavierStok_3;
2323 static PyObject *__pyx_n_s_VolumeAveragedTwophaseNavierStok_4;
2324 static PyObject *__pyx_n_s_VolumeAveragedVOFCoefficientsEva;
2325 static PyObject *__pyx_n_s_Yield;
2326 static PyObject *__pyx_n_s_Z_tot;
2327 static PyObject *__pyx_n_s_a;
2328 static PyObject *__pyx_n_s_a_avg;
2329 static PyObject *__pyx_n_s_a_c;
2330 static PyObject *__pyx_n_s_a_e;
2331 static PyObject *__pyx_n_s_a_h;
2332 static PyObject *__pyx_n_s_a_k;
2333 static PyObject *__pyx_n_s_a_m;
2334 static PyObject *__pyx_n_s_advectiveFlux;
2335 static PyObject *__pyx_n_s_alpha;
2336 static PyObject *__pyx_n_s_alpha_L;
2337 static PyObject *__pyx_n_s_alpha_L_types;
2338 static PyObject *__pyx_n_s_alpha_T;
2339 static PyObject *__pyx_n_s_alpha_T_types;
2340 static PyObject *__pyx_n_s_applyContactLineSlip;
2341 static PyObject *__pyx_n_s_applyContactLineSlipJacobian;
2342 static PyObject *__pyx_n_s_b;
2343 static PyObject *__pyx_n_s_bedFrictionCoefficient;
2344 static PyObject *__pyx_n_s_bedFrictionPower;
2345 static PyObject *__pyx_n_s_beta;
2346 static PyObject *__pyx_n_s_boundaryPenaltyCoef;
2347 static PyObject *__pyx_n_s_burgersDiagonalVelEvaluate;
2348 static PyObject *__pyx_n_s_burgersDiagonalVelHJEvaluate;
2349 static PyObject *__pyx_n_s_cLevelSetCoefficientsEvaluate;
2350 static PyObject *__pyx_n_s_c_1;
2351 static PyObject *__pyx_n_s_c_2;
2352 static PyObject *__pyx_n_s_c_c;
2353 static PyObject *__pyx_n_s_c_e;
2354 static PyObject *__pyx_n_s_c_h;
2355 static PyObject *__pyx_n_s_c_m;
2356 static PyObject *__pyx_n_s_c_mu;
2357 static PyObject *__pyx_n_s_c_x;
2358 static PyObject *__pyx_n_s_calculateEddyViscosity_Smagorins;
2359 static PyObject *__pyx_n_s_calculateEddyViscosity_Smagorins_2;
2360 static PyObject *__pyx_n_s_calculateEddyViscosity_Smagorins_3;
2361 static PyObject *__pyx_n_s_calculateEddyViscosity_Smagorins_4;
2362 static PyObject *__pyx_n_s_calculateWaveFunction3d_ref;
2363 static PyObject *__pyx_n_s_centers;
2364 static PyObject *__pyx_n_s_cline_in_traceback;
2365 static PyObject *__pyx_n_s_colind;
2366 static PyObject *__pyx_n_s_computeAverages;
2367 static PyObject *__pyx_n_s_conservativeHeadRichardsBCBfromM;
2368 static PyObject *__pyx_n_s_conservativeHeadRichardsBrooksCo;
2369 static PyObject *__pyx_n_s_conservativeHeadRichardsBrooksCo_2;
2370 static PyObject *__pyx_n_s_conservativeHeadRichardsJLeveret;
2371 static PyObject *__pyx_n_s_conservativeHeadRichardsJLeveret_2;
2372 static PyObject *__pyx_n_s_conservativeHeadRichardsL2projBn;
2373 static PyObject *__pyx_n_s_conservativeHeadRichardsL2projMu;
2374 static PyObject *__pyx_n_s_conservativeHeadRichardsL2projMu_2;
2375 static PyObject *__pyx_n_s_conservativeHeadRichardsMualemVa;
2376 static PyObject *__pyx_n_s_conservativeHeadRichardsMualemVa_2;
2377 static PyObject *__pyx_n_s_conservativeHeadRichardsMualemVa_3;
2378 static PyObject *__pyx_n_s_conservativeHeadRichardsMualemVa_4;
2379 static PyObject *__pyx_n_s_conservativeHeadRichardsMualemVa_5;
2380 static PyObject *__pyx_n_s_conservativeHeadRichardsMualemVa_6;
2381 static PyObject *__pyx_n_s_conservativeHeadRichardsMualemVa_7;
2382 static PyObject *__pyx_n_s_conservativeSatRichardsBrooksCor;
2383 static PyObject *__pyx_n_s_conservativeSatRichardsMualemVan;
2384 static PyObject *__pyx_n_s_conservativeTotalHeadRichardsMua;
2385 static PyObject *__pyx_n_s_constantNormalVelocityLevelSetEv;
2386 static PyObject *__pyx_n_s_constantVelocityLevelSetEvaluate;
2387 static PyObject *__pyx_n_s_ctransportCoefficients;
2388 static PyObject *__pyx_n_s_d;
2389 static PyObject *__pyx_n_s_dH;
2390 static PyObject *__pyx_n_s_dV;
2391 static PyObject *__pyx_n_s_d_c;
2392 static PyObject *__pyx_n_s_d_e;
2393 static PyObject *__pyx_n_s_d_h;
2394 static PyObject *__pyx_n_s_d_m;
2395 static PyObject *__pyx_n_s_da;
2396 static PyObject *__pyx_n_s_da_avg;
2397 static PyObject *__pyx_n_s_da_e_de;
2398 static PyObject *__pyx_n_s_da_e_dk;
2399 static PyObject *__pyx_n_s_da_k_de;
2400 static PyObject *__pyx_n_s_da_k_dk;
2401 static PyObject *__pyx_n_s_darcySharpInterfaceFlowEvaluate;
2402 static PyObject *__pyx_n_s_darcySharpInterfaceFlowImEvaluat;
2403 static PyObject *__pyx_n_s_db_dx;
2404 static PyObject *__pyx_n_s_det_J;
2405 static PyObject *__pyx_n_s_df;
2406 static PyObject *__pyx_n_s_df_avg;
2407 static PyObject *__pyx_n_s_df_c;
2408 static PyObject *__pyx_n_s_df_e;
2409 static PyObject *__pyx_n_s_df_h;
2410 static PyObject *__pyx_n_s_df_k;
2411 static PyObject *__pyx_n_s_df_m;
2412 static PyObject *__pyx_n_s_dh;
2413 static PyObject *__pyx_n_s_diffusiveFlux;
2414 static PyObject *__pyx_n_s_diffusiveWave1DCoefficientsEvalu;
2415 static PyObject *__pyx_n_s_diffusiveWave2DCoefficientsEvalu;
2416 static PyObject *__pyx_n_s_disRotatingPulseVelEvaluate;
2417 static PyObject *__pyx_n_s_disVelEvaluate;
2418 static PyObject *__pyx_n_s_dm;
2419 static PyObject *__pyx_n_s_dm_c;
2420 static PyObject *__pyx_n_s_dm_e;
2421 static PyObject *__pyx_n_s_dm_h_h;
2422 static PyObject *__pyx_n_s_dm_h_m;
2423 static PyObject *__pyx_n_s_dm_k;
2424 static PyObject *__pyx_n_s_dm_m_h;
2425 static PyObject *__pyx_n_s_dm_m_m;
2426 static PyObject *__pyx_n_s_dm_x;
2427 static PyObject *__pyx_n_s_dmass;
2428 static PyObject *__pyx_n_s_dmass_acc_dh;
2429 static PyObject *__pyx_n_s_dmass_adv_dhu;
2430 static PyObject *__pyx_n_s_dmass_adv_dhv;
2431 static PyObject *__pyx_n_s_dmass_adv_p;
2432 static PyObject *__pyx_n_s_dmass_adv_u;
2433 static PyObject *__pyx_n_s_dmass_adv_v;
2434 static PyObject *__pyx_n_s_dmass_adv_w;
2435 static PyObject *__pyx_n_s_dmom_acc_dhu;
2436 static PyObject *__pyx_n_s_dmom_adv_dh;
2437 static PyObject *__pyx_n_s_dmom_adv_dhu;
2438 static PyObject *__pyx_n_s_dmom_p_acc_p;
2439 static PyObject *__pyx_n_s_dmom_source_dh;
2440 static PyObject *__pyx_n_s_dmom_source_dhu;
2441 static PyObject *__pyx_n_s_dmom_u_acc_dhu;
2442 static PyObject *__pyx_n_s_dmom_u_acc_u;
2443 static PyObject *__pyx_n_s_dmom_u_adv_dh;
2444 static PyObject *__pyx_n_s_dmom_u_adv_dhu;
2445 static PyObject *__pyx_n_s_dmom_u_adv_dhv;
2446 static PyObject *__pyx_n_s_dmom_u_adv_p;
2447 static PyObject *__pyx_n_s_dmom_u_adv_u;
2448 static PyObject *__pyx_n_s_dmom_u_adv_v;
2449 static PyObject *__pyx_n_s_dmom_u_adv_w;
2450 static PyObject *__pyx_n_s_dmom_u_ham_grad_p;
2451 static PyObject *__pyx_n_s_dmom_u_source_dh;
2452 static PyObject *__pyx_n_s_dmom_u_source_dhu;
2453 static PyObject *__pyx_n_s_dmom_u_source_dhv;
2454 static PyObject *__pyx_n_s_dmom_u_source_u;
2455 static PyObject *__pyx_n_s_dmom_u_source_v;
2456 static PyObject *__pyx_n_s_dmom_u_source_w;
2457 static PyObject *__pyx_n_s_dmom_v_acc_dhv;
2458 static PyObject *__pyx_n_s_dmom_v_acc_v;
2459 static PyObject *__pyx_n_s_dmom_v_adv_dh;
2460 static PyObject *__pyx_n_s_dmom_v_adv_dhu;
2461 static PyObject *__pyx_n_s_dmom_v_adv_dhv;
2462 static PyObject *__pyx_n_s_dmom_v_adv_p;
2463 static PyObject *__pyx_n_s_dmom_v_adv_u;
2464 static PyObject *__pyx_n_s_dmom_v_adv_v;
2465 static PyObject *__pyx_n_s_dmom_v_adv_w;
2466 static PyObject *__pyx_n_s_dmom_v_ham_grad_p;
2467 static PyObject *__pyx_n_s_dmom_v_source_dh;
2468 static PyObject *__pyx_n_s_dmom_v_source_dhu;
2469 static PyObject *__pyx_n_s_dmom_v_source_dhv;
2470 static PyObject *__pyx_n_s_dmom_v_source_u;
2471 static PyObject *__pyx_n_s_dmom_v_source_v;
2472 static PyObject *__pyx_n_s_dmom_v_source_w;
2473 static PyObject *__pyx_n_s_dmom_w_acc_w;
2474 static PyObject *__pyx_n_s_dmom_w_adv_p;
2475 static PyObject *__pyx_n_s_dmom_w_adv_u;
2476 static PyObject *__pyx_n_s_dmom_w_adv_v;
2477 static PyObject *__pyx_n_s_dmom_w_adv_w;
2478 static PyObject *__pyx_n_s_dmom_w_ham_grad_p;
2479 static PyObject *__pyx_n_s_dmom_w_source_u;
2480 static PyObject *__pyx_n_s_dmom_w_source_v;
2481 static PyObject *__pyx_n_s_dmom_w_source_w;
2482 static PyObject *__pyx_n_s_dphi;
2483 static PyObject *__pyx_n_s_dphi_e;
2484 static PyObject *__pyx_n_s_dphi_h;
2485 static PyObject *__pyx_n_s_dphi_k;
2486 static PyObject *__pyx_n_s_dphi_pot;
2487 static PyObject *__pyx_n_s_dr;
2488 static PyObject *__pyx_n_s_dr_c_dc;
2489 static PyObject *__pyx_n_s_dr_c_de;
2490 static PyObject *__pyx_n_s_dr_c_dx;
2491 static PyObject *__pyx_n_s_dr_e_dc;
2492 static PyObject *__pyx_n_s_dr_e_de;
2493 static PyObject *__pyx_n_s_dr_e_dk;
2494 static PyObject *__pyx_n_s_dr_e_dx;
2495 static PyObject *__pyx_n_s_dr_h_dh;
2496 static PyObject *__pyx_n_s_dr_h_dm;
2497 static PyObject *__pyx_n_s_dr_k_de;
2498 static PyObject *__pyx_n_s_dr_k_dk;
2499 static PyObject *__pyx_n_s_dr_m_dh;
2500 static PyObject *__pyx_n_s_dr_m_dm;
2501 static PyObject *__pyx_n_s_dr_x_dc;
2502 static PyObject *__pyx_n_s_dr_x_de;
2503 static PyObject *__pyx_n_s_dr_x_dx;
2504 static PyObject *__pyx_n_s_eddyViscosity;
2505 static PyObject *__pyx_n_s_eddyViscosity_2D_Update;
2506 static PyObject *__pyx_n_s_eddyViscosity_2D_Update_sd;
2507 static PyObject *__pyx_n_s_eddyViscosity_3D_Update;
2508 static PyObject *__pyx_n_s_eddyViscosity_3D_Update_sd;
2509 static PyObject *__pyx_n_s_eikonalEquationEvaluate;
2510 static PyObject *__pyx_n_s_elementBoundaryElementsArray;
2511 static PyObject *__pyx_n_s_elementDiameter;
2512 static PyObject *__pyx_n_s_elementDiametersArray;
2513 static PyObject *__pyx_n_s_eps;
2514 static PyObject *__pyx_n_s_epsDiffusion;
2515 static PyObject *__pyx_n_s_epsDirac;
2516 static PyObject *__pyx_n_s_epsFact;
2517 static PyObject *__pyx_n_s_epsHeaviside;
2518 static PyObject *__pyx_n_s_eps_mu;
2519 static PyObject *__pyx_n_s_eps_rho;
2520 static PyObject *__pyx_n_s_epsilon;
2521 static PyObject *__pyx_n_s_epsilon_freeze_factor;
2522 static PyObject *__pyx_n_s_evaluateBuckleyLeverettLiuExampl;
2523 static PyObject *__pyx_n_s_f;
2524 static PyObject *__pyx_n_s_f_avg;
2525 static PyObject *__pyx_n_s_f_c;
2526 static PyObject *__pyx_n_s_f_e;
2527 static PyObject *__pyx_n_s_f_h;
2528 static PyObject *__pyx_n_s_f_k;
2529 static PyObject *__pyx_n_s_f_m;
2530 static PyObject *__pyx_n_s_fluxJacobian;
2531 static PyObject *__pyx_n_s_freeze_nodes_tmp;
2532 static PyObject *__pyx_n_s_g;
2533 static PyObject *__pyx_n_s_gamma;
2534 static PyObject *__pyx_n_s_grad_b;
2535 static PyObject *__pyx_n_s_grad_k;
2536 static PyObject *__pyx_n_s_grad_p;
2537 static PyObject *__pyx_n_s_grad_phi;
2538 static PyObject *__pyx_n_s_grad_u;
2539 static PyObject *__pyx_n_s_grad_v;
2540 static PyObject *__pyx_n_s_grad_w;
2541 static PyObject *__pyx_n_s_gradu;
2542 static PyObject *__pyx_n_s_gradv;
2543 static PyObject *__pyx_n_s_gradw;
2544 static PyObject *__pyx_n_s_gravity;
2545 static PyObject *__pyx_n_s_gravity_u;
2546 static PyObject *__pyx_n_s_groundwaterBiodegradation01Evalu;
2547 static PyObject *__pyx_n_s_groundwaterBryantDawsonIonExEval;
2548 static PyObject *__pyx_n_s_groundwaterTransportCoefficients;
2549 static PyObject *__pyx_n_s_groundwaterTransportCoefficients_2;
2550 static PyObject *__pyx_n_s_h;
2551 static PyObject *__pyx_n_s_h_e;
2552 static PyObject *__pyx_n_s_h_eps;
2553 static PyObject *__pyx_n_s_hu;
2554 static PyObject *__pyx_n_s_hv;
2555 static PyObject *__pyx_n_s_import;
2556 static PyObject *__pyx_n_s_isDOFBoundary;
2557 static PyObject *__pyx_n_s_k;
2558 static PyObject *__pyx_n_s_kEpsilon_2D_Evaluate;
2559 static PyObject *__pyx_n_s_kEpsilon_2D_Evaluate_sd;
2560 static PyObject *__pyx_n_s_kEpsilon_3D_Evaluate;
2561 static PyObject *__pyx_n_s_kEpsilon_3D_Evaluate_sd;
2562 static PyObject *__pyx_n_s_kEpsilon_epsilon_2D_Evaluate_sd;
2563 static PyObject *__pyx_n_s_kEpsilon_epsilon_3D_Evaluate_sd;
2564 static PyObject *__pyx_n_s_kEpsilon_k_2D_Evaluate_sd;
2565 static PyObject *__pyx_n_s_kEpsilon_k_3D_Evaluate_sd;
2566 static PyObject *__pyx_n_s_k_d;
2567 static PyObject *__pyx_n_s_kappa;
2568 static PyObject *__pyx_n_s_killNonlinearDrag;
2569 static PyObject *__pyx_n_s_kr0;
2570 static PyObject *__pyx_n_s_kr0x;
2571 static PyObject *__pyx_n_s_kr0y;
2572 static PyObject *__pyx_n_s_kr0z;
2573 static PyObject *__pyx_n_s_l2project2Tensor;
2574 static PyObject *__pyx_n_s_l2projectScalar;
2575 static PyObject *__pyx_n_s_l2projectVector;
2576 static PyObject *__pyx_n_s_levelSetConservationCoefficients;
2577 static PyObject *__pyx_n_s_levelSetConservationCoefficients_2;
2578 static PyObject *__pyx_n_s_levelSetCurvatureCoefficientsEva;
2579 static PyObject *__pyx_n_s_linearADR_ConstantCoefficientsEv;
2580 static PyObject *__pyx_n_s_linearize_at_zero;
2581 static PyObject *__pyx_n_s_m;
2582 static PyObject *__pyx_n_s_m_c;
2583 static PyObject *__pyx_n_s_m_e;
2584 static PyObject *__pyx_n_s_m_h;
2585 static PyObject *__pyx_n_s_m_k;
2586 static PyObject *__pyx_n_s_m_m;
2587 static PyObject *__pyx_n_s_m_x;
2588 static PyObject *__pyx_n_s_main;
2589 static PyObject *__pyx_n_s_mass;
2590 static PyObject *__pyx_n_s_mass_acc;
2591 static PyObject *__pyx_n_s_mass_adv;
2592 static PyObject *__pyx_n_s_materialTypes;
2593 static PyObject *__pyx_n_s_meanGrainSize;
2594 static PyObject *__pyx_n_s_mesh_dof;
2595 static PyObject *__pyx_n_s_mesh_l2g;
2596 static PyObject *__pyx_n_s_mesh_trial_ref;
2597 static PyObject *__pyx_n_s_mom_acc;
2598 static PyObject *__pyx_n_s_mom_adv;
2599 static PyObject *__pyx_n_s_mom_diff;
2600 static PyObject *__pyx_n_s_mom_p_acc;
2601 static PyObject *__pyx_n_s_mom_p_diff_ten;
2602 static PyObject *__pyx_n_s_mom_source;
2603 static PyObject *__pyx_n_s_mom_u_acc;
2604 static PyObject *__pyx_n_s_mom_u_adv;
2605 static PyObject *__pyx_n_s_mom_u_diff;
2606 static PyObject *__pyx_n_s_mom_u_diff_ten;
2607 static PyObject *__pyx_n_s_mom_u_ham;
2608 static PyObject *__pyx_n_s_mom_u_source;
2609 static PyObject *__pyx_n_s_mom_uv_diff_ten;
2610 static PyObject *__pyx_n_s_mom_uw_diff_ten;
2611 static PyObject *__pyx_n_s_mom_v_acc;
2612 static PyObject *__pyx_n_s_mom_v_adv;
2613 static PyObject *__pyx_n_s_mom_v_diff;
2614 static PyObject *__pyx_n_s_mom_v_diff_ten;
2615 static PyObject *__pyx_n_s_mom_v_ham;
2616 static PyObject *__pyx_n_s_mom_v_source;
2617 static PyObject *__pyx_n_s_mom_vu_diff_ten;
2618 static PyObject *__pyx_n_s_mom_vw_diff_ten;
2619 static PyObject *__pyx_n_s_mom_w_acc;
2620 static PyObject *__pyx_n_s_mom_w_adv;
2621 static PyObject *__pyx_n_s_mom_w_diff_ten;
2622 static PyObject *__pyx_n_s_mom_w_ham;
2623 static PyObject *__pyx_n_s_mom_w_source;
2624 static PyObject *__pyx_n_s_mom_wu_diff_ten;
2625 static PyObject *__pyx_n_s_mom_wv_diff_ten;
2626 static PyObject *__pyx_n_s_mu;
2627 static PyObject *__pyx_n_s_n;
2628 static PyObject *__pyx_n_s_nDOF_trial_element;
2629 static PyObject *__pyx_n_s_nElements_global;
2630 static PyObject *__pyx_n_s_nPoints;
2631 static PyObject *__pyx_n_s_nPointsPerSimplex;
2632 static PyObject *__pyx_n_s_nQuadraturePoints_elementBoundar;
2633 static PyObject *__pyx_n_s_nSimplex;
2634 static PyObject *__pyx_n_s_nSimplices;
2635 static PyObject *__pyx_n_s_nSpace;
2636 static PyObject *__pyx_n_s_n_global;
2637 static PyObject *__pyx_n_s_n_s;
2638 static PyObject *__pyx_n_s_n_vg;
2639 static PyObject *__pyx_n_s_name;
2640 static PyObject *__pyx_n_s_ncLevelSetCoefficientsEvaluate;
2641 static PyObject *__pyx_n_s_nd;
2642 static PyObject *__pyx_n_s_nk;
2643 static PyObject *__pyx_n_s_nonlinearADR_pqrstDualEvaluate;
2644 static PyObject *__pyx_n_s_nonlinearADR_pqrstEvaluate;
2645 static PyObject *__pyx_n_s_np;
2646 static PyObject *__pyx_n_s_ns;
2647 static PyObject *__pyx_n_s_nu;
2648 static PyObject *__pyx_n_s_nu_0;
2649 static PyObject *__pyx_n_s_nu_1;
2650 static PyObject *__pyx_n_s_nu_s;
2651 static PyObject *__pyx_n_s_nu_t;
2652 static PyObject *__pyx_n_s_numpy;
2653 static PyObject *__pyx_kp_s_numpy_core_multiarray_failed_to;
2654 static PyObject *__pyx_kp_s_numpy_core_umath_failed_to_impor;
2655 static PyObject *__pyx_n_s_offset;
2656 static PyObject *__pyx_n_s_omega;
2657 static PyObject *__pyx_n_s_omega_s_x;
2658 static PyObject *__pyx_n_s_omega_s_y;
2659 static PyObject *__pyx_n_s_omega_s_z;
2660 static PyObject *__pyx_n_s_omega_types;
2661 static PyObject *__pyx_n_s_p;
2662 static PyObject *__pyx_n_s_p1;
2663 static PyObject *__pyx_n_s_p2;
2664 static PyObject *__pyx_n_s_p_pow;
2665 static PyObject *__pyx_n_s_pc_eps;
2666 static PyObject *__pyx_n_s_pd;
2667 static PyObject *__pyx_n_s_phi;
2668 static PyObject *__pyx_n_s_phi_e;
2669 static PyObject *__pyx_n_s_phi_h;
2670 static PyObject *__pyx_n_s_phi_k;
2671 static PyObject *__pyx_n_s_phi_ls;
2672 static PyObject *__pyx_n_s_phi_pot;
2673 static PyObject *__pyx_n_s_phi_s;
2674 static PyObject *__pyx_n_s_porosity;
2675 static PyObject *__pyx_kp_s_proteus_ctransportCoefficients_p;
2676 static PyObject *__pyx_n_s_psiD;
2677 static PyObject *__pyx_n_s_q1;
2678 static PyObject *__pyx_n_s_q2;
2679 static PyObject *__pyx_n_s_q_pow;
2680 static PyObject *__pyx_n_s_quadraturePointToElementBoundary;
2681 static PyObject *__pyx_n_s_r;
2682 static PyObject *__pyx_n_s_r1;
2683 static PyObject *__pyx_n_s_r2;
2684 static PyObject *__pyx_n_s_r_c;
2685 static PyObject *__pyx_n_s_r_e;
2686 static PyObject *__pyx_n_s_r_h;
2687 static PyObject *__pyx_n_s_r_k;
2688 static PyObject *__pyx_n_s_r_m;
2689 static PyObject *__pyx_n_s_r_pow;
2690 static PyObject *__pyx_n_s_r_x;
2691 static PyObject *__pyx_n_s_radii;
2692 static PyObject *__pyx_n_s_rank;
2693 static PyObject *__pyx_n_s_redistanceLevelSetCoefficientsEv;
2694 static PyObject *__pyx_n_s_redistanceLevelSetCoefficientsWi;
2695 static PyObject *__pyx_n_s_redistanceLevelSetSandFCoefficie;
2696 static PyObject *__pyx_n_s_rh;
2697 static PyObject *__pyx_n_s_rho;
2698 static PyObject *__pyx_n_s_rhoM;
2699 static PyObject *__pyx_n_s_rhoP;
2700 static PyObject *__pyx_n_s_rho_0;
2701 static PyObject *__pyx_n_s_rho_1;
2702 static PyObject *__pyx_n_s_rho_n;
2703 static PyObject *__pyx_n_s_rho_s;
2704 static PyObject *__pyx_n_s_rho_s_types;
2705 static PyObject *__pyx_n_s_rho_w;
2706 static PyObject *__pyx_n_s_rhs;
2707 static PyObject *__pyx_n_s_rotatingPulseVelEvaluate;
2708 static PyObject *__pyx_n_s_rowptr;
2709 static PyObject *__pyx_n_s_s1;
2710 static PyObject *__pyx_n_s_s2;
2711 static PyObject *__pyx_n_s_s_pow;
2712 static PyObject *__pyx_n_s_scriptedSphereMotionSignedDistan;
2713 static PyObject *__pyx_n_s_seepageBrezis;
2714 static PyObject *__pyx_n_s_self_a;
2715 static PyObject *__pyx_n_s_self_v;
2716 static PyObject *__pyx_n_s_setSimpleWeakDirichletConditions;
2717 static PyObject *__pyx_n_s_setWeakDirichletConditionsForLev;
2718 static PyObject *__pyx_n_s_shallowWater_1D_Evaluate;
2719 static PyObject *__pyx_n_s_shallowWater_2D_Evaluate;
2720 static PyObject *__pyx_n_s_sigma;
2721 static PyObject *__pyx_n_s_sigma_e;
2722 static PyObject *__pyx_n_s_sigma_k;
2723 static PyObject *__pyx_n_s_size;
2724 static PyObject *__pyx_n_s_smagorinskyConstant;
2725 static PyObject *__pyx_n_s_smagorinskyConstant_0;
2726 static PyObject *__pyx_n_s_smagorinskyConstant_1;
2727 static PyObject *__pyx_n_s_smoothedDirac;
2728 static PyObject *__pyx_n_s_smoothedHeaviside;
2729 static PyObject *__pyx_n_s_smoothedHeaviside_integral;
2730 static PyObject *__pyx_n_s_source;
2731 static PyObject *__pyx_n_s_specificHeat_n;
2732 static PyObject *__pyx_n_s_specificHeat_s_types;
2733 static PyObject *__pyx_n_s_specificHeat_w;
2734 static PyObject *__pyx_n_s_t;
2735 static PyObject *__pyx_n_s_t1;
2736 static PyObject *__pyx_n_s_t2;
2737 static PyObject *__pyx_n_s_t_pow;
2738 static PyObject *__pyx_n_s_test;
2739 static PyObject *__pyx_n_s_theta;
2740 static PyObject *__pyx_n_s_thetaR;
2741 static PyObject *__pyx_n_s_thetaS;
2742 static PyObject *__pyx_n_s_thetaSR;
2743 static PyObject *__pyx_n_s_thetaS_types;
2744 static PyObject *__pyx_n_s_twophaseLevelSetCoefficientsEval;
2745 static PyObject *__pyx_n_s_twophaseLevelSetCoefficientsEval_2;
2746 static PyObject *__pyx_n_s_twophaseLevelSetCoefficientsUpda;
2747 static PyObject *__pyx_n_s_twophasePotentialFlowEvaluate;
2748 static PyObject *__pyx_n_s_twophasePotentialFlowUpdateFreeS;
2749 static PyObject *__pyx_n_s_twophaseSignedDistanceCoefficien;
2750 static PyObject *__pyx_n_s_twophaseSignedDistanceUpdateSign;
2751 static PyObject *__pyx_n_s_u;
2752 static PyObject *__pyx_n_s_u_dof;
2753 static PyObject *__pyx_n_s_u_force;
2754 static PyObject *__pyx_n_s_u_l2g;
2755 static PyObject *__pyx_n_s_u_levelSet;
2756 static PyObject *__pyx_n_s_u_ls;
2757 static PyObject *__pyx_n_s_unitCubeRotationEvaluate;
2758 static PyObject *__pyx_n_s_unitSquareRotationEvaluate;
2759 static PyObject *__pyx_n_s_unitSquareRotationLevelSetEvalua;
2760 static PyObject *__pyx_n_s_unitSquareVortexEvaluate;
2761 static PyObject *__pyx_n_s_unitSquareVortexLevelSetEvaluate;
2762 static PyObject *__pyx_n_s_upwindFlag;
2763 static PyObject *__pyx_n_s_uu_diff_ten;
2764 static PyObject *__pyx_n_s_uv_diff_ten;
2765 static PyObject *__pyx_n_s_uw_diff_ten;
2766 static PyObject *__pyx_n_s_v;
2767 static PyObject *__pyx_n_s_vIn;
2768 static PyObject *__pyx_n_s_vOut;
2769 static PyObject *__pyx_n_s_v_force;
2770 static PyObject *__pyx_n_s_v_scale;
2771 static PyObject *__pyx_n_s_variablySaturatedGroundwaterEner;
2772 static PyObject *__pyx_n_s_variablySaturatedGroundwaterTran;
2773 static PyObject *__pyx_n_s_velocity;
2774 static PyObject *__pyx_n_s_vof;
2775 static PyObject *__pyx_n_s_vol_frac;
2776 static PyObject *__pyx_n_s_volumePenaltyCoef;
2777 static PyObject *__pyx_n_s_vu_diff_ten;
2778 static PyObject *__pyx_n_s_vv_diff_ten;
2779 static PyObject *__pyx_n_s_vw_diff_ten;
2780 static PyObject *__pyx_n_s_w;
2781 static PyObject *__pyx_n_s_w_force;
2782 static PyObject *__pyx_n_s_waterDepth;
2783 static PyObject *__pyx_n_s_waveCelerity;
2784 static PyObject *__pyx_n_s_waveFlag;
2785 static PyObject *__pyx_n_s_waveFrequency;
2786 static PyObject *__pyx_n_s_waveHeight;
2787 static PyObject *__pyx_n_s_waveNumber;
2788 static PyObject *__pyx_n_s_weakDirichletConditionFlags;
2789 static PyObject *__pyx_n_s_wu_diff_ten;
2790 static PyObject *__pyx_n_s_wv_diff_ten;
2791 static PyObject *__pyx_n_s_ww_diff_ten;
2792 static PyObject *__pyx_n_s_x;
2793 static PyObject *__pyx_pf_22ctransportCoefficients_linearADR_ConstantCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_M, PyArrayObject *__pyx_v_A, PyArrayObject *__pyx_v_B, double __pyx_v_C, double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr); /* proto */
2794 static PyObject *__pyx_pf_22ctransportCoefficients_2groundwaterTransportCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_omega, double __pyx_v_d, double __pyx_v_alpha_L, double __pyx_v_alpha_T, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a); /* proto */
2795 static PyObject *__pyx_pf_22ctransportCoefficients_4groundwaterBiodegradation01EvaluateFC(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_omega, double __pyx_v_d_c, double __pyx_v_d_e, double __pyx_v_alpha_L, double __pyx_v_alpha_T, double __pyx_v_Kox_max, double __pyx_v_Kox_C, double __pyx_v_Kox_E, double __pyx_v_Kox_X, double __pyx_v_Yield, double __pyx_v_k_d, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_c_c, PyArrayObject *__pyx_v_c_e, PyArrayObject *__pyx_v_c_x, PyArrayObject *__pyx_v_m_c, PyArrayObject *__pyx_v_dm_c, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_m_x, PyArrayObject *__pyx_v_dm_x, PyArrayObject *__pyx_v_f_c, PyArrayObject *__pyx_v_df_c, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_c, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_r_c, PyArrayObject *__pyx_v_dr_c_dc, PyArrayObject *__pyx_v_dr_c_de, PyArrayObject *__pyx_v_dr_c_dx, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_dc, PyArrayObject *__pyx_v_dr_e_de, PyArrayObject *__pyx_v_dr_e_dx, PyArrayObject *__pyx_v_r_x, PyArrayObject *__pyx_v_dr_x_dc, PyArrayObject *__pyx_v_dr_x_de, PyArrayObject *__pyx_v_dr_x_dx); /* proto */
2796 static PyObject *__pyx_pf_22ctransportCoefficients_6groundwaterBryantDawsonIonExEvaluateFC(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_omega, double __pyx_v_d_m, double __pyx_v_d_h, double __pyx_v_alpha_L, double __pyx_v_alpha_T, double __pyx_v_K_m, double __pyx_v_K_h, double __pyx_v_K_w, double __pyx_v_Z_tot, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_c_m, PyArrayObject *__pyx_v_c_h, PyArrayObject *__pyx_v_m_m, PyArrayObject *__pyx_v_dm_m_m, PyArrayObject *__pyx_v_dm_m_h, PyArrayObject *__pyx_v_m_h, PyArrayObject *__pyx_v_dm_h_m, PyArrayObject *__pyx_v_dm_h_h, PyArrayObject *__pyx_v_f_m, PyArrayObject *__pyx_v_df_m, PyArrayObject *__pyx_v_f_h, PyArrayObject *__pyx_v_df_h, PyArrayObject *__pyx_v_a_m, PyArrayObject *__pyx_v_a_h, PyArrayObject *__pyx_v_phi_h, PyArrayObject *__pyx_v_dphi_h, PyArrayObject *__pyx_v_r_m, PyArrayObject *__pyx_v_dr_m_dm, PyArrayObject *__pyx_v_dr_m_dh, PyArrayObject *__pyx_v_r_h, PyArrayObject *__pyx_v_dr_h_dm, PyArrayObject *__pyx_v_dr_h_dh); /* proto */
2797 static PyObject *__pyx_pf_22ctransportCoefficients_8groundwaterTransportCoefficientsEvaluate_hetMat(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_d, PyArrayObject *__pyx_v_materialTypes, PyArrayObject *__pyx_v_omega_types, PyArrayObject *__pyx_v_alpha_L_types, PyArrayObject *__pyx_v_alpha_T_types, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a); /* proto */
2798 static PyObject *__pyx_pf_22ctransportCoefficients_10variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_d, PyArrayObject *__pyx_v_materialTypes, PyArrayObject *__pyx_v_theta, PyArrayObject *__pyx_v_alpha_L_types, PyArrayObject *__pyx_v_alpha_T_types, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a); /* proto */
2799 static PyObject *__pyx_pf_22ctransportCoefficients_12variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho_w, double __pyx_v_rho_n, double __pyx_v_specificHeat_w, double __pyx_v_specificHeat_n, PyArrayObject *__pyx_v_materialTypes, PyArrayObject *__pyx_v_theta, PyArrayObject *__pyx_v_thetaS_types, PyArrayObject *__pyx_v_alpha_L_types, PyArrayObject *__pyx_v_alpha_T_types, PyArrayObject *__pyx_v_rho_s_types, PyArrayObject *__pyx_v_specificHeat_s_types, PyArrayObject *__pyx_v_Lambda_sat_types, PyArrayObject *__pyx_v_Lambda_dry_types, PyArrayObject *__pyx_v_Lambda_aniso_types, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a); /* proto */
2800 static PyObject *__pyx_pf_22ctransportCoefficients_14nonlinearADR_pqrstEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_M, PyArrayObject *__pyx_v_A, PyArrayObject *__pyx_v_B, double __pyx_v_C, double __pyx_v_p_pow, double __pyx_v_q_pow, double __pyx_v_r_pow, double __pyx_v_s_pow, double __pyx_v_t_pow, double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr); /* proto */
2801 static PyObject *__pyx_pf_22ctransportCoefficients_16nonlinearADR_pqrstDualEvaluate(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nPoints, int __pyx_v_nSpace, double __pyx_v_M, PyArrayObject *__pyx_v_A, PyArrayObject *__pyx_v_B, double __pyx_v_C, double __pyx_v_p1, double __pyx_v_q1, double __pyx_v_r1, double __pyx_v_s1, double __pyx_v_t1, double __pyx_v_p2, double __pyx_v_q2, double __pyx_v_r2, double __pyx_v_s2, double __pyx_v_t2, double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr); /* proto */
2802 static PyObject *__pyx_pf_22ctransportCoefficients_18unitSquareRotationEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df); /* proto */
2803 static PyObject *__pyx_pf_22ctransportCoefficients_20unitCubeRotationEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df); /* proto */
2804 static PyObject *__pyx_pf_22ctransportCoefficients_22rotatingPulseVelEvaluate(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nPoints, int __pyx_v_nSpace, double __pyx_v_self_a, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi); /* proto */
2805 static PyObject *__pyx_pf_22ctransportCoefficients_24disRotatingPulseVelEvaluate(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nPoints, int __pyx_v_nSpace, double __pyx_v_self_a, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi); /* proto */
2806 static PyObject *__pyx_pf_22ctransportCoefficients_26disVelEvaluate(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nPoints, int __pyx_v_nSpace, double __pyx_v_self_a, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi); /* proto */
2807 static PyObject *__pyx_pf_22ctransportCoefficients_28burgersDiagonalVelEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_self_a, PyArrayObject *__pyx_v_self_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi); /* proto */
2808 static PyObject *__pyx_pf_22ctransportCoefficients_30burgersDiagonalVelHJEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_self_a, PyArrayObject *__pyx_v_self_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi); /* proto */
2809 static PyObject *__pyx_pf_22ctransportCoefficients_32twophasePotentialFlowEvaluate(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nPoints, int __pyx_v_nSpace, PyArrayObject *__pyx_v_M, PyArrayObject *__pyx_v_A, PyArrayObject *__pyx_v_B, PyArrayObject *__pyx_v_Bcon, PyArrayObject *__pyx_v_C, double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr); /* proto */
2810 static PyObject *__pyx_pf_22ctransportCoefficients_34twophasePotentialFlowUpdateFreeSurface(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nPoints, int __pyx_v_nSpace, double __pyx_v_eps, PyArrayObject *__pyx_v_u_levelSet, double __pyx_v_M1, double __pyx_v_M2, PyArrayObject *__pyx_v_M, PyArrayObject *__pyx_v_A1, PyArrayObject *__pyx_v_A2, PyArrayObject *__pyx_v_A, PyArrayObject *__pyx_v_B1, PyArrayObject *__pyx_v_B2, PyArrayObject *__pyx_v_B, PyArrayObject *__pyx_v_Bcon1, PyArrayObject *__pyx_v_Bcon2, PyArrayObject *__pyx_v_Bcon, double __pyx_v_C1, double __pyx_v_C2, PyArrayObject *__pyx_v_C); /* proto */
2811 static PyObject *__pyx_pf_22ctransportCoefficients_36twophaseLevelSetCoefficientsUpdateVelocity(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nPoints, int __pyx_v_nSpace, double __pyx_v_v_scale, PyArrayObject *__pyx_v_vIn, PyArrayObject *__pyx_v_vOut); /* proto */
2812 static PyObject *__pyx_pf_22ctransportCoefficients_38twophaseLevelSetCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nPoints, int __pyx_v_nSpace, PyArrayObject *__pyx_v_B, double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_h, PyArrayObject *__pyx_v_dh, PyArrayObject *__pyx_v_rh); /* proto */
2813 static PyObject *__pyx_pf_22ctransportCoefficients_40twophaseLevelSetCoefficientsEvaluateCI(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nPoints, int __pyx_v_nSpace, PyArrayObject *__pyx_v_B, double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr); /* proto */
2814 static PyObject *__pyx_pf_22ctransportCoefficients_42ncLevelSetCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH); /* proto */
2815 static PyObject *__pyx_pf_22ctransportCoefficients_44cLevelSetCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df); /* proto */
2816 static PyObject *__pyx_pf_22ctransportCoefficients_46VOFCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df); /* proto */
2817 static PyObject *__pyx_pf_22ctransportCoefficients_48levelSetCurvatureCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr); /* proto */
2818 static PyObject *__pyx_pf_22ctransportCoefficients_50twophaseSignedDistanceCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nPoints, int __pyx_v_nSpace, PyArrayObject *__pyx_v_S, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_h, PyArrayObject *__pyx_v_dh, PyArrayObject *__pyx_v_rh); /* proto */
2819 static PyObject *__pyx_pf_22ctransportCoefficients_52eikonalEquationEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rhs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_r); /* proto */
2820 static PyObject *__pyx_pf_22ctransportCoefficients_54redistanceLevelSetCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, PyArrayObject *__pyx_v_u_levelSet, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_r); /* proto */
2821 static PyObject *__pyx_pf_22ctransportCoefficients_56redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, double __pyx_v_Lambda_penalty, PyArrayObject *__pyx_v_u_levelSet, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr); /* proto */
2822 static PyObject *__pyx_pf_22ctransportCoefficients_58redistanceLevelSetSandFCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, PyArrayObject *__pyx_v_u_levelSet, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_r); /* proto */
2823 static PyObject *__pyx_pf_22ctransportCoefficients_60setWeakDirichletConditionsForLevelSet(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nElements_global, int __pyx_v_nDOF_trial_element, double __pyx_v_epsilon_freeze_factor, PyArrayObject *__pyx_v_elementDiameter, PyArrayObject *__pyx_v_u_l2g, PyArrayObject *__pyx_v_u_dof, PyArrayObject *__pyx_v_freeze_nodes_tmp, PyArrayObject *__pyx_v_weakDirichletConditionFlags); /* proto */
2824 static PyObject *__pyx_pf_22ctransportCoefficients_62setSimpleWeakDirichletConditionsForLevelSet(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nElements_global, int __pyx_v_nDOF_trial_element, double __pyx_v_epsilon_freeze_factor, PyArrayObject *__pyx_v_elementDiameter, PyArrayObject *__pyx_v_u_l2g, PyArrayObject *__pyx_v_u_dof, PyArrayObject *__pyx_v_freeze_nodes_tmp, PyArrayObject *__pyx_v_weakDirichletConditionFlags); /* proto */
2825 static PyObject *__pyx_pf_22ctransportCoefficients_64darcySharpInterfaceFlowEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_Km, double __pyx_v_rhoM, double __pyx_v_Kp, double __pyx_v_rhoP, double __pyx_v_eps, PyArrayObject *__pyx_v_gravity_u, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_u_levelSet, PyArrayObject *__pyx_v_phi_pot, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dphi_pot, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_dr, PyArrayObject *__pyx_v_dm); /* proto */
2826 static PyObject *__pyx_pf_22ctransportCoefficients_66darcySharpInterfaceFlowImEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_Km, double __pyx_v_rhoM, double __pyx_v_Kp, double __pyx_v_rhoP, double __pyx_v_eps, PyArrayObject *__pyx_v_gravity_u, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_u_levelSet, PyArrayObject *__pyx_v_phi_pot, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dphi_pot, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_dr, PyArrayObject *__pyx_v_dm); /* proto */
2827 static PyObject *__pyx_pf_22ctransportCoefficients_68NavierStokes_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p); /* proto */
2828 static PyObject *__pyx_pf_22ctransportCoefficients_70NavierStokes_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p); /* proto */
2829 static PyObject *__pyx_pf_22ctransportCoefficients_72Stokes_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p); /* proto */
2830 static PyObject *__pyx_pf_22ctransportCoefficients_74StokesP_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_p, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_p, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source); /* proto */
2831 static PyObject *__pyx_pf_22ctransportCoefficients_76Stokes_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p); /* proto */
2832 static PyObject *__pyx_pf_22ctransportCoefficients_78StokesP_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nPoints, double __pyx_v_rho, double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_p, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_p, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_p, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source); /* proto */
2833 static PyObject *__pyx_pf_22ctransportCoefficients_80TwophaseNavierStokes_LS_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p); /* proto */
2834 static PyObject *__pyx_pf_22ctransportCoefficients_82TwophaseNavierStokes_ST_LS_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps_rho, double __pyx_v_eps_mu, double __pyx_v_sigma, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p); /* proto */
2835 static PyObject *__pyx_pf_22ctransportCoefficients_84TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps_rho, double __pyx_v_eps_mu, double __pyx_v_sigma, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p); /* proto */
2836 static PyObject *__pyx_pf_22ctransportCoefficients_86ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_boundaryPenaltyCoef, double __pyx_v_volumePenaltyCoef, double __pyx_v_eps_rho, double __pyx_v_eps_mu, double __pyx_v_sigma, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, double __pyx_v_rho_s, double __pyx_v_nu_s, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_phi_s, PyArrayObject *__pyx_v_n_s, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p); /* proto */
2837 static PyObject *__pyx_pf_22ctransportCoefficients_88TwophaseNavierStokes_ST_LS_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps_rho, double __pyx_v_eps_mu, double __pyx_v_sigma, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p); /* proto */
2838 static PyObject *__pyx_pf_22ctransportCoefficients_90TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps_rho, double __pyx_v_eps_mu, double __pyx_v_sigma, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p); /* proto */
2839 static PyObject *__pyx_pf_22ctransportCoefficients_92ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_boundaryPenaltyCoef, double __pyx_v_volumePenaltyCoef, double __pyx_v_eps_rho, double __pyx_v_eps_mu, double __pyx_v_sigma, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, double __pyx_v_rho_s, double __pyx_v_nu_s, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_phi_s, PyArrayObject *__pyx_v_n_s, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_u_source_w, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_dmom_v_source_w, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_dmom_w_source_u, PyArrayObject *__pyx_v_dmom_w_source_v, PyArrayObject *__pyx_v_dmom_w_source_w, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p); /* proto */
2840 static PyObject *__pyx_pf_22ctransportCoefficients_94TwophaseNavierStokes_LS_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p); /* proto */
2841 static PyObject *__pyx_pf_22ctransportCoefficients_96TwophaseStokes_LS_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p); /* proto */
2842 static PyObject *__pyx_pf_22ctransportCoefficients_98TwophaseStokes_LS_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p); /* proto */
2843 static PyObject *__pyx_pf_22ctransportCoefficients_100TwophaseNavierStokes_VOF_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_vof, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p); /* proto */
2844 static PyObject *__pyx_pf_22ctransportCoefficients_102TwophaseNavierStokes_VOF_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_vof, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p); /* proto */
2845 static PyObject *__pyx_pf_22ctransportCoefficients_104TwophaseStokes_VOF_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_vof, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p); /* proto */
2846 static PyObject *__pyx_pf_22ctransportCoefficients_106TwophaseStokes_VOF_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_vof, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p); /* proto */
2847 static PyObject *__pyx_pf_22ctransportCoefficients_108unitSquareVortexEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df); /* proto */
2848 static PyObject *__pyx_pf_22ctransportCoefficients_110constantVelocityLevelSetEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_b, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH); /* proto */
2849 static PyObject *__pyx_pf_22ctransportCoefficients_112constantNormalVelocityLevelSetEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_b, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH); /* proto */
2850 static PyObject *__pyx_pf_22ctransportCoefficients_114unitSquareVortexLevelSetEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH); /* proto */
2851 static PyObject *__pyx_pf_22ctransportCoefficients_116unitSquareRotationLevelSetEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH); /* proto */
2852 static PyObject *__pyx_pf_22ctransportCoefficients_118HJBurgersEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_offset, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH); /* proto */
2853 static PyObject *__pyx_pf_22ctransportCoefficients_120conservativeHeadRichardsMualemVanGenuchtenHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_x, double __pyx_v_alpha, double __pyx_v_n, double __pyx_v_m, double __pyx_v_thetaR, double __pyx_v_thetaSR, double __pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi); /* proto */
2854 static PyObject *__pyx_pf_22ctransportCoefficients_122conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, double __pyx_v_alpha, double __pyx_v_n, double __pyx_v_m, double __pyx_v_thetaR, double __pyx_v_thetaSR, double __pyx_v_KWs, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da); /* proto */
2855 static PyObject *__pyx_pf_22ctransportCoefficients_124conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, double __pyx_v_alpha, double __pyx_v_n, double __pyx_v_m, double __pyx_v_thetaR, double __pyx_v_thetaSR, double __pyx_v_KWs, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da); /* proto */
2856 static PyObject *__pyx_pf_22ctransportCoefficients_126conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da); /* proto */
2857 static PyObject *__pyx_pf_22ctransportCoefficients_128conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_x, double __pyx_v_alpha, double __pyx_v_n, double __pyx_v_m, double __pyx_v_thetaR, double __pyx_v_thetaSR, double __pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi); /* proto */
2858 static PyObject *__pyx_pf_22ctransportCoefficients_130conservativeHeadRichardsMualemVanGenuchten_sd_het(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_materialTypes, double __pyx_v_rho, double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_vol_frac, int __pyx_v_linearize_at_zero, double __pyx_v_pc_eps); /* proto */
2859 static PyObject *__pyx_pf_22ctransportCoefficients_132conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_materialTypes, double __pyx_v_rho, double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da); /* proto */
2860 static PyObject *__pyx_pf_22ctransportCoefficients_134seepageBrezis(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_materialTypes, double __pyx_v_epsFact, double __pyx_v_rho, double __pyx_v_beta, PyArrayObject *__pyx_v_elementDiameter, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da); /* proto */
2861 static PyObject *__pyx_pf_22ctransportCoefficients_136conservativeHeadRichardsMualemVanGenuchtenHetEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da); /* proto */
2862 static PyObject *__pyx_pf_22ctransportCoefficients_138conservativeSatRichardsMualemVanGenuchtenHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_x, double __pyx_v_alpha, double __pyx_v_n, double __pyx_v_m, double __pyx_v_thetaR, double __pyx_v_thetaSR, double __pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi); /* proto */
2863 static PyObject *__pyx_pf_22ctransportCoefficients_140conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_Lambda, PyArrayObject *__pyx_v_pd, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaS, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da); /* proto */
2864 static PyObject *__pyx_pf_22ctransportCoefficients_142conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, double __pyx_v_Lambda, double __pyx_v_pd, double __pyx_v_thetaR, double __pyx_v_thetaSR, double __pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da); /* proto */
2865 static PyObject *__pyx_pf_22ctransportCoefficients_144conservativeSatRichardsBrooksCoreyBurdineHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nPoints, int __pyx_v_nSpace, double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, double __pyx_v_Lambda, double __pyx_v_pd, double __pyx_v_thetaR, double __pyx_v_thetaSR, double __pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi); /* proto */
2866 static PyObject *__pyx_pf_22ctransportCoefficients_146conservativeHeadRichardsBCBfromMVGHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, double __pyx_v_alpha, double __pyx_v_n, double __pyx_v_m, double __pyx_v_thetaR, double __pyx_v_thetaSR, double __pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da); /* proto */
2867 static PyObject *__pyx_pf_22ctransportCoefficients_148LinearElasticity_1D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_E, double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_uu_diff_ten, PyArrayObject *__pyx_v_u_force); /* proto */
2868 static PyObject *__pyx_pf_22ctransportCoefficients_150LinearElasticity_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_E, double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_uu_diff_ten, PyArrayObject *__pyx_v_uv_diff_ten, PyArrayObject *__pyx_v_vu_diff_ten, PyArrayObject *__pyx_v_vv_diff_ten, PyArrayObject *__pyx_v_u_force, PyArrayObject *__pyx_v_v_force); /* proto */
2869 static PyObject *__pyx_pf_22ctransportCoefficients_152LinearElasticity_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_E, double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_uu_diff_ten, PyArrayObject *__pyx_v_uv_diff_ten, PyArrayObject *__pyx_v_uw_diff_ten, PyArrayObject *__pyx_v_vu_diff_ten, PyArrayObject *__pyx_v_vv_diff_ten, PyArrayObject *__pyx_v_vw_diff_ten, PyArrayObject *__pyx_v_wu_diff_ten, PyArrayObject *__pyx_v_wv_diff_ten, PyArrayObject *__pyx_v_ww_diff_ten, PyArrayObject *__pyx_v_u_force, PyArrayObject *__pyx_v_v_force, PyArrayObject *__pyx_v_w_force); /* proto */
2870 static PyObject *__pyx_pf_22ctransportCoefficients_154MovingMesh_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_E0, double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_det_J, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_uu_diff_ten, PyArrayObject *__pyx_v_uv_diff_ten, PyArrayObject *__pyx_v_vu_diff_ten, PyArrayObject *__pyx_v_vv_diff_ten, PyArrayObject *__pyx_v_u_force, PyArrayObject *__pyx_v_v_force); /* proto */
2871 static PyObject *__pyx_pf_22ctransportCoefficients_156MovingMesh_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_E0, double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_det_J, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_uu_diff_ten, PyArrayObject *__pyx_v_uv_diff_ten, PyArrayObject *__pyx_v_uw_diff_ten, PyArrayObject *__pyx_v_vu_diff_ten, PyArrayObject *__pyx_v_vv_diff_ten, PyArrayObject *__pyx_v_vw_diff_ten, PyArrayObject *__pyx_v_wu_diff_ten, PyArrayObject *__pyx_v_wv_diff_ten, PyArrayObject *__pyx_v_ww_diff_ten, PyArrayObject *__pyx_v_u_force, PyArrayObject *__pyx_v_v_force, PyArrayObject *__pyx_v_w_force); /* proto */
2872 static PyObject *__pyx_pf_22ctransportCoefficients_158MovingMesh_1D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_E0, double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_det_J, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_uu_diff_ten, PyArrayObject *__pyx_v_u_force); /* proto */
2873 static PyObject *__pyx_pf_22ctransportCoefficients_160levelSetConservationCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_epsHeaviside, double __pyx_v_epsDirac, double __pyx_v_epsDiffusion, PyArrayObject *__pyx_v_u_ls, PyArrayObject *__pyx_v_H_vof, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr, PyArrayObject *__pyx_v_a); /* proto */
2874 static PyObject *__pyx_pf_22ctransportCoefficients_162levelSetConservationCoefficientsEvaluate_sd(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_epsHeaviside, double __pyx_v_epsDirac, PyArrayObject *__pyx_v_u_ls, PyArrayObject *__pyx_v_H_vof, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr); /* proto */
2875 static PyObject *__pyx_pf_22ctransportCoefficients_164evaluateBuckleyLeverettLiuExample(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a); /* proto */
2876 static PyObject *__pyx_pf_22ctransportCoefficients_166VolumeAveragedNavierStokesFullDevStress_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, double __pyx_v_mu, PyArrayObject *__pyx_v_meanGrainSize, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p); /* proto */
2877 static PyObject *__pyx_pf_22ctransportCoefficients_168VolumeAveragedNavierStokesFullDevStress_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, double __pyx_v_mu, PyArrayObject *__pyx_v_meanGrainSize, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_u_source_w, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_dmom_v_source_w, PyArrayObject *__pyx_v_dmom_w_source_u, PyArrayObject *__pyx_v_dmom_w_source_v, PyArrayObject *__pyx_v_dmom_w_source_w, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p); /* proto */
2878 static PyObject *__pyx_pf_22ctransportCoefficients_170VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_killNonlinearDrag, double __pyx_v_eps_rho, double __pyx_v_eps_mu, double __pyx_v_sigma, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_meanGrainSize, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p); /* proto */
2879 static PyObject *__pyx_pf_22ctransportCoefficients_172VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_killNonlinearDrag, double __pyx_v_eps_rho, double __pyx_v_eps_mu, double __pyx_v_sigma, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_meanGrainSize, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p); /* proto */
2880 static PyObject *__pyx_pf_22ctransportCoefficients_174VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_killNonlinearDrag, double __pyx_v_eps_rho, double __pyx_v_eps_mu, double __pyx_v_sigma, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_meanGrainSize, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_u_source_w, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_dmom_v_source_w, PyArrayObject *__pyx_v_dmom_w_source_u, PyArrayObject *__pyx_v_dmom_w_source_v, PyArrayObject *__pyx_v_dmom_w_source_w, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p); /* proto */
2881 static PyObject *__pyx_pf_22ctransportCoefficients_176VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_killNonlinearDrag, double __pyx_v_eps_rho, double __pyx_v_eps_mu, double __pyx_v_sigma, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_meanGrainSize, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_u_source_w, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_dmom_v_source_w, PyArrayObject *__pyx_v_dmom_w_source_u, PyArrayObject *__pyx_v_dmom_w_source_v, PyArrayObject *__pyx_v_dmom_w_source_w, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p); /* proto */
2882 static PyObject *__pyx_pf_22ctransportCoefficients_178VolumeAveragedVOFCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df); /* proto */
2883 static PyObject *__pyx_pf_22ctransportCoefficients_180kEpsilon_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_sigma_k, double __pyx_v_sigma_e, double __pyx_v_c_1, double __pyx_v_c_2, double __pyx_v_c_mu, double __pyx_v_c_e, double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_k, PyArrayObject *__pyx_v_dm_k, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_phi_k, PyArrayObject *__pyx_v_dphi_k, PyArrayObject *__pyx_v_phi_e, PyArrayObject *__pyx_v_dphi_e, PyArrayObject *__pyx_v_f_k, PyArrayObject *__pyx_v_df_k, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_k, PyArrayObject *__pyx_v_da_k_dk, PyArrayObject *__pyx_v_da_k_de, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_da_e_dk, PyArrayObject *__pyx_v_da_e_de, PyArrayObject *__pyx_v_r_k, PyArrayObject *__pyx_v_dr_k_dk, PyArrayObject *__pyx_v_dr_k_de, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_dk, PyArrayObject *__pyx_v_dr_e_de); /* proto */
2884 static PyObject *__pyx_pf_22ctransportCoefficients_182kEpsilon_2D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_sigma_k, double __pyx_v_sigma_e, double __pyx_v_c_1, double __pyx_v_c_2, double __pyx_v_c_mu, double __pyx_v_c_e, double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_k, PyArrayObject *__pyx_v_dm_k, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_phi_k, PyArrayObject *__pyx_v_dphi_k, PyArrayObject *__pyx_v_phi_e, PyArrayObject *__pyx_v_dphi_e, PyArrayObject *__pyx_v_f_k, PyArrayObject *__pyx_v_df_k, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_k, PyArrayObject *__pyx_v_da_k_dk, PyArrayObject *__pyx_v_da_k_de, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_da_e_dk, PyArrayObject *__pyx_v_da_e_de, PyArrayObject *__pyx_v_r_k, PyArrayObject *__pyx_v_dr_k_dk, PyArrayObject *__pyx_v_dr_k_de, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_dk, PyArrayObject *__pyx_v_dr_e_de); /* proto */
2885 static PyObject *__pyx_pf_22ctransportCoefficients_184kEpsilon_3D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_sigma_k, double __pyx_v_sigma_e, double __pyx_v_c_1, double __pyx_v_c_2, double __pyx_v_c_mu, double __pyx_v_c_e, double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_gradw, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_k, PyArrayObject *__pyx_v_dm_k, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_phi_k, PyArrayObject *__pyx_v_dphi_k, PyArrayObject *__pyx_v_phi_e, PyArrayObject *__pyx_v_dphi_e, PyArrayObject *__pyx_v_f_k, PyArrayObject *__pyx_v_df_k, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_k, PyArrayObject *__pyx_v_da_k_dk, PyArrayObject *__pyx_v_da_k_de, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_da_e_dk, PyArrayObject *__pyx_v_da_e_de, PyArrayObject *__pyx_v_r_k, PyArrayObject *__pyx_v_dr_k_dk, PyArrayObject *__pyx_v_dr_k_de, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_dk, PyArrayObject *__pyx_v_dr_e_de); /* proto */
2886 static PyObject *__pyx_pf_22ctransportCoefficients_186kEpsilon_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_sigma_k, double __pyx_v_sigma_e, double __pyx_v_c_1, double __pyx_v_c_2, double __pyx_v_c_mu, double __pyx_v_c_e, double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_gradw, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_k, PyArrayObject *__pyx_v_dm_k, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_phi_k, PyArrayObject *__pyx_v_dphi_k, PyArrayObject *__pyx_v_phi_e, PyArrayObject *__pyx_v_dphi_e, PyArrayObject *__pyx_v_f_k, PyArrayObject *__pyx_v_df_k, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_k, PyArrayObject *__pyx_v_da_k_dk, PyArrayObject *__pyx_v_da_k_de, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_da_e_dk, PyArrayObject *__pyx_v_da_e_de, PyArrayObject *__pyx_v_r_k, PyArrayObject *__pyx_v_dr_k_dk, PyArrayObject *__pyx_v_dr_k_de, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_dk, PyArrayObject *__pyx_v_dr_e_de); /* proto */
2887 static PyObject *__pyx_pf_22ctransportCoefficients_188kEpsilon_k_2D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_sigma_k, double __pyx_v_c_mu, double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_k, PyArrayObject *__pyx_v_dm_k, PyArrayObject *__pyx_v_phi_k, PyArrayObject *__pyx_v_dphi_k, PyArrayObject *__pyx_v_f_k, PyArrayObject *__pyx_v_df_k, PyArrayObject *__pyx_v_a_k, PyArrayObject *__pyx_v_da_k_dk, PyArrayObject *__pyx_v_r_k, PyArrayObject *__pyx_v_dr_k_dk); /* proto */
2888 static PyObject *__pyx_pf_22ctransportCoefficients_190kEpsilon_epsilon_2D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_sigma_e, double __pyx_v_c_1, double __pyx_v_c_2, double __pyx_v_c_mu, double __pyx_v_c_e, double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_phi_e, PyArrayObject *__pyx_v_dphi_e, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_da_e_de, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_de); /* proto */
2889 static PyObject *__pyx_pf_22ctransportCoefficients_192kEpsilon_k_3D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_sigma_k, double __pyx_v_c_mu, double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_gradw, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_k, PyArrayObject *__pyx_v_dm_k, PyArrayObject *__pyx_v_phi_k, PyArrayObject *__pyx_v_dphi_k, PyArrayObject *__pyx_v_f_k, PyArrayObject *__pyx_v_df_k, PyArrayObject *__pyx_v_a_k, PyArrayObject *__pyx_v_da_k_dk, PyArrayObject *__pyx_v_r_k, PyArrayObject *__pyx_v_dr_k_dk); /* proto */
2890 static PyObject *__pyx_pf_22ctransportCoefficients_194kEpsilon_epsilon_3D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_sigma_e, double __pyx_v_c_1, double __pyx_v_c_2, double __pyx_v_c_mu, double __pyx_v_c_e, double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_gradw, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_phi_e, PyArrayObject *__pyx_v_dphi_e, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_da_e_de, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_de); /* proto */
2891 static PyObject *__pyx_pf_22ctransportCoefficients_196ReynoldsAveragedNavierStokes_kEpsilon_2D_Update(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_nu, double __pyx_v_c_mu, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_grad_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source); /* proto */
2892 static PyObject *__pyx_pf_22ctransportCoefficients_198ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, double __pyx_v_nu, double __pyx_v_c_mu, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_grad_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source); /* proto */
2893 static PyObject *__pyx_pf_22ctransportCoefficients_200ReynoldsAveragedNavierStokes_kEpsilon_3D_Update(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_nu, double __pyx_v_c_mu, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_grad_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source); /* proto */
2894 static PyObject *__pyx_pf_22ctransportCoefficients_202ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_nu, double __pyx_v_c_mu, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_grad_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source); /* proto */
2895 static PyObject *__pyx_pf_22ctransportCoefficients_204scriptedSphereMotionSignedDistance(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_t, PyArrayObject *__pyx_v_radii, PyArrayObject *__pyx_v_centers, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n); /* proto */
2896 static PyObject *__pyx_pf_22ctransportCoefficients_206shallowWater_1D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_h_eps, double __pyx_v_g, double __pyx_v_bedFrictionCoefficient, double __pyx_v_bedFrictionPower, double __pyx_v_eddyViscosity, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_db_dx, PyArrayObject *__pyx_v_h, PyArrayObject *__pyx_v_hu, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_mass_acc, PyArrayObject *__pyx_v_dmass_acc_dh, PyArrayObject *__pyx_v_mom_acc, PyArrayObject *__pyx_v_dmom_acc_dhu, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_dhu, PyArrayObject *__pyx_v_mom_adv, PyArrayObject *__pyx_v_dmom_adv_dh, PyArrayObject *__pyx_v_dmom_adv_dhu, PyArrayObject *__pyx_v_mom_source, PyArrayObject *__pyx_v_dmom_source_dh, PyArrayObject *__pyx_v_dmom_source_dhu, PyArrayObject *__pyx_v_mom_diff); /* proto */
2897 static PyObject *__pyx_pf_22ctransportCoefficients_208shallowWater_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_h_eps, double __pyx_v_g, double __pyx_v_bedFrictionCoefficient, double __pyx_v_bedFrictionPower, double __pyx_v_eddyViscosity, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_grad_b, PyArrayObject *__pyx_v_h, PyArrayObject *__pyx_v_hu, PyArrayObject *__pyx_v_hv, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_mass_acc, PyArrayObject *__pyx_v_dmass_acc_dh, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_dhu, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_dhv, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_dhu, PyArrayObject *__pyx_v_dmass_adv_dhv, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_dh, PyArrayObject *__pyx_v_dmom_u_adv_dhu, PyArrayObject *__pyx_v_dmom_u_adv_dhv, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_dh, PyArrayObject *__pyx_v_dmom_v_adv_dhu, PyArrayObject *__pyx_v_dmom_v_adv_dhv, PyArrayObject *__pyx_v_mom_u_diff, PyArrayObject *__pyx_v_mom_v_diff, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_dmom_u_source_dh, PyArrayObject *__pyx_v_dmom_u_source_dhu, PyArrayObject *__pyx_v_dmom_u_source_dhv, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_dmom_v_source_dh, PyArrayObject *__pyx_v_dmom_v_source_dhu, PyArrayObject *__pyx_v_dmom_v_source_dhv); /* proto */
2898 static PyObject *__pyx_pf_22ctransportCoefficients_210conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_upwindFlag, int __pyx_v_computeAverages, int __pyx_v_nQuadraturePoints_elementBoundary, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_quadraturePointToElementBoundary, PyArrayObject *__pyx_v_materialTypes, double __pyx_v_rho, double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n_vg, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_n_global, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f_avg, PyArrayObject *__pyx_v_df_avg, PyArrayObject *__pyx_v_a_avg, PyArrayObject *__pyx_v_da_avg, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da); /* proto */
2899 static PyObject *__pyx_pf_22ctransportCoefficients_212conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_upwindFlag, int __pyx_v_computeAverages, int __pyx_v_nQuadraturePoints_elementBoundary, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_quadraturePointToElementBoundary, PyArrayObject *__pyx_v_materialTypes, double __pyx_v_rho, double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n_vg, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_n_global, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f_avg, PyArrayObject *__pyx_v_df_avg, PyArrayObject *__pyx_v_a_avg, PyArrayObject *__pyx_v_da_avg, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da); /* proto */
2900 static PyObject *__pyx_pf_22ctransportCoefficients_214conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_upwindFlag, int __pyx_v_computeAverages, int __pyx_v_nQuadraturePoints_elementBoundary, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_quadraturePointToElementBoundary, PyArrayObject *__pyx_v_materialTypes, double __pyx_v_rho, double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n_vg, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_n_global, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f_avg, PyArrayObject *__pyx_v_df_avg, PyArrayObject *__pyx_v_a_avg, PyArrayObject *__pyx_v_da_avg, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da); /* proto */
2901 static PyObject *__pyx_pf_22ctransportCoefficients_216applyContactLineSlip(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_advectiveFlux, PyArrayObject *__pyx_v_diffusiveFlux); /* proto */
2902 static PyObject *__pyx_pf_22ctransportCoefficients_218applyContactLineSlipJacobian(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_fluxJacobian); /* proto */
2903 static PyObject *__pyx_pf_22ctransportCoefficients_220calculateEddyViscosity_Smagorinsky_2D(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_smagorinskyConstant, PyArrayObject *__pyx_v_h_e, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_nu_t); /* proto */
2904 static PyObject *__pyx_pf_22ctransportCoefficients_222calculateEddyViscosity_Smagorinsky_3D(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_smagorinskyConstant, PyArrayObject *__pyx_v_h_e, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_nu_t); /* proto */
2905 static PyObject *__pyx_pf_22ctransportCoefficients_224calculateEddyViscosity_Smagorinsky2P_2D(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_smagorinskyConstant_0, double __pyx_v_smagorinskyConstant_1, double __pyx_v_eps, PyArrayObject *__pyx_v_phi_ls, PyArrayObject *__pyx_v_h_e, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_nu_t); /* proto */
2906 static PyObject *__pyx_pf_22ctransportCoefficients_226calculateEddyViscosity_Smagorinsky2P_3D(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_smagorinskyConstant_0, double __pyx_v_smagorinskyConstant_1, double __pyx_v_eps, PyArrayObject *__pyx_v_phi_ls, PyArrayObject *__pyx_v_h_e, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_nu_t); /* proto */
2907 static PyObject *__pyx_pf_22ctransportCoefficients_228eddyViscosity_2D_Update(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nu_t, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten); /* proto */
2908 static PyObject *__pyx_pf_22ctransportCoefficients_230eddyViscosity_2D_Update_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nu_t, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten); /* proto */
2909 static PyObject *__pyx_pf_22ctransportCoefficients_232eddyViscosity_3D_Update(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nu_t, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten); /* proto */
2910 static PyObject *__pyx_pf_22ctransportCoefficients_234eddyViscosity_3D_Update_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nu_t, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten); /* proto */
2911 static PyObject *__pyx_pf_22ctransportCoefficients_236calculateWaveFunction3d_ref(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_mesh_trial_ref, PyArrayObject *__pyx_v_mesh_dof, PyArrayObject *__pyx_v_mesh_l2g, PyArrayObject *__pyx_v_elementDiametersArray, PyArrayObject *__pyx_v_omega_s_x, PyArrayObject *__pyx_v_omega_s_y, PyArrayObject *__pyx_v_omega_s_z, double __pyx_v_t, int __pyx_v_waveFlag, double __pyx_v_epsFact, double __pyx_v_waveHeight, double __pyx_v_waveCelerity, double __pyx_v_waveFrequency, double __pyx_v_waveNumber, double __pyx_v_waterDepth, PyArrayObject *__pyx_v_source); /* proto */
2912 static PyObject *__pyx_pf_22ctransportCoefficients_238Mass_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_p_acc, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_p_acc_p, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_dmom_v_acc_v); /* proto */
2913 static PyObject *__pyx_pf_22ctransportCoefficients_240Mass_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_p_acc, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_p_acc_p, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_dmom_w_acc_w); /* proto */
2914 static PyObject *__pyx_pf_22ctransportCoefficients_242TwoPhaseAdvection_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_p, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v); /* proto */
2915 static PyObject *__pyx_pf_22ctransportCoefficients_244twophaseSignedDistanceUpdateSignFunction(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nPoints, double __pyx_v_eps, PyArrayObject *__pyx_v_u_levelSet, PyArrayObject *__pyx_v_S); /* proto */
2916 static PyObject *__pyx_pf_22ctransportCoefficients_246Laplace_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_p, CYTHON_UNUSED PyArrayObject *__pyx_v_u, CYTHON_UNUSED PyArrayObject *__pyx_v_v, CYTHON_UNUSED PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_p_diff_ten, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten); /* proto */
2917 static PyObject *__pyx_pf_22ctransportCoefficients_248Laplace_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_p, CYTHON_UNUSED PyArrayObject *__pyx_v_u, CYTHON_UNUSED PyArrayObject *__pyx_v_v, CYTHON_UNUSED PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_p_diff_ten, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten); /* proto */
2918 static PyObject *__pyx_pf_22ctransportCoefficients_250l2projectScalar(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nSimplices, int __pyx_v_nPointsPerSimplex, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_r); /* proto */
2919 static PyObject *__pyx_pf_22ctransportCoefficients_252l2projectVector(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nSimplices, int __pyx_v_nPointsPerSimplex, int __pyx_v_nSpace, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_r); /* proto */
2920 static PyObject *__pyx_pf_22ctransportCoefficients_254l2project2Tensor(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nSimplices, int __pyx_v_nPointsPerSimplex, int __pyx_v_nSpace, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_r); /* proto */
2921 static PyObject *__pyx_pf_22ctransportCoefficients_256L2projectEvaluate(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_rank, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_r); /* proto */
2922 static PyObject *__pyx_pf_22ctransportCoefficients_258conservativeHeadRichardsJLeverettEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_materialTypes, double __pyx_v_rho, double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_psiD, PyArrayObject *__pyx_v_ns, PyArrayObject *__pyx_v_nk, PyArrayObject *__pyx_v_S_wirr, PyArrayObject *__pyx_v_S_nwr, PyArrayObject *__pyx_v_kr0, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da); /* proto */
2923 static PyObject *__pyx_pf_22ctransportCoefficients_260conservativeHeadRichardsJLeverettAniEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_materialTypes, double __pyx_v_rho, double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_psiD, PyArrayObject *__pyx_v_ns, PyArrayObject *__pyx_v_nk, PyArrayObject *__pyx_v_S_wirr, PyArrayObject *__pyx_v_S_nwr, PyArrayObject *__pyx_v_kr0x, PyArrayObject *__pyx_v_kr0y, PyArrayObject *__pyx_v_kr0z, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da); /* proto */
2924 static PyObject *__pyx_pf_22ctransportCoefficients_262diffusiveWave1DCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_alpha, double __pyx_v_gamma, double __pyx_v_epsilon, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da); /* proto */
2925 static PyObject *__pyx_pf_22ctransportCoefficients_264diffusiveWave2DCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nd, double __pyx_v_alpha, double __pyx_v_gamma, double __pyx_v_epsilon, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da); /* proto */
2926 static PyObject *__pyx_pf_22ctransportCoefficients_266smoothedHeaviside(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, double __pyx_v_phi); /* proto */
2927 static PyObject *__pyx_pf_22ctransportCoefficients_268smoothedHeaviside_integral(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, double __pyx_v_phi); /* proto */
2928 static PyObject *__pyx_pf_22ctransportCoefficients_270smoothedDirac(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, double __pyx_v_phi); /* proto */
2929 static PyObject *__pyx_tuple_;
2930 static PyObject *__pyx_tuple__2;
2931 static PyObject *__pyx_tuple__3;
2932 static PyObject *__pyx_tuple__5;
2933 static PyObject *__pyx_tuple__7;
2934 static PyObject *__pyx_tuple__9;
2935 static PyObject *__pyx_tuple__11;
2936 static PyObject *__pyx_tuple__13;
2937 static PyObject *__pyx_tuple__15;
2938 static PyObject *__pyx_tuple__17;
2939 static PyObject *__pyx_tuple__19;
2940 static PyObject *__pyx_tuple__21;
2941 static PyObject *__pyx_tuple__23;
2942 static PyObject *__pyx_tuple__25;
2943 static PyObject *__pyx_tuple__27;
2944 static PyObject *__pyx_tuple__29;
2945 static PyObject *__pyx_tuple__31;
2946 static PyObject *__pyx_tuple__33;
2947 static PyObject *__pyx_tuple__35;
2948 static PyObject *__pyx_tuple__37;
2949 static PyObject *__pyx_tuple__39;
2950 static PyObject *__pyx_tuple__41;
2951 static PyObject *__pyx_tuple__43;
2952 static PyObject *__pyx_tuple__45;
2953 static PyObject *__pyx_tuple__47;
2954 static PyObject *__pyx_tuple__49;
2955 static PyObject *__pyx_tuple__51;
2956 static PyObject *__pyx_tuple__53;
2957 static PyObject *__pyx_tuple__55;
2958 static PyObject *__pyx_tuple__57;
2959 static PyObject *__pyx_tuple__59;
2960 static PyObject *__pyx_tuple__61;
2961 static PyObject *__pyx_tuple__63;
2962 static PyObject *__pyx_tuple__65;
2963 static PyObject *__pyx_tuple__67;
2964 static PyObject *__pyx_tuple__69;
2965 static PyObject *__pyx_tuple__71;
2966 static PyObject *__pyx_tuple__73;
2967 static PyObject *__pyx_tuple__75;
2968 static PyObject *__pyx_tuple__77;
2969 static PyObject *__pyx_tuple__79;
2970 static PyObject *__pyx_tuple__81;
2971 static PyObject *__pyx_tuple__83;
2972 static PyObject *__pyx_tuple__85;
2973 static PyObject *__pyx_tuple__87;
2974 static PyObject *__pyx_tuple__89;
2975 static PyObject *__pyx_tuple__91;
2976 static PyObject *__pyx_tuple__93;
2977 static PyObject *__pyx_tuple__95;
2978 static PyObject *__pyx_tuple__97;
2979 static PyObject *__pyx_tuple__99;
2980 static PyObject *__pyx_codeobj__4;
2981 static PyObject *__pyx_codeobj__6;
2982 static PyObject *__pyx_codeobj__8;
2983 static PyObject *__pyx_tuple__101;
2984 static PyObject *__pyx_tuple__103;
2985 static PyObject *__pyx_tuple__105;
2986 static PyObject *__pyx_tuple__107;
2987 static PyObject *__pyx_tuple__109;
2988 static PyObject *__pyx_tuple__111;
2989 static PyObject *__pyx_tuple__113;
2990 static PyObject *__pyx_tuple__115;
2991 static PyObject *__pyx_tuple__117;
2992 static PyObject *__pyx_tuple__119;
2993 static PyObject *__pyx_tuple__121;
2994 static PyObject *__pyx_tuple__123;
2995 static PyObject *__pyx_tuple__125;
2996 static PyObject *__pyx_tuple__127;
2997 static PyObject *__pyx_tuple__129;
2998 static PyObject *__pyx_tuple__131;
2999 static PyObject *__pyx_tuple__133;
3000 static PyObject *__pyx_tuple__135;
3001 static PyObject *__pyx_tuple__137;
3002 static PyObject *__pyx_tuple__139;
3003 static PyObject *__pyx_tuple__141;
3004 static PyObject *__pyx_tuple__143;
3005 static PyObject *__pyx_tuple__145;
3006 static PyObject *__pyx_tuple__147;
3007 static PyObject *__pyx_tuple__149;
3008 static PyObject *__pyx_tuple__151;
3009 static PyObject *__pyx_tuple__153;
3010 static PyObject *__pyx_tuple__155;
3011 static PyObject *__pyx_tuple__157;
3012 static PyObject *__pyx_tuple__159;
3013 static PyObject *__pyx_tuple__161;
3014 static PyObject *__pyx_tuple__163;
3015 static PyObject *__pyx_tuple__165;
3016 static PyObject *__pyx_tuple__167;
3017 static PyObject *__pyx_tuple__169;
3018 static PyObject *__pyx_tuple__171;
3019 static PyObject *__pyx_tuple__173;
3020 static PyObject *__pyx_tuple__175;
3021 static PyObject *__pyx_tuple__177;
3022 static PyObject *__pyx_tuple__179;
3023 static PyObject *__pyx_tuple__181;
3024 static PyObject *__pyx_tuple__183;
3025 static PyObject *__pyx_tuple__185;
3026 static PyObject *__pyx_tuple__187;
3027 static PyObject *__pyx_tuple__189;
3028 static PyObject *__pyx_tuple__191;
3029 static PyObject *__pyx_tuple__193;
3030 static PyObject *__pyx_tuple__195;
3031 static PyObject *__pyx_tuple__197;
3032 static PyObject *__pyx_tuple__199;
3033 static PyObject *__pyx_tuple__201;
3034 static PyObject *__pyx_tuple__203;
3035 static PyObject *__pyx_tuple__205;
3036 static PyObject *__pyx_tuple__207;
3037 static PyObject *__pyx_tuple__209;
3038 static PyObject *__pyx_tuple__211;
3039 static PyObject *__pyx_tuple__213;
3040 static PyObject *__pyx_tuple__215;
3041 static PyObject *__pyx_tuple__217;
3042 static PyObject *__pyx_tuple__219;
3043 static PyObject *__pyx_tuple__221;
3044 static PyObject *__pyx_tuple__223;
3045 static PyObject *__pyx_tuple__225;
3046 static PyObject *__pyx_tuple__227;
3047 static PyObject *__pyx_tuple__229;
3048 static PyObject *__pyx_tuple__231;
3049 static PyObject *__pyx_tuple__233;
3050 static PyObject *__pyx_tuple__235;
3051 static PyObject *__pyx_tuple__237;
3052 static PyObject *__pyx_tuple__239;
3053 static PyObject *__pyx_tuple__241;
3054 static PyObject *__pyx_tuple__243;
3055 static PyObject *__pyx_tuple__245;
3056 static PyObject *__pyx_tuple__247;
3057 static PyObject *__pyx_tuple__249;
3058 static PyObject *__pyx_tuple__251;
3059 static PyObject *__pyx_tuple__253;
3060 static PyObject *__pyx_tuple__255;
3061 static PyObject *__pyx_tuple__257;
3062 static PyObject *__pyx_tuple__259;
3063 static PyObject *__pyx_tuple__261;
3064 static PyObject *__pyx_tuple__263;
3065 static PyObject *__pyx_tuple__265;
3066 static PyObject *__pyx_tuple__267;
3067 static PyObject *__pyx_tuple__269;
3068 static PyObject *__pyx_tuple__271;
3069 static PyObject *__pyx_tuple__273;
3070 static PyObject *__pyx_codeobj__10;
3071 static PyObject *__pyx_codeobj__12;
3072 static PyObject *__pyx_codeobj__14;
3073 static PyObject *__pyx_codeobj__16;
3074 static PyObject *__pyx_codeobj__18;
3075 static PyObject *__pyx_codeobj__20;
3076 static PyObject *__pyx_codeobj__22;
3077 static PyObject *__pyx_codeobj__24;
3078 static PyObject *__pyx_codeobj__26;
3079 static PyObject *__pyx_codeobj__28;
3080 static PyObject *__pyx_codeobj__30;
3081 static PyObject *__pyx_codeobj__32;
3082 static PyObject *__pyx_codeobj__34;
3083 static PyObject *__pyx_codeobj__36;
3084 static PyObject *__pyx_codeobj__38;
3085 static PyObject *__pyx_codeobj__40;
3086 static PyObject *__pyx_codeobj__42;
3087 static PyObject *__pyx_codeobj__44;
3088 static PyObject *__pyx_codeobj__46;
3089 static PyObject *__pyx_codeobj__48;
3090 static PyObject *__pyx_codeobj__50;
3091 static PyObject *__pyx_codeobj__52;
3092 static PyObject *__pyx_codeobj__54;
3093 static PyObject *__pyx_codeobj__56;
3094 static PyObject *__pyx_codeobj__58;
3095 static PyObject *__pyx_codeobj__60;
3096 static PyObject *__pyx_codeobj__62;
3097 static PyObject *__pyx_codeobj__64;
3098 static PyObject *__pyx_codeobj__66;
3099 static PyObject *__pyx_codeobj__68;
3100 static PyObject *__pyx_codeobj__70;
3101 static PyObject *__pyx_codeobj__72;
3102 static PyObject *__pyx_codeobj__74;
3103 static PyObject *__pyx_codeobj__76;
3104 static PyObject *__pyx_codeobj__78;
3105 static PyObject *__pyx_codeobj__80;
3106 static PyObject *__pyx_codeobj__82;
3107 static PyObject *__pyx_codeobj__84;
3108 static PyObject *__pyx_codeobj__86;
3109 static PyObject *__pyx_codeobj__88;
3110 static PyObject *__pyx_codeobj__90;
3111 static PyObject *__pyx_codeobj__92;
3112 static PyObject *__pyx_codeobj__94;
3113 static PyObject *__pyx_codeobj__96;
3114 static PyObject *__pyx_codeobj__98;
3115 static PyObject *__pyx_codeobj__100;
3116 static PyObject *__pyx_codeobj__102;
3117 static PyObject *__pyx_codeobj__104;
3118 static PyObject *__pyx_codeobj__106;
3119 static PyObject *__pyx_codeobj__108;
3120 static PyObject *__pyx_codeobj__110;
3121 static PyObject *__pyx_codeobj__112;
3122 static PyObject *__pyx_codeobj__114;
3123 static PyObject *__pyx_codeobj__116;
3124 static PyObject *__pyx_codeobj__118;
3125 static PyObject *__pyx_codeobj__120;
3126 static PyObject *__pyx_codeobj__122;
3127 static PyObject *__pyx_codeobj__124;
3128 static PyObject *__pyx_codeobj__126;
3129 static PyObject *__pyx_codeobj__128;
3130 static PyObject *__pyx_codeobj__130;
3131 static PyObject *__pyx_codeobj__132;
3132 static PyObject *__pyx_codeobj__134;
3133 static PyObject *__pyx_codeobj__136;
3134 static PyObject *__pyx_codeobj__138;
3135 static PyObject *__pyx_codeobj__140;
3136 static PyObject *__pyx_codeobj__142;
3137 static PyObject *__pyx_codeobj__144;
3138 static PyObject *__pyx_codeobj__146;
3139 static PyObject *__pyx_codeobj__148;
3140 static PyObject *__pyx_codeobj__150;
3141 static PyObject *__pyx_codeobj__152;
3142 static PyObject *__pyx_codeobj__154;
3143 static PyObject *__pyx_codeobj__156;
3144 static PyObject *__pyx_codeobj__158;
3145 static PyObject *__pyx_codeobj__160;
3146 static PyObject *__pyx_codeobj__162;
3147 static PyObject *__pyx_codeobj__164;
3148 static PyObject *__pyx_codeobj__166;
3149 static PyObject *__pyx_codeobj__168;
3150 static PyObject *__pyx_codeobj__170;
3151 static PyObject *__pyx_codeobj__172;
3152 static PyObject *__pyx_codeobj__174;
3153 static PyObject *__pyx_codeobj__176;
3154 static PyObject *__pyx_codeobj__178;
3155 static PyObject *__pyx_codeobj__180;
3156 static PyObject *__pyx_codeobj__182;
3157 static PyObject *__pyx_codeobj__184;
3158 static PyObject *__pyx_codeobj__186;
3159 static PyObject *__pyx_codeobj__188;
3160 static PyObject *__pyx_codeobj__190;
3161 static PyObject *__pyx_codeobj__192;
3162 static PyObject *__pyx_codeobj__194;
3163 static PyObject *__pyx_codeobj__196;
3164 static PyObject *__pyx_codeobj__198;
3165 static PyObject *__pyx_codeobj__200;
3166 static PyObject *__pyx_codeobj__202;
3167 static PyObject *__pyx_codeobj__204;
3168 static PyObject *__pyx_codeobj__206;
3169 static PyObject *__pyx_codeobj__208;
3170 static PyObject *__pyx_codeobj__210;
3171 static PyObject *__pyx_codeobj__212;
3172 static PyObject *__pyx_codeobj__214;
3173 static PyObject *__pyx_codeobj__216;
3174 static PyObject *__pyx_codeobj__218;
3175 static PyObject *__pyx_codeobj__220;
3176 static PyObject *__pyx_codeobj__222;
3177 static PyObject *__pyx_codeobj__224;
3178 static PyObject *__pyx_codeobj__226;
3179 static PyObject *__pyx_codeobj__228;
3180 static PyObject *__pyx_codeobj__230;
3181 static PyObject *__pyx_codeobj__232;
3182 static PyObject *__pyx_codeobj__234;
3183 static PyObject *__pyx_codeobj__236;
3184 static PyObject *__pyx_codeobj__238;
3185 static PyObject *__pyx_codeobj__240;
3186 static PyObject *__pyx_codeobj__242;
3187 static PyObject *__pyx_codeobj__244;
3188 static PyObject *__pyx_codeobj__246;
3189 static PyObject *__pyx_codeobj__248;
3190 static PyObject *__pyx_codeobj__250;
3191 static PyObject *__pyx_codeobj__252;
3192 static PyObject *__pyx_codeobj__254;
3193 static PyObject *__pyx_codeobj__256;
3194 static PyObject *__pyx_codeobj__258;
3195 static PyObject *__pyx_codeobj__260;
3196 static PyObject *__pyx_codeobj__262;
3197 static PyObject *__pyx_codeobj__264;
3198 static PyObject *__pyx_codeobj__266;
3199 static PyObject *__pyx_codeobj__268;
3200 static PyObject *__pyx_codeobj__270;
3201 static PyObject *__pyx_codeobj__272;
3202 static PyObject *__pyx_codeobj__274;
3203 /* Late includes */
3204 
3205 /* "ctransportCoefficients.pyx":2816
3206  * double csmoothedDirac "smoothedDirac"(double eps, double phi)
3207  * ##======================
3208  * def linearADR_ConstantCoefficientsEvaluate(const double M, # <<<<<<<<<<<<<<
3209  * np.ndarray A,
3210  * np.ndarray B,
3211  */
3212 
3213 /* Python wrapper */
3214 static PyObject *__pyx_pw_22ctransportCoefficients_1linearADR_ConstantCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
3215 static PyMethodDef __pyx_mdef_22ctransportCoefficients_1linearADR_ConstantCoefficientsEvaluate = {"linearADR_ConstantCoefficientsEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_1linearADR_ConstantCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
3216 static PyObject *__pyx_pw_22ctransportCoefficients_1linearADR_ConstantCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3217  double __pyx_v_M;
3218  PyArrayObject *__pyx_v_A = 0;
3219  PyArrayObject *__pyx_v_B = 0;
3220  double __pyx_v_C;
3221  double __pyx_v_t;
3222  PyArrayObject *__pyx_v_x = 0;
3223  PyArrayObject *__pyx_v_u = 0;
3224  PyArrayObject *__pyx_v_m = 0;
3225  PyArrayObject *__pyx_v_dm = 0;
3226  PyArrayObject *__pyx_v_f = 0;
3227  PyArrayObject *__pyx_v_df = 0;
3228  PyArrayObject *__pyx_v_a = 0;
3229  PyArrayObject *__pyx_v_r = 0;
3230  PyArrayObject *__pyx_v_dr = 0;
3231  int __pyx_lineno = 0;
3232  const char *__pyx_filename = NULL;
3233  int __pyx_clineno = 0;
3234  PyObject *__pyx_r = 0;
3235  __Pyx_RefNannyDeclarations
3236  __Pyx_RefNannySetupContext("linearADR_ConstantCoefficientsEvaluate (wrapper)", 0);
3237  {
3238  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_M,&__pyx_n_s_A,&__pyx_n_s_B,&__pyx_n_s_C,&__pyx_n_s_t,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_r,&__pyx_n_s_dr,0};
3239  PyObject* values[14] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0};
3240  if (unlikely(__pyx_kwds)) {
3241  Py_ssize_t kw_args;
3242  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
3243  switch (pos_args) {
3244  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
3245  CYTHON_FALLTHROUGH;
3246  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
3247  CYTHON_FALLTHROUGH;
3248  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
3249  CYTHON_FALLTHROUGH;
3250  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
3251  CYTHON_FALLTHROUGH;
3252  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
3253  CYTHON_FALLTHROUGH;
3254  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
3255  CYTHON_FALLTHROUGH;
3256  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
3257  CYTHON_FALLTHROUGH;
3258  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
3259  CYTHON_FALLTHROUGH;
3260  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
3261  CYTHON_FALLTHROUGH;
3262  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3263  CYTHON_FALLTHROUGH;
3264  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3265  CYTHON_FALLTHROUGH;
3266  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3267  CYTHON_FALLTHROUGH;
3268  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3269  CYTHON_FALLTHROUGH;
3270  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3271  CYTHON_FALLTHROUGH;
3272  case 0: break;
3273  default: goto __pyx_L5_argtuple_error;
3274  }
3275  kw_args = PyDict_Size(__pyx_kwds);
3276  switch (pos_args) {
3277  case 0:
3278  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_M)) != 0)) kw_args--;
3279  else goto __pyx_L5_argtuple_error;
3280  CYTHON_FALLTHROUGH;
3281  case 1:
3282  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_A)) != 0)) kw_args--;
3283  else {
3284  __Pyx_RaiseArgtupleInvalid("linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, 1); __PYX_ERR(0, 2816, __pyx_L3_error)
3285  }
3286  CYTHON_FALLTHROUGH;
3287  case 2:
3288  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_B)) != 0)) kw_args--;
3289  else {
3290  __Pyx_RaiseArgtupleInvalid("linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, 2); __PYX_ERR(0, 2816, __pyx_L3_error)
3291  }
3292  CYTHON_FALLTHROUGH;
3293  case 3:
3294  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_C)) != 0)) kw_args--;
3295  else {
3296  __Pyx_RaiseArgtupleInvalid("linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, 3); __PYX_ERR(0, 2816, __pyx_L3_error)
3297  }
3298  CYTHON_FALLTHROUGH;
3299  case 4:
3300  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
3301  else {
3302  __Pyx_RaiseArgtupleInvalid("linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, 4); __PYX_ERR(0, 2816, __pyx_L3_error)
3303  }
3304  CYTHON_FALLTHROUGH;
3305  case 5:
3306  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
3307  else {
3308  __Pyx_RaiseArgtupleInvalid("linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, 5); __PYX_ERR(0, 2816, __pyx_L3_error)
3309  }
3310  CYTHON_FALLTHROUGH;
3311  case 6:
3312  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
3313  else {
3314  __Pyx_RaiseArgtupleInvalid("linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, 6); __PYX_ERR(0, 2816, __pyx_L3_error)
3315  }
3316  CYTHON_FALLTHROUGH;
3317  case 7:
3318  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
3319  else {
3320  __Pyx_RaiseArgtupleInvalid("linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, 7); __PYX_ERR(0, 2816, __pyx_L3_error)
3321  }
3322  CYTHON_FALLTHROUGH;
3323  case 8:
3324  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
3325  else {
3326  __Pyx_RaiseArgtupleInvalid("linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, 8); __PYX_ERR(0, 2816, __pyx_L3_error)
3327  }
3328  CYTHON_FALLTHROUGH;
3329  case 9:
3330  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
3331  else {
3332  __Pyx_RaiseArgtupleInvalid("linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, 9); __PYX_ERR(0, 2816, __pyx_L3_error)
3333  }
3334  CYTHON_FALLTHROUGH;
3335  case 10:
3336  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
3337  else {
3338  __Pyx_RaiseArgtupleInvalid("linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, 10); __PYX_ERR(0, 2816, __pyx_L3_error)
3339  }
3340  CYTHON_FALLTHROUGH;
3341  case 11:
3342  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
3343  else {
3344  __Pyx_RaiseArgtupleInvalid("linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, 11); __PYX_ERR(0, 2816, __pyx_L3_error)
3345  }
3346  CYTHON_FALLTHROUGH;
3347  case 12:
3348  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
3349  else {
3350  __Pyx_RaiseArgtupleInvalid("linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, 12); __PYX_ERR(0, 2816, __pyx_L3_error)
3351  }
3352  CYTHON_FALLTHROUGH;
3353  case 13:
3354  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
3355  else {
3356  __Pyx_RaiseArgtupleInvalid("linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, 13); __PYX_ERR(0, 2816, __pyx_L3_error)
3357  }
3358  }
3359  if (unlikely(kw_args > 0)) {
3360  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "linearADR_ConstantCoefficientsEvaluate") < 0)) __PYX_ERR(0, 2816, __pyx_L3_error)
3361  }
3362  } else if (PyTuple_GET_SIZE(__pyx_args) != 14) {
3363  goto __pyx_L5_argtuple_error;
3364  } else {
3365  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3366  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3367  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3368  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3369  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3370  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
3371  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
3372  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
3373  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
3374  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
3375  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
3376  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
3377  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
3378  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
3379  }
3380  __pyx_v_M = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_M == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2816, __pyx_L3_error)
3381  __pyx_v_A = ((PyArrayObject *)values[1]);
3382  __pyx_v_B = ((PyArrayObject *)values[2]);
3383  __pyx_v_C = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_C == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2819, __pyx_L3_error)
3384  __pyx_v_t = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_t == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2820, __pyx_L3_error)
3385  __pyx_v_x = ((PyArrayObject *)values[5]);
3386  __pyx_v_u = ((PyArrayObject *)values[6]);
3387  __pyx_v_m = ((PyArrayObject *)values[7]);
3388  __pyx_v_dm = ((PyArrayObject *)values[8]);
3389  __pyx_v_f = ((PyArrayObject *)values[9]);
3390  __pyx_v_df = ((PyArrayObject *)values[10]);
3391  __pyx_v_a = ((PyArrayObject *)values[11]);
3392  __pyx_v_r = ((PyArrayObject *)values[12]);
3393  __pyx_v_dr = ((PyArrayObject *)values[13]);
3394  }
3395  goto __pyx_L4_argument_unpacking_done;
3396  __pyx_L5_argtuple_error:;
3397  __Pyx_RaiseArgtupleInvalid("linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2816, __pyx_L3_error)
3398  __pyx_L3_error:;
3399  __Pyx_AddTraceback("ctransportCoefficients.linearADR_ConstantCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
3400  __Pyx_RefNannyFinishContext();
3401  return NULL;
3402  __pyx_L4_argument_unpacking_done:;
3403  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_A), __pyx_ptype_5numpy_ndarray, 1, "A", 0))) __PYX_ERR(0, 2817, __pyx_L1_error)
3404  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_B), __pyx_ptype_5numpy_ndarray, 1, "B", 0))) __PYX_ERR(0, 2818, __pyx_L1_error)
3405  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1, "x", 0))) __PYX_ERR(0, 2821, __pyx_L1_error)
3406  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 2822, __pyx_L1_error)
3407  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 2823, __pyx_L1_error)
3408  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 2824, __pyx_L1_error)
3409  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 2825, __pyx_L1_error)
3410  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 2826, __pyx_L1_error)
3411  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 2827, __pyx_L1_error)
3412  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1, "r", 0))) __PYX_ERR(0, 2828, __pyx_L1_error)
3413  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1, "dr", 0))) __PYX_ERR(0, 2829, __pyx_L1_error)
3414  __pyx_r = __pyx_pf_22ctransportCoefficients_linearADR_ConstantCoefficientsEvaluate(__pyx_self, __pyx_v_M, __pyx_v_A, __pyx_v_B, __pyx_v_C, __pyx_v_t, __pyx_v_x, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_r, __pyx_v_dr);
3415 
3416  /* function exit code */
3417  goto __pyx_L0;
3418  __pyx_L1_error:;
3419  __pyx_r = NULL;
3420  __pyx_L0:;
3421  __Pyx_RefNannyFinishContext();
3422  return __pyx_r;
3423 }
3424 
3425 static PyObject *__pyx_pf_22ctransportCoefficients_linearADR_ConstantCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_M, PyArrayObject *__pyx_v_A, PyArrayObject *__pyx_v_B, double __pyx_v_C, double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr) {
3426  PyObject *__pyx_r = NULL;
3427  __Pyx_RefNannyDeclarations
3428  PyObject *__pyx_t_1 = NULL;
3429  PyObject *__pyx_t_2 = NULL;
3430  PyObject *__pyx_t_3 = NULL;
3431  int __pyx_t_4;
3432  int __pyx_lineno = 0;
3433  const char *__pyx_filename = NULL;
3434  int __pyx_clineno = 0;
3435  __Pyx_RefNannySetupContext("linearADR_ConstantCoefficientsEvaluate", 0);
3436 
3437  /* "ctransportCoefficients.pyx":2830
3438  * np.ndarray r,
3439  * np.ndarray dr):
3440  * clinearADR_ConstantCoefficientsEvaluate(x.size/x.shape[x.ndim-1], # <<<<<<<<<<<<<<
3441  * f.shape[f.ndim-1],
3442  * M,
3443  */
3444  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_x), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2830, __pyx_L1_error)
3445  __Pyx_GOTREF(__pyx_t_1);
3446  __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_x->dimensions[(__pyx_v_x->nd - 1)])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2830, __pyx_L1_error)
3447  __Pyx_GOTREF(__pyx_t_2);
3448  __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2830, __pyx_L1_error)
3449  __Pyx_GOTREF(__pyx_t_3);
3450  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3451  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3452  __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2830, __pyx_L1_error)
3453  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
3454 
3455  /* "ctransportCoefficients.pyx":2845
3456  * <double*> a.data,
3457  * <double*> r.data,
3458  * <double*> dr.data) # <<<<<<<<<<<<<<
3459  * def groundwaterTransportCoefficientsEvaluate(const double omega,
3460  * const double d,
3461  */
3462  linearADR_ConstantCoefficientsEvaluate(__pyx_t_4, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_M, ((double *)__pyx_v_A->data), ((double *)__pyx_v_B->data), __pyx_v_C, __pyx_v_t, ((double *)__pyx_v_x->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_r->data), ((double *)__pyx_v_dr->data));
3463 
3464  /* "ctransportCoefficients.pyx":2816
3465  * double csmoothedDirac "smoothedDirac"(double eps, double phi)
3466  * ##======================
3467  * def linearADR_ConstantCoefficientsEvaluate(const double M, # <<<<<<<<<<<<<<
3468  * np.ndarray A,
3469  * np.ndarray B,
3470  */
3471 
3472  /* function exit code */
3473  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3474  goto __pyx_L0;
3475  __pyx_L1_error:;
3476  __Pyx_XDECREF(__pyx_t_1);
3477  __Pyx_XDECREF(__pyx_t_2);
3478  __Pyx_XDECREF(__pyx_t_3);
3479  __Pyx_AddTraceback("ctransportCoefficients.linearADR_ConstantCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
3480  __pyx_r = NULL;
3481  __pyx_L0:;
3482  __Pyx_XGIVEREF(__pyx_r);
3483  __Pyx_RefNannyFinishContext();
3484  return __pyx_r;
3485 }
3486 
3487 /* "ctransportCoefficients.pyx":2846
3488  * <double*> r.data,
3489  * <double*> dr.data)
3490  * def groundwaterTransportCoefficientsEvaluate(const double omega, # <<<<<<<<<<<<<<
3491  * const double d,
3492  * const double alpha_L,
3493  */
3494 
3495 /* Python wrapper */
3496 static PyObject *__pyx_pw_22ctransportCoefficients_3groundwaterTransportCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
3497 static PyMethodDef __pyx_mdef_22ctransportCoefficients_3groundwaterTransportCoefficientsEvaluate = {"groundwaterTransportCoefficientsEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_3groundwaterTransportCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
3498 static PyObject *__pyx_pw_22ctransportCoefficients_3groundwaterTransportCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3499  double __pyx_v_omega;
3500  double __pyx_v_d;
3501  double __pyx_v_alpha_L;
3502  double __pyx_v_alpha_T;
3503  PyArrayObject *__pyx_v_v = 0;
3504  PyArrayObject *__pyx_v_u = 0;
3505  PyArrayObject *__pyx_v_m = 0;
3506  PyArrayObject *__pyx_v_dm = 0;
3507  PyArrayObject *__pyx_v_f = 0;
3508  PyArrayObject *__pyx_v_df = 0;
3509  PyArrayObject *__pyx_v_a = 0;
3510  int __pyx_lineno = 0;
3511  const char *__pyx_filename = NULL;
3512  int __pyx_clineno = 0;
3513  PyObject *__pyx_r = 0;
3514  __Pyx_RefNannyDeclarations
3515  __Pyx_RefNannySetupContext("groundwaterTransportCoefficientsEvaluate (wrapper)", 0);
3516  {
3517  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_omega,&__pyx_n_s_d,&__pyx_n_s_alpha_L,&__pyx_n_s_alpha_T,&__pyx_n_s_v,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,0};
3518  PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0};
3519  if (unlikely(__pyx_kwds)) {
3520  Py_ssize_t kw_args;
3521  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
3522  switch (pos_args) {
3523  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
3524  CYTHON_FALLTHROUGH;
3525  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
3526  CYTHON_FALLTHROUGH;
3527  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
3528  CYTHON_FALLTHROUGH;
3529  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
3530  CYTHON_FALLTHROUGH;
3531  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
3532  CYTHON_FALLTHROUGH;
3533  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
3534  CYTHON_FALLTHROUGH;
3535  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3536  CYTHON_FALLTHROUGH;
3537  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3538  CYTHON_FALLTHROUGH;
3539  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3540  CYTHON_FALLTHROUGH;
3541  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3542  CYTHON_FALLTHROUGH;
3543  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3544  CYTHON_FALLTHROUGH;
3545  case 0: break;
3546  default: goto __pyx_L5_argtuple_error;
3547  }
3548  kw_args = PyDict_Size(__pyx_kwds);
3549  switch (pos_args) {
3550  case 0:
3551  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_omega)) != 0)) kw_args--;
3552  else goto __pyx_L5_argtuple_error;
3553  CYTHON_FALLTHROUGH;
3554  case 1:
3555  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_d)) != 0)) kw_args--;
3556  else {
3557  __Pyx_RaiseArgtupleInvalid("groundwaterTransportCoefficientsEvaluate", 1, 11, 11, 1); __PYX_ERR(0, 2846, __pyx_L3_error)
3558  }
3559  CYTHON_FALLTHROUGH;
3560  case 2:
3561  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha_L)) != 0)) kw_args--;
3562  else {
3563  __Pyx_RaiseArgtupleInvalid("groundwaterTransportCoefficientsEvaluate", 1, 11, 11, 2); __PYX_ERR(0, 2846, __pyx_L3_error)
3564  }
3565  CYTHON_FALLTHROUGH;
3566  case 3:
3567  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha_T)) != 0)) kw_args--;
3568  else {
3569  __Pyx_RaiseArgtupleInvalid("groundwaterTransportCoefficientsEvaluate", 1, 11, 11, 3); __PYX_ERR(0, 2846, __pyx_L3_error)
3570  }
3571  CYTHON_FALLTHROUGH;
3572  case 4:
3573  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
3574  else {
3575  __Pyx_RaiseArgtupleInvalid("groundwaterTransportCoefficientsEvaluate", 1, 11, 11, 4); __PYX_ERR(0, 2846, __pyx_L3_error)
3576  }
3577  CYTHON_FALLTHROUGH;
3578  case 5:
3579  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
3580  else {
3581  __Pyx_RaiseArgtupleInvalid("groundwaterTransportCoefficientsEvaluate", 1, 11, 11, 5); __PYX_ERR(0, 2846, __pyx_L3_error)
3582  }
3583  CYTHON_FALLTHROUGH;
3584  case 6:
3585  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
3586  else {
3587  __Pyx_RaiseArgtupleInvalid("groundwaterTransportCoefficientsEvaluate", 1, 11, 11, 6); __PYX_ERR(0, 2846, __pyx_L3_error)
3588  }
3589  CYTHON_FALLTHROUGH;
3590  case 7:
3591  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
3592  else {
3593  __Pyx_RaiseArgtupleInvalid("groundwaterTransportCoefficientsEvaluate", 1, 11, 11, 7); __PYX_ERR(0, 2846, __pyx_L3_error)
3594  }
3595  CYTHON_FALLTHROUGH;
3596  case 8:
3597  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
3598  else {
3599  __Pyx_RaiseArgtupleInvalid("groundwaterTransportCoefficientsEvaluate", 1, 11, 11, 8); __PYX_ERR(0, 2846, __pyx_L3_error)
3600  }
3601  CYTHON_FALLTHROUGH;
3602  case 9:
3603  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
3604  else {
3605  __Pyx_RaiseArgtupleInvalid("groundwaterTransportCoefficientsEvaluate", 1, 11, 11, 9); __PYX_ERR(0, 2846, __pyx_L3_error)
3606  }
3607  CYTHON_FALLTHROUGH;
3608  case 10:
3609  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
3610  else {
3611  __Pyx_RaiseArgtupleInvalid("groundwaterTransportCoefficientsEvaluate", 1, 11, 11, 10); __PYX_ERR(0, 2846, __pyx_L3_error)
3612  }
3613  }
3614  if (unlikely(kw_args > 0)) {
3615  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "groundwaterTransportCoefficientsEvaluate") < 0)) __PYX_ERR(0, 2846, __pyx_L3_error)
3616  }
3617  } else if (PyTuple_GET_SIZE(__pyx_args) != 11) {
3618  goto __pyx_L5_argtuple_error;
3619  } else {
3620  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3621  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3622  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3623  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3624  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3625  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
3626  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
3627  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
3628  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
3629  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
3630  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
3631  }
3632  __pyx_v_omega = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_omega == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2846, __pyx_L3_error)
3633  __pyx_v_d = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_d == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2847, __pyx_L3_error)
3634  __pyx_v_alpha_L = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_alpha_L == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2848, __pyx_L3_error)
3635  __pyx_v_alpha_T = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_alpha_T == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2849, __pyx_L3_error)
3636  __pyx_v_v = ((PyArrayObject *)values[4]);
3637  __pyx_v_u = ((PyArrayObject *)values[5]);
3638  __pyx_v_m = ((PyArrayObject *)values[6]);
3639  __pyx_v_dm = ((PyArrayObject *)values[7]);
3640  __pyx_v_f = ((PyArrayObject *)values[8]);
3641  __pyx_v_df = ((PyArrayObject *)values[9]);
3642  __pyx_v_a = ((PyArrayObject *)values[10]);
3643  }
3644  goto __pyx_L4_argument_unpacking_done;
3645  __pyx_L5_argtuple_error:;
3646  __Pyx_RaiseArgtupleInvalid("groundwaterTransportCoefficientsEvaluate", 1, 11, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2846, __pyx_L3_error)
3647  __pyx_L3_error:;
3648  __Pyx_AddTraceback("ctransportCoefficients.groundwaterTransportCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
3649  __Pyx_RefNannyFinishContext();
3650  return NULL;
3651  __pyx_L4_argument_unpacking_done:;
3652  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 2850, __pyx_L1_error)
3653  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 2851, __pyx_L1_error)
3654  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 2852, __pyx_L1_error)
3655  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 2853, __pyx_L1_error)
3656  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 2854, __pyx_L1_error)
3657  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 2855, __pyx_L1_error)
3658  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 2856, __pyx_L1_error)
3659  __pyx_r = __pyx_pf_22ctransportCoefficients_2groundwaterTransportCoefficientsEvaluate(__pyx_self, __pyx_v_omega, __pyx_v_d, __pyx_v_alpha_L, __pyx_v_alpha_T, __pyx_v_v, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a);
3660 
3661  /* function exit code */
3662  goto __pyx_L0;
3663  __pyx_L1_error:;
3664  __pyx_r = NULL;
3665  __pyx_L0:;
3666  __Pyx_RefNannyFinishContext();
3667  return __pyx_r;
3668 }
3669 
3670 static PyObject *__pyx_pf_22ctransportCoefficients_2groundwaterTransportCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_omega, double __pyx_v_d, double __pyx_v_alpha_L, double __pyx_v_alpha_T, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a) {
3671  PyObject *__pyx_r = NULL;
3672  __Pyx_RefNannyDeclarations
3673  PyObject *__pyx_t_1 = NULL;
3674  PyObject *__pyx_t_2 = NULL;
3675  PyObject *__pyx_t_3 = NULL;
3676  int __pyx_t_4;
3677  int __pyx_lineno = 0;
3678  const char *__pyx_filename = NULL;
3679  int __pyx_clineno = 0;
3680  __Pyx_RefNannySetupContext("groundwaterTransportCoefficientsEvaluate", 0);
3681 
3682  /* "ctransportCoefficients.pyx":2857
3683  * np.ndarray df,
3684  * np.ndarray a):
3685  * cgroundwaterTransportCoefficientsEvaluate(f.size/f.shape[f.ndim-1], # <<<<<<<<<<<<<<
3686  * f.shape[f.ndim-1],
3687  * omega,
3688  */
3689  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_f), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2857, __pyx_L1_error)
3690  __Pyx_GOTREF(__pyx_t_1);
3691  __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2857, __pyx_L1_error)
3692  __Pyx_GOTREF(__pyx_t_2);
3693  __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2857, __pyx_L1_error)
3694  __Pyx_GOTREF(__pyx_t_3);
3695  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3696  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3697  __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2857, __pyx_L1_error)
3698  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
3699 
3700  /* "ctransportCoefficients.pyx":2869
3701  * <double*> f.data,
3702  * <double*> df.data,
3703  * <double*> a.data) # <<<<<<<<<<<<<<
3704  * def groundwaterBiodegradation01EvaluateFC(const double omega,
3705  * const double d_c,
3706  */
3707  groundwaterTransportCoefficientsEvaluate(__pyx_t_4, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_omega, __pyx_v_d, __pyx_v_alpha_L, __pyx_v_alpha_T, ((double *)__pyx_v_v->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data));
3708 
3709  /* "ctransportCoefficients.pyx":2846
3710  * <double*> r.data,
3711  * <double*> dr.data)
3712  * def groundwaterTransportCoefficientsEvaluate(const double omega, # <<<<<<<<<<<<<<
3713  * const double d,
3714  * const double alpha_L,
3715  */
3716 
3717  /* function exit code */
3718  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3719  goto __pyx_L0;
3720  __pyx_L1_error:;
3721  __Pyx_XDECREF(__pyx_t_1);
3722  __Pyx_XDECREF(__pyx_t_2);
3723  __Pyx_XDECREF(__pyx_t_3);
3724  __Pyx_AddTraceback("ctransportCoefficients.groundwaterTransportCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
3725  __pyx_r = NULL;
3726  __pyx_L0:;
3727  __Pyx_XGIVEREF(__pyx_r);
3728  __Pyx_RefNannyFinishContext();
3729  return __pyx_r;
3730 }
3731 
3732 /* "ctransportCoefficients.pyx":2870
3733  * <double*> df.data,
3734  * <double*> a.data)
3735  * def groundwaterBiodegradation01EvaluateFC(const double omega, # <<<<<<<<<<<<<<
3736  * const double d_c,
3737  * const double d_e,
3738  */
3739 
3740 /* Python wrapper */
3741 static PyObject *__pyx_pw_22ctransportCoefficients_5groundwaterBiodegradation01EvaluateFC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
3742 static PyMethodDef __pyx_mdef_22ctransportCoefficients_5groundwaterBiodegradation01EvaluateFC = {"groundwaterBiodegradation01EvaluateFC", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_5groundwaterBiodegradation01EvaluateFC, METH_VARARGS|METH_KEYWORDS, 0};
3743 static PyObject *__pyx_pw_22ctransportCoefficients_5groundwaterBiodegradation01EvaluateFC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3744  double __pyx_v_omega;
3745  double __pyx_v_d_c;
3746  double __pyx_v_d_e;
3747  double __pyx_v_alpha_L;
3748  double __pyx_v_alpha_T;
3749  double __pyx_v_Kox_max;
3750  double __pyx_v_Kox_C;
3751  double __pyx_v_Kox_E;
3752  double __pyx_v_Kox_X;
3753  double __pyx_v_Yield;
3754  double __pyx_v_k_d;
3755  PyArrayObject *__pyx_v_v = 0;
3756  PyArrayObject *__pyx_v_c_c = 0;
3757  PyArrayObject *__pyx_v_c_e = 0;
3758  PyArrayObject *__pyx_v_c_x = 0;
3759  PyArrayObject *__pyx_v_m_c = 0;
3760  PyArrayObject *__pyx_v_dm_c = 0;
3761  PyArrayObject *__pyx_v_m_e = 0;
3762  PyArrayObject *__pyx_v_dm_e = 0;
3763  PyArrayObject *__pyx_v_m_x = 0;
3764  PyArrayObject *__pyx_v_dm_x = 0;
3765  PyArrayObject *__pyx_v_f_c = 0;
3766  PyArrayObject *__pyx_v_df_c = 0;
3767  PyArrayObject *__pyx_v_f_e = 0;
3768  PyArrayObject *__pyx_v_df_e = 0;
3769  PyArrayObject *__pyx_v_a_c = 0;
3770  PyArrayObject *__pyx_v_a_e = 0;
3771  PyArrayObject *__pyx_v_r_c = 0;
3772  PyArrayObject *__pyx_v_dr_c_dc = 0;
3773  PyArrayObject *__pyx_v_dr_c_de = 0;
3774  PyArrayObject *__pyx_v_dr_c_dx = 0;
3775  PyArrayObject *__pyx_v_r_e = 0;
3776  PyArrayObject *__pyx_v_dr_e_dc = 0;
3777  PyArrayObject *__pyx_v_dr_e_de = 0;
3778  PyArrayObject *__pyx_v_dr_e_dx = 0;
3779  PyArrayObject *__pyx_v_r_x = 0;
3780  PyArrayObject *__pyx_v_dr_x_dc = 0;
3781  PyArrayObject *__pyx_v_dr_x_de = 0;
3782  PyArrayObject *__pyx_v_dr_x_dx = 0;
3783  int __pyx_lineno = 0;
3784  const char *__pyx_filename = NULL;
3785  int __pyx_clineno = 0;
3786  PyObject *__pyx_r = 0;
3787  __Pyx_RefNannyDeclarations
3788  __Pyx_RefNannySetupContext("groundwaterBiodegradation01EvaluateFC (wrapper)", 0);
3789  {
3790  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_omega,&__pyx_n_s_d_c,&__pyx_n_s_d_e,&__pyx_n_s_alpha_L,&__pyx_n_s_alpha_T,&__pyx_n_s_Kox_max,&__pyx_n_s_Kox_C,&__pyx_n_s_Kox_E,&__pyx_n_s_Kox_X,&__pyx_n_s_Yield,&__pyx_n_s_k_d,&__pyx_n_s_v,&__pyx_n_s_c_c,&__pyx_n_s_c_e,&__pyx_n_s_c_x,&__pyx_n_s_m_c,&__pyx_n_s_dm_c,&__pyx_n_s_m_e,&__pyx_n_s_dm_e,&__pyx_n_s_m_x,&__pyx_n_s_dm_x,&__pyx_n_s_f_c,&__pyx_n_s_df_c,&__pyx_n_s_f_e,&__pyx_n_s_df_e,&__pyx_n_s_a_c,&__pyx_n_s_a_e,&__pyx_n_s_r_c,&__pyx_n_s_dr_c_dc,&__pyx_n_s_dr_c_de,&__pyx_n_s_dr_c_dx,&__pyx_n_s_r_e,&__pyx_n_s_dr_e_dc,&__pyx_n_s_dr_e_de,&__pyx_n_s_dr_e_dx,&__pyx_n_s_r_x,&__pyx_n_s_dr_x_dc,&__pyx_n_s_dr_x_de,&__pyx_n_s_dr_x_dx,0};
3791  PyObject* values[39] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
3792  if (unlikely(__pyx_kwds)) {
3793  Py_ssize_t kw_args;
3794  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
3795  switch (pos_args) {
3796  case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
3797  CYTHON_FALLTHROUGH;
3798  case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
3799  CYTHON_FALLTHROUGH;
3800  case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
3801  CYTHON_FALLTHROUGH;
3802  case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
3803  CYTHON_FALLTHROUGH;
3804  case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
3805  CYTHON_FALLTHROUGH;
3806  case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
3807  CYTHON_FALLTHROUGH;
3808  case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
3809  CYTHON_FALLTHROUGH;
3810  case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
3811  CYTHON_FALLTHROUGH;
3812  case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
3813  CYTHON_FALLTHROUGH;
3814  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
3815  CYTHON_FALLTHROUGH;
3816  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
3817  CYTHON_FALLTHROUGH;
3818  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
3819  CYTHON_FALLTHROUGH;
3820  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
3821  CYTHON_FALLTHROUGH;
3822  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
3823  CYTHON_FALLTHROUGH;
3824  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
3825  CYTHON_FALLTHROUGH;
3826  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
3827  CYTHON_FALLTHROUGH;
3828  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
3829  CYTHON_FALLTHROUGH;
3830  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
3831  CYTHON_FALLTHROUGH;
3832  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
3833  CYTHON_FALLTHROUGH;
3834  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
3835  CYTHON_FALLTHROUGH;
3836  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
3837  CYTHON_FALLTHROUGH;
3838  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
3839  CYTHON_FALLTHROUGH;
3840  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
3841  CYTHON_FALLTHROUGH;
3842  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
3843  CYTHON_FALLTHROUGH;
3844  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
3845  CYTHON_FALLTHROUGH;
3846  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
3847  CYTHON_FALLTHROUGH;
3848  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
3849  CYTHON_FALLTHROUGH;
3850  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
3851  CYTHON_FALLTHROUGH;
3852  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
3853  CYTHON_FALLTHROUGH;
3854  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
3855  CYTHON_FALLTHROUGH;
3856  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
3857  CYTHON_FALLTHROUGH;
3858  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
3859  CYTHON_FALLTHROUGH;
3860  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
3861  CYTHON_FALLTHROUGH;
3862  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
3863  CYTHON_FALLTHROUGH;
3864  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3865  CYTHON_FALLTHROUGH;
3866  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3867  CYTHON_FALLTHROUGH;
3868  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3869  CYTHON_FALLTHROUGH;
3870  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3871  CYTHON_FALLTHROUGH;
3872  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3873  CYTHON_FALLTHROUGH;
3874  case 0: break;
3875  default: goto __pyx_L5_argtuple_error;
3876  }
3877  kw_args = PyDict_Size(__pyx_kwds);
3878  switch (pos_args) {
3879  case 0:
3880  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_omega)) != 0)) kw_args--;
3881  else goto __pyx_L5_argtuple_error;
3882  CYTHON_FALLTHROUGH;
3883  case 1:
3884  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_d_c)) != 0)) kw_args--;
3885  else {
3886  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 1); __PYX_ERR(0, 2870, __pyx_L3_error)
3887  }
3888  CYTHON_FALLTHROUGH;
3889  case 2:
3890  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_d_e)) != 0)) kw_args--;
3891  else {
3892  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 2); __PYX_ERR(0, 2870, __pyx_L3_error)
3893  }
3894  CYTHON_FALLTHROUGH;
3895  case 3:
3896  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha_L)) != 0)) kw_args--;
3897  else {
3898  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 3); __PYX_ERR(0, 2870, __pyx_L3_error)
3899  }
3900  CYTHON_FALLTHROUGH;
3901  case 4:
3902  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha_T)) != 0)) kw_args--;
3903  else {
3904  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 4); __PYX_ERR(0, 2870, __pyx_L3_error)
3905  }
3906  CYTHON_FALLTHROUGH;
3907  case 5:
3908  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Kox_max)) != 0)) kw_args--;
3909  else {
3910  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 5); __PYX_ERR(0, 2870, __pyx_L3_error)
3911  }
3912  CYTHON_FALLTHROUGH;
3913  case 6:
3914  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Kox_C)) != 0)) kw_args--;
3915  else {
3916  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 6); __PYX_ERR(0, 2870, __pyx_L3_error)
3917  }
3918  CYTHON_FALLTHROUGH;
3919  case 7:
3920  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Kox_E)) != 0)) kw_args--;
3921  else {
3922  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 7); __PYX_ERR(0, 2870, __pyx_L3_error)
3923  }
3924  CYTHON_FALLTHROUGH;
3925  case 8:
3926  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Kox_X)) != 0)) kw_args--;
3927  else {
3928  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 8); __PYX_ERR(0, 2870, __pyx_L3_error)
3929  }
3930  CYTHON_FALLTHROUGH;
3931  case 9:
3932  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Yield)) != 0)) kw_args--;
3933  else {
3934  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 9); __PYX_ERR(0, 2870, __pyx_L3_error)
3935  }
3936  CYTHON_FALLTHROUGH;
3937  case 10:
3938  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_k_d)) != 0)) kw_args--;
3939  else {
3940  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 10); __PYX_ERR(0, 2870, __pyx_L3_error)
3941  }
3942  CYTHON_FALLTHROUGH;
3943  case 11:
3944  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
3945  else {
3946  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 11); __PYX_ERR(0, 2870, __pyx_L3_error)
3947  }
3948  CYTHON_FALLTHROUGH;
3949  case 12:
3950  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_c)) != 0)) kw_args--;
3951  else {
3952  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 12); __PYX_ERR(0, 2870, __pyx_L3_error)
3953  }
3954  CYTHON_FALLTHROUGH;
3955  case 13:
3956  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_e)) != 0)) kw_args--;
3957  else {
3958  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 13); __PYX_ERR(0, 2870, __pyx_L3_error)
3959  }
3960  CYTHON_FALLTHROUGH;
3961  case 14:
3962  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_x)) != 0)) kw_args--;
3963  else {
3964  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 14); __PYX_ERR(0, 2870, __pyx_L3_error)
3965  }
3966  CYTHON_FALLTHROUGH;
3967  case 15:
3968  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_c)) != 0)) kw_args--;
3969  else {
3970  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 15); __PYX_ERR(0, 2870, __pyx_L3_error)
3971  }
3972  CYTHON_FALLTHROUGH;
3973  case 16:
3974  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_c)) != 0)) kw_args--;
3975  else {
3976  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 16); __PYX_ERR(0, 2870, __pyx_L3_error)
3977  }
3978  CYTHON_FALLTHROUGH;
3979  case 17:
3980  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_e)) != 0)) kw_args--;
3981  else {
3982  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 17); __PYX_ERR(0, 2870, __pyx_L3_error)
3983  }
3984  CYTHON_FALLTHROUGH;
3985  case 18:
3986  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_e)) != 0)) kw_args--;
3987  else {
3988  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 18); __PYX_ERR(0, 2870, __pyx_L3_error)
3989  }
3990  CYTHON_FALLTHROUGH;
3991  case 19:
3992  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_x)) != 0)) kw_args--;
3993  else {
3994  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 19); __PYX_ERR(0, 2870, __pyx_L3_error)
3995  }
3996  CYTHON_FALLTHROUGH;
3997  case 20:
3998  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_x)) != 0)) kw_args--;
3999  else {
4000  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 20); __PYX_ERR(0, 2870, __pyx_L3_error)
4001  }
4002  CYTHON_FALLTHROUGH;
4003  case 21:
4004  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_c)) != 0)) kw_args--;
4005  else {
4006  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 21); __PYX_ERR(0, 2870, __pyx_L3_error)
4007  }
4008  CYTHON_FALLTHROUGH;
4009  case 22:
4010  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_c)) != 0)) kw_args--;
4011  else {
4012  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 22); __PYX_ERR(0, 2870, __pyx_L3_error)
4013  }
4014  CYTHON_FALLTHROUGH;
4015  case 23:
4016  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_e)) != 0)) kw_args--;
4017  else {
4018  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 23); __PYX_ERR(0, 2870, __pyx_L3_error)
4019  }
4020  CYTHON_FALLTHROUGH;
4021  case 24:
4022  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_e)) != 0)) kw_args--;
4023  else {
4024  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 24); __PYX_ERR(0, 2870, __pyx_L3_error)
4025  }
4026  CYTHON_FALLTHROUGH;
4027  case 25:
4028  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_c)) != 0)) kw_args--;
4029  else {
4030  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 25); __PYX_ERR(0, 2870, __pyx_L3_error)
4031  }
4032  CYTHON_FALLTHROUGH;
4033  case 26:
4034  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_e)) != 0)) kw_args--;
4035  else {
4036  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 26); __PYX_ERR(0, 2870, __pyx_L3_error)
4037  }
4038  CYTHON_FALLTHROUGH;
4039  case 27:
4040  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_c)) != 0)) kw_args--;
4041  else {
4042  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 27); __PYX_ERR(0, 2870, __pyx_L3_error)
4043  }
4044  CYTHON_FALLTHROUGH;
4045  case 28:
4046  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_c_dc)) != 0)) kw_args--;
4047  else {
4048  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 28); __PYX_ERR(0, 2870, __pyx_L3_error)
4049  }
4050  CYTHON_FALLTHROUGH;
4051  case 29:
4052  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_c_de)) != 0)) kw_args--;
4053  else {
4054  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 29); __PYX_ERR(0, 2870, __pyx_L3_error)
4055  }
4056  CYTHON_FALLTHROUGH;
4057  case 30:
4058  if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_c_dx)) != 0)) kw_args--;
4059  else {
4060  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 30); __PYX_ERR(0, 2870, __pyx_L3_error)
4061  }
4062  CYTHON_FALLTHROUGH;
4063  case 31:
4064  if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_e)) != 0)) kw_args--;
4065  else {
4066  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 31); __PYX_ERR(0, 2870, __pyx_L3_error)
4067  }
4068  CYTHON_FALLTHROUGH;
4069  case 32:
4070  if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_e_dc)) != 0)) kw_args--;
4071  else {
4072  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 32); __PYX_ERR(0, 2870, __pyx_L3_error)
4073  }
4074  CYTHON_FALLTHROUGH;
4075  case 33:
4076  if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_e_de)) != 0)) kw_args--;
4077  else {
4078  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 33); __PYX_ERR(0, 2870, __pyx_L3_error)
4079  }
4080  CYTHON_FALLTHROUGH;
4081  case 34:
4082  if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_e_dx)) != 0)) kw_args--;
4083  else {
4084  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 34); __PYX_ERR(0, 2870, __pyx_L3_error)
4085  }
4086  CYTHON_FALLTHROUGH;
4087  case 35:
4088  if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_x)) != 0)) kw_args--;
4089  else {
4090  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 35); __PYX_ERR(0, 2870, __pyx_L3_error)
4091  }
4092  CYTHON_FALLTHROUGH;
4093  case 36:
4094  if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_x_dc)) != 0)) kw_args--;
4095  else {
4096  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 36); __PYX_ERR(0, 2870, __pyx_L3_error)
4097  }
4098  CYTHON_FALLTHROUGH;
4099  case 37:
4100  if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_x_de)) != 0)) kw_args--;
4101  else {
4102  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 37); __PYX_ERR(0, 2870, __pyx_L3_error)
4103  }
4104  CYTHON_FALLTHROUGH;
4105  case 38:
4106  if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_x_dx)) != 0)) kw_args--;
4107  else {
4108  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 38); __PYX_ERR(0, 2870, __pyx_L3_error)
4109  }
4110  }
4111  if (unlikely(kw_args > 0)) {
4112  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "groundwaterBiodegradation01EvaluateFC") < 0)) __PYX_ERR(0, 2870, __pyx_L3_error)
4113  }
4114  } else if (PyTuple_GET_SIZE(__pyx_args) != 39) {
4115  goto __pyx_L5_argtuple_error;
4116  } else {
4117  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4118  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4119  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4120  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4121  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4122  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4123  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4124  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
4125  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
4126  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
4127  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
4128  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
4129  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
4130  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
4131  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
4132  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
4133  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
4134  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
4135  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
4136  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
4137  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
4138  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
4139  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
4140  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
4141  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
4142  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
4143  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
4144  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
4145  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
4146  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
4147  values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
4148  values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
4149  values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
4150  values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
4151  values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
4152  values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
4153  values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
4154  values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
4155  values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
4156  }
4157  __pyx_v_omega = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_omega == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2870, __pyx_L3_error)
4158  __pyx_v_d_c = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_d_c == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2871, __pyx_L3_error)
4159  __pyx_v_d_e = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_d_e == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2872, __pyx_L3_error)
4160  __pyx_v_alpha_L = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_alpha_L == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2873, __pyx_L3_error)
4161  __pyx_v_alpha_T = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_alpha_T == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2874, __pyx_L3_error)
4162  __pyx_v_Kox_max = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_Kox_max == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2875, __pyx_L3_error)
4163  __pyx_v_Kox_C = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_Kox_C == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2876, __pyx_L3_error)
4164  __pyx_v_Kox_E = __pyx_PyFloat_AsDouble(values[7]); if (unlikely((__pyx_v_Kox_E == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2877, __pyx_L3_error)
4165  __pyx_v_Kox_X = __pyx_PyFloat_AsDouble(values[8]); if (unlikely((__pyx_v_Kox_X == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2878, __pyx_L3_error)
4166  __pyx_v_Yield = __pyx_PyFloat_AsDouble(values[9]); if (unlikely((__pyx_v_Yield == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2879, __pyx_L3_error)
4167  __pyx_v_k_d = __pyx_PyFloat_AsDouble(values[10]); if (unlikely((__pyx_v_k_d == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2880, __pyx_L3_error)
4168  __pyx_v_v = ((PyArrayObject *)values[11]);
4169  __pyx_v_c_c = ((PyArrayObject *)values[12]);
4170  __pyx_v_c_e = ((PyArrayObject *)values[13]);
4171  __pyx_v_c_x = ((PyArrayObject *)values[14]);
4172  __pyx_v_m_c = ((PyArrayObject *)values[15]);
4173  __pyx_v_dm_c = ((PyArrayObject *)values[16]);
4174  __pyx_v_m_e = ((PyArrayObject *)values[17]);
4175  __pyx_v_dm_e = ((PyArrayObject *)values[18]);
4176  __pyx_v_m_x = ((PyArrayObject *)values[19]);
4177  __pyx_v_dm_x = ((PyArrayObject *)values[20]);
4178  __pyx_v_f_c = ((PyArrayObject *)values[21]);
4179  __pyx_v_df_c = ((PyArrayObject *)values[22]);
4180  __pyx_v_f_e = ((PyArrayObject *)values[23]);
4181  __pyx_v_df_e = ((PyArrayObject *)values[24]);
4182  __pyx_v_a_c = ((PyArrayObject *)values[25]);
4183  __pyx_v_a_e = ((PyArrayObject *)values[26]);
4184  __pyx_v_r_c = ((PyArrayObject *)values[27]);
4185  __pyx_v_dr_c_dc = ((PyArrayObject *)values[28]);
4186  __pyx_v_dr_c_de = ((PyArrayObject *)values[29]);
4187  __pyx_v_dr_c_dx = ((PyArrayObject *)values[30]);
4188  __pyx_v_r_e = ((PyArrayObject *)values[31]);
4189  __pyx_v_dr_e_dc = ((PyArrayObject *)values[32]);
4190  __pyx_v_dr_e_de = ((PyArrayObject *)values[33]);
4191  __pyx_v_dr_e_dx = ((PyArrayObject *)values[34]);
4192  __pyx_v_r_x = ((PyArrayObject *)values[35]);
4193  __pyx_v_dr_x_dc = ((PyArrayObject *)values[36]);
4194  __pyx_v_dr_x_de = ((PyArrayObject *)values[37]);
4195  __pyx_v_dr_x_dx = ((PyArrayObject *)values[38]);
4196  }
4197  goto __pyx_L4_argument_unpacking_done;
4198  __pyx_L5_argtuple_error:;
4199  __Pyx_RaiseArgtupleInvalid("groundwaterBiodegradation01EvaluateFC", 1, 39, 39, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2870, __pyx_L3_error)
4200  __pyx_L3_error:;
4201  __Pyx_AddTraceback("ctransportCoefficients.groundwaterBiodegradation01EvaluateFC", __pyx_clineno, __pyx_lineno, __pyx_filename);
4202  __Pyx_RefNannyFinishContext();
4203  return NULL;
4204  __pyx_L4_argument_unpacking_done:;
4205  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 2881, __pyx_L1_error)
4206  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_c_c), __pyx_ptype_5numpy_ndarray, 1, "c_c", 0))) __PYX_ERR(0, 2882, __pyx_L1_error)
4207  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_c_e), __pyx_ptype_5numpy_ndarray, 1, "c_e", 0))) __PYX_ERR(0, 2883, __pyx_L1_error)
4208  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_c_x), __pyx_ptype_5numpy_ndarray, 1, "c_x", 0))) __PYX_ERR(0, 2884, __pyx_L1_error)
4209  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_c), __pyx_ptype_5numpy_ndarray, 1, "m_c", 0))) __PYX_ERR(0, 2885, __pyx_L1_error)
4210  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_c), __pyx_ptype_5numpy_ndarray, 1, "dm_c", 0))) __PYX_ERR(0, 2886, __pyx_L1_error)
4211  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_e), __pyx_ptype_5numpy_ndarray, 1, "m_e", 0))) __PYX_ERR(0, 2887, __pyx_L1_error)
4212  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_e), __pyx_ptype_5numpy_ndarray, 1, "dm_e", 0))) __PYX_ERR(0, 2888, __pyx_L1_error)
4213  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_x), __pyx_ptype_5numpy_ndarray, 1, "m_x", 0))) __PYX_ERR(0, 2889, __pyx_L1_error)
4214  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_x), __pyx_ptype_5numpy_ndarray, 1, "dm_x", 0))) __PYX_ERR(0, 2890, __pyx_L1_error)
4215  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_c), __pyx_ptype_5numpy_ndarray, 1, "f_c", 0))) __PYX_ERR(0, 2891, __pyx_L1_error)
4216  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_c), __pyx_ptype_5numpy_ndarray, 1, "df_c", 0))) __PYX_ERR(0, 2892, __pyx_L1_error)
4217  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_e), __pyx_ptype_5numpy_ndarray, 1, "f_e", 0))) __PYX_ERR(0, 2893, __pyx_L1_error)
4218  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_e), __pyx_ptype_5numpy_ndarray, 1, "df_e", 0))) __PYX_ERR(0, 2894, __pyx_L1_error)
4219  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_c), __pyx_ptype_5numpy_ndarray, 1, "a_c", 0))) __PYX_ERR(0, 2895, __pyx_L1_error)
4220  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_e), __pyx_ptype_5numpy_ndarray, 1, "a_e", 0))) __PYX_ERR(0, 2896, __pyx_L1_error)
4221  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_c), __pyx_ptype_5numpy_ndarray, 1, "r_c", 0))) __PYX_ERR(0, 2897, __pyx_L1_error)
4222  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_c_dc), __pyx_ptype_5numpy_ndarray, 1, "dr_c_dc", 0))) __PYX_ERR(0, 2898, __pyx_L1_error)
4223  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_c_de), __pyx_ptype_5numpy_ndarray, 1, "dr_c_de", 0))) __PYX_ERR(0, 2899, __pyx_L1_error)
4224  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_c_dx), __pyx_ptype_5numpy_ndarray, 1, "dr_c_dx", 0))) __PYX_ERR(0, 2900, __pyx_L1_error)
4225  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_e), __pyx_ptype_5numpy_ndarray, 1, "r_e", 0))) __PYX_ERR(0, 2901, __pyx_L1_error)
4226  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_e_dc), __pyx_ptype_5numpy_ndarray, 1, "dr_e_dc", 0))) __PYX_ERR(0, 2902, __pyx_L1_error)
4227  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_e_de), __pyx_ptype_5numpy_ndarray, 1, "dr_e_de", 0))) __PYX_ERR(0, 2903, __pyx_L1_error)
4228  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_e_dx), __pyx_ptype_5numpy_ndarray, 1, "dr_e_dx", 0))) __PYX_ERR(0, 2904, __pyx_L1_error)
4229  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_x), __pyx_ptype_5numpy_ndarray, 1, "r_x", 0))) __PYX_ERR(0, 2905, __pyx_L1_error)
4230  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_x_dc), __pyx_ptype_5numpy_ndarray, 1, "dr_x_dc", 0))) __PYX_ERR(0, 2906, __pyx_L1_error)
4231  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_x_de), __pyx_ptype_5numpy_ndarray, 1, "dr_x_de", 0))) __PYX_ERR(0, 2907, __pyx_L1_error)
4232  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_x_dx), __pyx_ptype_5numpy_ndarray, 1, "dr_x_dx", 0))) __PYX_ERR(0, 2908, __pyx_L1_error)
4233  __pyx_r = __pyx_pf_22ctransportCoefficients_4groundwaterBiodegradation01EvaluateFC(__pyx_self, __pyx_v_omega, __pyx_v_d_c, __pyx_v_d_e, __pyx_v_alpha_L, __pyx_v_alpha_T, __pyx_v_Kox_max, __pyx_v_Kox_C, __pyx_v_Kox_E, __pyx_v_Kox_X, __pyx_v_Yield, __pyx_v_k_d, __pyx_v_v, __pyx_v_c_c, __pyx_v_c_e, __pyx_v_c_x, __pyx_v_m_c, __pyx_v_dm_c, __pyx_v_m_e, __pyx_v_dm_e, __pyx_v_m_x, __pyx_v_dm_x, __pyx_v_f_c, __pyx_v_df_c, __pyx_v_f_e, __pyx_v_df_e, __pyx_v_a_c, __pyx_v_a_e, __pyx_v_r_c, __pyx_v_dr_c_dc, __pyx_v_dr_c_de, __pyx_v_dr_c_dx, __pyx_v_r_e, __pyx_v_dr_e_dc, __pyx_v_dr_e_de, __pyx_v_dr_e_dx, __pyx_v_r_x, __pyx_v_dr_x_dc, __pyx_v_dr_x_de, __pyx_v_dr_x_dx);
4234 
4235  /* function exit code */
4236  goto __pyx_L0;
4237  __pyx_L1_error:;
4238  __pyx_r = NULL;
4239  __pyx_L0:;
4240  __Pyx_RefNannyFinishContext();
4241  return __pyx_r;
4242 }
4243 
4244 static PyObject *__pyx_pf_22ctransportCoefficients_4groundwaterBiodegradation01EvaluateFC(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_omega, double __pyx_v_d_c, double __pyx_v_d_e, double __pyx_v_alpha_L, double __pyx_v_alpha_T, double __pyx_v_Kox_max, double __pyx_v_Kox_C, double __pyx_v_Kox_E, double __pyx_v_Kox_X, double __pyx_v_Yield, double __pyx_v_k_d, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_c_c, PyArrayObject *__pyx_v_c_e, PyArrayObject *__pyx_v_c_x, PyArrayObject *__pyx_v_m_c, PyArrayObject *__pyx_v_dm_c, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_m_x, PyArrayObject *__pyx_v_dm_x, PyArrayObject *__pyx_v_f_c, PyArrayObject *__pyx_v_df_c, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_c, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_r_c, PyArrayObject *__pyx_v_dr_c_dc, PyArrayObject *__pyx_v_dr_c_de, PyArrayObject *__pyx_v_dr_c_dx, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_dc, PyArrayObject *__pyx_v_dr_e_de, PyArrayObject *__pyx_v_dr_e_dx, PyArrayObject *__pyx_v_r_x, PyArrayObject *__pyx_v_dr_x_dc, PyArrayObject *__pyx_v_dr_x_de, PyArrayObject *__pyx_v_dr_x_dx) {
4245  PyObject *__pyx_r = NULL;
4246  __Pyx_RefNannyDeclarations
4247  PyObject *__pyx_t_1 = NULL;
4248  PyObject *__pyx_t_2 = NULL;
4249  PyObject *__pyx_t_3 = NULL;
4250  int __pyx_t_4;
4251  int __pyx_lineno = 0;
4252  const char *__pyx_filename = NULL;
4253  int __pyx_clineno = 0;
4254  __Pyx_RefNannySetupContext("groundwaterBiodegradation01EvaluateFC", 0);
4255 
4256  /* "ctransportCoefficients.pyx":2909
4257  * np.ndarray dr_x_de,
4258  * np.ndarray dr_x_dx):
4259  * cgroundwaterBiodegradation01EvaluateFC(f_c.size/f_c.shape[f_c.ndim-1], # <<<<<<<<<<<<<<
4260  * f_c.shape[f_c.ndim-1],
4261  * omega,
4262  */
4263  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_f_c), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2909, __pyx_L1_error)
4264  __Pyx_GOTREF(__pyx_t_1);
4265  __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_f_c->dimensions[(__pyx_v_f_c->nd - 1)])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2909, __pyx_L1_error)
4266  __Pyx_GOTREF(__pyx_t_2);
4267  __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2909, __pyx_L1_error)
4268  __Pyx_GOTREF(__pyx_t_3);
4269  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4270  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4271  __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2909, __pyx_L1_error)
4272  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4273 
4274  /* "ctransportCoefficients.pyx":2949
4275  * <double*> dr_x_dc.data,
4276  * <double*> dr_x_de.data,
4277  * <double*> dr_x_dx.data) # <<<<<<<<<<<<<<
4278  * def groundwaterBryantDawsonIonExEvaluateFC(const double omega,
4279  * const double d_m,
4280  */
4281  groundwaterBiodegradation01EvaluateFC(__pyx_t_4, (__pyx_v_f_c->dimensions[(__pyx_v_f_c->nd - 1)]), __pyx_v_omega, __pyx_v_d_c, __pyx_v_d_e, __pyx_v_alpha_L, __pyx_v_alpha_T, __pyx_v_Kox_max, __pyx_v_Kox_C, __pyx_v_Kox_E, __pyx_v_Kox_X, __pyx_v_Yield, __pyx_v_k_d, ((double *)__pyx_v_v->data), ((double *)__pyx_v_c_c->data), ((double *)__pyx_v_c_e->data), ((double *)__pyx_v_c_x->data), ((double *)__pyx_v_m_c->data), ((double *)__pyx_v_dm_c->data), ((double *)__pyx_v_m_e->data), ((double *)__pyx_v_dm_e->data), ((double *)__pyx_v_m_x->data), ((double *)__pyx_v_dm_x->data), ((double *)__pyx_v_f_c->data), ((double *)__pyx_v_df_c->data), ((double *)__pyx_v_f_e->data), ((double *)__pyx_v_df_e->data), ((double *)__pyx_v_a_c->data), ((double *)__pyx_v_a_e->data), ((double *)__pyx_v_r_c->data), ((double *)__pyx_v_dr_c_dc->data), ((double *)__pyx_v_dr_c_de->data), ((double *)__pyx_v_dr_c_dx->data), ((double *)__pyx_v_r_e->data), ((double *)__pyx_v_dr_e_dc->data), ((double *)__pyx_v_dr_e_de->data), ((double *)__pyx_v_dr_e_dx->data), ((double *)__pyx_v_r_x->data), ((double *)__pyx_v_dr_x_dc->data), ((double *)__pyx_v_dr_x_de->data), ((double *)__pyx_v_dr_x_dx->data));
4282 
4283  /* "ctransportCoefficients.pyx":2870
4284  * <double*> df.data,
4285  * <double*> a.data)
4286  * def groundwaterBiodegradation01EvaluateFC(const double omega, # <<<<<<<<<<<<<<
4287  * const double d_c,
4288  * const double d_e,
4289  */
4290 
4291  /* function exit code */
4292  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4293  goto __pyx_L0;
4294  __pyx_L1_error:;
4295  __Pyx_XDECREF(__pyx_t_1);
4296  __Pyx_XDECREF(__pyx_t_2);
4297  __Pyx_XDECREF(__pyx_t_3);
4298  __Pyx_AddTraceback("ctransportCoefficients.groundwaterBiodegradation01EvaluateFC", __pyx_clineno, __pyx_lineno, __pyx_filename);
4299  __pyx_r = NULL;
4300  __pyx_L0:;
4301  __Pyx_XGIVEREF(__pyx_r);
4302  __Pyx_RefNannyFinishContext();
4303  return __pyx_r;
4304 }
4305 
4306 /* "ctransportCoefficients.pyx":2950
4307  * <double*> dr_x_de.data,
4308  * <double*> dr_x_dx.data)
4309  * def groundwaterBryantDawsonIonExEvaluateFC(const double omega, # <<<<<<<<<<<<<<
4310  * const double d_m,
4311  * const double d_h,
4312  */
4313 
4314 /* Python wrapper */
4315 static PyObject *__pyx_pw_22ctransportCoefficients_7groundwaterBryantDawsonIonExEvaluateFC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
4316 static PyMethodDef __pyx_mdef_22ctransportCoefficients_7groundwaterBryantDawsonIonExEvaluateFC = {"groundwaterBryantDawsonIonExEvaluateFC", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_7groundwaterBryantDawsonIonExEvaluateFC, METH_VARARGS|METH_KEYWORDS, 0};
4317 static PyObject *__pyx_pw_22ctransportCoefficients_7groundwaterBryantDawsonIonExEvaluateFC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
4318  double __pyx_v_omega;
4319  double __pyx_v_d_m;
4320  double __pyx_v_d_h;
4321  double __pyx_v_alpha_L;
4322  double __pyx_v_alpha_T;
4323  double __pyx_v_K_m;
4324  double __pyx_v_K_h;
4325  double __pyx_v_K_w;
4326  double __pyx_v_Z_tot;
4327  PyArrayObject *__pyx_v_v = 0;
4328  PyArrayObject *__pyx_v_c_m = 0;
4329  PyArrayObject *__pyx_v_c_h = 0;
4330  PyArrayObject *__pyx_v_m_m = 0;
4331  PyArrayObject *__pyx_v_dm_m_m = 0;
4332  PyArrayObject *__pyx_v_dm_m_h = 0;
4333  PyArrayObject *__pyx_v_m_h = 0;
4334  PyArrayObject *__pyx_v_dm_h_m = 0;
4335  PyArrayObject *__pyx_v_dm_h_h = 0;
4336  PyArrayObject *__pyx_v_f_m = 0;
4337  PyArrayObject *__pyx_v_df_m = 0;
4338  PyArrayObject *__pyx_v_f_h = 0;
4339  PyArrayObject *__pyx_v_df_h = 0;
4340  PyArrayObject *__pyx_v_a_m = 0;
4341  PyArrayObject *__pyx_v_a_h = 0;
4342  PyArrayObject *__pyx_v_phi_h = 0;
4343  PyArrayObject *__pyx_v_dphi_h = 0;
4344  PyArrayObject *__pyx_v_r_m = 0;
4345  PyArrayObject *__pyx_v_dr_m_dm = 0;
4346  PyArrayObject *__pyx_v_dr_m_dh = 0;
4347  PyArrayObject *__pyx_v_r_h = 0;
4348  PyArrayObject *__pyx_v_dr_h_dm = 0;
4349  PyArrayObject *__pyx_v_dr_h_dh = 0;
4350  int __pyx_lineno = 0;
4351  const char *__pyx_filename = NULL;
4352  int __pyx_clineno = 0;
4353  PyObject *__pyx_r = 0;
4354  __Pyx_RefNannyDeclarations
4355  __Pyx_RefNannySetupContext("groundwaterBryantDawsonIonExEvaluateFC (wrapper)", 0);
4356  {
4357  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_omega,&__pyx_n_s_d_m,&__pyx_n_s_d_h,&__pyx_n_s_alpha_L,&__pyx_n_s_alpha_T,&__pyx_n_s_K_m,&__pyx_n_s_K_h,&__pyx_n_s_K_w,&__pyx_n_s_Z_tot,&__pyx_n_s_v,&__pyx_n_s_c_m,&__pyx_n_s_c_h,&__pyx_n_s_m_m,&__pyx_n_s_dm_m_m,&__pyx_n_s_dm_m_h,&__pyx_n_s_m_h,&__pyx_n_s_dm_h_m,&__pyx_n_s_dm_h_h,&__pyx_n_s_f_m,&__pyx_n_s_df_m,&__pyx_n_s_f_h,&__pyx_n_s_df_h,&__pyx_n_s_a_m,&__pyx_n_s_a_h,&__pyx_n_s_phi_h,&__pyx_n_s_dphi_h,&__pyx_n_s_r_m,&__pyx_n_s_dr_m_dm,&__pyx_n_s_dr_m_dh,&__pyx_n_s_r_h,&__pyx_n_s_dr_h_dm,&__pyx_n_s_dr_h_dh,0};
4358  PyObject* values[32] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
4359  if (unlikely(__pyx_kwds)) {
4360  Py_ssize_t kw_args;
4361  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
4362  switch (pos_args) {
4363  case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
4364  CYTHON_FALLTHROUGH;
4365  case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
4366  CYTHON_FALLTHROUGH;
4367  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
4368  CYTHON_FALLTHROUGH;
4369  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
4370  CYTHON_FALLTHROUGH;
4371  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
4372  CYTHON_FALLTHROUGH;
4373  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
4374  CYTHON_FALLTHROUGH;
4375  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
4376  CYTHON_FALLTHROUGH;
4377  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
4378  CYTHON_FALLTHROUGH;
4379  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
4380  CYTHON_FALLTHROUGH;
4381  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
4382  CYTHON_FALLTHROUGH;
4383  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
4384  CYTHON_FALLTHROUGH;
4385  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
4386  CYTHON_FALLTHROUGH;
4387  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
4388  CYTHON_FALLTHROUGH;
4389  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
4390  CYTHON_FALLTHROUGH;
4391  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
4392  CYTHON_FALLTHROUGH;
4393  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
4394  CYTHON_FALLTHROUGH;
4395  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
4396  CYTHON_FALLTHROUGH;
4397  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
4398  CYTHON_FALLTHROUGH;
4399  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
4400  CYTHON_FALLTHROUGH;
4401  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
4402  CYTHON_FALLTHROUGH;
4403  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
4404  CYTHON_FALLTHROUGH;
4405  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
4406  CYTHON_FALLTHROUGH;
4407  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
4408  CYTHON_FALLTHROUGH;
4409  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
4410  CYTHON_FALLTHROUGH;
4411  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
4412  CYTHON_FALLTHROUGH;
4413  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4414  CYTHON_FALLTHROUGH;
4415  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4416  CYTHON_FALLTHROUGH;
4417  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4418  CYTHON_FALLTHROUGH;
4419  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4420  CYTHON_FALLTHROUGH;
4421  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4422  CYTHON_FALLTHROUGH;
4423  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4424  CYTHON_FALLTHROUGH;
4425  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4426  CYTHON_FALLTHROUGH;
4427  case 0: break;
4428  default: goto __pyx_L5_argtuple_error;
4429  }
4430  kw_args = PyDict_Size(__pyx_kwds);
4431  switch (pos_args) {
4432  case 0:
4433  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_omega)) != 0)) kw_args--;
4434  else goto __pyx_L5_argtuple_error;
4435  CYTHON_FALLTHROUGH;
4436  case 1:
4437  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_d_m)) != 0)) kw_args--;
4438  else {
4439  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 1); __PYX_ERR(0, 2950, __pyx_L3_error)
4440  }
4441  CYTHON_FALLTHROUGH;
4442  case 2:
4443  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_d_h)) != 0)) kw_args--;
4444  else {
4445  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 2); __PYX_ERR(0, 2950, __pyx_L3_error)
4446  }
4447  CYTHON_FALLTHROUGH;
4448  case 3:
4449  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha_L)) != 0)) kw_args--;
4450  else {
4451  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 3); __PYX_ERR(0, 2950, __pyx_L3_error)
4452  }
4453  CYTHON_FALLTHROUGH;
4454  case 4:
4455  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha_T)) != 0)) kw_args--;
4456  else {
4457  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 4); __PYX_ERR(0, 2950, __pyx_L3_error)
4458  }
4459  CYTHON_FALLTHROUGH;
4460  case 5:
4461  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_K_m)) != 0)) kw_args--;
4462  else {
4463  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 5); __PYX_ERR(0, 2950, __pyx_L3_error)
4464  }
4465  CYTHON_FALLTHROUGH;
4466  case 6:
4467  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_K_h)) != 0)) kw_args--;
4468  else {
4469  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 6); __PYX_ERR(0, 2950, __pyx_L3_error)
4470  }
4471  CYTHON_FALLTHROUGH;
4472  case 7:
4473  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_K_w)) != 0)) kw_args--;
4474  else {
4475  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 7); __PYX_ERR(0, 2950, __pyx_L3_error)
4476  }
4477  CYTHON_FALLTHROUGH;
4478  case 8:
4479  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Z_tot)) != 0)) kw_args--;
4480  else {
4481  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 8); __PYX_ERR(0, 2950, __pyx_L3_error)
4482  }
4483  CYTHON_FALLTHROUGH;
4484  case 9:
4485  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
4486  else {
4487  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 9); __PYX_ERR(0, 2950, __pyx_L3_error)
4488  }
4489  CYTHON_FALLTHROUGH;
4490  case 10:
4491  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_m)) != 0)) kw_args--;
4492  else {
4493  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 10); __PYX_ERR(0, 2950, __pyx_L3_error)
4494  }
4495  CYTHON_FALLTHROUGH;
4496  case 11:
4497  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_h)) != 0)) kw_args--;
4498  else {
4499  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 11); __PYX_ERR(0, 2950, __pyx_L3_error)
4500  }
4501  CYTHON_FALLTHROUGH;
4502  case 12:
4503  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_m)) != 0)) kw_args--;
4504  else {
4505  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 12); __PYX_ERR(0, 2950, __pyx_L3_error)
4506  }
4507  CYTHON_FALLTHROUGH;
4508  case 13:
4509  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_m_m)) != 0)) kw_args--;
4510  else {
4511  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 13); __PYX_ERR(0, 2950, __pyx_L3_error)
4512  }
4513  CYTHON_FALLTHROUGH;
4514  case 14:
4515  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_m_h)) != 0)) kw_args--;
4516  else {
4517  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 14); __PYX_ERR(0, 2950, __pyx_L3_error)
4518  }
4519  CYTHON_FALLTHROUGH;
4520  case 15:
4521  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_h)) != 0)) kw_args--;
4522  else {
4523  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 15); __PYX_ERR(0, 2950, __pyx_L3_error)
4524  }
4525  CYTHON_FALLTHROUGH;
4526  case 16:
4527  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_h_m)) != 0)) kw_args--;
4528  else {
4529  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 16); __PYX_ERR(0, 2950, __pyx_L3_error)
4530  }
4531  CYTHON_FALLTHROUGH;
4532  case 17:
4533  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_h_h)) != 0)) kw_args--;
4534  else {
4535  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 17); __PYX_ERR(0, 2950, __pyx_L3_error)
4536  }
4537  CYTHON_FALLTHROUGH;
4538  case 18:
4539  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_m)) != 0)) kw_args--;
4540  else {
4541  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 18); __PYX_ERR(0, 2950, __pyx_L3_error)
4542  }
4543  CYTHON_FALLTHROUGH;
4544  case 19:
4545  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_m)) != 0)) kw_args--;
4546  else {
4547  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 19); __PYX_ERR(0, 2950, __pyx_L3_error)
4548  }
4549  CYTHON_FALLTHROUGH;
4550  case 20:
4551  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_h)) != 0)) kw_args--;
4552  else {
4553  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 20); __PYX_ERR(0, 2950, __pyx_L3_error)
4554  }
4555  CYTHON_FALLTHROUGH;
4556  case 21:
4557  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_h)) != 0)) kw_args--;
4558  else {
4559  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 21); __PYX_ERR(0, 2950, __pyx_L3_error)
4560  }
4561  CYTHON_FALLTHROUGH;
4562  case 22:
4563  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_m)) != 0)) kw_args--;
4564  else {
4565  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 22); __PYX_ERR(0, 2950, __pyx_L3_error)
4566  }
4567  CYTHON_FALLTHROUGH;
4568  case 23:
4569  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_h)) != 0)) kw_args--;
4570  else {
4571  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 23); __PYX_ERR(0, 2950, __pyx_L3_error)
4572  }
4573  CYTHON_FALLTHROUGH;
4574  case 24:
4575  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_h)) != 0)) kw_args--;
4576  else {
4577  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 24); __PYX_ERR(0, 2950, __pyx_L3_error)
4578  }
4579  CYTHON_FALLTHROUGH;
4580  case 25:
4581  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_h)) != 0)) kw_args--;
4582  else {
4583  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 25); __PYX_ERR(0, 2950, __pyx_L3_error)
4584  }
4585  CYTHON_FALLTHROUGH;
4586  case 26:
4587  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_m)) != 0)) kw_args--;
4588  else {
4589  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 26); __PYX_ERR(0, 2950, __pyx_L3_error)
4590  }
4591  CYTHON_FALLTHROUGH;
4592  case 27:
4593  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_m_dm)) != 0)) kw_args--;
4594  else {
4595  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 27); __PYX_ERR(0, 2950, __pyx_L3_error)
4596  }
4597  CYTHON_FALLTHROUGH;
4598  case 28:
4599  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_m_dh)) != 0)) kw_args--;
4600  else {
4601  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 28); __PYX_ERR(0, 2950, __pyx_L3_error)
4602  }
4603  CYTHON_FALLTHROUGH;
4604  case 29:
4605  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_h)) != 0)) kw_args--;
4606  else {
4607  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 29); __PYX_ERR(0, 2950, __pyx_L3_error)
4608  }
4609  CYTHON_FALLTHROUGH;
4610  case 30:
4611  if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_h_dm)) != 0)) kw_args--;
4612  else {
4613  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 30); __PYX_ERR(0, 2950, __pyx_L3_error)
4614  }
4615  CYTHON_FALLTHROUGH;
4616  case 31:
4617  if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_h_dh)) != 0)) kw_args--;
4618  else {
4619  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 31); __PYX_ERR(0, 2950, __pyx_L3_error)
4620  }
4621  }
4622  if (unlikely(kw_args > 0)) {
4623  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "groundwaterBryantDawsonIonExEvaluateFC") < 0)) __PYX_ERR(0, 2950, __pyx_L3_error)
4624  }
4625  } else if (PyTuple_GET_SIZE(__pyx_args) != 32) {
4626  goto __pyx_L5_argtuple_error;
4627  } else {
4628  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4629  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4630  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4631  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4632  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4633  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4634  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4635  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
4636  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
4637  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
4638  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
4639  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
4640  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
4641  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
4642  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
4643  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
4644  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
4645  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
4646  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
4647  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
4648  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
4649  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
4650  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
4651  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
4652  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
4653  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
4654  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
4655  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
4656  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
4657  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
4658  values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
4659  values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
4660  }
4661  __pyx_v_omega = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_omega == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2950, __pyx_L3_error)
4662  __pyx_v_d_m = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_d_m == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2951, __pyx_L3_error)
4663  __pyx_v_d_h = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_d_h == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2952, __pyx_L3_error)
4664  __pyx_v_alpha_L = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_alpha_L == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2953, __pyx_L3_error)
4665  __pyx_v_alpha_T = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_alpha_T == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2954, __pyx_L3_error)
4666  __pyx_v_K_m = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_K_m == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2955, __pyx_L3_error)
4667  __pyx_v_K_h = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_K_h == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2956, __pyx_L3_error)
4668  __pyx_v_K_w = __pyx_PyFloat_AsDouble(values[7]); if (unlikely((__pyx_v_K_w == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2957, __pyx_L3_error)
4669  __pyx_v_Z_tot = __pyx_PyFloat_AsDouble(values[8]); if (unlikely((__pyx_v_Z_tot == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2958, __pyx_L3_error)
4670  __pyx_v_v = ((PyArrayObject *)values[9]);
4671  __pyx_v_c_m = ((PyArrayObject *)values[10]);
4672  __pyx_v_c_h = ((PyArrayObject *)values[11]);
4673  __pyx_v_m_m = ((PyArrayObject *)values[12]);
4674  __pyx_v_dm_m_m = ((PyArrayObject *)values[13]);
4675  __pyx_v_dm_m_h = ((PyArrayObject *)values[14]);
4676  __pyx_v_m_h = ((PyArrayObject *)values[15]);
4677  __pyx_v_dm_h_m = ((PyArrayObject *)values[16]);
4678  __pyx_v_dm_h_h = ((PyArrayObject *)values[17]);
4679  __pyx_v_f_m = ((PyArrayObject *)values[18]);
4680  __pyx_v_df_m = ((PyArrayObject *)values[19]);
4681  __pyx_v_f_h = ((PyArrayObject *)values[20]);
4682  __pyx_v_df_h = ((PyArrayObject *)values[21]);
4683  __pyx_v_a_m = ((PyArrayObject *)values[22]);
4684  __pyx_v_a_h = ((PyArrayObject *)values[23]);
4685  __pyx_v_phi_h = ((PyArrayObject *)values[24]);
4686  __pyx_v_dphi_h = ((PyArrayObject *)values[25]);
4687  __pyx_v_r_m = ((PyArrayObject *)values[26]);
4688  __pyx_v_dr_m_dm = ((PyArrayObject *)values[27]);
4689  __pyx_v_dr_m_dh = ((PyArrayObject *)values[28]);
4690  __pyx_v_r_h = ((PyArrayObject *)values[29]);
4691  __pyx_v_dr_h_dm = ((PyArrayObject *)values[30]);
4692  __pyx_v_dr_h_dh = ((PyArrayObject *)values[31]);
4693  }
4694  goto __pyx_L4_argument_unpacking_done;
4695  __pyx_L5_argtuple_error:;
4696  __Pyx_RaiseArgtupleInvalid("groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2950, __pyx_L3_error)
4697  __pyx_L3_error:;
4698  __Pyx_AddTraceback("ctransportCoefficients.groundwaterBryantDawsonIonExEvaluateFC", __pyx_clineno, __pyx_lineno, __pyx_filename);
4699  __Pyx_RefNannyFinishContext();
4700  return NULL;
4701  __pyx_L4_argument_unpacking_done:;
4702  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 2959, __pyx_L1_error)
4703  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_c_m), __pyx_ptype_5numpy_ndarray, 1, "c_m", 0))) __PYX_ERR(0, 2960, __pyx_L1_error)
4704  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_c_h), __pyx_ptype_5numpy_ndarray, 1, "c_h", 0))) __PYX_ERR(0, 2961, __pyx_L1_error)
4705  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_m), __pyx_ptype_5numpy_ndarray, 1, "m_m", 0))) __PYX_ERR(0, 2962, __pyx_L1_error)
4706  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_m_m), __pyx_ptype_5numpy_ndarray, 1, "dm_m_m", 0))) __PYX_ERR(0, 2963, __pyx_L1_error)
4707  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_m_h), __pyx_ptype_5numpy_ndarray, 1, "dm_m_h", 0))) __PYX_ERR(0, 2964, __pyx_L1_error)
4708  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_h), __pyx_ptype_5numpy_ndarray, 1, "m_h", 0))) __PYX_ERR(0, 2965, __pyx_L1_error)
4709  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_h_m), __pyx_ptype_5numpy_ndarray, 1, "dm_h_m", 0))) __PYX_ERR(0, 2966, __pyx_L1_error)
4710  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_h_h), __pyx_ptype_5numpy_ndarray, 1, "dm_h_h", 0))) __PYX_ERR(0, 2967, __pyx_L1_error)
4711  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_m), __pyx_ptype_5numpy_ndarray, 1, "f_m", 0))) __PYX_ERR(0, 2968, __pyx_L1_error)
4712  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_m), __pyx_ptype_5numpy_ndarray, 1, "df_m", 0))) __PYX_ERR(0, 2969, __pyx_L1_error)
4713  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_h), __pyx_ptype_5numpy_ndarray, 1, "f_h", 0))) __PYX_ERR(0, 2970, __pyx_L1_error)
4714  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_h), __pyx_ptype_5numpy_ndarray, 1, "df_h", 0))) __PYX_ERR(0, 2971, __pyx_L1_error)
4715  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_m), __pyx_ptype_5numpy_ndarray, 1, "a_m", 0))) __PYX_ERR(0, 2972, __pyx_L1_error)
4716  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_h), __pyx_ptype_5numpy_ndarray, 1, "a_h", 0))) __PYX_ERR(0, 2973, __pyx_L1_error)
4717  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_h), __pyx_ptype_5numpy_ndarray, 1, "phi_h", 0))) __PYX_ERR(0, 2974, __pyx_L1_error)
4718  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_h), __pyx_ptype_5numpy_ndarray, 1, "dphi_h", 0))) __PYX_ERR(0, 2975, __pyx_L1_error)
4719  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_m), __pyx_ptype_5numpy_ndarray, 1, "r_m", 0))) __PYX_ERR(0, 2976, __pyx_L1_error)
4720  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_m_dm), __pyx_ptype_5numpy_ndarray, 1, "dr_m_dm", 0))) __PYX_ERR(0, 2977, __pyx_L1_error)
4721  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_m_dh), __pyx_ptype_5numpy_ndarray, 1, "dr_m_dh", 0))) __PYX_ERR(0, 2978, __pyx_L1_error)
4722  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_h), __pyx_ptype_5numpy_ndarray, 1, "r_h", 0))) __PYX_ERR(0, 2979, __pyx_L1_error)
4723  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_h_dm), __pyx_ptype_5numpy_ndarray, 1, "dr_h_dm", 0))) __PYX_ERR(0, 2980, __pyx_L1_error)
4724  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_h_dh), __pyx_ptype_5numpy_ndarray, 1, "dr_h_dh", 0))) __PYX_ERR(0, 2981, __pyx_L1_error)
4725  __pyx_r = __pyx_pf_22ctransportCoefficients_6groundwaterBryantDawsonIonExEvaluateFC(__pyx_self, __pyx_v_omega, __pyx_v_d_m, __pyx_v_d_h, __pyx_v_alpha_L, __pyx_v_alpha_T, __pyx_v_K_m, __pyx_v_K_h, __pyx_v_K_w, __pyx_v_Z_tot, __pyx_v_v, __pyx_v_c_m, __pyx_v_c_h, __pyx_v_m_m, __pyx_v_dm_m_m, __pyx_v_dm_m_h, __pyx_v_m_h, __pyx_v_dm_h_m, __pyx_v_dm_h_h, __pyx_v_f_m, __pyx_v_df_m, __pyx_v_f_h, __pyx_v_df_h, __pyx_v_a_m, __pyx_v_a_h, __pyx_v_phi_h, __pyx_v_dphi_h, __pyx_v_r_m, __pyx_v_dr_m_dm, __pyx_v_dr_m_dh, __pyx_v_r_h, __pyx_v_dr_h_dm, __pyx_v_dr_h_dh);
4726 
4727  /* function exit code */
4728  goto __pyx_L0;
4729  __pyx_L1_error:;
4730  __pyx_r = NULL;
4731  __pyx_L0:;
4732  __Pyx_RefNannyFinishContext();
4733  return __pyx_r;
4734 }
4735 
4736 static PyObject *__pyx_pf_22ctransportCoefficients_6groundwaterBryantDawsonIonExEvaluateFC(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_omega, double __pyx_v_d_m, double __pyx_v_d_h, double __pyx_v_alpha_L, double __pyx_v_alpha_T, double __pyx_v_K_m, double __pyx_v_K_h, double __pyx_v_K_w, double __pyx_v_Z_tot, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_c_m, PyArrayObject *__pyx_v_c_h, PyArrayObject *__pyx_v_m_m, PyArrayObject *__pyx_v_dm_m_m, PyArrayObject *__pyx_v_dm_m_h, PyArrayObject *__pyx_v_m_h, PyArrayObject *__pyx_v_dm_h_m, PyArrayObject *__pyx_v_dm_h_h, PyArrayObject *__pyx_v_f_m, PyArrayObject *__pyx_v_df_m, PyArrayObject *__pyx_v_f_h, PyArrayObject *__pyx_v_df_h, PyArrayObject *__pyx_v_a_m, PyArrayObject *__pyx_v_a_h, PyArrayObject *__pyx_v_phi_h, PyArrayObject *__pyx_v_dphi_h, PyArrayObject *__pyx_v_r_m, PyArrayObject *__pyx_v_dr_m_dm, PyArrayObject *__pyx_v_dr_m_dh, PyArrayObject *__pyx_v_r_h, PyArrayObject *__pyx_v_dr_h_dm, PyArrayObject *__pyx_v_dr_h_dh) {
4737  PyObject *__pyx_r = NULL;
4738  __Pyx_RefNannyDeclarations
4739  PyObject *__pyx_t_1 = NULL;
4740  PyObject *__pyx_t_2 = NULL;
4741  PyObject *__pyx_t_3 = NULL;
4742  int __pyx_t_4;
4743  int __pyx_lineno = 0;
4744  const char *__pyx_filename = NULL;
4745  int __pyx_clineno = 0;
4746  __Pyx_RefNannySetupContext("groundwaterBryantDawsonIonExEvaluateFC", 0);
4747 
4748  /* "ctransportCoefficients.pyx":2982
4749  * np.ndarray dr_h_dm,
4750  * np.ndarray dr_h_dh):
4751  * cgroundwaterBryantDawsonIonExEvaluateFC(f_m.size/f_m.shape[f_m.ndim-1], # <<<<<<<<<<<<<<
4752  * f_m.shape[f_m.ndim-1],
4753  * omega,
4754  */
4755  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_f_m), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2982, __pyx_L1_error)
4756  __Pyx_GOTREF(__pyx_t_1);
4757  __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_f_m->dimensions[(__pyx_v_f_m->nd - 1)])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2982, __pyx_L1_error)
4758  __Pyx_GOTREF(__pyx_t_2);
4759  __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2982, __pyx_L1_error)
4760  __Pyx_GOTREF(__pyx_t_3);
4761  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4762  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4763  __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2982, __pyx_L1_error)
4764  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4765 
4766  /* "ctransportCoefficients.pyx":3015
4767  * <double*> r_h.data,
4768  * <double*> dr_h_dm.data,
4769  * <double*> dr_h_dh.data) # <<<<<<<<<<<<<<
4770  * def groundwaterTransportCoefficientsEvaluate_hetMat(const double d,
4771  * np.ndarray materialTypes,
4772  */
4773  groundwaterBryantDawsonIonExEvaluateFC(__pyx_t_4, (__pyx_v_f_m->dimensions[(__pyx_v_f_m->nd - 1)]), __pyx_v_omega, __pyx_v_d_m, __pyx_v_d_h, __pyx_v_alpha_L, __pyx_v_alpha_T, __pyx_v_K_m, __pyx_v_K_h, __pyx_v_K_w, __pyx_v_Z_tot, ((double *)__pyx_v_v->data), ((double *)__pyx_v_c_m->data), ((double *)__pyx_v_c_h->data), ((double *)__pyx_v_m_m->data), ((double *)__pyx_v_dm_m_m->data), ((double *)__pyx_v_dm_m_h->data), ((double *)__pyx_v_m_h->data), ((double *)__pyx_v_dm_h_m->data), ((double *)__pyx_v_dm_h_h->data), ((double *)__pyx_v_f_m->data), ((double *)__pyx_v_df_m->data), ((double *)__pyx_v_f_h->data), ((double *)__pyx_v_df_h->data), ((double *)__pyx_v_a_m->data), ((double *)__pyx_v_a_h->data), ((double *)__pyx_v_phi_h->data), ((double *)__pyx_v_dphi_h->data), ((double *)__pyx_v_r_m->data), ((double *)__pyx_v_dr_m_dm->data), ((double *)__pyx_v_dr_m_dh->data), ((double *)__pyx_v_r_h->data), ((double *)__pyx_v_dr_h_dm->data), ((double *)__pyx_v_dr_h_dh->data));
4774 
4775  /* "ctransportCoefficients.pyx":2950
4776  * <double*> dr_x_de.data,
4777  * <double*> dr_x_dx.data)
4778  * def groundwaterBryantDawsonIonExEvaluateFC(const double omega, # <<<<<<<<<<<<<<
4779  * const double d_m,
4780  * const double d_h,
4781  */
4782 
4783  /* function exit code */
4784  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4785  goto __pyx_L0;
4786  __pyx_L1_error:;
4787  __Pyx_XDECREF(__pyx_t_1);
4788  __Pyx_XDECREF(__pyx_t_2);
4789  __Pyx_XDECREF(__pyx_t_3);
4790  __Pyx_AddTraceback("ctransportCoefficients.groundwaterBryantDawsonIonExEvaluateFC", __pyx_clineno, __pyx_lineno, __pyx_filename);
4791  __pyx_r = NULL;
4792  __pyx_L0:;
4793  __Pyx_XGIVEREF(__pyx_r);
4794  __Pyx_RefNannyFinishContext();
4795  return __pyx_r;
4796 }
4797 
4798 /* "ctransportCoefficients.pyx":3016
4799  * <double*> dr_h_dm.data,
4800  * <double*> dr_h_dh.data)
4801  * def groundwaterTransportCoefficientsEvaluate_hetMat(const double d, # <<<<<<<<<<<<<<
4802  * np.ndarray materialTypes,
4803  * np.ndarray omega_types,
4804  */
4805 
4806 /* Python wrapper */
4807 static PyObject *__pyx_pw_22ctransportCoefficients_9groundwaterTransportCoefficientsEvaluate_hetMat(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
4808 static PyMethodDef __pyx_mdef_22ctransportCoefficients_9groundwaterTransportCoefficientsEvaluate_hetMat = {"groundwaterTransportCoefficientsEvaluate_hetMat", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_9groundwaterTransportCoefficientsEvaluate_hetMat, METH_VARARGS|METH_KEYWORDS, 0};
4809 static PyObject *__pyx_pw_22ctransportCoefficients_9groundwaterTransportCoefficientsEvaluate_hetMat(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
4810  double __pyx_v_d;
4811  PyArrayObject *__pyx_v_materialTypes = 0;
4812  PyArrayObject *__pyx_v_omega_types = 0;
4813  PyArrayObject *__pyx_v_alpha_L_types = 0;
4814  PyArrayObject *__pyx_v_alpha_T_types = 0;
4815  PyArrayObject *__pyx_v_v = 0;
4816  PyArrayObject *__pyx_v_u = 0;
4817  PyArrayObject *__pyx_v_m = 0;
4818  PyArrayObject *__pyx_v_dm = 0;
4819  PyArrayObject *__pyx_v_f = 0;
4820  PyArrayObject *__pyx_v_df = 0;
4821  PyArrayObject *__pyx_v_a = 0;
4822  int __pyx_lineno = 0;
4823  const char *__pyx_filename = NULL;
4824  int __pyx_clineno = 0;
4825  PyObject *__pyx_r = 0;
4826  __Pyx_RefNannyDeclarations
4827  __Pyx_RefNannySetupContext("groundwaterTransportCoefficientsEvaluate_hetMat (wrapper)", 0);
4828  {
4829  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_d,&__pyx_n_s_materialTypes,&__pyx_n_s_omega_types,&__pyx_n_s_alpha_L_types,&__pyx_n_s_alpha_T_types,&__pyx_n_s_v,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,0};
4830  PyObject* values[12] = {0,0,0,0,0,0,0,0,0,0,0,0};
4831  if (unlikely(__pyx_kwds)) {
4832  Py_ssize_t kw_args;
4833  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
4834  switch (pos_args) {
4835  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
4836  CYTHON_FALLTHROUGH;
4837  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
4838  CYTHON_FALLTHROUGH;
4839  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
4840  CYTHON_FALLTHROUGH;
4841  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
4842  CYTHON_FALLTHROUGH;
4843  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
4844  CYTHON_FALLTHROUGH;
4845  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4846  CYTHON_FALLTHROUGH;
4847  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4848  CYTHON_FALLTHROUGH;
4849  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4850  CYTHON_FALLTHROUGH;
4851  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4852  CYTHON_FALLTHROUGH;
4853  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4854  CYTHON_FALLTHROUGH;
4855  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4856  CYTHON_FALLTHROUGH;
4857  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4858  CYTHON_FALLTHROUGH;
4859  case 0: break;
4860  default: goto __pyx_L5_argtuple_error;
4861  }
4862  kw_args = PyDict_Size(__pyx_kwds);
4863  switch (pos_args) {
4864  case 0:
4865  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_d)) != 0)) kw_args--;
4866  else goto __pyx_L5_argtuple_error;
4867  CYTHON_FALLTHROUGH;
4868  case 1:
4869  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_materialTypes)) != 0)) kw_args--;
4870  else {
4871  __Pyx_RaiseArgtupleInvalid("groundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 1); __PYX_ERR(0, 3016, __pyx_L3_error)
4872  }
4873  CYTHON_FALLTHROUGH;
4874  case 2:
4875  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_omega_types)) != 0)) kw_args--;
4876  else {
4877  __Pyx_RaiseArgtupleInvalid("groundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 2); __PYX_ERR(0, 3016, __pyx_L3_error)
4878  }
4879  CYTHON_FALLTHROUGH;
4880  case 3:
4881  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha_L_types)) != 0)) kw_args--;
4882  else {
4883  __Pyx_RaiseArgtupleInvalid("groundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 3); __PYX_ERR(0, 3016, __pyx_L3_error)
4884  }
4885  CYTHON_FALLTHROUGH;
4886  case 4:
4887  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha_T_types)) != 0)) kw_args--;
4888  else {
4889  __Pyx_RaiseArgtupleInvalid("groundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 4); __PYX_ERR(0, 3016, __pyx_L3_error)
4890  }
4891  CYTHON_FALLTHROUGH;
4892  case 5:
4893  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
4894  else {
4895  __Pyx_RaiseArgtupleInvalid("groundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 5); __PYX_ERR(0, 3016, __pyx_L3_error)
4896  }
4897  CYTHON_FALLTHROUGH;
4898  case 6:
4899  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
4900  else {
4901  __Pyx_RaiseArgtupleInvalid("groundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 6); __PYX_ERR(0, 3016, __pyx_L3_error)
4902  }
4903  CYTHON_FALLTHROUGH;
4904  case 7:
4905  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
4906  else {
4907  __Pyx_RaiseArgtupleInvalid("groundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 7); __PYX_ERR(0, 3016, __pyx_L3_error)
4908  }
4909  CYTHON_FALLTHROUGH;
4910  case 8:
4911  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
4912  else {
4913  __Pyx_RaiseArgtupleInvalid("groundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 8); __PYX_ERR(0, 3016, __pyx_L3_error)
4914  }
4915  CYTHON_FALLTHROUGH;
4916  case 9:
4917  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
4918  else {
4919  __Pyx_RaiseArgtupleInvalid("groundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 9); __PYX_ERR(0, 3016, __pyx_L3_error)
4920  }
4921  CYTHON_FALLTHROUGH;
4922  case 10:
4923  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
4924  else {
4925  __Pyx_RaiseArgtupleInvalid("groundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 10); __PYX_ERR(0, 3016, __pyx_L3_error)
4926  }
4927  CYTHON_FALLTHROUGH;
4928  case 11:
4929  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
4930  else {
4931  __Pyx_RaiseArgtupleInvalid("groundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 11); __PYX_ERR(0, 3016, __pyx_L3_error)
4932  }
4933  }
4934  if (unlikely(kw_args > 0)) {
4935  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "groundwaterTransportCoefficientsEvaluate_hetMat") < 0)) __PYX_ERR(0, 3016, __pyx_L3_error)
4936  }
4937  } else if (PyTuple_GET_SIZE(__pyx_args) != 12) {
4938  goto __pyx_L5_argtuple_error;
4939  } else {
4940  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4941  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4942  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4943  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4944  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4945  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4946  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4947  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
4948  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
4949  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
4950  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
4951  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
4952  }
4953  __pyx_v_d = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_d == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3016, __pyx_L3_error)
4954  __pyx_v_materialTypes = ((PyArrayObject *)values[1]);
4955  __pyx_v_omega_types = ((PyArrayObject *)values[2]);
4956  __pyx_v_alpha_L_types = ((PyArrayObject *)values[3]);
4957  __pyx_v_alpha_T_types = ((PyArrayObject *)values[4]);
4958  __pyx_v_v = ((PyArrayObject *)values[5]);
4959  __pyx_v_u = ((PyArrayObject *)values[6]);
4960  __pyx_v_m = ((PyArrayObject *)values[7]);
4961  __pyx_v_dm = ((PyArrayObject *)values[8]);
4962  __pyx_v_f = ((PyArrayObject *)values[9]);
4963  __pyx_v_df = ((PyArrayObject *)values[10]);
4964  __pyx_v_a = ((PyArrayObject *)values[11]);
4965  }
4966  goto __pyx_L4_argument_unpacking_done;
4967  __pyx_L5_argtuple_error:;
4968  __Pyx_RaiseArgtupleInvalid("groundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3016, __pyx_L3_error)
4969  __pyx_L3_error:;
4970  __Pyx_AddTraceback("ctransportCoefficients.groundwaterTransportCoefficientsEvaluate_hetMat", __pyx_clineno, __pyx_lineno, __pyx_filename);
4971  __Pyx_RefNannyFinishContext();
4972  return NULL;
4973  __pyx_L4_argument_unpacking_done:;
4974  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_materialTypes), __pyx_ptype_5numpy_ndarray, 1, "materialTypes", 0))) __PYX_ERR(0, 3017, __pyx_L1_error)
4975  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_omega_types), __pyx_ptype_5numpy_ndarray, 1, "omega_types", 0))) __PYX_ERR(0, 3018, __pyx_L1_error)
4976  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha_L_types), __pyx_ptype_5numpy_ndarray, 1, "alpha_L_types", 0))) __PYX_ERR(0, 3019, __pyx_L1_error)
4977  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha_T_types), __pyx_ptype_5numpy_ndarray, 1, "alpha_T_types", 0))) __PYX_ERR(0, 3020, __pyx_L1_error)
4978  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 3021, __pyx_L1_error)
4979  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3022, __pyx_L1_error)
4980  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 3023, __pyx_L1_error)
4981  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 3024, __pyx_L1_error)
4982  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 3025, __pyx_L1_error)
4983  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 3026, __pyx_L1_error)
4984  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 3027, __pyx_L1_error)
4985  __pyx_r = __pyx_pf_22ctransportCoefficients_8groundwaterTransportCoefficientsEvaluate_hetMat(__pyx_self, __pyx_v_d, __pyx_v_materialTypes, __pyx_v_omega_types, __pyx_v_alpha_L_types, __pyx_v_alpha_T_types, __pyx_v_v, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a);
4986 
4987  /* function exit code */
4988  goto __pyx_L0;
4989  __pyx_L1_error:;
4990  __pyx_r = NULL;
4991  __pyx_L0:;
4992  __Pyx_RefNannyFinishContext();
4993  return __pyx_r;
4994 }
4995 
4996 static PyObject *__pyx_pf_22ctransportCoefficients_8groundwaterTransportCoefficientsEvaluate_hetMat(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_d, PyArrayObject *__pyx_v_materialTypes, PyArrayObject *__pyx_v_omega_types, PyArrayObject *__pyx_v_alpha_L_types, PyArrayObject *__pyx_v_alpha_T_types, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a) {
4997  PyObject *__pyx_r = NULL;
4998  __Pyx_RefNannyDeclarations
4999  int __pyx_t_1;
5000  PyObject *__pyx_t_2 = NULL;
5001  PyObject *__pyx_t_3 = NULL;
5002  PyObject *__pyx_t_4 = NULL;
5003  int __pyx_t_5;
5004  int __pyx_lineno = 0;
5005  const char *__pyx_filename = NULL;
5006  int __pyx_clineno = 0;
5007  __Pyx_RefNannySetupContext("groundwaterTransportCoefficientsEvaluate_hetMat", 0);
5008 
5009  /* "ctransportCoefficients.pyx":3028
5010  * np.ndarray df,
5011  * np.ndarray a):
5012  * assert u.ndim in [2,3] # <<<<<<<<<<<<<<
5013  * cgroundwaterTransportCoefficientsEvaluate_hetMat(u.size/u.shape[u.ndim-1],
5014  * u.shape[u.ndim-1],
5015  */
5016  #ifndef CYTHON_WITHOUT_ASSERTIONS
5017  if (unlikely(!Py_OptimizeFlag)) {
5018  switch (__pyx_v_u->nd) {
5019  case 2:
5020  case 3:
5021  __pyx_t_1 = 1;
5022  break;
5023  default:
5024  __pyx_t_1 = 0;
5025  break;
5026  }
5027  if (unlikely(!(__pyx_t_1 != 0))) {
5028  PyErr_SetNone(PyExc_AssertionError);
5029  __PYX_ERR(0, 3028, __pyx_L1_error)
5030  }
5031  }
5032  #endif
5033 
5034  /* "ctransportCoefficients.pyx":3029
5035  * np.ndarray a):
5036  * assert u.ndim in [2,3]
5037  * cgroundwaterTransportCoefficientsEvaluate_hetMat(u.size/u.shape[u.ndim-1], # <<<<<<<<<<<<<<
5038  * u.shape[u.ndim-1],
5039  * f.shape[f.ndim-1],
5040  */
5041  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3029, __pyx_L1_error)
5042  __Pyx_GOTREF(__pyx_t_2);
5043  __pyx_t_3 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_u->dimensions[(__pyx_v_u->nd - 1)])); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3029, __pyx_L1_error)
5044  __Pyx_GOTREF(__pyx_t_3);
5045  __pyx_t_4 = __Pyx_PyNumber_Divide(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3029, __pyx_L1_error)
5046  __Pyx_GOTREF(__pyx_t_4);
5047  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
5048  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
5049  __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_4); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3029, __pyx_L1_error)
5050  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
5051 
5052  /* "ctransportCoefficients.pyx":3043
5053  * <double*> f.data,
5054  * <double*> df.data,
5055  * <double*> a.data) # <<<<<<<<<<<<<<
5056  *
5057  * def variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat(const double d,
5058  */
5059  groundwaterTransportCoefficientsEvaluate_hetMat(__pyx_t_5, (__pyx_v_u->dimensions[(__pyx_v_u->nd - 1)]), (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_d, ((int *)__pyx_v_materialTypes->data), ((double *)__pyx_v_omega_types->data), ((double *)__pyx_v_alpha_L_types->data), ((double *)__pyx_v_alpha_T_types->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data));
5060 
5061  /* "ctransportCoefficients.pyx":3016
5062  * <double*> dr_h_dm.data,
5063  * <double*> dr_h_dh.data)
5064  * def groundwaterTransportCoefficientsEvaluate_hetMat(const double d, # <<<<<<<<<<<<<<
5065  * np.ndarray materialTypes,
5066  * np.ndarray omega_types,
5067  */
5068 
5069  /* function exit code */
5070  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5071  goto __pyx_L0;
5072  __pyx_L1_error:;
5073  __Pyx_XDECREF(__pyx_t_2);
5074  __Pyx_XDECREF(__pyx_t_3);
5075  __Pyx_XDECREF(__pyx_t_4);
5076  __Pyx_AddTraceback("ctransportCoefficients.groundwaterTransportCoefficientsEvaluate_hetMat", __pyx_clineno, __pyx_lineno, __pyx_filename);
5077  __pyx_r = NULL;
5078  __pyx_L0:;
5079  __Pyx_XGIVEREF(__pyx_r);
5080  __Pyx_RefNannyFinishContext();
5081  return __pyx_r;
5082 }
5083 
5084 /* "ctransportCoefficients.pyx":3045
5085  * <double*> a.data)
5086  *
5087  * def variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat(const double d, # <<<<<<<<<<<<<<
5088  * np.ndarray materialTypes,
5089  * np.ndarray theta,
5090  */
5091 
5092 /* Python wrapper */
5093 static PyObject *__pyx_pw_22ctransportCoefficients_11variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
5094 static PyMethodDef __pyx_mdef_22ctransportCoefficients_11variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat = {"variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_11variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat, METH_VARARGS|METH_KEYWORDS, 0};
5095 static PyObject *__pyx_pw_22ctransportCoefficients_11variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
5096  double __pyx_v_d;
5097  PyArrayObject *__pyx_v_materialTypes = 0;
5098  PyArrayObject *__pyx_v_theta = 0;
5099  PyArrayObject *__pyx_v_alpha_L_types = 0;
5100  PyArrayObject *__pyx_v_alpha_T_types = 0;
5101  PyArrayObject *__pyx_v_v = 0;
5102  PyArrayObject *__pyx_v_u = 0;
5103  PyArrayObject *__pyx_v_m = 0;
5104  PyArrayObject *__pyx_v_dm = 0;
5105  PyArrayObject *__pyx_v_f = 0;
5106  PyArrayObject *__pyx_v_df = 0;
5107  PyArrayObject *__pyx_v_a = 0;
5108  int __pyx_lineno = 0;
5109  const char *__pyx_filename = NULL;
5110  int __pyx_clineno = 0;
5111  PyObject *__pyx_r = 0;
5112  __Pyx_RefNannyDeclarations
5113  __Pyx_RefNannySetupContext("variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat (wrapper)", 0);
5114  {
5115  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_d,&__pyx_n_s_materialTypes,&__pyx_n_s_theta,&__pyx_n_s_alpha_L_types,&__pyx_n_s_alpha_T_types,&__pyx_n_s_v,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,0};
5116  PyObject* values[12] = {0,0,0,0,0,0,0,0,0,0,0,0};
5117  if (unlikely(__pyx_kwds)) {
5118  Py_ssize_t kw_args;
5119  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
5120  switch (pos_args) {
5121  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
5122  CYTHON_FALLTHROUGH;
5123  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
5124  CYTHON_FALLTHROUGH;
5125  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
5126  CYTHON_FALLTHROUGH;
5127  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
5128  CYTHON_FALLTHROUGH;
5129  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
5130  CYTHON_FALLTHROUGH;
5131  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5132  CYTHON_FALLTHROUGH;
5133  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5134  CYTHON_FALLTHROUGH;
5135  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5136  CYTHON_FALLTHROUGH;
5137  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5138  CYTHON_FALLTHROUGH;
5139  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5140  CYTHON_FALLTHROUGH;
5141  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5142  CYTHON_FALLTHROUGH;
5143  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5144  CYTHON_FALLTHROUGH;
5145  case 0: break;
5146  default: goto __pyx_L5_argtuple_error;
5147  }
5148  kw_args = PyDict_Size(__pyx_kwds);
5149  switch (pos_args) {
5150  case 0:
5151  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_d)) != 0)) kw_args--;
5152  else goto __pyx_L5_argtuple_error;
5153  CYTHON_FALLTHROUGH;
5154  case 1:
5155  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_materialTypes)) != 0)) kw_args--;
5156  else {
5157  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 1); __PYX_ERR(0, 3045, __pyx_L3_error)
5158  }
5159  CYTHON_FALLTHROUGH;
5160  case 2:
5161  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_theta)) != 0)) kw_args--;
5162  else {
5163  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 2); __PYX_ERR(0, 3045, __pyx_L3_error)
5164  }
5165  CYTHON_FALLTHROUGH;
5166  case 3:
5167  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha_L_types)) != 0)) kw_args--;
5168  else {
5169  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 3); __PYX_ERR(0, 3045, __pyx_L3_error)
5170  }
5171  CYTHON_FALLTHROUGH;
5172  case 4:
5173  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha_T_types)) != 0)) kw_args--;
5174  else {
5175  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 4); __PYX_ERR(0, 3045, __pyx_L3_error)
5176  }
5177  CYTHON_FALLTHROUGH;
5178  case 5:
5179  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
5180  else {
5181  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 5); __PYX_ERR(0, 3045, __pyx_L3_error)
5182  }
5183  CYTHON_FALLTHROUGH;
5184  case 6:
5185  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
5186  else {
5187  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 6); __PYX_ERR(0, 3045, __pyx_L3_error)
5188  }
5189  CYTHON_FALLTHROUGH;
5190  case 7:
5191  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
5192  else {
5193  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 7); __PYX_ERR(0, 3045, __pyx_L3_error)
5194  }
5195  CYTHON_FALLTHROUGH;
5196  case 8:
5197  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
5198  else {
5199  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 8); __PYX_ERR(0, 3045, __pyx_L3_error)
5200  }
5201  CYTHON_FALLTHROUGH;
5202  case 9:
5203  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
5204  else {
5205  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 9); __PYX_ERR(0, 3045, __pyx_L3_error)
5206  }
5207  CYTHON_FALLTHROUGH;
5208  case 10:
5209  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
5210  else {
5211  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 10); __PYX_ERR(0, 3045, __pyx_L3_error)
5212  }
5213  CYTHON_FALLTHROUGH;
5214  case 11:
5215  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
5216  else {
5217  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 11); __PYX_ERR(0, 3045, __pyx_L3_error)
5218  }
5219  }
5220  if (unlikely(kw_args > 0)) {
5221  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat") < 0)) __PYX_ERR(0, 3045, __pyx_L3_error)
5222  }
5223  } else if (PyTuple_GET_SIZE(__pyx_args) != 12) {
5224  goto __pyx_L5_argtuple_error;
5225  } else {
5226  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5227  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5228  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5229  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5230  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5231  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5232  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5233  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
5234  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
5235  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
5236  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
5237  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
5238  }
5239  __pyx_v_d = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_d == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3045, __pyx_L3_error)
5240  __pyx_v_materialTypes = ((PyArrayObject *)values[1]);
5241  __pyx_v_theta = ((PyArrayObject *)values[2]);
5242  __pyx_v_alpha_L_types = ((PyArrayObject *)values[3]);
5243  __pyx_v_alpha_T_types = ((PyArrayObject *)values[4]);
5244  __pyx_v_v = ((PyArrayObject *)values[5]);
5245  __pyx_v_u = ((PyArrayObject *)values[6]);
5246  __pyx_v_m = ((PyArrayObject *)values[7]);
5247  __pyx_v_dm = ((PyArrayObject *)values[8]);
5248  __pyx_v_f = ((PyArrayObject *)values[9]);
5249  __pyx_v_df = ((PyArrayObject *)values[10]);
5250  __pyx_v_a = ((PyArrayObject *)values[11]);
5251  }
5252  goto __pyx_L4_argument_unpacking_done;
5253  __pyx_L5_argtuple_error:;
5254  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3045, __pyx_L3_error)
5255  __pyx_L3_error:;
5256  __Pyx_AddTraceback("ctransportCoefficients.variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", __pyx_clineno, __pyx_lineno, __pyx_filename);
5257  __Pyx_RefNannyFinishContext();
5258  return NULL;
5259  __pyx_L4_argument_unpacking_done:;
5260  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_materialTypes), __pyx_ptype_5numpy_ndarray, 1, "materialTypes", 0))) __PYX_ERR(0, 3046, __pyx_L1_error)
5261  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_theta), __pyx_ptype_5numpy_ndarray, 1, "theta", 0))) __PYX_ERR(0, 3047, __pyx_L1_error)
5262  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha_L_types), __pyx_ptype_5numpy_ndarray, 1, "alpha_L_types", 0))) __PYX_ERR(0, 3048, __pyx_L1_error)
5263  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha_T_types), __pyx_ptype_5numpy_ndarray, 1, "alpha_T_types", 0))) __PYX_ERR(0, 3049, __pyx_L1_error)
5264  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 3050, __pyx_L1_error)
5265  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3051, __pyx_L1_error)
5266  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 3052, __pyx_L1_error)
5267  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 3053, __pyx_L1_error)
5268  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 3054, __pyx_L1_error)
5269  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 3055, __pyx_L1_error)
5270  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 3056, __pyx_L1_error)
5271  __pyx_r = __pyx_pf_22ctransportCoefficients_10variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat(__pyx_self, __pyx_v_d, __pyx_v_materialTypes, __pyx_v_theta, __pyx_v_alpha_L_types, __pyx_v_alpha_T_types, __pyx_v_v, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a);
5272 
5273  /* function exit code */
5274  goto __pyx_L0;
5275  __pyx_L1_error:;
5276  __pyx_r = NULL;
5277  __pyx_L0:;
5278  __Pyx_RefNannyFinishContext();
5279  return __pyx_r;
5280 }
5281 
5282 static PyObject *__pyx_pf_22ctransportCoefficients_10variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_d, PyArrayObject *__pyx_v_materialTypes, PyArrayObject *__pyx_v_theta, PyArrayObject *__pyx_v_alpha_L_types, PyArrayObject *__pyx_v_alpha_T_types, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a) {
5283  npy_intp __pyx_v_nSimplex;
5284  npy_intp __pyx_v_nPointsPerSimplex;
5285  PyObject *__pyx_r = NULL;
5286  __Pyx_RefNannyDeclarations
5287  int __pyx_t_1;
5288  int __pyx_lineno = 0;
5289  const char *__pyx_filename = NULL;
5290  int __pyx_clineno = 0;
5291  __Pyx_RefNannySetupContext("variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", 0);
5292 
5293  /* "ctransportCoefficients.pyx":3057
5294  * np.ndarray df,
5295  * np.ndarray a):
5296  * if u.ndim in [2,3]: # <<<<<<<<<<<<<<
5297  * if u.ndim == 2:
5298  * nSimplex = u.shape[0]
5299  */
5300  switch (__pyx_v_u->nd) {
5301  case 2:
5302  case 3:
5303 
5304  /* "ctransportCoefficients.pyx":3058
5305  * np.ndarray a):
5306  * if u.ndim in [2,3]:
5307  * if u.ndim == 2: # <<<<<<<<<<<<<<
5308  * nSimplex = u.shape[0]
5309  * nPointsPerSimplex = u.shape[1]
5310  */
5311  __pyx_t_1 = ((__pyx_v_u->nd == 2) != 0);
5312  if (__pyx_t_1) {
5313 
5314  /* "ctransportCoefficients.pyx":3059
5315  * if u.ndim in [2,3]:
5316  * if u.ndim == 2:
5317  * nSimplex = u.shape[0] # <<<<<<<<<<<<<<
5318  * nPointsPerSimplex = u.shape[1]
5319  * else:
5320  */
5321  __pyx_v_nSimplex = (__pyx_v_u->dimensions[0]);
5322 
5323  /* "ctransportCoefficients.pyx":3060
5324  * if u.ndim == 2:
5325  * nSimplex = u.shape[0]
5326  * nPointsPerSimplex = u.shape[1] # <<<<<<<<<<<<<<
5327  * else:
5328  * nSimplex = u.shape[0]*u.shape[1]
5329  */
5330  __pyx_v_nPointsPerSimplex = (__pyx_v_u->dimensions[1]);
5331 
5332  /* "ctransportCoefficients.pyx":3058
5333  * np.ndarray a):
5334  * if u.ndim in [2,3]:
5335  * if u.ndim == 2: # <<<<<<<<<<<<<<
5336  * nSimplex = u.shape[0]
5337  * nPointsPerSimplex = u.shape[1]
5338  */
5339  goto __pyx_L3;
5340  }
5341 
5342  /* "ctransportCoefficients.pyx":3062
5343  * nPointsPerSimplex = u.shape[1]
5344  * else:
5345  * nSimplex = u.shape[0]*u.shape[1] # <<<<<<<<<<<<<<
5346  * nPointsPerSimplex = u.shape[2]
5347  * cvariablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat(nSimplex,
5348  */
5349  /*else*/ {
5350  __pyx_v_nSimplex = ((__pyx_v_u->dimensions[0]) * (__pyx_v_u->dimensions[1]));
5351 
5352  /* "ctransportCoefficients.pyx":3063
5353  * else:
5354  * nSimplex = u.shape[0]*u.shape[1]
5355  * nPointsPerSimplex = u.shape[2] # <<<<<<<<<<<<<<
5356  * cvariablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat(nSimplex,
5357  * nPointsPerSimplex,
5358  */
5359  __pyx_v_nPointsPerSimplex = (__pyx_v_u->dimensions[2]);
5360  }
5361  __pyx_L3:;
5362 
5363  /* "ctransportCoefficients.pyx":3064
5364  * nSimplex = u.shape[0]*u.shape[1]
5365  * nPointsPerSimplex = u.shape[2]
5366  * cvariablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat(nSimplex, # <<<<<<<<<<<<<<
5367  * nPointsPerSimplex,
5368  * f.shape[f.ndim-1],
5369  */
5370  variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat(__pyx_v_nSimplex, __pyx_v_nPointsPerSimplex, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_d, ((int *)__pyx_v_materialTypes->data), ((double *)__pyx_v_theta->data), ((double *)__pyx_v_alpha_L_types->data), ((double *)__pyx_v_alpha_T_types->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data));
5371 
5372  /* "ctransportCoefficients.pyx":3057
5373  * np.ndarray df,
5374  * np.ndarray a):
5375  * if u.ndim in [2,3]: # <<<<<<<<<<<<<<
5376  * if u.ndim == 2:
5377  * nSimplex = u.shape[0]
5378  */
5379  break;
5380  default:
5381 
5382  /* "ctransportCoefficients.pyx":3080
5383  * <double*> a.data)
5384  * else:
5385  * assert 0 # <<<<<<<<<<<<<<
5386  * def variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat(const double rho_w,
5387  * const double rho_n,
5388  */
5389  #ifndef CYTHON_WITHOUT_ASSERTIONS
5390  if (unlikely(!Py_OptimizeFlag)) {
5391  if (unlikely(!0)) {
5392  PyErr_SetNone(PyExc_AssertionError);
5393  __PYX_ERR(0, 3080, __pyx_L1_error)
5394  }
5395  }
5396  #endif
5397  break;
5398  }
5399 
5400  /* "ctransportCoefficients.pyx":3045
5401  * <double*> a.data)
5402  *
5403  * def variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat(const double d, # <<<<<<<<<<<<<<
5404  * np.ndarray materialTypes,
5405  * np.ndarray theta,
5406  */
5407 
5408  /* function exit code */
5409  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5410  goto __pyx_L0;
5411  __pyx_L1_error:;
5412  __Pyx_AddTraceback("ctransportCoefficients.variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", __pyx_clineno, __pyx_lineno, __pyx_filename);
5413  __pyx_r = NULL;
5414  __pyx_L0:;
5415  __Pyx_XGIVEREF(__pyx_r);
5416  __Pyx_RefNannyFinishContext();
5417  return __pyx_r;
5418 }
5419 
5420 /* "ctransportCoefficients.pyx":3081
5421  * else:
5422  * assert 0
5423  * def variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat(const double rho_w, # <<<<<<<<<<<<<<
5424  * const double rho_n,
5425  * const double specificHeat_w,
5426  */
5427 
5428 /* Python wrapper */
5429 static PyObject *__pyx_pw_22ctransportCoefficients_13variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
5430 static PyMethodDef __pyx_mdef_22ctransportCoefficients_13variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat = {"variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_13variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat, METH_VARARGS|METH_KEYWORDS, 0};
5431 static PyObject *__pyx_pw_22ctransportCoefficients_13variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
5432  double __pyx_v_rho_w;
5433  double __pyx_v_rho_n;
5434  double __pyx_v_specificHeat_w;
5435  double __pyx_v_specificHeat_n;
5436  PyArrayObject *__pyx_v_materialTypes = 0;
5437  PyArrayObject *__pyx_v_theta = 0;
5438  PyArrayObject *__pyx_v_thetaS_types = 0;
5439  PyArrayObject *__pyx_v_alpha_L_types = 0;
5440  PyArrayObject *__pyx_v_alpha_T_types = 0;
5441  PyArrayObject *__pyx_v_rho_s_types = 0;
5442  PyArrayObject *__pyx_v_specificHeat_s_types = 0;
5443  PyArrayObject *__pyx_v_Lambda_sat_types = 0;
5444  PyArrayObject *__pyx_v_Lambda_dry_types = 0;
5445  PyArrayObject *__pyx_v_Lambda_aniso_types = 0;
5446  PyArrayObject *__pyx_v_v = 0;
5447  PyArrayObject *__pyx_v_u = 0;
5448  PyArrayObject *__pyx_v_m = 0;
5449  PyArrayObject *__pyx_v_dm = 0;
5450  PyArrayObject *__pyx_v_f = 0;
5451  PyArrayObject *__pyx_v_df = 0;
5452  PyArrayObject *__pyx_v_a = 0;
5453  int __pyx_lineno = 0;
5454  const char *__pyx_filename = NULL;
5455  int __pyx_clineno = 0;
5456  PyObject *__pyx_r = 0;
5457  __Pyx_RefNannyDeclarations
5458  __Pyx_RefNannySetupContext("variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat (wrapper)", 0);
5459  {
5460  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho_w,&__pyx_n_s_rho_n,&__pyx_n_s_specificHeat_w,&__pyx_n_s_specificHeat_n,&__pyx_n_s_materialTypes,&__pyx_n_s_theta,&__pyx_n_s_thetaS_types,&__pyx_n_s_alpha_L_types,&__pyx_n_s_alpha_T_types,&__pyx_n_s_rho_s_types,&__pyx_n_s_specificHeat_s_types,&__pyx_n_s_Lambda_sat_types,&__pyx_n_s_Lambda_dry_types,&__pyx_n_s_Lambda_aniso_types,&__pyx_n_s_v,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,0};
5461  PyObject* values[21] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
5462  if (unlikely(__pyx_kwds)) {
5463  Py_ssize_t kw_args;
5464  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
5465  switch (pos_args) {
5466  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
5467  CYTHON_FALLTHROUGH;
5468  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
5469  CYTHON_FALLTHROUGH;
5470  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
5471  CYTHON_FALLTHROUGH;
5472  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
5473  CYTHON_FALLTHROUGH;
5474  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
5475  CYTHON_FALLTHROUGH;
5476  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
5477  CYTHON_FALLTHROUGH;
5478  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
5479  CYTHON_FALLTHROUGH;
5480  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
5481  CYTHON_FALLTHROUGH;
5482  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
5483  CYTHON_FALLTHROUGH;
5484  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
5485  CYTHON_FALLTHROUGH;
5486  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
5487  CYTHON_FALLTHROUGH;
5488  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
5489  CYTHON_FALLTHROUGH;
5490  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
5491  CYTHON_FALLTHROUGH;
5492  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
5493  CYTHON_FALLTHROUGH;
5494  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5495  CYTHON_FALLTHROUGH;
5496  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5497  CYTHON_FALLTHROUGH;
5498  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5499  CYTHON_FALLTHROUGH;
5500  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5501  CYTHON_FALLTHROUGH;
5502  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5503  CYTHON_FALLTHROUGH;
5504  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5505  CYTHON_FALLTHROUGH;
5506  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5507  CYTHON_FALLTHROUGH;
5508  case 0: break;
5509  default: goto __pyx_L5_argtuple_error;
5510  }
5511  kw_args = PyDict_Size(__pyx_kwds);
5512  switch (pos_args) {
5513  case 0:
5514  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_w)) != 0)) kw_args--;
5515  else goto __pyx_L5_argtuple_error;
5516  CYTHON_FALLTHROUGH;
5517  case 1:
5518  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_n)) != 0)) kw_args--;
5519  else {
5520  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 1); __PYX_ERR(0, 3081, __pyx_L3_error)
5521  }
5522  CYTHON_FALLTHROUGH;
5523  case 2:
5524  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_specificHeat_w)) != 0)) kw_args--;
5525  else {
5526  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 2); __PYX_ERR(0, 3081, __pyx_L3_error)
5527  }
5528  CYTHON_FALLTHROUGH;
5529  case 3:
5530  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_specificHeat_n)) != 0)) kw_args--;
5531  else {
5532  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 3); __PYX_ERR(0, 3081, __pyx_L3_error)
5533  }
5534  CYTHON_FALLTHROUGH;
5535  case 4:
5536  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_materialTypes)) != 0)) kw_args--;
5537  else {
5538  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 4); __PYX_ERR(0, 3081, __pyx_L3_error)
5539  }
5540  CYTHON_FALLTHROUGH;
5541  case 5:
5542  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_theta)) != 0)) kw_args--;
5543  else {
5544  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 5); __PYX_ERR(0, 3081, __pyx_L3_error)
5545  }
5546  CYTHON_FALLTHROUGH;
5547  case 6:
5548  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaS_types)) != 0)) kw_args--;
5549  else {
5550  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 6); __PYX_ERR(0, 3081, __pyx_L3_error)
5551  }
5552  CYTHON_FALLTHROUGH;
5553  case 7:
5554  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha_L_types)) != 0)) kw_args--;
5555  else {
5556  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 7); __PYX_ERR(0, 3081, __pyx_L3_error)
5557  }
5558  CYTHON_FALLTHROUGH;
5559  case 8:
5560  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha_T_types)) != 0)) kw_args--;
5561  else {
5562  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 8); __PYX_ERR(0, 3081, __pyx_L3_error)
5563  }
5564  CYTHON_FALLTHROUGH;
5565  case 9:
5566  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_s_types)) != 0)) kw_args--;
5567  else {
5568  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 9); __PYX_ERR(0, 3081, __pyx_L3_error)
5569  }
5570  CYTHON_FALLTHROUGH;
5571  case 10:
5572  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_specificHeat_s_types)) != 0)) kw_args--;
5573  else {
5574  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 10); __PYX_ERR(0, 3081, __pyx_L3_error)
5575  }
5576  CYTHON_FALLTHROUGH;
5577  case 11:
5578  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lambda_sat_types)) != 0)) kw_args--;
5579  else {
5580  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 11); __PYX_ERR(0, 3081, __pyx_L3_error)
5581  }
5582  CYTHON_FALLTHROUGH;
5583  case 12:
5584  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lambda_dry_types)) != 0)) kw_args--;
5585  else {
5586  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 12); __PYX_ERR(0, 3081, __pyx_L3_error)
5587  }
5588  CYTHON_FALLTHROUGH;
5589  case 13:
5590  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lambda_aniso_types)) != 0)) kw_args--;
5591  else {
5592  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 13); __PYX_ERR(0, 3081, __pyx_L3_error)
5593  }
5594  CYTHON_FALLTHROUGH;
5595  case 14:
5596  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
5597  else {
5598  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 14); __PYX_ERR(0, 3081, __pyx_L3_error)
5599  }
5600  CYTHON_FALLTHROUGH;
5601  case 15:
5602  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
5603  else {
5604  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 15); __PYX_ERR(0, 3081, __pyx_L3_error)
5605  }
5606  CYTHON_FALLTHROUGH;
5607  case 16:
5608  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
5609  else {
5610  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 16); __PYX_ERR(0, 3081, __pyx_L3_error)
5611  }
5612  CYTHON_FALLTHROUGH;
5613  case 17:
5614  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
5615  else {
5616  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 17); __PYX_ERR(0, 3081, __pyx_L3_error)
5617  }
5618  CYTHON_FALLTHROUGH;
5619  case 18:
5620  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
5621  else {
5622  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 18); __PYX_ERR(0, 3081, __pyx_L3_error)
5623  }
5624  CYTHON_FALLTHROUGH;
5625  case 19:
5626  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
5627  else {
5628  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 19); __PYX_ERR(0, 3081, __pyx_L3_error)
5629  }
5630  CYTHON_FALLTHROUGH;
5631  case 20:
5632  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
5633  else {
5634  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 20); __PYX_ERR(0, 3081, __pyx_L3_error)
5635  }
5636  }
5637  if (unlikely(kw_args > 0)) {
5638  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat") < 0)) __PYX_ERR(0, 3081, __pyx_L3_error)
5639  }
5640  } else if (PyTuple_GET_SIZE(__pyx_args) != 21) {
5641  goto __pyx_L5_argtuple_error;
5642  } else {
5643  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5644  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5645  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5646  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5647  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5648  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5649  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5650  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
5651  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
5652  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
5653  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
5654  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
5655  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
5656  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
5657  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
5658  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
5659  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
5660  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
5661  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
5662  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
5663  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
5664  }
5665  __pyx_v_rho_w = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_rho_w == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3081, __pyx_L3_error)
5666  __pyx_v_rho_n = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_rho_n == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3082, __pyx_L3_error)
5667  __pyx_v_specificHeat_w = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_specificHeat_w == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3083, __pyx_L3_error)
5668  __pyx_v_specificHeat_n = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_specificHeat_n == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3084, __pyx_L3_error)
5669  __pyx_v_materialTypes = ((PyArrayObject *)values[4]);
5670  __pyx_v_theta = ((PyArrayObject *)values[5]);
5671  __pyx_v_thetaS_types = ((PyArrayObject *)values[6]);
5672  __pyx_v_alpha_L_types = ((PyArrayObject *)values[7]);
5673  __pyx_v_alpha_T_types = ((PyArrayObject *)values[8]);
5674  __pyx_v_rho_s_types = ((PyArrayObject *)values[9]);
5675  __pyx_v_specificHeat_s_types = ((PyArrayObject *)values[10]);
5676  __pyx_v_Lambda_sat_types = ((PyArrayObject *)values[11]);
5677  __pyx_v_Lambda_dry_types = ((PyArrayObject *)values[12]);
5678  __pyx_v_Lambda_aniso_types = ((PyArrayObject *)values[13]);
5679  __pyx_v_v = ((PyArrayObject *)values[14]);
5680  __pyx_v_u = ((PyArrayObject *)values[15]);
5681  __pyx_v_m = ((PyArrayObject *)values[16]);
5682  __pyx_v_dm = ((PyArrayObject *)values[17]);
5683  __pyx_v_f = ((PyArrayObject *)values[18]);
5684  __pyx_v_df = ((PyArrayObject *)values[19]);
5685  __pyx_v_a = ((PyArrayObject *)values[20]);
5686  }
5687  goto __pyx_L4_argument_unpacking_done;
5688  __pyx_L5_argtuple_error:;
5689  __Pyx_RaiseArgtupleInvalid("variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3081, __pyx_L3_error)
5690  __pyx_L3_error:;
5691  __Pyx_AddTraceback("ctransportCoefficients.variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", __pyx_clineno, __pyx_lineno, __pyx_filename);
5692  __Pyx_RefNannyFinishContext();
5693  return NULL;
5694  __pyx_L4_argument_unpacking_done:;
5695  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_materialTypes), __pyx_ptype_5numpy_ndarray, 1, "materialTypes", 0))) __PYX_ERR(0, 3085, __pyx_L1_error)
5696  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_theta), __pyx_ptype_5numpy_ndarray, 1, "theta", 0))) __PYX_ERR(0, 3086, __pyx_L1_error)
5697  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaS_types), __pyx_ptype_5numpy_ndarray, 1, "thetaS_types", 0))) __PYX_ERR(0, 3087, __pyx_L1_error)
5698  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha_L_types), __pyx_ptype_5numpy_ndarray, 1, "alpha_L_types", 0))) __PYX_ERR(0, 3088, __pyx_L1_error)
5699  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha_T_types), __pyx_ptype_5numpy_ndarray, 1, "alpha_T_types", 0))) __PYX_ERR(0, 3089, __pyx_L1_error)
5700  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rho_s_types), __pyx_ptype_5numpy_ndarray, 1, "rho_s_types", 0))) __PYX_ERR(0, 3090, __pyx_L1_error)
5701  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_specificHeat_s_types), __pyx_ptype_5numpy_ndarray, 1, "specificHeat_s_types", 0))) __PYX_ERR(0, 3091, __pyx_L1_error)
5702  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Lambda_sat_types), __pyx_ptype_5numpy_ndarray, 1, "Lambda_sat_types", 0))) __PYX_ERR(0, 3092, __pyx_L1_error)
5703  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Lambda_dry_types), __pyx_ptype_5numpy_ndarray, 1, "Lambda_dry_types", 0))) __PYX_ERR(0, 3093, __pyx_L1_error)
5704  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Lambda_aniso_types), __pyx_ptype_5numpy_ndarray, 1, "Lambda_aniso_types", 0))) __PYX_ERR(0, 3094, __pyx_L1_error)
5705  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 3095, __pyx_L1_error)
5706  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3096, __pyx_L1_error)
5707  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 3097, __pyx_L1_error)
5708  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 3098, __pyx_L1_error)
5709  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 3099, __pyx_L1_error)
5710  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 3100, __pyx_L1_error)
5711  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 3101, __pyx_L1_error)
5712  __pyx_r = __pyx_pf_22ctransportCoefficients_12variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat(__pyx_self, __pyx_v_rho_w, __pyx_v_rho_n, __pyx_v_specificHeat_w, __pyx_v_specificHeat_n, __pyx_v_materialTypes, __pyx_v_theta, __pyx_v_thetaS_types, __pyx_v_alpha_L_types, __pyx_v_alpha_T_types, __pyx_v_rho_s_types, __pyx_v_specificHeat_s_types, __pyx_v_Lambda_sat_types, __pyx_v_Lambda_dry_types, __pyx_v_Lambda_aniso_types, __pyx_v_v, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a);
5713 
5714  /* function exit code */
5715  goto __pyx_L0;
5716  __pyx_L1_error:;
5717  __pyx_r = NULL;
5718  __pyx_L0:;
5719  __Pyx_RefNannyFinishContext();
5720  return __pyx_r;
5721 }
5722 
5723 static PyObject *__pyx_pf_22ctransportCoefficients_12variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho_w, double __pyx_v_rho_n, double __pyx_v_specificHeat_w, double __pyx_v_specificHeat_n, PyArrayObject *__pyx_v_materialTypes, PyArrayObject *__pyx_v_theta, PyArrayObject *__pyx_v_thetaS_types, PyArrayObject *__pyx_v_alpha_L_types, PyArrayObject *__pyx_v_alpha_T_types, PyArrayObject *__pyx_v_rho_s_types, PyArrayObject *__pyx_v_specificHeat_s_types, PyArrayObject *__pyx_v_Lambda_sat_types, PyArrayObject *__pyx_v_Lambda_dry_types, PyArrayObject *__pyx_v_Lambda_aniso_types, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a) {
5724  npy_intp __pyx_v_nSimplex;
5725  npy_intp __pyx_v_nPointsPerSimplex;
5726  PyObject *__pyx_r = NULL;
5727  __Pyx_RefNannyDeclarations
5728  int __pyx_t_1;
5729  int __pyx_lineno = 0;
5730  const char *__pyx_filename = NULL;
5731  int __pyx_clineno = 0;
5732  __Pyx_RefNannySetupContext("variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 0);
5733 
5734  /* "ctransportCoefficients.pyx":3102
5735  * np.ndarray df,
5736  * np.ndarray a):
5737  * if u.ndim in [2,3]: # <<<<<<<<<<<<<<
5738  * if u.ndim == 2:
5739  * nSimplex = u.shape[0]
5740  */
5741  switch (__pyx_v_u->nd) {
5742  case 2:
5743  case 3:
5744 
5745  /* "ctransportCoefficients.pyx":3103
5746  * np.ndarray a):
5747  * if u.ndim in [2,3]:
5748  * if u.ndim == 2: # <<<<<<<<<<<<<<
5749  * nSimplex = u.shape[0]
5750  * nPointsPerSimplex = u.shape[1]
5751  */
5752  __pyx_t_1 = ((__pyx_v_u->nd == 2) != 0);
5753  if (__pyx_t_1) {
5754 
5755  /* "ctransportCoefficients.pyx":3104
5756  * if u.ndim in [2,3]:
5757  * if u.ndim == 2:
5758  * nSimplex = u.shape[0] # <<<<<<<<<<<<<<
5759  * nPointsPerSimplex = u.shape[1]
5760  * else:
5761  */
5762  __pyx_v_nSimplex = (__pyx_v_u->dimensions[0]);
5763 
5764  /* "ctransportCoefficients.pyx":3105
5765  * if u.ndim == 2:
5766  * nSimplex = u.shape[0]
5767  * nPointsPerSimplex = u.shape[1] # <<<<<<<<<<<<<<
5768  * else:
5769  * nSimplex = u.shape[0]*u.shape[1]
5770  */
5771  __pyx_v_nPointsPerSimplex = (__pyx_v_u->dimensions[1]);
5772 
5773  /* "ctransportCoefficients.pyx":3103
5774  * np.ndarray a):
5775  * if u.ndim in [2,3]:
5776  * if u.ndim == 2: # <<<<<<<<<<<<<<
5777  * nSimplex = u.shape[0]
5778  * nPointsPerSimplex = u.shape[1]
5779  */
5780  goto __pyx_L3;
5781  }
5782 
5783  /* "ctransportCoefficients.pyx":3107
5784  * nPointsPerSimplex = u.shape[1]
5785  * else:
5786  * nSimplex = u.shape[0]*u.shape[1] # <<<<<<<<<<<<<<
5787  * nPointsPerSimplex = u.shape[2]
5788  * cvariablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat(nSimplex,
5789  */
5790  /*else*/ {
5791  __pyx_v_nSimplex = ((__pyx_v_u->dimensions[0]) * (__pyx_v_u->dimensions[1]));
5792 
5793  /* "ctransportCoefficients.pyx":3108
5794  * else:
5795  * nSimplex = u.shape[0]*u.shape[1]
5796  * nPointsPerSimplex = u.shape[2] # <<<<<<<<<<<<<<
5797  * cvariablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat(nSimplex,
5798  * nPointsPerSimplex,
5799  */
5800  __pyx_v_nPointsPerSimplex = (__pyx_v_u->dimensions[2]);
5801  }
5802  __pyx_L3:;
5803 
5804  /* "ctransportCoefficients.pyx":3109
5805  * nSimplex = u.shape[0]*u.shape[1]
5806  * nPointsPerSimplex = u.shape[2]
5807  * cvariablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat(nSimplex, # <<<<<<<<<<<<<<
5808  * nPointsPerSimplex,
5809  * f.shape[f.ndim-1],
5810  */
5811  variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat(__pyx_v_nSimplex, __pyx_v_nPointsPerSimplex, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_rho_w, __pyx_v_rho_n, __pyx_v_specificHeat_w, __pyx_v_specificHeat_n, ((int *)__pyx_v_materialTypes->data), ((double *)__pyx_v_theta->data), ((double *)__pyx_v_thetaS_types->data), ((double *)__pyx_v_alpha_L_types->data), ((double *)__pyx_v_alpha_T_types->data), ((double *)__pyx_v_rho_s_types->data), ((double *)__pyx_v_specificHeat_s_types->data), ((double *)__pyx_v_Lambda_sat_types->data), ((double *)__pyx_v_Lambda_dry_types->data), ((double *)__pyx_v_Lambda_aniso_types->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data));
5812 
5813  /* "ctransportCoefficients.pyx":3102
5814  * np.ndarray df,
5815  * np.ndarray a):
5816  * if u.ndim in [2,3]: # <<<<<<<<<<<<<<
5817  * if u.ndim == 2:
5818  * nSimplex = u.shape[0]
5819  */
5820  break;
5821  default:
5822 
5823  /* "ctransportCoefficients.pyx":3134
5824  * <double*> a.data)
5825  * else:
5826  * assert 0 # <<<<<<<<<<<<<<
5827  * def nonlinearADR_pqrstEvaluate(const double M,
5828  * np.ndarray A,
5829  */
5830  #ifndef CYTHON_WITHOUT_ASSERTIONS
5831  if (unlikely(!Py_OptimizeFlag)) {
5832  if (unlikely(!0)) {
5833  PyErr_SetNone(PyExc_AssertionError);
5834  __PYX_ERR(0, 3134, __pyx_L1_error)
5835  }
5836  }
5837  #endif
5838  break;
5839  }
5840 
5841  /* "ctransportCoefficients.pyx":3081
5842  * else:
5843  * assert 0
5844  * def variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat(const double rho_w, # <<<<<<<<<<<<<<
5845  * const double rho_n,
5846  * const double specificHeat_w,
5847  */
5848 
5849  /* function exit code */
5850  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5851  goto __pyx_L0;
5852  __pyx_L1_error:;
5853  __Pyx_AddTraceback("ctransportCoefficients.variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", __pyx_clineno, __pyx_lineno, __pyx_filename);
5854  __pyx_r = NULL;
5855  __pyx_L0:;
5856  __Pyx_XGIVEREF(__pyx_r);
5857  __Pyx_RefNannyFinishContext();
5858  return __pyx_r;
5859 }
5860 
5861 /* "ctransportCoefficients.pyx":3135
5862  * else:
5863  * assert 0
5864  * def nonlinearADR_pqrstEvaluate(const double M, # <<<<<<<<<<<<<<
5865  * np.ndarray A,
5866  * np.ndarray B,
5867  */
5868 
5869 /* Python wrapper */
5870 static PyObject *__pyx_pw_22ctransportCoefficients_15nonlinearADR_pqrstEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
5871 static PyMethodDef __pyx_mdef_22ctransportCoefficients_15nonlinearADR_pqrstEvaluate = {"nonlinearADR_pqrstEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_15nonlinearADR_pqrstEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
5872 static PyObject *__pyx_pw_22ctransportCoefficients_15nonlinearADR_pqrstEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
5873  double __pyx_v_M;
5874  PyArrayObject *__pyx_v_A = 0;
5875  PyArrayObject *__pyx_v_B = 0;
5876  double __pyx_v_C;
5877  double __pyx_v_p_pow;
5878  double __pyx_v_q_pow;
5879  double __pyx_v_r_pow;
5880  double __pyx_v_s_pow;
5881  double __pyx_v_t_pow;
5882  double __pyx_v_t;
5883  PyArrayObject *__pyx_v_x = 0;
5884  PyArrayObject *__pyx_v_u = 0;
5885  PyArrayObject *__pyx_v_m = 0;
5886  PyArrayObject *__pyx_v_dm = 0;
5887  PyArrayObject *__pyx_v_f = 0;
5888  PyArrayObject *__pyx_v_df = 0;
5889  PyArrayObject *__pyx_v_a = 0;
5890  PyArrayObject *__pyx_v_da = 0;
5891  PyArrayObject *__pyx_v_phi = 0;
5892  PyArrayObject *__pyx_v_dphi = 0;
5893  PyArrayObject *__pyx_v_r = 0;
5894  PyArrayObject *__pyx_v_dr = 0;
5895  int __pyx_lineno = 0;
5896  const char *__pyx_filename = NULL;
5897  int __pyx_clineno = 0;
5898  PyObject *__pyx_r = 0;
5899  __Pyx_RefNannyDeclarations
5900  __Pyx_RefNannySetupContext("nonlinearADR_pqrstEvaluate (wrapper)", 0);
5901  {
5902  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_M,&__pyx_n_s_A,&__pyx_n_s_B,&__pyx_n_s_C,&__pyx_n_s_p_pow,&__pyx_n_s_q_pow,&__pyx_n_s_r_pow,&__pyx_n_s_s_pow,&__pyx_n_s_t_pow,&__pyx_n_s_t,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_phi,&__pyx_n_s_dphi,&__pyx_n_s_r,&__pyx_n_s_dr,0};
5903  PyObject* values[22] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
5904  if (unlikely(__pyx_kwds)) {
5905  Py_ssize_t kw_args;
5906  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
5907  switch (pos_args) {
5908  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
5909  CYTHON_FALLTHROUGH;
5910  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
5911  CYTHON_FALLTHROUGH;
5912  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
5913  CYTHON_FALLTHROUGH;
5914  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
5915  CYTHON_FALLTHROUGH;
5916  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
5917  CYTHON_FALLTHROUGH;
5918  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
5919  CYTHON_FALLTHROUGH;
5920  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
5921  CYTHON_FALLTHROUGH;
5922  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
5923  CYTHON_FALLTHROUGH;
5924  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
5925  CYTHON_FALLTHROUGH;
5926  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
5927  CYTHON_FALLTHROUGH;
5928  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
5929  CYTHON_FALLTHROUGH;
5930  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
5931  CYTHON_FALLTHROUGH;
5932  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
5933  CYTHON_FALLTHROUGH;
5934  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
5935  CYTHON_FALLTHROUGH;
5936  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
5937  CYTHON_FALLTHROUGH;
5938  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5939  CYTHON_FALLTHROUGH;
5940  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5941  CYTHON_FALLTHROUGH;
5942  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5943  CYTHON_FALLTHROUGH;
5944  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5945  CYTHON_FALLTHROUGH;
5946  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5947  CYTHON_FALLTHROUGH;
5948  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5949  CYTHON_FALLTHROUGH;
5950  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5951  CYTHON_FALLTHROUGH;
5952  case 0: break;
5953  default: goto __pyx_L5_argtuple_error;
5954  }
5955  kw_args = PyDict_Size(__pyx_kwds);
5956  switch (pos_args) {
5957  case 0:
5958  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_M)) != 0)) kw_args--;
5959  else goto __pyx_L5_argtuple_error;
5960  CYTHON_FALLTHROUGH;
5961  case 1:
5962  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_A)) != 0)) kw_args--;
5963  else {
5964  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstEvaluate", 1, 22, 22, 1); __PYX_ERR(0, 3135, __pyx_L3_error)
5965  }
5966  CYTHON_FALLTHROUGH;
5967  case 2:
5968  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_B)) != 0)) kw_args--;
5969  else {
5970  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstEvaluate", 1, 22, 22, 2); __PYX_ERR(0, 3135, __pyx_L3_error)
5971  }
5972  CYTHON_FALLTHROUGH;
5973  case 3:
5974  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_C)) != 0)) kw_args--;
5975  else {
5976  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstEvaluate", 1, 22, 22, 3); __PYX_ERR(0, 3135, __pyx_L3_error)
5977  }
5978  CYTHON_FALLTHROUGH;
5979  case 4:
5980  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p_pow)) != 0)) kw_args--;
5981  else {
5982  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstEvaluate", 1, 22, 22, 4); __PYX_ERR(0, 3135, __pyx_L3_error)
5983  }
5984  CYTHON_FALLTHROUGH;
5985  case 5:
5986  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_q_pow)) != 0)) kw_args--;
5987  else {
5988  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstEvaluate", 1, 22, 22, 5); __PYX_ERR(0, 3135, __pyx_L3_error)
5989  }
5990  CYTHON_FALLTHROUGH;
5991  case 6:
5992  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_pow)) != 0)) kw_args--;
5993  else {
5994  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstEvaluate", 1, 22, 22, 6); __PYX_ERR(0, 3135, __pyx_L3_error)
5995  }
5996  CYTHON_FALLTHROUGH;
5997  case 7:
5998  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_s_pow)) != 0)) kw_args--;
5999  else {
6000  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstEvaluate", 1, 22, 22, 7); __PYX_ERR(0, 3135, __pyx_L3_error)
6001  }
6002  CYTHON_FALLTHROUGH;
6003  case 8:
6004  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t_pow)) != 0)) kw_args--;
6005  else {
6006  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstEvaluate", 1, 22, 22, 8); __PYX_ERR(0, 3135, __pyx_L3_error)
6007  }
6008  CYTHON_FALLTHROUGH;
6009  case 9:
6010  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
6011  else {
6012  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstEvaluate", 1, 22, 22, 9); __PYX_ERR(0, 3135, __pyx_L3_error)
6013  }
6014  CYTHON_FALLTHROUGH;
6015  case 10:
6016  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
6017  else {
6018  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstEvaluate", 1, 22, 22, 10); __PYX_ERR(0, 3135, __pyx_L3_error)
6019  }
6020  CYTHON_FALLTHROUGH;
6021  case 11:
6022  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
6023  else {
6024  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstEvaluate", 1, 22, 22, 11); __PYX_ERR(0, 3135, __pyx_L3_error)
6025  }
6026  CYTHON_FALLTHROUGH;
6027  case 12:
6028  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
6029  else {
6030  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstEvaluate", 1, 22, 22, 12); __PYX_ERR(0, 3135, __pyx_L3_error)
6031  }
6032  CYTHON_FALLTHROUGH;
6033  case 13:
6034  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
6035  else {
6036  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstEvaluate", 1, 22, 22, 13); __PYX_ERR(0, 3135, __pyx_L3_error)
6037  }
6038  CYTHON_FALLTHROUGH;
6039  case 14:
6040  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
6041  else {
6042  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstEvaluate", 1, 22, 22, 14); __PYX_ERR(0, 3135, __pyx_L3_error)
6043  }
6044  CYTHON_FALLTHROUGH;
6045  case 15:
6046  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
6047  else {
6048  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstEvaluate", 1, 22, 22, 15); __PYX_ERR(0, 3135, __pyx_L3_error)
6049  }
6050  CYTHON_FALLTHROUGH;
6051  case 16:
6052  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
6053  else {
6054  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstEvaluate", 1, 22, 22, 16); __PYX_ERR(0, 3135, __pyx_L3_error)
6055  }
6056  CYTHON_FALLTHROUGH;
6057  case 17:
6058  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
6059  else {
6060  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstEvaluate", 1, 22, 22, 17); __PYX_ERR(0, 3135, __pyx_L3_error)
6061  }
6062  CYTHON_FALLTHROUGH;
6063  case 18:
6064  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
6065  else {
6066  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstEvaluate", 1, 22, 22, 18); __PYX_ERR(0, 3135, __pyx_L3_error)
6067  }
6068  CYTHON_FALLTHROUGH;
6069  case 19:
6070  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
6071  else {
6072  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstEvaluate", 1, 22, 22, 19); __PYX_ERR(0, 3135, __pyx_L3_error)
6073  }
6074  CYTHON_FALLTHROUGH;
6075  case 20:
6076  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
6077  else {
6078  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstEvaluate", 1, 22, 22, 20); __PYX_ERR(0, 3135, __pyx_L3_error)
6079  }
6080  CYTHON_FALLTHROUGH;
6081  case 21:
6082  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
6083  else {
6084  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstEvaluate", 1, 22, 22, 21); __PYX_ERR(0, 3135, __pyx_L3_error)
6085  }
6086  }
6087  if (unlikely(kw_args > 0)) {
6088  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "nonlinearADR_pqrstEvaluate") < 0)) __PYX_ERR(0, 3135, __pyx_L3_error)
6089  }
6090  } else if (PyTuple_GET_SIZE(__pyx_args) != 22) {
6091  goto __pyx_L5_argtuple_error;
6092  } else {
6093  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6094  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6095  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6096  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6097  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6098  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6099  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
6100  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
6101  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
6102  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
6103  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
6104  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
6105  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
6106  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
6107  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
6108  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
6109  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
6110  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
6111  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
6112  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
6113  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
6114  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
6115  }
6116  __pyx_v_M = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_M == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3135, __pyx_L3_error)
6117  __pyx_v_A = ((PyArrayObject *)values[1]);
6118  __pyx_v_B = ((PyArrayObject *)values[2]);
6119  __pyx_v_C = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_C == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3138, __pyx_L3_error)
6120  __pyx_v_p_pow = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_p_pow == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3139, __pyx_L3_error)
6121  __pyx_v_q_pow = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_q_pow == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3140, __pyx_L3_error)
6122  __pyx_v_r_pow = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_r_pow == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3141, __pyx_L3_error)
6123  __pyx_v_s_pow = __pyx_PyFloat_AsDouble(values[7]); if (unlikely((__pyx_v_s_pow == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3142, __pyx_L3_error)
6124  __pyx_v_t_pow = __pyx_PyFloat_AsDouble(values[8]); if (unlikely((__pyx_v_t_pow == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3143, __pyx_L3_error)
6125  __pyx_v_t = __pyx_PyFloat_AsDouble(values[9]); if (unlikely((__pyx_v_t == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3144, __pyx_L3_error)
6126  __pyx_v_x = ((PyArrayObject *)values[10]);
6127  __pyx_v_u = ((PyArrayObject *)values[11]);
6128  __pyx_v_m = ((PyArrayObject *)values[12]);
6129  __pyx_v_dm = ((PyArrayObject *)values[13]);
6130  __pyx_v_f = ((PyArrayObject *)values[14]);
6131  __pyx_v_df = ((PyArrayObject *)values[15]);
6132  __pyx_v_a = ((PyArrayObject *)values[16]);
6133  __pyx_v_da = ((PyArrayObject *)values[17]);
6134  __pyx_v_phi = ((PyArrayObject *)values[18]);
6135  __pyx_v_dphi = ((PyArrayObject *)values[19]);
6136  __pyx_v_r = ((PyArrayObject *)values[20]);
6137  __pyx_v_dr = ((PyArrayObject *)values[21]);
6138  }
6139  goto __pyx_L4_argument_unpacking_done;
6140  __pyx_L5_argtuple_error:;
6141  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstEvaluate", 1, 22, 22, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3135, __pyx_L3_error)
6142  __pyx_L3_error:;
6143  __Pyx_AddTraceback("ctransportCoefficients.nonlinearADR_pqrstEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
6144  __Pyx_RefNannyFinishContext();
6145  return NULL;
6146  __pyx_L4_argument_unpacking_done:;
6147  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_A), __pyx_ptype_5numpy_ndarray, 1, "A", 0))) __PYX_ERR(0, 3136, __pyx_L1_error)
6148  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_B), __pyx_ptype_5numpy_ndarray, 1, "B", 0))) __PYX_ERR(0, 3137, __pyx_L1_error)
6149  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1, "x", 0))) __PYX_ERR(0, 3145, __pyx_L1_error)
6150  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3146, __pyx_L1_error)
6151  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 3147, __pyx_L1_error)
6152  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 3148, __pyx_L1_error)
6153  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 3149, __pyx_L1_error)
6154  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 3150, __pyx_L1_error)
6155  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 3151, __pyx_L1_error)
6156  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 3152, __pyx_L1_error)
6157  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 3153, __pyx_L1_error)
6158  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1, "dphi", 0))) __PYX_ERR(0, 3154, __pyx_L1_error)
6159  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1, "r", 0))) __PYX_ERR(0, 3155, __pyx_L1_error)
6160  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1, "dr", 0))) __PYX_ERR(0, 3156, __pyx_L1_error)
6161  __pyx_r = __pyx_pf_22ctransportCoefficients_14nonlinearADR_pqrstEvaluate(__pyx_self, __pyx_v_M, __pyx_v_A, __pyx_v_B, __pyx_v_C, __pyx_v_p_pow, __pyx_v_q_pow, __pyx_v_r_pow, __pyx_v_s_pow, __pyx_v_t_pow, __pyx_v_t, __pyx_v_x, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da, __pyx_v_phi, __pyx_v_dphi, __pyx_v_r, __pyx_v_dr);
6162 
6163  /* function exit code */
6164  goto __pyx_L0;
6165  __pyx_L1_error:;
6166  __pyx_r = NULL;
6167  __pyx_L0:;
6168  __Pyx_RefNannyFinishContext();
6169  return __pyx_r;
6170 }
6171 
6172 static PyObject *__pyx_pf_22ctransportCoefficients_14nonlinearADR_pqrstEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_M, PyArrayObject *__pyx_v_A, PyArrayObject *__pyx_v_B, double __pyx_v_C, double __pyx_v_p_pow, double __pyx_v_q_pow, double __pyx_v_r_pow, double __pyx_v_s_pow, double __pyx_v_t_pow, double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr) {
6173  PyObject *__pyx_r = NULL;
6174  __Pyx_RefNannyDeclarations
6175  PyObject *__pyx_t_1 = NULL;
6176  PyObject *__pyx_t_2 = NULL;
6177  PyObject *__pyx_t_3 = NULL;
6178  int __pyx_t_4;
6179  int __pyx_lineno = 0;
6180  const char *__pyx_filename = NULL;
6181  int __pyx_clineno = 0;
6182  __Pyx_RefNannySetupContext("nonlinearADR_pqrstEvaluate", 0);
6183 
6184  /* "ctransportCoefficients.pyx":3157
6185  * np.ndarray r,
6186  * np.ndarray dr):
6187  * cnonlinearADR_pqrstEvaluate(x.size/x.shape[x.ndim-1], # <<<<<<<<<<<<<<
6188  * f.shape[f.ndim-1],
6189  * M,
6190  */
6191  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_x), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3157, __pyx_L1_error)
6192  __Pyx_GOTREF(__pyx_t_1);
6193  __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_x->dimensions[(__pyx_v_x->nd - 1)])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3157, __pyx_L1_error)
6194  __Pyx_GOTREF(__pyx_t_2);
6195  __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3157, __pyx_L1_error)
6196  __Pyx_GOTREF(__pyx_t_3);
6197  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6198  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6199  __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3157, __pyx_L1_error)
6200  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
6201 
6202  /* "ctransportCoefficients.pyx":3180
6203  * <double*> dphi.data,
6204  * <double*> r.data,
6205  * <double*> dr.data) # <<<<<<<<<<<<<<
6206  * def nonlinearADR_pqrstDualEvaluate(const int nPoints,
6207  * const int nSpace,
6208  */
6209  nonlinearADR_pqrstEvaluate(__pyx_t_4, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_M, ((double *)__pyx_v_A->data), ((double *)__pyx_v_B->data), __pyx_v_C, __pyx_v_p_pow, __pyx_v_q_pow, __pyx_v_r_pow, __pyx_v_s_pow, __pyx_v_t_pow, __pyx_v_t, ((double *)__pyx_v_x->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_dphi->data), ((double *)__pyx_v_r->data), ((double *)__pyx_v_dr->data));
6210 
6211  /* "ctransportCoefficients.pyx":3135
6212  * else:
6213  * assert 0
6214  * def nonlinearADR_pqrstEvaluate(const double M, # <<<<<<<<<<<<<<
6215  * np.ndarray A,
6216  * np.ndarray B,
6217  */
6218 
6219  /* function exit code */
6220  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6221  goto __pyx_L0;
6222  __pyx_L1_error:;
6223  __Pyx_XDECREF(__pyx_t_1);
6224  __Pyx_XDECREF(__pyx_t_2);
6225  __Pyx_XDECREF(__pyx_t_3);
6226  __Pyx_AddTraceback("ctransportCoefficients.nonlinearADR_pqrstEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
6227  __pyx_r = NULL;
6228  __pyx_L0:;
6229  __Pyx_XGIVEREF(__pyx_r);
6230  __Pyx_RefNannyFinishContext();
6231  return __pyx_r;
6232 }
6233 
6234 /* "ctransportCoefficients.pyx":3181
6235  * <double*> r.data,
6236  * <double*> dr.data)
6237  * def nonlinearADR_pqrstDualEvaluate(const int nPoints, # <<<<<<<<<<<<<<
6238  * const int nSpace,
6239  * const double M,
6240  */
6241 
6242 /* Python wrapper */
6243 static PyObject *__pyx_pw_22ctransportCoefficients_17nonlinearADR_pqrstDualEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
6244 static PyMethodDef __pyx_mdef_22ctransportCoefficients_17nonlinearADR_pqrstDualEvaluate = {"nonlinearADR_pqrstDualEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_17nonlinearADR_pqrstDualEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
6245 static PyObject *__pyx_pw_22ctransportCoefficients_17nonlinearADR_pqrstDualEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
6246  int __pyx_v_nPoints;
6247  int __pyx_v_nSpace;
6248  double __pyx_v_M;
6249  PyArrayObject *__pyx_v_A = 0;
6250  PyArrayObject *__pyx_v_B = 0;
6251  double __pyx_v_C;
6252  double __pyx_v_p1;
6253  double __pyx_v_q1;
6254  double __pyx_v_r1;
6255  double __pyx_v_s1;
6256  double __pyx_v_t1;
6257  double __pyx_v_p2;
6258  double __pyx_v_q2;
6259  double __pyx_v_r2;
6260  double __pyx_v_s2;
6261  double __pyx_v_t2;
6262  double __pyx_v_t;
6263  PyArrayObject *__pyx_v_x = 0;
6264  PyArrayObject *__pyx_v_u = 0;
6265  PyArrayObject *__pyx_v_m = 0;
6266  PyArrayObject *__pyx_v_dm = 0;
6267  PyArrayObject *__pyx_v_f = 0;
6268  PyArrayObject *__pyx_v_df = 0;
6269  PyArrayObject *__pyx_v_a = 0;
6270  PyArrayObject *__pyx_v_da = 0;
6271  PyArrayObject *__pyx_v_phi = 0;
6272  PyArrayObject *__pyx_v_dphi = 0;
6273  PyArrayObject *__pyx_v_r = 0;
6274  PyArrayObject *__pyx_v_dr = 0;
6275  int __pyx_lineno = 0;
6276  const char *__pyx_filename = NULL;
6277  int __pyx_clineno = 0;
6278  PyObject *__pyx_r = 0;
6279  __Pyx_RefNannyDeclarations
6280  __Pyx_RefNannySetupContext("nonlinearADR_pqrstDualEvaluate (wrapper)", 0);
6281  {
6282  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nPoints,&__pyx_n_s_nSpace,&__pyx_n_s_M,&__pyx_n_s_A,&__pyx_n_s_B,&__pyx_n_s_C,&__pyx_n_s_p1,&__pyx_n_s_q1,&__pyx_n_s_r1,&__pyx_n_s_s1,&__pyx_n_s_t1,&__pyx_n_s_p2,&__pyx_n_s_q2,&__pyx_n_s_r2,&__pyx_n_s_s2,&__pyx_n_s_t2,&__pyx_n_s_t,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_phi,&__pyx_n_s_dphi,&__pyx_n_s_r,&__pyx_n_s_dr,0};
6283  PyObject* values[29] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
6284  if (unlikely(__pyx_kwds)) {
6285  Py_ssize_t kw_args;
6286  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
6287  switch (pos_args) {
6288  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
6289  CYTHON_FALLTHROUGH;
6290  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
6291  CYTHON_FALLTHROUGH;
6292  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
6293  CYTHON_FALLTHROUGH;
6294  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
6295  CYTHON_FALLTHROUGH;
6296  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
6297  CYTHON_FALLTHROUGH;
6298  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
6299  CYTHON_FALLTHROUGH;
6300  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
6301  CYTHON_FALLTHROUGH;
6302  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
6303  CYTHON_FALLTHROUGH;
6304  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
6305  CYTHON_FALLTHROUGH;
6306  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
6307  CYTHON_FALLTHROUGH;
6308  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
6309  CYTHON_FALLTHROUGH;
6310  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
6311  CYTHON_FALLTHROUGH;
6312  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
6313  CYTHON_FALLTHROUGH;
6314  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
6315  CYTHON_FALLTHROUGH;
6316  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
6317  CYTHON_FALLTHROUGH;
6318  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
6319  CYTHON_FALLTHROUGH;
6320  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
6321  CYTHON_FALLTHROUGH;
6322  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
6323  CYTHON_FALLTHROUGH;
6324  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
6325  CYTHON_FALLTHROUGH;
6326  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
6327  CYTHON_FALLTHROUGH;
6328  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
6329  CYTHON_FALLTHROUGH;
6330  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
6331  CYTHON_FALLTHROUGH;
6332  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
6333  CYTHON_FALLTHROUGH;
6334  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6335  CYTHON_FALLTHROUGH;
6336  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6337  CYTHON_FALLTHROUGH;
6338  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6339  CYTHON_FALLTHROUGH;
6340  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6341  CYTHON_FALLTHROUGH;
6342  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6343  CYTHON_FALLTHROUGH;
6344  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6345  CYTHON_FALLTHROUGH;
6346  case 0: break;
6347  default: goto __pyx_L5_argtuple_error;
6348  }
6349  kw_args = PyDict_Size(__pyx_kwds);
6350  switch (pos_args) {
6351  case 0:
6352  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPoints)) != 0)) kw_args--;
6353  else goto __pyx_L5_argtuple_error;
6354  CYTHON_FALLTHROUGH;
6355  case 1:
6356  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
6357  else {
6358  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 1); __PYX_ERR(0, 3181, __pyx_L3_error)
6359  }
6360  CYTHON_FALLTHROUGH;
6361  case 2:
6362  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_M)) != 0)) kw_args--;
6363  else {
6364  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 2); __PYX_ERR(0, 3181, __pyx_L3_error)
6365  }
6366  CYTHON_FALLTHROUGH;
6367  case 3:
6368  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_A)) != 0)) kw_args--;
6369  else {
6370  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 3); __PYX_ERR(0, 3181, __pyx_L3_error)
6371  }
6372  CYTHON_FALLTHROUGH;
6373  case 4:
6374  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_B)) != 0)) kw_args--;
6375  else {
6376  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 4); __PYX_ERR(0, 3181, __pyx_L3_error)
6377  }
6378  CYTHON_FALLTHROUGH;
6379  case 5:
6380  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_C)) != 0)) kw_args--;
6381  else {
6382  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 5); __PYX_ERR(0, 3181, __pyx_L3_error)
6383  }
6384  CYTHON_FALLTHROUGH;
6385  case 6:
6386  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p1)) != 0)) kw_args--;
6387  else {
6388  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 6); __PYX_ERR(0, 3181, __pyx_L3_error)
6389  }
6390  CYTHON_FALLTHROUGH;
6391  case 7:
6392  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_q1)) != 0)) kw_args--;
6393  else {
6394  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 7); __PYX_ERR(0, 3181, __pyx_L3_error)
6395  }
6396  CYTHON_FALLTHROUGH;
6397  case 8:
6398  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r1)) != 0)) kw_args--;
6399  else {
6400  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 8); __PYX_ERR(0, 3181, __pyx_L3_error)
6401  }
6402  CYTHON_FALLTHROUGH;
6403  case 9:
6404  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_s1)) != 0)) kw_args--;
6405  else {
6406  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 9); __PYX_ERR(0, 3181, __pyx_L3_error)
6407  }
6408  CYTHON_FALLTHROUGH;
6409  case 10:
6410  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t1)) != 0)) kw_args--;
6411  else {
6412  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 10); __PYX_ERR(0, 3181, __pyx_L3_error)
6413  }
6414  CYTHON_FALLTHROUGH;
6415  case 11:
6416  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p2)) != 0)) kw_args--;
6417  else {
6418  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 11); __PYX_ERR(0, 3181, __pyx_L3_error)
6419  }
6420  CYTHON_FALLTHROUGH;
6421  case 12:
6422  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_q2)) != 0)) kw_args--;
6423  else {
6424  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 12); __PYX_ERR(0, 3181, __pyx_L3_error)
6425  }
6426  CYTHON_FALLTHROUGH;
6427  case 13:
6428  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r2)) != 0)) kw_args--;
6429  else {
6430  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 13); __PYX_ERR(0, 3181, __pyx_L3_error)
6431  }
6432  CYTHON_FALLTHROUGH;
6433  case 14:
6434  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_s2)) != 0)) kw_args--;
6435  else {
6436  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 14); __PYX_ERR(0, 3181, __pyx_L3_error)
6437  }
6438  CYTHON_FALLTHROUGH;
6439  case 15:
6440  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t2)) != 0)) kw_args--;
6441  else {
6442  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 15); __PYX_ERR(0, 3181, __pyx_L3_error)
6443  }
6444  CYTHON_FALLTHROUGH;
6445  case 16:
6446  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
6447  else {
6448  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 16); __PYX_ERR(0, 3181, __pyx_L3_error)
6449  }
6450  CYTHON_FALLTHROUGH;
6451  case 17:
6452  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
6453  else {
6454  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 17); __PYX_ERR(0, 3181, __pyx_L3_error)
6455  }
6456  CYTHON_FALLTHROUGH;
6457  case 18:
6458  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
6459  else {
6460  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 18); __PYX_ERR(0, 3181, __pyx_L3_error)
6461  }
6462  CYTHON_FALLTHROUGH;
6463  case 19:
6464  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
6465  else {
6466  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 19); __PYX_ERR(0, 3181, __pyx_L3_error)
6467  }
6468  CYTHON_FALLTHROUGH;
6469  case 20:
6470  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
6471  else {
6472  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 20); __PYX_ERR(0, 3181, __pyx_L3_error)
6473  }
6474  CYTHON_FALLTHROUGH;
6475  case 21:
6476  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
6477  else {
6478  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 21); __PYX_ERR(0, 3181, __pyx_L3_error)
6479  }
6480  CYTHON_FALLTHROUGH;
6481  case 22:
6482  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
6483  else {
6484  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 22); __PYX_ERR(0, 3181, __pyx_L3_error)
6485  }
6486  CYTHON_FALLTHROUGH;
6487  case 23:
6488  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
6489  else {
6490  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 23); __PYX_ERR(0, 3181, __pyx_L3_error)
6491  }
6492  CYTHON_FALLTHROUGH;
6493  case 24:
6494  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
6495  else {
6496  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 24); __PYX_ERR(0, 3181, __pyx_L3_error)
6497  }
6498  CYTHON_FALLTHROUGH;
6499  case 25:
6500  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
6501  else {
6502  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 25); __PYX_ERR(0, 3181, __pyx_L3_error)
6503  }
6504  CYTHON_FALLTHROUGH;
6505  case 26:
6506  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
6507  else {
6508  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 26); __PYX_ERR(0, 3181, __pyx_L3_error)
6509  }
6510  CYTHON_FALLTHROUGH;
6511  case 27:
6512  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
6513  else {
6514  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 27); __PYX_ERR(0, 3181, __pyx_L3_error)
6515  }
6516  CYTHON_FALLTHROUGH;
6517  case 28:
6518  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
6519  else {
6520  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 28); __PYX_ERR(0, 3181, __pyx_L3_error)
6521  }
6522  }
6523  if (unlikely(kw_args > 0)) {
6524  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "nonlinearADR_pqrstDualEvaluate") < 0)) __PYX_ERR(0, 3181, __pyx_L3_error)
6525  }
6526  } else if (PyTuple_GET_SIZE(__pyx_args) != 29) {
6527  goto __pyx_L5_argtuple_error;
6528  } else {
6529  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6530  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6531  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6532  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6533  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6534  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6535  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
6536  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
6537  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
6538  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
6539  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
6540  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
6541  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
6542  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
6543  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
6544  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
6545  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
6546  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
6547  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
6548  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
6549  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
6550  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
6551  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
6552  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
6553  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
6554  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
6555  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
6556  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
6557  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
6558  }
6559  __pyx_v_nPoints = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_nPoints == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3181, __pyx_L3_error)
6560  __pyx_v_nSpace = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_nSpace == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3182, __pyx_L3_error)
6561  __pyx_v_M = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_M == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3183, __pyx_L3_error)
6562  __pyx_v_A = ((PyArrayObject *)values[3]);
6563  __pyx_v_B = ((PyArrayObject *)values[4]);
6564  __pyx_v_C = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_C == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3186, __pyx_L3_error)
6565  __pyx_v_p1 = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_p1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3187, __pyx_L3_error)
6566  __pyx_v_q1 = __pyx_PyFloat_AsDouble(values[7]); if (unlikely((__pyx_v_q1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3188, __pyx_L3_error)
6567  __pyx_v_r1 = __pyx_PyFloat_AsDouble(values[8]); if (unlikely((__pyx_v_r1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3189, __pyx_L3_error)
6568  __pyx_v_s1 = __pyx_PyFloat_AsDouble(values[9]); if (unlikely((__pyx_v_s1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3190, __pyx_L3_error)
6569  __pyx_v_t1 = __pyx_PyFloat_AsDouble(values[10]); if (unlikely((__pyx_v_t1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3191, __pyx_L3_error)
6570  __pyx_v_p2 = __pyx_PyFloat_AsDouble(values[11]); if (unlikely((__pyx_v_p2 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3192, __pyx_L3_error)
6571  __pyx_v_q2 = __pyx_PyFloat_AsDouble(values[12]); if (unlikely((__pyx_v_q2 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3193, __pyx_L3_error)
6572  __pyx_v_r2 = __pyx_PyFloat_AsDouble(values[13]); if (unlikely((__pyx_v_r2 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3194, __pyx_L3_error)
6573  __pyx_v_s2 = __pyx_PyFloat_AsDouble(values[14]); if (unlikely((__pyx_v_s2 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3195, __pyx_L3_error)
6574  __pyx_v_t2 = __pyx_PyFloat_AsDouble(values[15]); if (unlikely((__pyx_v_t2 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3196, __pyx_L3_error)
6575  __pyx_v_t = __pyx_PyFloat_AsDouble(values[16]); if (unlikely((__pyx_v_t == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3197, __pyx_L3_error)
6576  __pyx_v_x = ((PyArrayObject *)values[17]);
6577  __pyx_v_u = ((PyArrayObject *)values[18]);
6578  __pyx_v_m = ((PyArrayObject *)values[19]);
6579  __pyx_v_dm = ((PyArrayObject *)values[20]);
6580  __pyx_v_f = ((PyArrayObject *)values[21]);
6581  __pyx_v_df = ((PyArrayObject *)values[22]);
6582  __pyx_v_a = ((PyArrayObject *)values[23]);
6583  __pyx_v_da = ((PyArrayObject *)values[24]);
6584  __pyx_v_phi = ((PyArrayObject *)values[25]);
6585  __pyx_v_dphi = ((PyArrayObject *)values[26]);
6586  __pyx_v_r = ((PyArrayObject *)values[27]);
6587  __pyx_v_dr = ((PyArrayObject *)values[28]);
6588  }
6589  goto __pyx_L4_argument_unpacking_done;
6590  __pyx_L5_argtuple_error:;
6591  __Pyx_RaiseArgtupleInvalid("nonlinearADR_pqrstDualEvaluate", 1, 29, 29, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3181, __pyx_L3_error)
6592  __pyx_L3_error:;
6593  __Pyx_AddTraceback("ctransportCoefficients.nonlinearADR_pqrstDualEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
6594  __Pyx_RefNannyFinishContext();
6595  return NULL;
6596  __pyx_L4_argument_unpacking_done:;
6597  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_A), __pyx_ptype_5numpy_ndarray, 1, "A", 0))) __PYX_ERR(0, 3184, __pyx_L1_error)
6598  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_B), __pyx_ptype_5numpy_ndarray, 1, "B", 0))) __PYX_ERR(0, 3185, __pyx_L1_error)
6599  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1, "x", 0))) __PYX_ERR(0, 3198, __pyx_L1_error)
6600  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3199, __pyx_L1_error)
6601  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 3200, __pyx_L1_error)
6602  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 3201, __pyx_L1_error)
6603  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 3202, __pyx_L1_error)
6604  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 3203, __pyx_L1_error)
6605  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 3204, __pyx_L1_error)
6606  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 3205, __pyx_L1_error)
6607  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 3206, __pyx_L1_error)
6608  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1, "dphi", 0))) __PYX_ERR(0, 3207, __pyx_L1_error)
6609  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1, "r", 0))) __PYX_ERR(0, 3208, __pyx_L1_error)
6610  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1, "dr", 0))) __PYX_ERR(0, 3209, __pyx_L1_error)
6611  __pyx_r = __pyx_pf_22ctransportCoefficients_16nonlinearADR_pqrstDualEvaluate(__pyx_self, __pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_M, __pyx_v_A, __pyx_v_B, __pyx_v_C, __pyx_v_p1, __pyx_v_q1, __pyx_v_r1, __pyx_v_s1, __pyx_v_t1, __pyx_v_p2, __pyx_v_q2, __pyx_v_r2, __pyx_v_s2, __pyx_v_t2, __pyx_v_t, __pyx_v_x, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da, __pyx_v_phi, __pyx_v_dphi, __pyx_v_r, __pyx_v_dr);
6612 
6613  /* function exit code */
6614  goto __pyx_L0;
6615  __pyx_L1_error:;
6616  __pyx_r = NULL;
6617  __pyx_L0:;
6618  __Pyx_RefNannyFinishContext();
6619  return __pyx_r;
6620 }
6621 
6622 static PyObject *__pyx_pf_22ctransportCoefficients_16nonlinearADR_pqrstDualEvaluate(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nPoints, int __pyx_v_nSpace, double __pyx_v_M, PyArrayObject *__pyx_v_A, PyArrayObject *__pyx_v_B, double __pyx_v_C, double __pyx_v_p1, double __pyx_v_q1, double __pyx_v_r1, double __pyx_v_s1, double __pyx_v_t1, double __pyx_v_p2, double __pyx_v_q2, double __pyx_v_r2, double __pyx_v_s2, double __pyx_v_t2, double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr) {
6623  PyObject *__pyx_r = NULL;
6624  __Pyx_RefNannyDeclarations
6625  __Pyx_RefNannySetupContext("nonlinearADR_pqrstDualEvaluate", 0);
6626 
6627  /* "ctransportCoefficients.pyx":3210
6628  * np.ndarray r,
6629  * np.ndarray dr):
6630  * cnonlinearADR_pqrstDualEvaluate(nPoints, # <<<<<<<<<<<<<<
6631  * nSpace,
6632  * M,
6633  */
6634  nonlinearADR_pqrstDualEvaluate(__pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_M, ((double *)__pyx_v_A->data), ((double *)__pyx_v_B->data), __pyx_v_C, __pyx_v_p1, __pyx_v_q1, __pyx_v_r1, __pyx_v_s1, __pyx_v_t1, __pyx_v_p2, __pyx_v_q2, __pyx_v_r2, __pyx_v_s2, __pyx_v_t2, __pyx_v_t, ((double *)__pyx_v_x->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_dphi->data), ((double *)__pyx_v_r->data), ((double *)__pyx_v_dr->data));
6635 
6636  /* "ctransportCoefficients.pyx":3181
6637  * <double*> r.data,
6638  * <double*> dr.data)
6639  * def nonlinearADR_pqrstDualEvaluate(const int nPoints, # <<<<<<<<<<<<<<
6640  * const int nSpace,
6641  * const double M,
6642  */
6643 
6644  /* function exit code */
6645  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6646  __Pyx_XGIVEREF(__pyx_r);
6647  __Pyx_RefNannyFinishContext();
6648  return __pyx_r;
6649 }
6650 
6651 /* "ctransportCoefficients.pyx":3239
6652  * <double*> r.data,
6653  * <double*> dr.data)
6654  * def unitSquareRotationEvaluate(np.ndarray x, # <<<<<<<<<<<<<<
6655  * np.ndarray u,
6656  * np.ndarray m,
6657  */
6658 
6659 /* Python wrapper */
6660 static PyObject *__pyx_pw_22ctransportCoefficients_19unitSquareRotationEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
6661 static PyMethodDef __pyx_mdef_22ctransportCoefficients_19unitSquareRotationEvaluate = {"unitSquareRotationEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_19unitSquareRotationEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
6662 static PyObject *__pyx_pw_22ctransportCoefficients_19unitSquareRotationEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
6663  PyArrayObject *__pyx_v_x = 0;
6664  PyArrayObject *__pyx_v_u = 0;
6665  PyArrayObject *__pyx_v_m = 0;
6666  PyArrayObject *__pyx_v_dm = 0;
6667  PyArrayObject *__pyx_v_f = 0;
6668  PyArrayObject *__pyx_v_df = 0;
6669  int __pyx_lineno = 0;
6670  const char *__pyx_filename = NULL;
6671  int __pyx_clineno = 0;
6672  PyObject *__pyx_r = 0;
6673  __Pyx_RefNannyDeclarations
6674  __Pyx_RefNannySetupContext("unitSquareRotationEvaluate (wrapper)", 0);
6675  {
6676  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,0};
6677  PyObject* values[6] = {0,0,0,0,0,0};
6678  if (unlikely(__pyx_kwds)) {
6679  Py_ssize_t kw_args;
6680  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
6681  switch (pos_args) {
6682  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6683  CYTHON_FALLTHROUGH;
6684  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6685  CYTHON_FALLTHROUGH;
6686  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6687  CYTHON_FALLTHROUGH;
6688  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6689  CYTHON_FALLTHROUGH;
6690  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6691  CYTHON_FALLTHROUGH;
6692  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6693  CYTHON_FALLTHROUGH;
6694  case 0: break;
6695  default: goto __pyx_L5_argtuple_error;
6696  }
6697  kw_args = PyDict_Size(__pyx_kwds);
6698  switch (pos_args) {
6699  case 0:
6700  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
6701  else goto __pyx_L5_argtuple_error;
6702  CYTHON_FALLTHROUGH;
6703  case 1:
6704  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
6705  else {
6706  __Pyx_RaiseArgtupleInvalid("unitSquareRotationEvaluate", 1, 6, 6, 1); __PYX_ERR(0, 3239, __pyx_L3_error)
6707  }
6708  CYTHON_FALLTHROUGH;
6709  case 2:
6710  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
6711  else {
6712  __Pyx_RaiseArgtupleInvalid("unitSquareRotationEvaluate", 1, 6, 6, 2); __PYX_ERR(0, 3239, __pyx_L3_error)
6713  }
6714  CYTHON_FALLTHROUGH;
6715  case 3:
6716  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
6717  else {
6718  __Pyx_RaiseArgtupleInvalid("unitSquareRotationEvaluate", 1, 6, 6, 3); __PYX_ERR(0, 3239, __pyx_L3_error)
6719  }
6720  CYTHON_FALLTHROUGH;
6721  case 4:
6722  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
6723  else {
6724  __Pyx_RaiseArgtupleInvalid("unitSquareRotationEvaluate", 1, 6, 6, 4); __PYX_ERR(0, 3239, __pyx_L3_error)
6725  }
6726  CYTHON_FALLTHROUGH;
6727  case 5:
6728  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
6729  else {
6730  __Pyx_RaiseArgtupleInvalid("unitSquareRotationEvaluate", 1, 6, 6, 5); __PYX_ERR(0, 3239, __pyx_L3_error)
6731  }
6732  }
6733  if (unlikely(kw_args > 0)) {
6734  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "unitSquareRotationEvaluate") < 0)) __PYX_ERR(0, 3239, __pyx_L3_error)
6735  }
6736  } else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
6737  goto __pyx_L5_argtuple_error;
6738  } else {
6739  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6740  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6741  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6742  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6743  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6744  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6745  }
6746  __pyx_v_x = ((PyArrayObject *)values[0]);
6747  __pyx_v_u = ((PyArrayObject *)values[1]);
6748  __pyx_v_m = ((PyArrayObject *)values[2]);
6749  __pyx_v_dm = ((PyArrayObject *)values[3]);
6750  __pyx_v_f = ((PyArrayObject *)values[4]);
6751  __pyx_v_df = ((PyArrayObject *)values[5]);
6752  }
6753  goto __pyx_L4_argument_unpacking_done;
6754  __pyx_L5_argtuple_error:;
6755  __Pyx_RaiseArgtupleInvalid("unitSquareRotationEvaluate", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3239, __pyx_L3_error)
6756  __pyx_L3_error:;
6757  __Pyx_AddTraceback("ctransportCoefficients.unitSquareRotationEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
6758  __Pyx_RefNannyFinishContext();
6759  return NULL;
6760  __pyx_L4_argument_unpacking_done:;
6761  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1, "x", 0))) __PYX_ERR(0, 3239, __pyx_L1_error)
6762  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3240, __pyx_L1_error)
6763  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 3241, __pyx_L1_error)
6764  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 3242, __pyx_L1_error)
6765  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 3243, __pyx_L1_error)
6766  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 3244, __pyx_L1_error)
6767  __pyx_r = __pyx_pf_22ctransportCoefficients_18unitSquareRotationEvaluate(__pyx_self, __pyx_v_x, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df);
6768 
6769  /* function exit code */
6770  goto __pyx_L0;
6771  __pyx_L1_error:;
6772  __pyx_r = NULL;
6773  __pyx_L0:;
6774  __Pyx_RefNannyFinishContext();
6775  return __pyx_r;
6776 }
6777 
6778 static PyObject *__pyx_pf_22ctransportCoefficients_18unitSquareRotationEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df) {
6779  PyObject *__pyx_r = NULL;
6780  __Pyx_RefNannyDeclarations
6781  PyObject *__pyx_t_1 = NULL;
6782  PyObject *__pyx_t_2 = NULL;
6783  PyObject *__pyx_t_3 = NULL;
6784  int __pyx_t_4;
6785  int __pyx_lineno = 0;
6786  const char *__pyx_filename = NULL;
6787  int __pyx_clineno = 0;
6788  __Pyx_RefNannySetupContext("unitSquareRotationEvaluate", 0);
6789 
6790  /* "ctransportCoefficients.pyx":3245
6791  * np.ndarray f,
6792  * np.ndarray df):
6793  * cunitSquareRotationEvaluate(x.size/x.shape[x.ndim-1], # <<<<<<<<<<<<<<
6794  * f.shape[f.ndim-1],
6795  * <double*> x.data,
6796  */
6797  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_x), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3245, __pyx_L1_error)
6798  __Pyx_GOTREF(__pyx_t_1);
6799  __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_x->dimensions[(__pyx_v_x->nd - 1)])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3245, __pyx_L1_error)
6800  __Pyx_GOTREF(__pyx_t_2);
6801  __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3245, __pyx_L1_error)
6802  __Pyx_GOTREF(__pyx_t_3);
6803  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6804  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6805  __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3245, __pyx_L1_error)
6806  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
6807 
6808  /* "ctransportCoefficients.pyx":3252
6809  * <double*> dm.data,
6810  * <double*> f.data,
6811  * <double*> df.data) # <<<<<<<<<<<<<<
6812  * def unitCubeRotationEvaluate(np.ndarray x,
6813  * np.ndarray u,
6814  */
6815  unitSquareRotationEvaluate(__pyx_t_4, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), ((double *)__pyx_v_x->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data));
6816 
6817  /* "ctransportCoefficients.pyx":3239
6818  * <double*> r.data,
6819  * <double*> dr.data)
6820  * def unitSquareRotationEvaluate(np.ndarray x, # <<<<<<<<<<<<<<
6821  * np.ndarray u,
6822  * np.ndarray m,
6823  */
6824 
6825  /* function exit code */
6826  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6827  goto __pyx_L0;
6828  __pyx_L1_error:;
6829  __Pyx_XDECREF(__pyx_t_1);
6830  __Pyx_XDECREF(__pyx_t_2);
6831  __Pyx_XDECREF(__pyx_t_3);
6832  __Pyx_AddTraceback("ctransportCoefficients.unitSquareRotationEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
6833  __pyx_r = NULL;
6834  __pyx_L0:;
6835  __Pyx_XGIVEREF(__pyx_r);
6836  __Pyx_RefNannyFinishContext();
6837  return __pyx_r;
6838 }
6839 
6840 /* "ctransportCoefficients.pyx":3253
6841  * <double*> f.data,
6842  * <double*> df.data)
6843  * def unitCubeRotationEvaluate(np.ndarray x, # <<<<<<<<<<<<<<
6844  * np.ndarray u,
6845  * np.ndarray m,
6846  */
6847 
6848 /* Python wrapper */
6849 static PyObject *__pyx_pw_22ctransportCoefficients_21unitCubeRotationEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
6850 static PyMethodDef __pyx_mdef_22ctransportCoefficients_21unitCubeRotationEvaluate = {"unitCubeRotationEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_21unitCubeRotationEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
6851 static PyObject *__pyx_pw_22ctransportCoefficients_21unitCubeRotationEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
6852  PyArrayObject *__pyx_v_x = 0;
6853  PyArrayObject *__pyx_v_u = 0;
6854  PyArrayObject *__pyx_v_m = 0;
6855  PyArrayObject *__pyx_v_dm = 0;
6856  PyArrayObject *__pyx_v_f = 0;
6857  PyArrayObject *__pyx_v_df = 0;
6858  int __pyx_lineno = 0;
6859  const char *__pyx_filename = NULL;
6860  int __pyx_clineno = 0;
6861  PyObject *__pyx_r = 0;
6862  __Pyx_RefNannyDeclarations
6863  __Pyx_RefNannySetupContext("unitCubeRotationEvaluate (wrapper)", 0);
6864  {
6865  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,0};
6866  PyObject* values[6] = {0,0,0,0,0,0};
6867  if (unlikely(__pyx_kwds)) {
6868  Py_ssize_t kw_args;
6869  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
6870  switch (pos_args) {
6871  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6872  CYTHON_FALLTHROUGH;
6873  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6874  CYTHON_FALLTHROUGH;
6875  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6876  CYTHON_FALLTHROUGH;
6877  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6878  CYTHON_FALLTHROUGH;
6879  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6880  CYTHON_FALLTHROUGH;
6881  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6882  CYTHON_FALLTHROUGH;
6883  case 0: break;
6884  default: goto __pyx_L5_argtuple_error;
6885  }
6886  kw_args = PyDict_Size(__pyx_kwds);
6887  switch (pos_args) {
6888  case 0:
6889  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
6890  else goto __pyx_L5_argtuple_error;
6891  CYTHON_FALLTHROUGH;
6892  case 1:
6893  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
6894  else {
6895  __Pyx_RaiseArgtupleInvalid("unitCubeRotationEvaluate", 1, 6, 6, 1); __PYX_ERR(0, 3253, __pyx_L3_error)
6896  }
6897  CYTHON_FALLTHROUGH;
6898  case 2:
6899  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
6900  else {
6901  __Pyx_RaiseArgtupleInvalid("unitCubeRotationEvaluate", 1, 6, 6, 2); __PYX_ERR(0, 3253, __pyx_L3_error)
6902  }
6903  CYTHON_FALLTHROUGH;
6904  case 3:
6905  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
6906  else {
6907  __Pyx_RaiseArgtupleInvalid("unitCubeRotationEvaluate", 1, 6, 6, 3); __PYX_ERR(0, 3253, __pyx_L3_error)
6908  }
6909  CYTHON_FALLTHROUGH;
6910  case 4:
6911  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
6912  else {
6913  __Pyx_RaiseArgtupleInvalid("unitCubeRotationEvaluate", 1, 6, 6, 4); __PYX_ERR(0, 3253, __pyx_L3_error)
6914  }
6915  CYTHON_FALLTHROUGH;
6916  case 5:
6917  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
6918  else {
6919  __Pyx_RaiseArgtupleInvalid("unitCubeRotationEvaluate", 1, 6, 6, 5); __PYX_ERR(0, 3253, __pyx_L3_error)
6920  }
6921  }
6922  if (unlikely(kw_args > 0)) {
6923  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "unitCubeRotationEvaluate") < 0)) __PYX_ERR(0, 3253, __pyx_L3_error)
6924  }
6925  } else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
6926  goto __pyx_L5_argtuple_error;
6927  } else {
6928  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6929  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6930  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6931  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6932  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6933  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6934  }
6935  __pyx_v_x = ((PyArrayObject *)values[0]);
6936  __pyx_v_u = ((PyArrayObject *)values[1]);
6937  __pyx_v_m = ((PyArrayObject *)values[2]);
6938  __pyx_v_dm = ((PyArrayObject *)values[3]);
6939  __pyx_v_f = ((PyArrayObject *)values[4]);
6940  __pyx_v_df = ((PyArrayObject *)values[5]);
6941  }
6942  goto __pyx_L4_argument_unpacking_done;
6943  __pyx_L5_argtuple_error:;
6944  __Pyx_RaiseArgtupleInvalid("unitCubeRotationEvaluate", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3253, __pyx_L3_error)
6945  __pyx_L3_error:;
6946  __Pyx_AddTraceback("ctransportCoefficients.unitCubeRotationEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
6947  __Pyx_RefNannyFinishContext();
6948  return NULL;
6949  __pyx_L4_argument_unpacking_done:;
6950  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1, "x", 0))) __PYX_ERR(0, 3253, __pyx_L1_error)
6951  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3254, __pyx_L1_error)
6952  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 3255, __pyx_L1_error)
6953  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 3256, __pyx_L1_error)
6954  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 3257, __pyx_L1_error)
6955  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 3258, __pyx_L1_error)
6956  __pyx_r = __pyx_pf_22ctransportCoefficients_20unitCubeRotationEvaluate(__pyx_self, __pyx_v_x, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df);
6957 
6958  /* function exit code */
6959  goto __pyx_L0;
6960  __pyx_L1_error:;
6961  __pyx_r = NULL;
6962  __pyx_L0:;
6963  __Pyx_RefNannyFinishContext();
6964  return __pyx_r;
6965 }
6966 
6967 static PyObject *__pyx_pf_22ctransportCoefficients_20unitCubeRotationEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df) {
6968  PyObject *__pyx_r = NULL;
6969  __Pyx_RefNannyDeclarations
6970  PyObject *__pyx_t_1 = NULL;
6971  PyObject *__pyx_t_2 = NULL;
6972  PyObject *__pyx_t_3 = NULL;
6973  int __pyx_t_4;
6974  int __pyx_lineno = 0;
6975  const char *__pyx_filename = NULL;
6976  int __pyx_clineno = 0;
6977  __Pyx_RefNannySetupContext("unitCubeRotationEvaluate", 0);
6978 
6979  /* "ctransportCoefficients.pyx":3259
6980  * np.ndarray f,
6981  * np.ndarray df):
6982  * cunitCubeRotationEvaluate(x.size/x.shape[x.ndim-1], # <<<<<<<<<<<<<<
6983  * f.shape[f.ndim-1],
6984  * <double*> x.data,
6985  */
6986  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_x), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3259, __pyx_L1_error)
6987  __Pyx_GOTREF(__pyx_t_1);
6988  __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_x->dimensions[(__pyx_v_x->nd - 1)])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3259, __pyx_L1_error)
6989  __Pyx_GOTREF(__pyx_t_2);
6990  __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3259, __pyx_L1_error)
6991  __Pyx_GOTREF(__pyx_t_3);
6992  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6993  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6994  __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3259, __pyx_L1_error)
6995  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
6996 
6997  /* "ctransportCoefficients.pyx":3266
6998  * <double*> dm.data,
6999  * <double*> f.data,
7000  * <double*> df.data) # <<<<<<<<<<<<<<
7001  * def rotatingPulseVelEvaluate(const int nPoints,
7002  * const int nSpace,
7003  */
7004  unitCubeRotationEvaluate(__pyx_t_4, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), ((double *)__pyx_v_x->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data));
7005 
7006  /* "ctransportCoefficients.pyx":3253
7007  * <double*> f.data,
7008  * <double*> df.data)
7009  * def unitCubeRotationEvaluate(np.ndarray x, # <<<<<<<<<<<<<<
7010  * np.ndarray u,
7011  * np.ndarray m,
7012  */
7013 
7014  /* function exit code */
7015  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7016  goto __pyx_L0;
7017  __pyx_L1_error:;
7018  __Pyx_XDECREF(__pyx_t_1);
7019  __Pyx_XDECREF(__pyx_t_2);
7020  __Pyx_XDECREF(__pyx_t_3);
7021  __Pyx_AddTraceback("ctransportCoefficients.unitCubeRotationEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
7022  __pyx_r = NULL;
7023  __pyx_L0:;
7024  __Pyx_XGIVEREF(__pyx_r);
7025  __Pyx_RefNannyFinishContext();
7026  return __pyx_r;
7027 }
7028 
7029 /* "ctransportCoefficients.pyx":3267
7030  * <double*> f.data,
7031  * <double*> df.data)
7032  * def rotatingPulseVelEvaluate(const int nPoints, # <<<<<<<<<<<<<<
7033  * const int nSpace,
7034  * const double self_a,
7035  */
7036 
7037 /* Python wrapper */
7038 static PyObject *__pyx_pw_22ctransportCoefficients_23rotatingPulseVelEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
7039 static PyMethodDef __pyx_mdef_22ctransportCoefficients_23rotatingPulseVelEvaluate = {"rotatingPulseVelEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_23rotatingPulseVelEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
7040 static PyObject *__pyx_pw_22ctransportCoefficients_23rotatingPulseVelEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
7041  int __pyx_v_nPoints;
7042  int __pyx_v_nSpace;
7043  double __pyx_v_self_a;
7044  PyArrayObject *__pyx_v_x = 0;
7045  PyArrayObject *__pyx_v_u = 0;
7046  PyArrayObject *__pyx_v_m = 0;
7047  PyArrayObject *__pyx_v_dm = 0;
7048  PyArrayObject *__pyx_v_f = 0;
7049  PyArrayObject *__pyx_v_df = 0;
7050  PyArrayObject *__pyx_v_a = 0;
7051  PyArrayObject *__pyx_v_da = 0;
7052  PyArrayObject *__pyx_v_phi = 0;
7053  PyArrayObject *__pyx_v_dphi = 0;
7054  int __pyx_lineno = 0;
7055  const char *__pyx_filename = NULL;
7056  int __pyx_clineno = 0;
7057  PyObject *__pyx_r = 0;
7058  __Pyx_RefNannyDeclarations
7059  __Pyx_RefNannySetupContext("rotatingPulseVelEvaluate (wrapper)", 0);
7060  {
7061  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nPoints,&__pyx_n_s_nSpace,&__pyx_n_s_self_a,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_phi,&__pyx_n_s_dphi,0};
7062  PyObject* values[13] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
7063  if (unlikely(__pyx_kwds)) {
7064  Py_ssize_t kw_args;
7065  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
7066  switch (pos_args) {
7067  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
7068  CYTHON_FALLTHROUGH;
7069  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
7070  CYTHON_FALLTHROUGH;
7071  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
7072  CYTHON_FALLTHROUGH;
7073  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
7074  CYTHON_FALLTHROUGH;
7075  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
7076  CYTHON_FALLTHROUGH;
7077  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
7078  CYTHON_FALLTHROUGH;
7079  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7080  CYTHON_FALLTHROUGH;
7081  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7082  CYTHON_FALLTHROUGH;
7083  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7084  CYTHON_FALLTHROUGH;
7085  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7086  CYTHON_FALLTHROUGH;
7087  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7088  CYTHON_FALLTHROUGH;
7089  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7090  CYTHON_FALLTHROUGH;
7091  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7092  CYTHON_FALLTHROUGH;
7093  case 0: break;
7094  default: goto __pyx_L5_argtuple_error;
7095  }
7096  kw_args = PyDict_Size(__pyx_kwds);
7097  switch (pos_args) {
7098  case 0:
7099  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPoints)) != 0)) kw_args--;
7100  else goto __pyx_L5_argtuple_error;
7101  CYTHON_FALLTHROUGH;
7102  case 1:
7103  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
7104  else {
7105  __Pyx_RaiseArgtupleInvalid("rotatingPulseVelEvaluate", 1, 13, 13, 1); __PYX_ERR(0, 3267, __pyx_L3_error)
7106  }
7107  CYTHON_FALLTHROUGH;
7108  case 2:
7109  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self_a)) != 0)) kw_args--;
7110  else {
7111  __Pyx_RaiseArgtupleInvalid("rotatingPulseVelEvaluate", 1, 13, 13, 2); __PYX_ERR(0, 3267, __pyx_L3_error)
7112  }
7113  CYTHON_FALLTHROUGH;
7114  case 3:
7115  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
7116  else {
7117  __Pyx_RaiseArgtupleInvalid("rotatingPulseVelEvaluate", 1, 13, 13, 3); __PYX_ERR(0, 3267, __pyx_L3_error)
7118  }
7119  CYTHON_FALLTHROUGH;
7120  case 4:
7121  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
7122  else {
7123  __Pyx_RaiseArgtupleInvalid("rotatingPulseVelEvaluate", 1, 13, 13, 4); __PYX_ERR(0, 3267, __pyx_L3_error)
7124  }
7125  CYTHON_FALLTHROUGH;
7126  case 5:
7127  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
7128  else {
7129  __Pyx_RaiseArgtupleInvalid("rotatingPulseVelEvaluate", 1, 13, 13, 5); __PYX_ERR(0, 3267, __pyx_L3_error)
7130  }
7131  CYTHON_FALLTHROUGH;
7132  case 6:
7133  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
7134  else {
7135  __Pyx_RaiseArgtupleInvalid("rotatingPulseVelEvaluate", 1, 13, 13, 6); __PYX_ERR(0, 3267, __pyx_L3_error)
7136  }
7137  CYTHON_FALLTHROUGH;
7138  case 7:
7139  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
7140  else {
7141  __Pyx_RaiseArgtupleInvalid("rotatingPulseVelEvaluate", 1, 13, 13, 7); __PYX_ERR(0, 3267, __pyx_L3_error)
7142  }
7143  CYTHON_FALLTHROUGH;
7144  case 8:
7145  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
7146  else {
7147  __Pyx_RaiseArgtupleInvalid("rotatingPulseVelEvaluate", 1, 13, 13, 8); __PYX_ERR(0, 3267, __pyx_L3_error)
7148  }
7149  CYTHON_FALLTHROUGH;
7150  case 9:
7151  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
7152  else {
7153  __Pyx_RaiseArgtupleInvalid("rotatingPulseVelEvaluate", 1, 13, 13, 9); __PYX_ERR(0, 3267, __pyx_L3_error)
7154  }
7155  CYTHON_FALLTHROUGH;
7156  case 10:
7157  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
7158  else {
7159  __Pyx_RaiseArgtupleInvalid("rotatingPulseVelEvaluate", 1, 13, 13, 10); __PYX_ERR(0, 3267, __pyx_L3_error)
7160  }
7161  CYTHON_FALLTHROUGH;
7162  case 11:
7163  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
7164  else {
7165  __Pyx_RaiseArgtupleInvalid("rotatingPulseVelEvaluate", 1, 13, 13, 11); __PYX_ERR(0, 3267, __pyx_L3_error)
7166  }
7167  CYTHON_FALLTHROUGH;
7168  case 12:
7169  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
7170  else {
7171  __Pyx_RaiseArgtupleInvalid("rotatingPulseVelEvaluate", 1, 13, 13, 12); __PYX_ERR(0, 3267, __pyx_L3_error)
7172  }
7173  }
7174  if (unlikely(kw_args > 0)) {
7175  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "rotatingPulseVelEvaluate") < 0)) __PYX_ERR(0, 3267, __pyx_L3_error)
7176  }
7177  } else if (PyTuple_GET_SIZE(__pyx_args) != 13) {
7178  goto __pyx_L5_argtuple_error;
7179  } else {
7180  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7181  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7182  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7183  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7184  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7185  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7186  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7187  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
7188  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
7189  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
7190  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
7191  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
7192  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
7193  }
7194  __pyx_v_nPoints = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_nPoints == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3267, __pyx_L3_error)
7195  __pyx_v_nSpace = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_nSpace == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3268, __pyx_L3_error)
7196  __pyx_v_self_a = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_self_a == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3269, __pyx_L3_error)
7197  __pyx_v_x = ((PyArrayObject *)values[3]);
7198  __pyx_v_u = ((PyArrayObject *)values[4]);
7199  __pyx_v_m = ((PyArrayObject *)values[5]);
7200  __pyx_v_dm = ((PyArrayObject *)values[6]);
7201  __pyx_v_f = ((PyArrayObject *)values[7]);
7202  __pyx_v_df = ((PyArrayObject *)values[8]);
7203  __pyx_v_a = ((PyArrayObject *)values[9]);
7204  __pyx_v_da = ((PyArrayObject *)values[10]);
7205  __pyx_v_phi = ((PyArrayObject *)values[11]);
7206  __pyx_v_dphi = ((PyArrayObject *)values[12]);
7207  }
7208  goto __pyx_L4_argument_unpacking_done;
7209  __pyx_L5_argtuple_error:;
7210  __Pyx_RaiseArgtupleInvalid("rotatingPulseVelEvaluate", 1, 13, 13, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3267, __pyx_L3_error)
7211  __pyx_L3_error:;
7212  __Pyx_AddTraceback("ctransportCoefficients.rotatingPulseVelEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
7213  __Pyx_RefNannyFinishContext();
7214  return NULL;
7215  __pyx_L4_argument_unpacking_done:;
7216  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1, "x", 0))) __PYX_ERR(0, 3270, __pyx_L1_error)
7217  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3271, __pyx_L1_error)
7218  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 3272, __pyx_L1_error)
7219  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 3273, __pyx_L1_error)
7220  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 3274, __pyx_L1_error)
7221  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 3275, __pyx_L1_error)
7222  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 3276, __pyx_L1_error)
7223  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 3277, __pyx_L1_error)
7224  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 3278, __pyx_L1_error)
7225  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1, "dphi", 0))) __PYX_ERR(0, 3279, __pyx_L1_error)
7226  __pyx_r = __pyx_pf_22ctransportCoefficients_22rotatingPulseVelEvaluate(__pyx_self, __pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_self_a, __pyx_v_x, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da, __pyx_v_phi, __pyx_v_dphi);
7227 
7228  /* function exit code */
7229  goto __pyx_L0;
7230  __pyx_L1_error:;
7231  __pyx_r = NULL;
7232  __pyx_L0:;
7233  __Pyx_RefNannyFinishContext();
7234  return __pyx_r;
7235 }
7236 
7237 static PyObject *__pyx_pf_22ctransportCoefficients_22rotatingPulseVelEvaluate(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nPoints, int __pyx_v_nSpace, double __pyx_v_self_a, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi) {
7238  PyObject *__pyx_r = NULL;
7239  __Pyx_RefNannyDeclarations
7240  __Pyx_RefNannySetupContext("rotatingPulseVelEvaluate", 0);
7241 
7242  /* "ctransportCoefficients.pyx":3280
7243  * np.ndarray phi,
7244  * np.ndarray dphi):
7245  * crotatingPulseVelEvaluate(nPoints, # <<<<<<<<<<<<<<
7246  * nSpace,
7247  * self_a,
7248  */
7249  rotatingPulseVelEvaluate(__pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_self_a, ((double *)__pyx_v_x->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_dphi->data));
7250 
7251  /* "ctransportCoefficients.pyx":3267
7252  * <double*> f.data,
7253  * <double*> df.data)
7254  * def rotatingPulseVelEvaluate(const int nPoints, # <<<<<<<<<<<<<<
7255  * const int nSpace,
7256  * const double self_a,
7257  */
7258 
7259  /* function exit code */
7260  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7261  __Pyx_XGIVEREF(__pyx_r);
7262  __Pyx_RefNannyFinishContext();
7263  return __pyx_r;
7264 }
7265 
7266 /* "ctransportCoefficients.pyx":3293
7267  * <double*> phi.data,
7268  * <double*> dphi.data)
7269  * def disRotatingPulseVelEvaluate(const int nPoints, # <<<<<<<<<<<<<<
7270  * const int nSpace,
7271  * const double self_a,
7272  */
7273 
7274 /* Python wrapper */
7275 static PyObject *__pyx_pw_22ctransportCoefficients_25disRotatingPulseVelEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
7276 static PyMethodDef __pyx_mdef_22ctransportCoefficients_25disRotatingPulseVelEvaluate = {"disRotatingPulseVelEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_25disRotatingPulseVelEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
7277 static PyObject *__pyx_pw_22ctransportCoefficients_25disRotatingPulseVelEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
7278  int __pyx_v_nPoints;
7279  int __pyx_v_nSpace;
7280  double __pyx_v_self_a;
7281  PyArrayObject *__pyx_v_x = 0;
7282  PyArrayObject *__pyx_v_u = 0;
7283  PyArrayObject *__pyx_v_m = 0;
7284  PyArrayObject *__pyx_v_dm = 0;
7285  PyArrayObject *__pyx_v_f = 0;
7286  PyArrayObject *__pyx_v_df = 0;
7287  PyArrayObject *__pyx_v_a = 0;
7288  PyArrayObject *__pyx_v_da = 0;
7289  PyArrayObject *__pyx_v_phi = 0;
7290  PyArrayObject *__pyx_v_dphi = 0;
7291  int __pyx_lineno = 0;
7292  const char *__pyx_filename = NULL;
7293  int __pyx_clineno = 0;
7294  PyObject *__pyx_r = 0;
7295  __Pyx_RefNannyDeclarations
7296  __Pyx_RefNannySetupContext("disRotatingPulseVelEvaluate (wrapper)", 0);
7297  {
7298  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nPoints,&__pyx_n_s_nSpace,&__pyx_n_s_self_a,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_phi,&__pyx_n_s_dphi,0};
7299  PyObject* values[13] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
7300  if (unlikely(__pyx_kwds)) {
7301  Py_ssize_t kw_args;
7302  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
7303  switch (pos_args) {
7304  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
7305  CYTHON_FALLTHROUGH;
7306  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
7307  CYTHON_FALLTHROUGH;
7308  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
7309  CYTHON_FALLTHROUGH;
7310  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
7311  CYTHON_FALLTHROUGH;
7312  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
7313  CYTHON_FALLTHROUGH;
7314  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
7315  CYTHON_FALLTHROUGH;
7316  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7317  CYTHON_FALLTHROUGH;
7318  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7319  CYTHON_FALLTHROUGH;
7320  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7321  CYTHON_FALLTHROUGH;
7322  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7323  CYTHON_FALLTHROUGH;
7324  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7325  CYTHON_FALLTHROUGH;
7326  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7327  CYTHON_FALLTHROUGH;
7328  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7329  CYTHON_FALLTHROUGH;
7330  case 0: break;
7331  default: goto __pyx_L5_argtuple_error;
7332  }
7333  kw_args = PyDict_Size(__pyx_kwds);
7334  switch (pos_args) {
7335  case 0:
7336  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPoints)) != 0)) kw_args--;
7337  else goto __pyx_L5_argtuple_error;
7338  CYTHON_FALLTHROUGH;
7339  case 1:
7340  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
7341  else {
7342  __Pyx_RaiseArgtupleInvalid("disRotatingPulseVelEvaluate", 1, 13, 13, 1); __PYX_ERR(0, 3293, __pyx_L3_error)
7343  }
7344  CYTHON_FALLTHROUGH;
7345  case 2:
7346  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self_a)) != 0)) kw_args--;
7347  else {
7348  __Pyx_RaiseArgtupleInvalid("disRotatingPulseVelEvaluate", 1, 13, 13, 2); __PYX_ERR(0, 3293, __pyx_L3_error)
7349  }
7350  CYTHON_FALLTHROUGH;
7351  case 3:
7352  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
7353  else {
7354  __Pyx_RaiseArgtupleInvalid("disRotatingPulseVelEvaluate", 1, 13, 13, 3); __PYX_ERR(0, 3293, __pyx_L3_error)
7355  }
7356  CYTHON_FALLTHROUGH;
7357  case 4:
7358  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
7359  else {
7360  __Pyx_RaiseArgtupleInvalid("disRotatingPulseVelEvaluate", 1, 13, 13, 4); __PYX_ERR(0, 3293, __pyx_L3_error)
7361  }
7362  CYTHON_FALLTHROUGH;
7363  case 5:
7364  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
7365  else {
7366  __Pyx_RaiseArgtupleInvalid("disRotatingPulseVelEvaluate", 1, 13, 13, 5); __PYX_ERR(0, 3293, __pyx_L3_error)
7367  }
7368  CYTHON_FALLTHROUGH;
7369  case 6:
7370  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
7371  else {
7372  __Pyx_RaiseArgtupleInvalid("disRotatingPulseVelEvaluate", 1, 13, 13, 6); __PYX_ERR(0, 3293, __pyx_L3_error)
7373  }
7374  CYTHON_FALLTHROUGH;
7375  case 7:
7376  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
7377  else {
7378  __Pyx_RaiseArgtupleInvalid("disRotatingPulseVelEvaluate", 1, 13, 13, 7); __PYX_ERR(0, 3293, __pyx_L3_error)
7379  }
7380  CYTHON_FALLTHROUGH;
7381  case 8:
7382  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
7383  else {
7384  __Pyx_RaiseArgtupleInvalid("disRotatingPulseVelEvaluate", 1, 13, 13, 8); __PYX_ERR(0, 3293, __pyx_L3_error)
7385  }
7386  CYTHON_FALLTHROUGH;
7387  case 9:
7388  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
7389  else {
7390  __Pyx_RaiseArgtupleInvalid("disRotatingPulseVelEvaluate", 1, 13, 13, 9); __PYX_ERR(0, 3293, __pyx_L3_error)
7391  }
7392  CYTHON_FALLTHROUGH;
7393  case 10:
7394  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
7395  else {
7396  __Pyx_RaiseArgtupleInvalid("disRotatingPulseVelEvaluate", 1, 13, 13, 10); __PYX_ERR(0, 3293, __pyx_L3_error)
7397  }
7398  CYTHON_FALLTHROUGH;
7399  case 11:
7400  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
7401  else {
7402  __Pyx_RaiseArgtupleInvalid("disRotatingPulseVelEvaluate", 1, 13, 13, 11); __PYX_ERR(0, 3293, __pyx_L3_error)
7403  }
7404  CYTHON_FALLTHROUGH;
7405  case 12:
7406  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
7407  else {
7408  __Pyx_RaiseArgtupleInvalid("disRotatingPulseVelEvaluate", 1, 13, 13, 12); __PYX_ERR(0, 3293, __pyx_L3_error)
7409  }
7410  }
7411  if (unlikely(kw_args > 0)) {
7412  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "disRotatingPulseVelEvaluate") < 0)) __PYX_ERR(0, 3293, __pyx_L3_error)
7413  }
7414  } else if (PyTuple_GET_SIZE(__pyx_args) != 13) {
7415  goto __pyx_L5_argtuple_error;
7416  } else {
7417  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7418  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7419  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7420  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7421  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7422  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7423  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7424  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
7425  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
7426  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
7427  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
7428  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
7429  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
7430  }
7431  __pyx_v_nPoints = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_nPoints == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3293, __pyx_L3_error)
7432  __pyx_v_nSpace = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_nSpace == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3294, __pyx_L3_error)
7433  __pyx_v_self_a = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_self_a == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3295, __pyx_L3_error)
7434  __pyx_v_x = ((PyArrayObject *)values[3]);
7435  __pyx_v_u = ((PyArrayObject *)values[4]);
7436  __pyx_v_m = ((PyArrayObject *)values[5]);
7437  __pyx_v_dm = ((PyArrayObject *)values[6]);
7438  __pyx_v_f = ((PyArrayObject *)values[7]);
7439  __pyx_v_df = ((PyArrayObject *)values[8]);
7440  __pyx_v_a = ((PyArrayObject *)values[9]);
7441  __pyx_v_da = ((PyArrayObject *)values[10]);
7442  __pyx_v_phi = ((PyArrayObject *)values[11]);
7443  __pyx_v_dphi = ((PyArrayObject *)values[12]);
7444  }
7445  goto __pyx_L4_argument_unpacking_done;
7446  __pyx_L5_argtuple_error:;
7447  __Pyx_RaiseArgtupleInvalid("disRotatingPulseVelEvaluate", 1, 13, 13, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3293, __pyx_L3_error)
7448  __pyx_L3_error:;
7449  __Pyx_AddTraceback("ctransportCoefficients.disRotatingPulseVelEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
7450  __Pyx_RefNannyFinishContext();
7451  return NULL;
7452  __pyx_L4_argument_unpacking_done:;
7453  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1, "x", 0))) __PYX_ERR(0, 3296, __pyx_L1_error)
7454  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3297, __pyx_L1_error)
7455  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 3298, __pyx_L1_error)
7456  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 3299, __pyx_L1_error)
7457  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 3300, __pyx_L1_error)
7458  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 3301, __pyx_L1_error)
7459  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 3302, __pyx_L1_error)
7460  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 3303, __pyx_L1_error)
7461  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 3304, __pyx_L1_error)
7462  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1, "dphi", 0))) __PYX_ERR(0, 3305, __pyx_L1_error)
7463  __pyx_r = __pyx_pf_22ctransportCoefficients_24disRotatingPulseVelEvaluate(__pyx_self, __pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_self_a, __pyx_v_x, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da, __pyx_v_phi, __pyx_v_dphi);
7464 
7465  /* function exit code */
7466  goto __pyx_L0;
7467  __pyx_L1_error:;
7468  __pyx_r = NULL;
7469  __pyx_L0:;
7470  __Pyx_RefNannyFinishContext();
7471  return __pyx_r;
7472 }
7473 
7474 static PyObject *__pyx_pf_22ctransportCoefficients_24disRotatingPulseVelEvaluate(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nPoints, int __pyx_v_nSpace, double __pyx_v_self_a, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi) {
7475  PyObject *__pyx_r = NULL;
7476  __Pyx_RefNannyDeclarations
7477  __Pyx_RefNannySetupContext("disRotatingPulseVelEvaluate", 0);
7478 
7479  /* "ctransportCoefficients.pyx":3306
7480  * np.ndarray phi,
7481  * np.ndarray dphi):
7482  * cdisRotatingPulseVelEvaluate(nPoints, # <<<<<<<<<<<<<<
7483  * nSpace,
7484  * self_a,
7485  */
7486  disRotatingPulseVelEvaluate(__pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_self_a, ((double *)__pyx_v_x->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_dphi->data));
7487 
7488  /* "ctransportCoefficients.pyx":3293
7489  * <double*> phi.data,
7490  * <double*> dphi.data)
7491  * def disRotatingPulseVelEvaluate(const int nPoints, # <<<<<<<<<<<<<<
7492  * const int nSpace,
7493  * const double self_a,
7494  */
7495 
7496  /* function exit code */
7497  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7498  __Pyx_XGIVEREF(__pyx_r);
7499  __Pyx_RefNannyFinishContext();
7500  return __pyx_r;
7501 }
7502 
7503 /* "ctransportCoefficients.pyx":3319
7504  * <double*> phi.data,
7505  * <double*> dphi.data)
7506  * def disVelEvaluate(const int nPoints, # <<<<<<<<<<<<<<
7507  * const int nSpace,
7508  * const double self_a,
7509  */
7510 
7511 /* Python wrapper */
7512 static PyObject *__pyx_pw_22ctransportCoefficients_27disVelEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
7513 static PyMethodDef __pyx_mdef_22ctransportCoefficients_27disVelEvaluate = {"disVelEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_27disVelEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
7514 static PyObject *__pyx_pw_22ctransportCoefficients_27disVelEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
7515  int __pyx_v_nPoints;
7516  int __pyx_v_nSpace;
7517  double __pyx_v_self_a;
7518  PyArrayObject *__pyx_v_x = 0;
7519  PyArrayObject *__pyx_v_u = 0;
7520  PyArrayObject *__pyx_v_m = 0;
7521  PyArrayObject *__pyx_v_dm = 0;
7522  PyArrayObject *__pyx_v_f = 0;
7523  PyArrayObject *__pyx_v_df = 0;
7524  PyArrayObject *__pyx_v_a = 0;
7525  PyArrayObject *__pyx_v_da = 0;
7526  PyArrayObject *__pyx_v_phi = 0;
7527  PyArrayObject *__pyx_v_dphi = 0;
7528  int __pyx_lineno = 0;
7529  const char *__pyx_filename = NULL;
7530  int __pyx_clineno = 0;
7531  PyObject *__pyx_r = 0;
7532  __Pyx_RefNannyDeclarations
7533  __Pyx_RefNannySetupContext("disVelEvaluate (wrapper)", 0);
7534  {
7535  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nPoints,&__pyx_n_s_nSpace,&__pyx_n_s_self_a,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_phi,&__pyx_n_s_dphi,0};
7536  PyObject* values[13] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
7537  if (unlikely(__pyx_kwds)) {
7538  Py_ssize_t kw_args;
7539  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
7540  switch (pos_args) {
7541  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
7542  CYTHON_FALLTHROUGH;
7543  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
7544  CYTHON_FALLTHROUGH;
7545  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
7546  CYTHON_FALLTHROUGH;
7547  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
7548  CYTHON_FALLTHROUGH;
7549  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
7550  CYTHON_FALLTHROUGH;
7551  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
7552  CYTHON_FALLTHROUGH;
7553  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7554  CYTHON_FALLTHROUGH;
7555  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7556  CYTHON_FALLTHROUGH;
7557  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7558  CYTHON_FALLTHROUGH;
7559  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7560  CYTHON_FALLTHROUGH;
7561  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7562  CYTHON_FALLTHROUGH;
7563  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7564  CYTHON_FALLTHROUGH;
7565  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7566  CYTHON_FALLTHROUGH;
7567  case 0: break;
7568  default: goto __pyx_L5_argtuple_error;
7569  }
7570  kw_args = PyDict_Size(__pyx_kwds);
7571  switch (pos_args) {
7572  case 0:
7573  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPoints)) != 0)) kw_args--;
7574  else goto __pyx_L5_argtuple_error;
7575  CYTHON_FALLTHROUGH;
7576  case 1:
7577  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
7578  else {
7579  __Pyx_RaiseArgtupleInvalid("disVelEvaluate", 1, 13, 13, 1); __PYX_ERR(0, 3319, __pyx_L3_error)
7580  }
7581  CYTHON_FALLTHROUGH;
7582  case 2:
7583  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self_a)) != 0)) kw_args--;
7584  else {
7585  __Pyx_RaiseArgtupleInvalid("disVelEvaluate", 1, 13, 13, 2); __PYX_ERR(0, 3319, __pyx_L3_error)
7586  }
7587  CYTHON_FALLTHROUGH;
7588  case 3:
7589  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
7590  else {
7591  __Pyx_RaiseArgtupleInvalid("disVelEvaluate", 1, 13, 13, 3); __PYX_ERR(0, 3319, __pyx_L3_error)
7592  }
7593  CYTHON_FALLTHROUGH;
7594  case 4:
7595  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
7596  else {
7597  __Pyx_RaiseArgtupleInvalid("disVelEvaluate", 1, 13, 13, 4); __PYX_ERR(0, 3319, __pyx_L3_error)
7598  }
7599  CYTHON_FALLTHROUGH;
7600  case 5:
7601  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
7602  else {
7603  __Pyx_RaiseArgtupleInvalid("disVelEvaluate", 1, 13, 13, 5); __PYX_ERR(0, 3319, __pyx_L3_error)
7604  }
7605  CYTHON_FALLTHROUGH;
7606  case 6:
7607  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
7608  else {
7609  __Pyx_RaiseArgtupleInvalid("disVelEvaluate", 1, 13, 13, 6); __PYX_ERR(0, 3319, __pyx_L3_error)
7610  }
7611  CYTHON_FALLTHROUGH;
7612  case 7:
7613  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
7614  else {
7615  __Pyx_RaiseArgtupleInvalid("disVelEvaluate", 1, 13, 13, 7); __PYX_ERR(0, 3319, __pyx_L3_error)
7616  }
7617  CYTHON_FALLTHROUGH;
7618  case 8:
7619  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
7620  else {
7621  __Pyx_RaiseArgtupleInvalid("disVelEvaluate", 1, 13, 13, 8); __PYX_ERR(0, 3319, __pyx_L3_error)
7622  }
7623  CYTHON_FALLTHROUGH;
7624  case 9:
7625  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
7626  else {
7627  __Pyx_RaiseArgtupleInvalid("disVelEvaluate", 1, 13, 13, 9); __PYX_ERR(0, 3319, __pyx_L3_error)
7628  }
7629  CYTHON_FALLTHROUGH;
7630  case 10:
7631  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
7632  else {
7633  __Pyx_RaiseArgtupleInvalid("disVelEvaluate", 1, 13, 13, 10); __PYX_ERR(0, 3319, __pyx_L3_error)
7634  }
7635  CYTHON_FALLTHROUGH;
7636  case 11:
7637  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
7638  else {
7639  __Pyx_RaiseArgtupleInvalid("disVelEvaluate", 1, 13, 13, 11); __PYX_ERR(0, 3319, __pyx_L3_error)
7640  }
7641  CYTHON_FALLTHROUGH;
7642  case 12:
7643  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
7644  else {
7645  __Pyx_RaiseArgtupleInvalid("disVelEvaluate", 1, 13, 13, 12); __PYX_ERR(0, 3319, __pyx_L3_error)
7646  }
7647  }
7648  if (unlikely(kw_args > 0)) {
7649  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "disVelEvaluate") < 0)) __PYX_ERR(0, 3319, __pyx_L3_error)
7650  }
7651  } else if (PyTuple_GET_SIZE(__pyx_args) != 13) {
7652  goto __pyx_L5_argtuple_error;
7653  } else {
7654  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7655  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7656  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7657  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7658  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7659  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7660  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7661  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
7662  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
7663  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
7664  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
7665  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
7666  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
7667  }
7668  __pyx_v_nPoints = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_nPoints == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3319, __pyx_L3_error)
7669  __pyx_v_nSpace = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_nSpace == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3320, __pyx_L3_error)
7670  __pyx_v_self_a = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_self_a == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3321, __pyx_L3_error)
7671  __pyx_v_x = ((PyArrayObject *)values[3]);
7672  __pyx_v_u = ((PyArrayObject *)values[4]);
7673  __pyx_v_m = ((PyArrayObject *)values[5]);
7674  __pyx_v_dm = ((PyArrayObject *)values[6]);
7675  __pyx_v_f = ((PyArrayObject *)values[7]);
7676  __pyx_v_df = ((PyArrayObject *)values[8]);
7677  __pyx_v_a = ((PyArrayObject *)values[9]);
7678  __pyx_v_da = ((PyArrayObject *)values[10]);
7679  __pyx_v_phi = ((PyArrayObject *)values[11]);
7680  __pyx_v_dphi = ((PyArrayObject *)values[12]);
7681  }
7682  goto __pyx_L4_argument_unpacking_done;
7683  __pyx_L5_argtuple_error:;
7684  __Pyx_RaiseArgtupleInvalid("disVelEvaluate", 1, 13, 13, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3319, __pyx_L3_error)
7685  __pyx_L3_error:;
7686  __Pyx_AddTraceback("ctransportCoefficients.disVelEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
7687  __Pyx_RefNannyFinishContext();
7688  return NULL;
7689  __pyx_L4_argument_unpacking_done:;
7690  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1, "x", 0))) __PYX_ERR(0, 3322, __pyx_L1_error)
7691  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3323, __pyx_L1_error)
7692  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 3324, __pyx_L1_error)
7693  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 3325, __pyx_L1_error)
7694  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 3326, __pyx_L1_error)
7695  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 3327, __pyx_L1_error)
7696  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 3328, __pyx_L1_error)
7697  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 3329, __pyx_L1_error)
7698  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 3330, __pyx_L1_error)
7699  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1, "dphi", 0))) __PYX_ERR(0, 3331, __pyx_L1_error)
7700  __pyx_r = __pyx_pf_22ctransportCoefficients_26disVelEvaluate(__pyx_self, __pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_self_a, __pyx_v_x, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da, __pyx_v_phi, __pyx_v_dphi);
7701 
7702  /* function exit code */
7703  goto __pyx_L0;
7704  __pyx_L1_error:;
7705  __pyx_r = NULL;
7706  __pyx_L0:;
7707  __Pyx_RefNannyFinishContext();
7708  return __pyx_r;
7709 }
7710 
7711 static PyObject *__pyx_pf_22ctransportCoefficients_26disVelEvaluate(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nPoints, int __pyx_v_nSpace, double __pyx_v_self_a, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi) {
7712  PyObject *__pyx_r = NULL;
7713  __Pyx_RefNannyDeclarations
7714  __Pyx_RefNannySetupContext("disVelEvaluate", 0);
7715 
7716  /* "ctransportCoefficients.pyx":3332
7717  * np.ndarray phi,
7718  * np.ndarray dphi):
7719  * cdisVelEvaluate(nPoints, # <<<<<<<<<<<<<<
7720  * nSpace,
7721  * self_a,
7722  */
7723  disVelEvaluate(__pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_self_a, ((double *)__pyx_v_x->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_dphi->data));
7724 
7725  /* "ctransportCoefficients.pyx":3319
7726  * <double*> phi.data,
7727  * <double*> dphi.data)
7728  * def disVelEvaluate(const int nPoints, # <<<<<<<<<<<<<<
7729  * const int nSpace,
7730  * const double self_a,
7731  */
7732 
7733  /* function exit code */
7734  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7735  __Pyx_XGIVEREF(__pyx_r);
7736  __Pyx_RefNannyFinishContext();
7737  return __pyx_r;
7738 }
7739 
7740 /* "ctransportCoefficients.pyx":3345
7741  * <double*> phi.data,
7742  * <double*> dphi.data)
7743  * def burgersDiagonalVelEvaluate(const double self_a, # <<<<<<<<<<<<<<
7744  * np.ndarray self_v,
7745  * np.ndarray u,
7746  */
7747 
7748 /* Python wrapper */
7749 static PyObject *__pyx_pw_22ctransportCoefficients_29burgersDiagonalVelEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
7750 static PyMethodDef __pyx_mdef_22ctransportCoefficients_29burgersDiagonalVelEvaluate = {"burgersDiagonalVelEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_29burgersDiagonalVelEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
7751 static PyObject *__pyx_pw_22ctransportCoefficients_29burgersDiagonalVelEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
7752  double __pyx_v_self_a;
7753  PyArrayObject *__pyx_v_self_v = 0;
7754  PyArrayObject *__pyx_v_u = 0;
7755  PyArrayObject *__pyx_v_m = 0;
7756  PyArrayObject *__pyx_v_dm = 0;
7757  PyArrayObject *__pyx_v_f = 0;
7758  PyArrayObject *__pyx_v_df = 0;
7759  PyArrayObject *__pyx_v_a = 0;
7760  PyArrayObject *__pyx_v_phi = 0;
7761  PyArrayObject *__pyx_v_dphi = 0;
7762  int __pyx_lineno = 0;
7763  const char *__pyx_filename = NULL;
7764  int __pyx_clineno = 0;
7765  PyObject *__pyx_r = 0;
7766  __Pyx_RefNannyDeclarations
7767  __Pyx_RefNannySetupContext("burgersDiagonalVelEvaluate (wrapper)", 0);
7768  {
7769  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self_a,&__pyx_n_s_self_v,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_phi,&__pyx_n_s_dphi,0};
7770  PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
7771  if (unlikely(__pyx_kwds)) {
7772  Py_ssize_t kw_args;
7773  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
7774  switch (pos_args) {
7775  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
7776  CYTHON_FALLTHROUGH;
7777  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
7778  CYTHON_FALLTHROUGH;
7779  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
7780  CYTHON_FALLTHROUGH;
7781  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7782  CYTHON_FALLTHROUGH;
7783  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7784  CYTHON_FALLTHROUGH;
7785  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7786  CYTHON_FALLTHROUGH;
7787  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7788  CYTHON_FALLTHROUGH;
7789  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7790  CYTHON_FALLTHROUGH;
7791  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7792  CYTHON_FALLTHROUGH;
7793  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7794  CYTHON_FALLTHROUGH;
7795  case 0: break;
7796  default: goto __pyx_L5_argtuple_error;
7797  }
7798  kw_args = PyDict_Size(__pyx_kwds);
7799  switch (pos_args) {
7800  case 0:
7801  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self_a)) != 0)) kw_args--;
7802  else goto __pyx_L5_argtuple_error;
7803  CYTHON_FALLTHROUGH;
7804  case 1:
7805  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self_v)) != 0)) kw_args--;
7806  else {
7807  __Pyx_RaiseArgtupleInvalid("burgersDiagonalVelEvaluate", 1, 10, 10, 1); __PYX_ERR(0, 3345, __pyx_L3_error)
7808  }
7809  CYTHON_FALLTHROUGH;
7810  case 2:
7811  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
7812  else {
7813  __Pyx_RaiseArgtupleInvalid("burgersDiagonalVelEvaluate", 1, 10, 10, 2); __PYX_ERR(0, 3345, __pyx_L3_error)
7814  }
7815  CYTHON_FALLTHROUGH;
7816  case 3:
7817  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
7818  else {
7819  __Pyx_RaiseArgtupleInvalid("burgersDiagonalVelEvaluate", 1, 10, 10, 3); __PYX_ERR(0, 3345, __pyx_L3_error)
7820  }
7821  CYTHON_FALLTHROUGH;
7822  case 4:
7823  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
7824  else {
7825  __Pyx_RaiseArgtupleInvalid("burgersDiagonalVelEvaluate", 1, 10, 10, 4); __PYX_ERR(0, 3345, __pyx_L3_error)
7826  }
7827  CYTHON_FALLTHROUGH;
7828  case 5:
7829  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
7830  else {
7831  __Pyx_RaiseArgtupleInvalid("burgersDiagonalVelEvaluate", 1, 10, 10, 5); __PYX_ERR(0, 3345, __pyx_L3_error)
7832  }
7833  CYTHON_FALLTHROUGH;
7834  case 6:
7835  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
7836  else {
7837  __Pyx_RaiseArgtupleInvalid("burgersDiagonalVelEvaluate", 1, 10, 10, 6); __PYX_ERR(0, 3345, __pyx_L3_error)
7838  }
7839  CYTHON_FALLTHROUGH;
7840  case 7:
7841  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
7842  else {
7843  __Pyx_RaiseArgtupleInvalid("burgersDiagonalVelEvaluate", 1, 10, 10, 7); __PYX_ERR(0, 3345, __pyx_L3_error)
7844  }
7845  CYTHON_FALLTHROUGH;
7846  case 8:
7847  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
7848  else {
7849  __Pyx_RaiseArgtupleInvalid("burgersDiagonalVelEvaluate", 1, 10, 10, 8); __PYX_ERR(0, 3345, __pyx_L3_error)
7850  }
7851  CYTHON_FALLTHROUGH;
7852  case 9:
7853  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
7854  else {
7855  __Pyx_RaiseArgtupleInvalid("burgersDiagonalVelEvaluate", 1, 10, 10, 9); __PYX_ERR(0, 3345, __pyx_L3_error)
7856  }
7857  }
7858  if (unlikely(kw_args > 0)) {
7859  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "burgersDiagonalVelEvaluate") < 0)) __PYX_ERR(0, 3345, __pyx_L3_error)
7860  }
7861  } else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
7862  goto __pyx_L5_argtuple_error;
7863  } else {
7864  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7865  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7866  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7867  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7868  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7869  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7870  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7871  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
7872  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
7873  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
7874  }
7875  __pyx_v_self_a = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_self_a == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3345, __pyx_L3_error)
7876  __pyx_v_self_v = ((PyArrayObject *)values[1]);
7877  __pyx_v_u = ((PyArrayObject *)values[2]);
7878  __pyx_v_m = ((PyArrayObject *)values[3]);
7879  __pyx_v_dm = ((PyArrayObject *)values[4]);
7880  __pyx_v_f = ((PyArrayObject *)values[5]);
7881  __pyx_v_df = ((PyArrayObject *)values[6]);
7882  __pyx_v_a = ((PyArrayObject *)values[7]);
7883  __pyx_v_phi = ((PyArrayObject *)values[8]);
7884  __pyx_v_dphi = ((PyArrayObject *)values[9]);
7885  }
7886  goto __pyx_L4_argument_unpacking_done;
7887  __pyx_L5_argtuple_error:;
7888  __Pyx_RaiseArgtupleInvalid("burgersDiagonalVelEvaluate", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3345, __pyx_L3_error)
7889  __pyx_L3_error:;
7890  __Pyx_AddTraceback("ctransportCoefficients.burgersDiagonalVelEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
7891  __Pyx_RefNannyFinishContext();
7892  return NULL;
7893  __pyx_L4_argument_unpacking_done:;
7894  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self_v), __pyx_ptype_5numpy_ndarray, 1, "self_v", 0))) __PYX_ERR(0, 3346, __pyx_L1_error)
7895  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3347, __pyx_L1_error)
7896  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 3348, __pyx_L1_error)
7897  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 3349, __pyx_L1_error)
7898  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 3350, __pyx_L1_error)
7899  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 3351, __pyx_L1_error)
7900  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 3352, __pyx_L1_error)
7901  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 3353, __pyx_L1_error)
7902  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1, "dphi", 0))) __PYX_ERR(0, 3354, __pyx_L1_error)
7903  __pyx_r = __pyx_pf_22ctransportCoefficients_28burgersDiagonalVelEvaluate(__pyx_self, __pyx_v_self_a, __pyx_v_self_v, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_phi, __pyx_v_dphi);
7904 
7905  /* function exit code */
7906  goto __pyx_L0;
7907  __pyx_L1_error:;
7908  __pyx_r = NULL;
7909  __pyx_L0:;
7910  __Pyx_RefNannyFinishContext();
7911  return __pyx_r;
7912 }
7913 
7914 static PyObject *__pyx_pf_22ctransportCoefficients_28burgersDiagonalVelEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_self_a, PyArrayObject *__pyx_v_self_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi) {
7915  PyObject *__pyx_r = NULL;
7916  __Pyx_RefNannyDeclarations
7917  PyObject *__pyx_t_1 = NULL;
7918  int __pyx_t_2;
7919  int __pyx_lineno = 0;
7920  const char *__pyx_filename = NULL;
7921  int __pyx_clineno = 0;
7922  __Pyx_RefNannySetupContext("burgersDiagonalVelEvaluate", 0);
7923 
7924  /* "ctransportCoefficients.pyx":3355
7925  * np.ndarray phi,
7926  * np.ndarray dphi):
7927  * cburgersDiagonalVelEvaluate(u.size, # <<<<<<<<<<<<<<
7928  * f.shape[f.ndim-1],
7929  * self_a,
7930  */
7931  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3355, __pyx_L1_error)
7932  __Pyx_GOTREF(__pyx_t_1);
7933  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3355, __pyx_L1_error)
7934  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7935 
7936  /* "ctransportCoefficients.pyx":3366
7937  * <double*> a.data,
7938  * <double*> phi.data,
7939  * <double*> dphi.data) # <<<<<<<<<<<<<<
7940  * def burgersDiagonalVelHJEvaluate(const double self_a,
7941  * np.ndarray self_v,
7942  */
7943  burgersDiagonalVelEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_self_a, ((double *)__pyx_v_self_v->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_dphi->data));
7944 
7945  /* "ctransportCoefficients.pyx":3345
7946  * <double*> phi.data,
7947  * <double*> dphi.data)
7948  * def burgersDiagonalVelEvaluate(const double self_a, # <<<<<<<<<<<<<<
7949  * np.ndarray self_v,
7950  * np.ndarray u,
7951  */
7952 
7953  /* function exit code */
7954  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7955  goto __pyx_L0;
7956  __pyx_L1_error:;
7957  __Pyx_XDECREF(__pyx_t_1);
7958  __Pyx_AddTraceback("ctransportCoefficients.burgersDiagonalVelEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
7959  __pyx_r = NULL;
7960  __pyx_L0:;
7961  __Pyx_XGIVEREF(__pyx_r);
7962  __Pyx_RefNannyFinishContext();
7963  return __pyx_r;
7964 }
7965 
7966 /* "ctransportCoefficients.pyx":3367
7967  * <double*> phi.data,
7968  * <double*> dphi.data)
7969  * def burgersDiagonalVelHJEvaluate(const double self_a, # <<<<<<<<<<<<<<
7970  * np.ndarray self_v,
7971  * np.ndarray u,
7972  */
7973 
7974 /* Python wrapper */
7975 static PyObject *__pyx_pw_22ctransportCoefficients_31burgersDiagonalVelHJEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
7976 static PyMethodDef __pyx_mdef_22ctransportCoefficients_31burgersDiagonalVelHJEvaluate = {"burgersDiagonalVelHJEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_31burgersDiagonalVelHJEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
7977 static PyObject *__pyx_pw_22ctransportCoefficients_31burgersDiagonalVelHJEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
7978  double __pyx_v_self_a;
7979  PyArrayObject *__pyx_v_self_v = 0;
7980  PyArrayObject *__pyx_v_u = 0;
7981  PyArrayObject *__pyx_v_grad_u = 0;
7982  PyArrayObject *__pyx_v_m = 0;
7983  PyArrayObject *__pyx_v_dm = 0;
7984  PyArrayObject *__pyx_v_H = 0;
7985  PyArrayObject *__pyx_v_dH = 0;
7986  PyArrayObject *__pyx_v_a = 0;
7987  PyArrayObject *__pyx_v_phi = 0;
7988  PyArrayObject *__pyx_v_dphi = 0;
7989  int __pyx_lineno = 0;
7990  const char *__pyx_filename = NULL;
7991  int __pyx_clineno = 0;
7992  PyObject *__pyx_r = 0;
7993  __Pyx_RefNannyDeclarations
7994  __Pyx_RefNannySetupContext("burgersDiagonalVelHJEvaluate (wrapper)", 0);
7995  {
7996  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self_a,&__pyx_n_s_self_v,&__pyx_n_s_u,&__pyx_n_s_grad_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_H,&__pyx_n_s_dH,&__pyx_n_s_a,&__pyx_n_s_phi,&__pyx_n_s_dphi,0};
7997  PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0};
7998  if (unlikely(__pyx_kwds)) {
7999  Py_ssize_t kw_args;
8000  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
8001  switch (pos_args) {
8002  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
8003  CYTHON_FALLTHROUGH;
8004  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
8005  CYTHON_FALLTHROUGH;
8006  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
8007  CYTHON_FALLTHROUGH;
8008  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
8009  CYTHON_FALLTHROUGH;
8010  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
8011  CYTHON_FALLTHROUGH;
8012  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
8013  CYTHON_FALLTHROUGH;
8014  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8015  CYTHON_FALLTHROUGH;
8016  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8017  CYTHON_FALLTHROUGH;
8018  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8019  CYTHON_FALLTHROUGH;
8020  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8021  CYTHON_FALLTHROUGH;
8022  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8023  CYTHON_FALLTHROUGH;
8024  case 0: break;
8025  default: goto __pyx_L5_argtuple_error;
8026  }
8027  kw_args = PyDict_Size(__pyx_kwds);
8028  switch (pos_args) {
8029  case 0:
8030  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self_a)) != 0)) kw_args--;
8031  else goto __pyx_L5_argtuple_error;
8032  CYTHON_FALLTHROUGH;
8033  case 1:
8034  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self_v)) != 0)) kw_args--;
8035  else {
8036  __Pyx_RaiseArgtupleInvalid("burgersDiagonalVelHJEvaluate", 1, 11, 11, 1); __PYX_ERR(0, 3367, __pyx_L3_error)
8037  }
8038  CYTHON_FALLTHROUGH;
8039  case 2:
8040  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
8041  else {
8042  __Pyx_RaiseArgtupleInvalid("burgersDiagonalVelHJEvaluate", 1, 11, 11, 2); __PYX_ERR(0, 3367, __pyx_L3_error)
8043  }
8044  CYTHON_FALLTHROUGH;
8045  case 3:
8046  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
8047  else {
8048  __Pyx_RaiseArgtupleInvalid("burgersDiagonalVelHJEvaluate", 1, 11, 11, 3); __PYX_ERR(0, 3367, __pyx_L3_error)
8049  }
8050  CYTHON_FALLTHROUGH;
8051  case 4:
8052  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
8053  else {
8054  __Pyx_RaiseArgtupleInvalid("burgersDiagonalVelHJEvaluate", 1, 11, 11, 4); __PYX_ERR(0, 3367, __pyx_L3_error)
8055  }
8056  CYTHON_FALLTHROUGH;
8057  case 5:
8058  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
8059  else {
8060  __Pyx_RaiseArgtupleInvalid("burgersDiagonalVelHJEvaluate", 1, 11, 11, 5); __PYX_ERR(0, 3367, __pyx_L3_error)
8061  }
8062  CYTHON_FALLTHROUGH;
8063  case 6:
8064  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
8065  else {
8066  __Pyx_RaiseArgtupleInvalid("burgersDiagonalVelHJEvaluate", 1, 11, 11, 6); __PYX_ERR(0, 3367, __pyx_L3_error)
8067  }
8068  CYTHON_FALLTHROUGH;
8069  case 7:
8070  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
8071  else {
8072  __Pyx_RaiseArgtupleInvalid("burgersDiagonalVelHJEvaluate", 1, 11, 11, 7); __PYX_ERR(0, 3367, __pyx_L3_error)
8073  }
8074  CYTHON_FALLTHROUGH;
8075  case 8:
8076  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
8077  else {
8078  __Pyx_RaiseArgtupleInvalid("burgersDiagonalVelHJEvaluate", 1, 11, 11, 8); __PYX_ERR(0, 3367, __pyx_L3_error)
8079  }
8080  CYTHON_FALLTHROUGH;
8081  case 9:
8082  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
8083  else {
8084  __Pyx_RaiseArgtupleInvalid("burgersDiagonalVelHJEvaluate", 1, 11, 11, 9); __PYX_ERR(0, 3367, __pyx_L3_error)
8085  }
8086  CYTHON_FALLTHROUGH;
8087  case 10:
8088  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
8089  else {
8090  __Pyx_RaiseArgtupleInvalid("burgersDiagonalVelHJEvaluate", 1, 11, 11, 10); __PYX_ERR(0, 3367, __pyx_L3_error)
8091  }
8092  }
8093  if (unlikely(kw_args > 0)) {
8094  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "burgersDiagonalVelHJEvaluate") < 0)) __PYX_ERR(0, 3367, __pyx_L3_error)
8095  }
8096  } else if (PyTuple_GET_SIZE(__pyx_args) != 11) {
8097  goto __pyx_L5_argtuple_error;
8098  } else {
8099  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8100  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8101  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8102  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8103  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8104  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
8105  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
8106  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
8107  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
8108  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
8109  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
8110  }
8111  __pyx_v_self_a = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_self_a == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3367, __pyx_L3_error)
8112  __pyx_v_self_v = ((PyArrayObject *)values[1]);
8113  __pyx_v_u = ((PyArrayObject *)values[2]);
8114  __pyx_v_grad_u = ((PyArrayObject *)values[3]);
8115  __pyx_v_m = ((PyArrayObject *)values[4]);
8116  __pyx_v_dm = ((PyArrayObject *)values[5]);
8117  __pyx_v_H = ((PyArrayObject *)values[6]);
8118  __pyx_v_dH = ((PyArrayObject *)values[7]);
8119  __pyx_v_a = ((PyArrayObject *)values[8]);
8120  __pyx_v_phi = ((PyArrayObject *)values[9]);
8121  __pyx_v_dphi = ((PyArrayObject *)values[10]);
8122  }
8123  goto __pyx_L4_argument_unpacking_done;
8124  __pyx_L5_argtuple_error:;
8125  __Pyx_RaiseArgtupleInvalid("burgersDiagonalVelHJEvaluate", 1, 11, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3367, __pyx_L3_error)
8126  __pyx_L3_error:;
8127  __Pyx_AddTraceback("ctransportCoefficients.burgersDiagonalVelHJEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
8128  __Pyx_RefNannyFinishContext();
8129  return NULL;
8130  __pyx_L4_argument_unpacking_done:;
8131  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self_v), __pyx_ptype_5numpy_ndarray, 1, "self_v", 0))) __PYX_ERR(0, 3368, __pyx_L1_error)
8132  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3369, __pyx_L1_error)
8133  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1, "grad_u", 0))) __PYX_ERR(0, 3370, __pyx_L1_error)
8134  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 3371, __pyx_L1_error)
8135  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 3372, __pyx_L1_error)
8136  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1, "H", 0))) __PYX_ERR(0, 3373, __pyx_L1_error)
8137  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1, "dH", 0))) __PYX_ERR(0, 3374, __pyx_L1_error)
8138  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 3375, __pyx_L1_error)
8139  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 3376, __pyx_L1_error)
8140  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1, "dphi", 0))) __PYX_ERR(0, 3377, __pyx_L1_error)
8141  __pyx_r = __pyx_pf_22ctransportCoefficients_30burgersDiagonalVelHJEvaluate(__pyx_self, __pyx_v_self_a, __pyx_v_self_v, __pyx_v_u, __pyx_v_grad_u, __pyx_v_m, __pyx_v_dm, __pyx_v_H, __pyx_v_dH, __pyx_v_a, __pyx_v_phi, __pyx_v_dphi);
8142 
8143  /* function exit code */
8144  goto __pyx_L0;
8145  __pyx_L1_error:;
8146  __pyx_r = NULL;
8147  __pyx_L0:;
8148  __Pyx_RefNannyFinishContext();
8149  return __pyx_r;
8150 }
8151 
8152 static PyObject *__pyx_pf_22ctransportCoefficients_30burgersDiagonalVelHJEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_self_a, PyArrayObject *__pyx_v_self_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi) {
8153  PyObject *__pyx_r = NULL;
8154  __Pyx_RefNannyDeclarations
8155  PyObject *__pyx_t_1 = NULL;
8156  int __pyx_t_2;
8157  long __pyx_t_3;
8158  int __pyx_t_4;
8159  int __pyx_lineno = 0;
8160  const char *__pyx_filename = NULL;
8161  int __pyx_clineno = 0;
8162  __Pyx_RefNannySetupContext("burgersDiagonalVelHJEvaluate", 0);
8163 
8164  /* "ctransportCoefficients.pyx":3378
8165  * np.ndarray phi,
8166  * np.ndarray dphi):
8167  * cburgersDiagonalVelHJEvaluate(u.size, # <<<<<<<<<<<<<<
8168  * dH[dH.ndim-1],
8169  * self_a,
8170  */
8171  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3378, __pyx_L1_error)
8172  __Pyx_GOTREF(__pyx_t_1);
8173  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3378, __pyx_L1_error)
8174  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8175 
8176  /* "ctransportCoefficients.pyx":3379
8177  * np.ndarray dphi):
8178  * cburgersDiagonalVelHJEvaluate(u.size,
8179  * dH[dH.ndim-1], # <<<<<<<<<<<<<<
8180  * self_a,
8181  * <double*> self_v.data,
8182  */
8183  __pyx_t_3 = (__pyx_v_dH->nd - 1);
8184  __pyx_t_1 = __Pyx_GetItemInt(((PyObject *)__pyx_v_dH), __pyx_t_3, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3379, __pyx_L1_error)
8185  __Pyx_GOTREF(__pyx_t_1);
8186  __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3379, __pyx_L1_error)
8187  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8188 
8189  /* "ctransportCoefficients.pyx":3378
8190  * np.ndarray phi,
8191  * np.ndarray dphi):
8192  * cburgersDiagonalVelHJEvaluate(u.size, # <<<<<<<<<<<<<<
8193  * dH[dH.ndim-1],
8194  * self_a,
8195  */
8196  burgersDiagonalVelHJEvaluate(__pyx_t_2, __pyx_t_4, __pyx_v_self_a, ((double *)__pyx_v_self_v->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_grad_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_H->data), ((double *)__pyx_v_dH->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_dphi->data));
8197 
8198  /* "ctransportCoefficients.pyx":3367
8199  * <double*> phi.data,
8200  * <double*> dphi.data)
8201  * def burgersDiagonalVelHJEvaluate(const double self_a, # <<<<<<<<<<<<<<
8202  * np.ndarray self_v,
8203  * np.ndarray u,
8204  */
8205 
8206  /* function exit code */
8207  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8208  goto __pyx_L0;
8209  __pyx_L1_error:;
8210  __Pyx_XDECREF(__pyx_t_1);
8211  __Pyx_AddTraceback("ctransportCoefficients.burgersDiagonalVelHJEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
8212  __pyx_r = NULL;
8213  __pyx_L0:;
8214  __Pyx_XGIVEREF(__pyx_r);
8215  __Pyx_RefNannyFinishContext();
8216  return __pyx_r;
8217 }
8218 
8219 /* "ctransportCoefficients.pyx":3391
8220  * <double*> phi.data,
8221  * <double*> dphi.data)
8222  * def twophasePotentialFlowEvaluate(int nPoints, # <<<<<<<<<<<<<<
8223  * int nSpace,
8224  * np.ndarray M,
8225  */
8226 
8227 /* Python wrapper */
8228 static PyObject *__pyx_pw_22ctransportCoefficients_33twophasePotentialFlowEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
8229 static PyMethodDef __pyx_mdef_22ctransportCoefficients_33twophasePotentialFlowEvaluate = {"twophasePotentialFlowEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_33twophasePotentialFlowEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
8230 static PyObject *__pyx_pw_22ctransportCoefficients_33twophasePotentialFlowEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
8231  int __pyx_v_nPoints;
8232  int __pyx_v_nSpace;
8233  PyArrayObject *__pyx_v_M = 0;
8234  PyArrayObject *__pyx_v_A = 0;
8235  PyArrayObject *__pyx_v_B = 0;
8236  PyArrayObject *__pyx_v_Bcon = 0;
8237  PyArrayObject *__pyx_v_C = 0;
8238  double __pyx_v_t;
8239  PyArrayObject *__pyx_v_x = 0;
8240  PyArrayObject *__pyx_v_u = 0;
8241  PyArrayObject *__pyx_v_m = 0;
8242  PyArrayObject *__pyx_v_dm = 0;
8243  PyArrayObject *__pyx_v_f = 0;
8244  PyArrayObject *__pyx_v_df = 0;
8245  PyArrayObject *__pyx_v_a = 0;
8246  PyArrayObject *__pyx_v_da = 0;
8247  PyArrayObject *__pyx_v_phi = 0;
8248  PyArrayObject *__pyx_v_dphi = 0;
8249  PyArrayObject *__pyx_v_r = 0;
8250  PyArrayObject *__pyx_v_dr = 0;
8251  int __pyx_lineno = 0;
8252  const char *__pyx_filename = NULL;
8253  int __pyx_clineno = 0;
8254  PyObject *__pyx_r = 0;
8255  __Pyx_RefNannyDeclarations
8256  __Pyx_RefNannySetupContext("twophasePotentialFlowEvaluate (wrapper)", 0);
8257  {
8258  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nPoints,&__pyx_n_s_nSpace,&__pyx_n_s_M,&__pyx_n_s_A,&__pyx_n_s_B,&__pyx_n_s_Bcon,&__pyx_n_s_C,&__pyx_n_s_t,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_phi,&__pyx_n_s_dphi,&__pyx_n_s_r,&__pyx_n_s_dr,0};
8259  PyObject* values[20] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
8260  if (unlikely(__pyx_kwds)) {
8261  Py_ssize_t kw_args;
8262  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
8263  switch (pos_args) {
8264  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
8265  CYTHON_FALLTHROUGH;
8266  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
8267  CYTHON_FALLTHROUGH;
8268  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
8269  CYTHON_FALLTHROUGH;
8270  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
8271  CYTHON_FALLTHROUGH;
8272  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
8273  CYTHON_FALLTHROUGH;
8274  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
8275  CYTHON_FALLTHROUGH;
8276  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
8277  CYTHON_FALLTHROUGH;
8278  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
8279  CYTHON_FALLTHROUGH;
8280  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
8281  CYTHON_FALLTHROUGH;
8282  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
8283  CYTHON_FALLTHROUGH;
8284  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
8285  CYTHON_FALLTHROUGH;
8286  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
8287  CYTHON_FALLTHROUGH;
8288  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
8289  CYTHON_FALLTHROUGH;
8290  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
8291  CYTHON_FALLTHROUGH;
8292  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
8293  CYTHON_FALLTHROUGH;
8294  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8295  CYTHON_FALLTHROUGH;
8296  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8297  CYTHON_FALLTHROUGH;
8298  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8299  CYTHON_FALLTHROUGH;
8300  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8301  CYTHON_FALLTHROUGH;
8302  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8303  CYTHON_FALLTHROUGH;
8304  case 0: break;
8305  default: goto __pyx_L5_argtuple_error;
8306  }
8307  kw_args = PyDict_Size(__pyx_kwds);
8308  switch (pos_args) {
8309  case 0:
8310  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPoints)) != 0)) kw_args--;
8311  else goto __pyx_L5_argtuple_error;
8312  CYTHON_FALLTHROUGH;
8313  case 1:
8314  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
8315  else {
8316  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowEvaluate", 1, 20, 20, 1); __PYX_ERR(0, 3391, __pyx_L3_error)
8317  }
8318  CYTHON_FALLTHROUGH;
8319  case 2:
8320  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_M)) != 0)) kw_args--;
8321  else {
8322  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowEvaluate", 1, 20, 20, 2); __PYX_ERR(0, 3391, __pyx_L3_error)
8323  }
8324  CYTHON_FALLTHROUGH;
8325  case 3:
8326  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_A)) != 0)) kw_args--;
8327  else {
8328  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowEvaluate", 1, 20, 20, 3); __PYX_ERR(0, 3391, __pyx_L3_error)
8329  }
8330  CYTHON_FALLTHROUGH;
8331  case 4:
8332  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_B)) != 0)) kw_args--;
8333  else {
8334  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowEvaluate", 1, 20, 20, 4); __PYX_ERR(0, 3391, __pyx_L3_error)
8335  }
8336  CYTHON_FALLTHROUGH;
8337  case 5:
8338  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Bcon)) != 0)) kw_args--;
8339  else {
8340  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowEvaluate", 1, 20, 20, 5); __PYX_ERR(0, 3391, __pyx_L3_error)
8341  }
8342  CYTHON_FALLTHROUGH;
8343  case 6:
8344  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_C)) != 0)) kw_args--;
8345  else {
8346  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowEvaluate", 1, 20, 20, 6); __PYX_ERR(0, 3391, __pyx_L3_error)
8347  }
8348  CYTHON_FALLTHROUGH;
8349  case 7:
8350  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
8351  else {
8352  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowEvaluate", 1, 20, 20, 7); __PYX_ERR(0, 3391, __pyx_L3_error)
8353  }
8354  CYTHON_FALLTHROUGH;
8355  case 8:
8356  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
8357  else {
8358  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowEvaluate", 1, 20, 20, 8); __PYX_ERR(0, 3391, __pyx_L3_error)
8359  }
8360  CYTHON_FALLTHROUGH;
8361  case 9:
8362  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
8363  else {
8364  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowEvaluate", 1, 20, 20, 9); __PYX_ERR(0, 3391, __pyx_L3_error)
8365  }
8366  CYTHON_FALLTHROUGH;
8367  case 10:
8368  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
8369  else {
8370  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowEvaluate", 1, 20, 20, 10); __PYX_ERR(0, 3391, __pyx_L3_error)
8371  }
8372  CYTHON_FALLTHROUGH;
8373  case 11:
8374  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
8375  else {
8376  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowEvaluate", 1, 20, 20, 11); __PYX_ERR(0, 3391, __pyx_L3_error)
8377  }
8378  CYTHON_FALLTHROUGH;
8379  case 12:
8380  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
8381  else {
8382  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowEvaluate", 1, 20, 20, 12); __PYX_ERR(0, 3391, __pyx_L3_error)
8383  }
8384  CYTHON_FALLTHROUGH;
8385  case 13:
8386  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
8387  else {
8388  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowEvaluate", 1, 20, 20, 13); __PYX_ERR(0, 3391, __pyx_L3_error)
8389  }
8390  CYTHON_FALLTHROUGH;
8391  case 14:
8392  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
8393  else {
8394  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowEvaluate", 1, 20, 20, 14); __PYX_ERR(0, 3391, __pyx_L3_error)
8395  }
8396  CYTHON_FALLTHROUGH;
8397  case 15:
8398  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
8399  else {
8400  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowEvaluate", 1, 20, 20, 15); __PYX_ERR(0, 3391, __pyx_L3_error)
8401  }
8402  CYTHON_FALLTHROUGH;
8403  case 16:
8404  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
8405  else {
8406  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowEvaluate", 1, 20, 20, 16); __PYX_ERR(0, 3391, __pyx_L3_error)
8407  }
8408  CYTHON_FALLTHROUGH;
8409  case 17:
8410  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
8411  else {
8412  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowEvaluate", 1, 20, 20, 17); __PYX_ERR(0, 3391, __pyx_L3_error)
8413  }
8414  CYTHON_FALLTHROUGH;
8415  case 18:
8416  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
8417  else {
8418  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowEvaluate", 1, 20, 20, 18); __PYX_ERR(0, 3391, __pyx_L3_error)
8419  }
8420  CYTHON_FALLTHROUGH;
8421  case 19:
8422  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
8423  else {
8424  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowEvaluate", 1, 20, 20, 19); __PYX_ERR(0, 3391, __pyx_L3_error)
8425  }
8426  }
8427  if (unlikely(kw_args > 0)) {
8428  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "twophasePotentialFlowEvaluate") < 0)) __PYX_ERR(0, 3391, __pyx_L3_error)
8429  }
8430  } else if (PyTuple_GET_SIZE(__pyx_args) != 20) {
8431  goto __pyx_L5_argtuple_error;
8432  } else {
8433  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8434  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8435  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8436  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8437  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8438  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
8439  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
8440  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
8441  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
8442  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
8443  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
8444  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
8445  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
8446  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
8447  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
8448  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
8449  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
8450  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
8451  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
8452  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
8453  }
8454  __pyx_v_nPoints = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_nPoints == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3391, __pyx_L3_error)
8455  __pyx_v_nSpace = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_nSpace == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3392, __pyx_L3_error)
8456  __pyx_v_M = ((PyArrayObject *)values[2]);
8457  __pyx_v_A = ((PyArrayObject *)values[3]);
8458  __pyx_v_B = ((PyArrayObject *)values[4]);
8459  __pyx_v_Bcon = ((PyArrayObject *)values[5]);
8460  __pyx_v_C = ((PyArrayObject *)values[6]);
8461  __pyx_v_t = __pyx_PyFloat_AsDouble(values[7]); if (unlikely((__pyx_v_t == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3398, __pyx_L3_error)
8462  __pyx_v_x = ((PyArrayObject *)values[8]);
8463  __pyx_v_u = ((PyArrayObject *)values[9]);
8464  __pyx_v_m = ((PyArrayObject *)values[10]);
8465  __pyx_v_dm = ((PyArrayObject *)values[11]);
8466  __pyx_v_f = ((PyArrayObject *)values[12]);
8467  __pyx_v_df = ((PyArrayObject *)values[13]);
8468  __pyx_v_a = ((PyArrayObject *)values[14]);
8469  __pyx_v_da = ((PyArrayObject *)values[15]);
8470  __pyx_v_phi = ((PyArrayObject *)values[16]);
8471  __pyx_v_dphi = ((PyArrayObject *)values[17]);
8472  __pyx_v_r = ((PyArrayObject *)values[18]);
8473  __pyx_v_dr = ((PyArrayObject *)values[19]);
8474  }
8475  goto __pyx_L4_argument_unpacking_done;
8476  __pyx_L5_argtuple_error:;
8477  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowEvaluate", 1, 20, 20, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3391, __pyx_L3_error)
8478  __pyx_L3_error:;
8479  __Pyx_AddTraceback("ctransportCoefficients.twophasePotentialFlowEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
8480  __Pyx_RefNannyFinishContext();
8481  return NULL;
8482  __pyx_L4_argument_unpacking_done:;
8483  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_M), __pyx_ptype_5numpy_ndarray, 1, "M", 0))) __PYX_ERR(0, 3393, __pyx_L1_error)
8484  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_A), __pyx_ptype_5numpy_ndarray, 1, "A", 0))) __PYX_ERR(0, 3394, __pyx_L1_error)
8485  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_B), __pyx_ptype_5numpy_ndarray, 1, "B", 0))) __PYX_ERR(0, 3395, __pyx_L1_error)
8486  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Bcon), __pyx_ptype_5numpy_ndarray, 1, "Bcon", 0))) __PYX_ERR(0, 3396, __pyx_L1_error)
8487  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_C), __pyx_ptype_5numpy_ndarray, 1, "C", 0))) __PYX_ERR(0, 3397, __pyx_L1_error)
8488  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1, "x", 0))) __PYX_ERR(0, 3399, __pyx_L1_error)
8489  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3400, __pyx_L1_error)
8490  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 3401, __pyx_L1_error)
8491  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 3402, __pyx_L1_error)
8492  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 3403, __pyx_L1_error)
8493  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 3404, __pyx_L1_error)
8494  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 3405, __pyx_L1_error)
8495  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 3406, __pyx_L1_error)
8496  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 3407, __pyx_L1_error)
8497  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1, "dphi", 0))) __PYX_ERR(0, 3408, __pyx_L1_error)
8498  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1, "r", 0))) __PYX_ERR(0, 3409, __pyx_L1_error)
8499  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1, "dr", 0))) __PYX_ERR(0, 3410, __pyx_L1_error)
8500  __pyx_r = __pyx_pf_22ctransportCoefficients_32twophasePotentialFlowEvaluate(__pyx_self, __pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_M, __pyx_v_A, __pyx_v_B, __pyx_v_Bcon, __pyx_v_C, __pyx_v_t, __pyx_v_x, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da, __pyx_v_phi, __pyx_v_dphi, __pyx_v_r, __pyx_v_dr);
8501 
8502  /* function exit code */
8503  goto __pyx_L0;
8504  __pyx_L1_error:;
8505  __pyx_r = NULL;
8506  __pyx_L0:;
8507  __Pyx_RefNannyFinishContext();
8508  return __pyx_r;
8509 }
8510 
8511 static PyObject *__pyx_pf_22ctransportCoefficients_32twophasePotentialFlowEvaluate(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nPoints, int __pyx_v_nSpace, PyArrayObject *__pyx_v_M, PyArrayObject *__pyx_v_A, PyArrayObject *__pyx_v_B, PyArrayObject *__pyx_v_Bcon, PyArrayObject *__pyx_v_C, double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr) {
8512  PyObject *__pyx_r = NULL;
8513  __Pyx_RefNannyDeclarations
8514  __Pyx_RefNannySetupContext("twophasePotentialFlowEvaluate", 0);
8515 
8516  /* "ctransportCoefficients.pyx":3411
8517  * np.ndarray r,
8518  * np.ndarray dr):
8519  * ctwophasePotentialFlowEvaluate( nPoints, # <<<<<<<<<<<<<<
8520  * nSpace,
8521  * <double*> M.data,
8522  */
8523  twophasePotentialFlowEvaluate(__pyx_v_nPoints, __pyx_v_nSpace, ((double *)__pyx_v_M->data), ((double *)__pyx_v_A->data), ((double *)__pyx_v_B->data), ((double *)__pyx_v_Bcon->data), ((double *)__pyx_v_C->data), __pyx_v_t, ((double *)__pyx_v_x->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_dphi->data), ((double *)__pyx_v_r->data), ((double *)__pyx_v_dr->data));
8524 
8525  /* "ctransportCoefficients.pyx":3391
8526  * <double*> phi.data,
8527  * <double*> dphi.data)
8528  * def twophasePotentialFlowEvaluate(int nPoints, # <<<<<<<<<<<<<<
8529  * int nSpace,
8530  * np.ndarray M,
8531  */
8532 
8533  /* function exit code */
8534  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8535  __Pyx_XGIVEREF(__pyx_r);
8536  __Pyx_RefNannyFinishContext();
8537  return __pyx_r;
8538 }
8539 
8540 /* "ctransportCoefficients.pyx":3431
8541  * <double*> r.data,
8542  * <double*> dr.data)
8543  * def twophasePotentialFlowUpdateFreeSurface(int nPoints, # <<<<<<<<<<<<<<
8544  * int nSpace,
8545  * double eps,
8546  */
8547 
8548 /* Python wrapper */
8549 static PyObject *__pyx_pw_22ctransportCoefficients_35twophasePotentialFlowUpdateFreeSurface(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
8550 static PyMethodDef __pyx_mdef_22ctransportCoefficients_35twophasePotentialFlowUpdateFreeSurface = {"twophasePotentialFlowUpdateFreeSurface", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_35twophasePotentialFlowUpdateFreeSurface, METH_VARARGS|METH_KEYWORDS, 0};
8551 static PyObject *__pyx_pw_22ctransportCoefficients_35twophasePotentialFlowUpdateFreeSurface(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
8552  int __pyx_v_nPoints;
8553  int __pyx_v_nSpace;
8554  double __pyx_v_eps;
8555  PyArrayObject *__pyx_v_u_levelSet = 0;
8556  double __pyx_v_M1;
8557  double __pyx_v_M2;
8558  PyArrayObject *__pyx_v_M = 0;
8559  PyArrayObject *__pyx_v_A1 = 0;
8560  PyArrayObject *__pyx_v_A2 = 0;
8561  PyArrayObject *__pyx_v_A = 0;
8562  PyArrayObject *__pyx_v_B1 = 0;
8563  PyArrayObject *__pyx_v_B2 = 0;
8564  PyArrayObject *__pyx_v_B = 0;
8565  PyArrayObject *__pyx_v_Bcon1 = 0;
8566  PyArrayObject *__pyx_v_Bcon2 = 0;
8567  PyArrayObject *__pyx_v_Bcon = 0;
8568  double __pyx_v_C1;
8569  double __pyx_v_C2;
8570  PyArrayObject *__pyx_v_C = 0;
8571  int __pyx_lineno = 0;
8572  const char *__pyx_filename = NULL;
8573  int __pyx_clineno = 0;
8574  PyObject *__pyx_r = 0;
8575  __Pyx_RefNannyDeclarations
8576  __Pyx_RefNannySetupContext("twophasePotentialFlowUpdateFreeSurface (wrapper)", 0);
8577  {
8578  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nPoints,&__pyx_n_s_nSpace,&__pyx_n_s_eps,&__pyx_n_s_u_levelSet,&__pyx_n_s_M1,&__pyx_n_s_M2,&__pyx_n_s_M,&__pyx_n_s_A1,&__pyx_n_s_A2,&__pyx_n_s_A,&__pyx_n_s_B1,&__pyx_n_s_B2,&__pyx_n_s_B,&__pyx_n_s_Bcon1,&__pyx_n_s_Bcon2,&__pyx_n_s_Bcon,&__pyx_n_s_C1,&__pyx_n_s_C2,&__pyx_n_s_C,0};
8579  PyObject* values[19] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
8580  if (unlikely(__pyx_kwds)) {
8581  Py_ssize_t kw_args;
8582  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
8583  switch (pos_args) {
8584  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
8585  CYTHON_FALLTHROUGH;
8586  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
8587  CYTHON_FALLTHROUGH;
8588  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
8589  CYTHON_FALLTHROUGH;
8590  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
8591  CYTHON_FALLTHROUGH;
8592  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
8593  CYTHON_FALLTHROUGH;
8594  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
8595  CYTHON_FALLTHROUGH;
8596  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
8597  CYTHON_FALLTHROUGH;
8598  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
8599  CYTHON_FALLTHROUGH;
8600  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
8601  CYTHON_FALLTHROUGH;
8602  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
8603  CYTHON_FALLTHROUGH;
8604  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
8605  CYTHON_FALLTHROUGH;
8606  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
8607  CYTHON_FALLTHROUGH;
8608  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
8609  CYTHON_FALLTHROUGH;
8610  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
8611  CYTHON_FALLTHROUGH;
8612  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8613  CYTHON_FALLTHROUGH;
8614  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8615  CYTHON_FALLTHROUGH;
8616  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8617  CYTHON_FALLTHROUGH;
8618  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8619  CYTHON_FALLTHROUGH;
8620  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8621  CYTHON_FALLTHROUGH;
8622  case 0: break;
8623  default: goto __pyx_L5_argtuple_error;
8624  }
8625  kw_args = PyDict_Size(__pyx_kwds);
8626  switch (pos_args) {
8627  case 0:
8628  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPoints)) != 0)) kw_args--;
8629  else goto __pyx_L5_argtuple_error;
8630  CYTHON_FALLTHROUGH;
8631  case 1:
8632  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
8633  else {
8634  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 1); __PYX_ERR(0, 3431, __pyx_L3_error)
8635  }
8636  CYTHON_FALLTHROUGH;
8637  case 2:
8638  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
8639  else {
8640  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 2); __PYX_ERR(0, 3431, __pyx_L3_error)
8641  }
8642  CYTHON_FALLTHROUGH;
8643  case 3:
8644  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_levelSet)) != 0)) kw_args--;
8645  else {
8646  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 3); __PYX_ERR(0, 3431, __pyx_L3_error)
8647  }
8648  CYTHON_FALLTHROUGH;
8649  case 4:
8650  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_M1)) != 0)) kw_args--;
8651  else {
8652  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 4); __PYX_ERR(0, 3431, __pyx_L3_error)
8653  }
8654  CYTHON_FALLTHROUGH;
8655  case 5:
8656  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_M2)) != 0)) kw_args--;
8657  else {
8658  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 5); __PYX_ERR(0, 3431, __pyx_L3_error)
8659  }
8660  CYTHON_FALLTHROUGH;
8661  case 6:
8662  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_M)) != 0)) kw_args--;
8663  else {
8664  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 6); __PYX_ERR(0, 3431, __pyx_L3_error)
8665  }
8666  CYTHON_FALLTHROUGH;
8667  case 7:
8668  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_A1)) != 0)) kw_args--;
8669  else {
8670  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 7); __PYX_ERR(0, 3431, __pyx_L3_error)
8671  }
8672  CYTHON_FALLTHROUGH;
8673  case 8:
8674  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_A2)) != 0)) kw_args--;
8675  else {
8676  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 8); __PYX_ERR(0, 3431, __pyx_L3_error)
8677  }
8678  CYTHON_FALLTHROUGH;
8679  case 9:
8680  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_A)) != 0)) kw_args--;
8681  else {
8682  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 9); __PYX_ERR(0, 3431, __pyx_L3_error)
8683  }
8684  CYTHON_FALLTHROUGH;
8685  case 10:
8686  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_B1)) != 0)) kw_args--;
8687  else {
8688  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 10); __PYX_ERR(0, 3431, __pyx_L3_error)
8689  }
8690  CYTHON_FALLTHROUGH;
8691  case 11:
8692  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_B2)) != 0)) kw_args--;
8693  else {
8694  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 11); __PYX_ERR(0, 3431, __pyx_L3_error)
8695  }
8696  CYTHON_FALLTHROUGH;
8697  case 12:
8698  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_B)) != 0)) kw_args--;
8699  else {
8700  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 12); __PYX_ERR(0, 3431, __pyx_L3_error)
8701  }
8702  CYTHON_FALLTHROUGH;
8703  case 13:
8704  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Bcon1)) != 0)) kw_args--;
8705  else {
8706  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 13); __PYX_ERR(0, 3431, __pyx_L3_error)
8707  }
8708  CYTHON_FALLTHROUGH;
8709  case 14:
8710  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Bcon2)) != 0)) kw_args--;
8711  else {
8712  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 14); __PYX_ERR(0, 3431, __pyx_L3_error)
8713  }
8714  CYTHON_FALLTHROUGH;
8715  case 15:
8716  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Bcon)) != 0)) kw_args--;
8717  else {
8718  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 15); __PYX_ERR(0, 3431, __pyx_L3_error)
8719  }
8720  CYTHON_FALLTHROUGH;
8721  case 16:
8722  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_C1)) != 0)) kw_args--;
8723  else {
8724  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 16); __PYX_ERR(0, 3431, __pyx_L3_error)
8725  }
8726  CYTHON_FALLTHROUGH;
8727  case 17:
8728  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_C2)) != 0)) kw_args--;
8729  else {
8730  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 17); __PYX_ERR(0, 3431, __pyx_L3_error)
8731  }
8732  CYTHON_FALLTHROUGH;
8733  case 18:
8734  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_C)) != 0)) kw_args--;
8735  else {
8736  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 18); __PYX_ERR(0, 3431, __pyx_L3_error)
8737  }
8738  }
8739  if (unlikely(kw_args > 0)) {
8740  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "twophasePotentialFlowUpdateFreeSurface") < 0)) __PYX_ERR(0, 3431, __pyx_L3_error)
8741  }
8742  } else if (PyTuple_GET_SIZE(__pyx_args) != 19) {
8743  goto __pyx_L5_argtuple_error;
8744  } else {
8745  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8746  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8747  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8748  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8749  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8750  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
8751  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
8752  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
8753  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
8754  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
8755  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
8756  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
8757  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
8758  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
8759  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
8760  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
8761  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
8762  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
8763  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
8764  }
8765  __pyx_v_nPoints = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_nPoints == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3431, __pyx_L3_error)
8766  __pyx_v_nSpace = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_nSpace == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3432, __pyx_L3_error)
8767  __pyx_v_eps = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3433, __pyx_L3_error)
8768  __pyx_v_u_levelSet = ((PyArrayObject *)values[3]);
8769  __pyx_v_M1 = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_M1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3435, __pyx_L3_error)
8770  __pyx_v_M2 = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_M2 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3436, __pyx_L3_error)
8771  __pyx_v_M = ((PyArrayObject *)values[6]);
8772  __pyx_v_A1 = ((PyArrayObject *)values[7]);
8773  __pyx_v_A2 = ((PyArrayObject *)values[8]);
8774  __pyx_v_A = ((PyArrayObject *)values[9]);
8775  __pyx_v_B1 = ((PyArrayObject *)values[10]);
8776  __pyx_v_B2 = ((PyArrayObject *)values[11]);
8777  __pyx_v_B = ((PyArrayObject *)values[12]);
8778  __pyx_v_Bcon1 = ((PyArrayObject *)values[13]);
8779  __pyx_v_Bcon2 = ((PyArrayObject *)values[14]);
8780  __pyx_v_Bcon = ((PyArrayObject *)values[15]);
8781  __pyx_v_C1 = __pyx_PyFloat_AsDouble(values[16]); if (unlikely((__pyx_v_C1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3447, __pyx_L3_error)
8782  __pyx_v_C2 = __pyx_PyFloat_AsDouble(values[17]); if (unlikely((__pyx_v_C2 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3448, __pyx_L3_error)
8783  __pyx_v_C = ((PyArrayObject *)values[18]);
8784  }
8785  goto __pyx_L4_argument_unpacking_done;
8786  __pyx_L5_argtuple_error:;
8787  __Pyx_RaiseArgtupleInvalid("twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3431, __pyx_L3_error)
8788  __pyx_L3_error:;
8789  __Pyx_AddTraceback("ctransportCoefficients.twophasePotentialFlowUpdateFreeSurface", __pyx_clineno, __pyx_lineno, __pyx_filename);
8790  __Pyx_RefNannyFinishContext();
8791  return NULL;
8792  __pyx_L4_argument_unpacking_done:;
8793  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_levelSet), __pyx_ptype_5numpy_ndarray, 1, "u_levelSet", 0))) __PYX_ERR(0, 3434, __pyx_L1_error)
8794  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_M), __pyx_ptype_5numpy_ndarray, 1, "M", 0))) __PYX_ERR(0, 3437, __pyx_L1_error)
8795  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_A1), __pyx_ptype_5numpy_ndarray, 1, "A1", 0))) __PYX_ERR(0, 3438, __pyx_L1_error)
8796  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_A2), __pyx_ptype_5numpy_ndarray, 1, "A2", 0))) __PYX_ERR(0, 3439, __pyx_L1_error)
8797  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_A), __pyx_ptype_5numpy_ndarray, 1, "A", 0))) __PYX_ERR(0, 3440, __pyx_L1_error)
8798  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_B1), __pyx_ptype_5numpy_ndarray, 1, "B1", 0))) __PYX_ERR(0, 3441, __pyx_L1_error)
8799  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_B2), __pyx_ptype_5numpy_ndarray, 1, "B2", 0))) __PYX_ERR(0, 3442, __pyx_L1_error)
8800  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_B), __pyx_ptype_5numpy_ndarray, 1, "B", 0))) __PYX_ERR(0, 3443, __pyx_L1_error)
8801  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Bcon1), __pyx_ptype_5numpy_ndarray, 1, "Bcon1", 0))) __PYX_ERR(0, 3444, __pyx_L1_error)
8802  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Bcon2), __pyx_ptype_5numpy_ndarray, 1, "Bcon2", 0))) __PYX_ERR(0, 3445, __pyx_L1_error)
8803  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Bcon), __pyx_ptype_5numpy_ndarray, 1, "Bcon", 0))) __PYX_ERR(0, 3446, __pyx_L1_error)
8804  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_C), __pyx_ptype_5numpy_ndarray, 1, "C", 0))) __PYX_ERR(0, 3449, __pyx_L1_error)
8805  __pyx_r = __pyx_pf_22ctransportCoefficients_34twophasePotentialFlowUpdateFreeSurface(__pyx_self, __pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_eps, __pyx_v_u_levelSet, __pyx_v_M1, __pyx_v_M2, __pyx_v_M, __pyx_v_A1, __pyx_v_A2, __pyx_v_A, __pyx_v_B1, __pyx_v_B2, __pyx_v_B, __pyx_v_Bcon1, __pyx_v_Bcon2, __pyx_v_Bcon, __pyx_v_C1, __pyx_v_C2, __pyx_v_C);
8806 
8807  /* function exit code */
8808  goto __pyx_L0;
8809  __pyx_L1_error:;
8810  __pyx_r = NULL;
8811  __pyx_L0:;
8812  __Pyx_RefNannyFinishContext();
8813  return __pyx_r;
8814 }
8815 
8816 static PyObject *__pyx_pf_22ctransportCoefficients_34twophasePotentialFlowUpdateFreeSurface(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nPoints, int __pyx_v_nSpace, double __pyx_v_eps, PyArrayObject *__pyx_v_u_levelSet, double __pyx_v_M1, double __pyx_v_M2, PyArrayObject *__pyx_v_M, PyArrayObject *__pyx_v_A1, PyArrayObject *__pyx_v_A2, PyArrayObject *__pyx_v_A, PyArrayObject *__pyx_v_B1, PyArrayObject *__pyx_v_B2, PyArrayObject *__pyx_v_B, PyArrayObject *__pyx_v_Bcon1, PyArrayObject *__pyx_v_Bcon2, PyArrayObject *__pyx_v_Bcon, double __pyx_v_C1, double __pyx_v_C2, PyArrayObject *__pyx_v_C) {
8817  PyObject *__pyx_r = NULL;
8818  __Pyx_RefNannyDeclarations
8819  __Pyx_RefNannySetupContext("twophasePotentialFlowUpdateFreeSurface", 0);
8820 
8821  /* "ctransportCoefficients.pyx":3450
8822  * double C2,
8823  * np.ndarray C):
8824  * ctwophasePotentialFlowUpdateFreeSurface( nPoints, # <<<<<<<<<<<<<<
8825  * nSpace,
8826  * eps,
8827  */
8828  twophasePotentialFlowUpdateFreeSurface(__pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_eps, ((double *)__pyx_v_u_levelSet->data), __pyx_v_M1, __pyx_v_M2, ((double *)__pyx_v_M->data), ((double *)__pyx_v_A1->data), ((double *)__pyx_v_A2->data), ((double *)__pyx_v_A->data), ((double *)__pyx_v_B1->data), ((double *)__pyx_v_B2->data), ((double *)__pyx_v_B->data), ((double *)__pyx_v_Bcon1->data), ((double *)__pyx_v_Bcon2->data), ((double *)__pyx_v_Bcon->data), __pyx_v_C1, __pyx_v_C2, ((double *)__pyx_v_C->data));
8829 
8830  /* "ctransportCoefficients.pyx":3431
8831  * <double*> r.data,
8832  * <double*> dr.data)
8833  * def twophasePotentialFlowUpdateFreeSurface(int nPoints, # <<<<<<<<<<<<<<
8834  * int nSpace,
8835  * double eps,
8836  */
8837 
8838  /* function exit code */
8839  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8840  __Pyx_XGIVEREF(__pyx_r);
8841  __Pyx_RefNannyFinishContext();
8842  return __pyx_r;
8843 }
8844 
8845 /* "ctransportCoefficients.pyx":3469
8846  * C2,
8847  * <double*> C.data)
8848  * def twophaseLevelSetCoefficientsUpdateVelocity(int nPoints, # <<<<<<<<<<<<<<
8849  * int nSpace,
8850  * double v_scale,
8851  */
8852 
8853 /* Python wrapper */
8854 static PyObject *__pyx_pw_22ctransportCoefficients_37twophaseLevelSetCoefficientsUpdateVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
8855 static PyMethodDef __pyx_mdef_22ctransportCoefficients_37twophaseLevelSetCoefficientsUpdateVelocity = {"twophaseLevelSetCoefficientsUpdateVelocity", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_37twophaseLevelSetCoefficientsUpdateVelocity, METH_VARARGS|METH_KEYWORDS, 0};
8856 static PyObject *__pyx_pw_22ctransportCoefficients_37twophaseLevelSetCoefficientsUpdateVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
8857  int __pyx_v_nPoints;
8858  int __pyx_v_nSpace;
8859  double __pyx_v_v_scale;
8860  PyArrayObject *__pyx_v_vIn = 0;
8861  PyArrayObject *__pyx_v_vOut = 0;
8862  int __pyx_lineno = 0;
8863  const char *__pyx_filename = NULL;
8864  int __pyx_clineno = 0;
8865  PyObject *__pyx_r = 0;
8866  __Pyx_RefNannyDeclarations
8867  __Pyx_RefNannySetupContext("twophaseLevelSetCoefficientsUpdateVelocity (wrapper)", 0);
8868  {
8869  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nPoints,&__pyx_n_s_nSpace,&__pyx_n_s_v_scale,&__pyx_n_s_vIn,&__pyx_n_s_vOut,0};
8870  PyObject* values[5] = {0,0,0,0,0};
8871  if (unlikely(__pyx_kwds)) {
8872  Py_ssize_t kw_args;
8873  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
8874  switch (pos_args) {
8875  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8876  CYTHON_FALLTHROUGH;
8877  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8878  CYTHON_FALLTHROUGH;
8879  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8880  CYTHON_FALLTHROUGH;
8881  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8882  CYTHON_FALLTHROUGH;
8883  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8884  CYTHON_FALLTHROUGH;
8885  case 0: break;
8886  default: goto __pyx_L5_argtuple_error;
8887  }
8888  kw_args = PyDict_Size(__pyx_kwds);
8889  switch (pos_args) {
8890  case 0:
8891  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPoints)) != 0)) kw_args--;
8892  else goto __pyx_L5_argtuple_error;
8893  CYTHON_FALLTHROUGH;
8894  case 1:
8895  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
8896  else {
8897  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsUpdateVelocity", 1, 5, 5, 1); __PYX_ERR(0, 3469, __pyx_L3_error)
8898  }
8899  CYTHON_FALLTHROUGH;
8900  case 2:
8901  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_scale)) != 0)) kw_args--;
8902  else {
8903  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsUpdateVelocity", 1, 5, 5, 2); __PYX_ERR(0, 3469, __pyx_L3_error)
8904  }
8905  CYTHON_FALLTHROUGH;
8906  case 3:
8907  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vIn)) != 0)) kw_args--;
8908  else {
8909  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsUpdateVelocity", 1, 5, 5, 3); __PYX_ERR(0, 3469, __pyx_L3_error)
8910  }
8911  CYTHON_FALLTHROUGH;
8912  case 4:
8913  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vOut)) != 0)) kw_args--;
8914  else {
8915  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsUpdateVelocity", 1, 5, 5, 4); __PYX_ERR(0, 3469, __pyx_L3_error)
8916  }
8917  }
8918  if (unlikely(kw_args > 0)) {
8919  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "twophaseLevelSetCoefficientsUpdateVelocity") < 0)) __PYX_ERR(0, 3469, __pyx_L3_error)
8920  }
8921  } else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
8922  goto __pyx_L5_argtuple_error;
8923  } else {
8924  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8925  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8926  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8927  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8928  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8929  }
8930  __pyx_v_nPoints = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_nPoints == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3469, __pyx_L3_error)
8931  __pyx_v_nSpace = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_nSpace == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3470, __pyx_L3_error)
8932  __pyx_v_v_scale = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_v_scale == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3471, __pyx_L3_error)
8933  __pyx_v_vIn = ((PyArrayObject *)values[3]);
8934  __pyx_v_vOut = ((PyArrayObject *)values[4]);
8935  }
8936  goto __pyx_L4_argument_unpacking_done;
8937  __pyx_L5_argtuple_error:;
8938  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsUpdateVelocity", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3469, __pyx_L3_error)
8939  __pyx_L3_error:;
8940  __Pyx_AddTraceback("ctransportCoefficients.twophaseLevelSetCoefficientsUpdateVelocity", __pyx_clineno, __pyx_lineno, __pyx_filename);
8941  __Pyx_RefNannyFinishContext();
8942  return NULL;
8943  __pyx_L4_argument_unpacking_done:;
8944  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vIn), __pyx_ptype_5numpy_ndarray, 1, "vIn", 0))) __PYX_ERR(0, 3472, __pyx_L1_error)
8945  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vOut), __pyx_ptype_5numpy_ndarray, 1, "vOut", 0))) __PYX_ERR(0, 3473, __pyx_L1_error)
8946  __pyx_r = __pyx_pf_22ctransportCoefficients_36twophaseLevelSetCoefficientsUpdateVelocity(__pyx_self, __pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_v_scale, __pyx_v_vIn, __pyx_v_vOut);
8947 
8948  /* function exit code */
8949  goto __pyx_L0;
8950  __pyx_L1_error:;
8951  __pyx_r = NULL;
8952  __pyx_L0:;
8953  __Pyx_RefNannyFinishContext();
8954  return __pyx_r;
8955 }
8956 
8957 static PyObject *__pyx_pf_22ctransportCoefficients_36twophaseLevelSetCoefficientsUpdateVelocity(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nPoints, int __pyx_v_nSpace, double __pyx_v_v_scale, PyArrayObject *__pyx_v_vIn, PyArrayObject *__pyx_v_vOut) {
8958  PyObject *__pyx_r = NULL;
8959  __Pyx_RefNannyDeclarations
8960  __Pyx_RefNannySetupContext("twophaseLevelSetCoefficientsUpdateVelocity", 0);
8961 
8962  /* "ctransportCoefficients.pyx":3474
8963  * np.ndarray vIn,
8964  * np.ndarray vOut):
8965  * ctwophaseLevelSetCoefficientsUpdateVelocity( nPoints, # <<<<<<<<<<<<<<
8966  * nSpace,
8967  * v_scale,
8968  */
8969  twophaseLevelSetCoefficientsUpdateVelocity(__pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_v_scale, ((double *)__pyx_v_vIn->data), ((double *)__pyx_v_vOut->data));
8970 
8971  /* "ctransportCoefficients.pyx":3469
8972  * C2,
8973  * <double*> C.data)
8974  * def twophaseLevelSetCoefficientsUpdateVelocity(int nPoints, # <<<<<<<<<<<<<<
8975  * int nSpace,
8976  * double v_scale,
8977  */
8978 
8979  /* function exit code */
8980  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8981  __Pyx_XGIVEREF(__pyx_r);
8982  __Pyx_RefNannyFinishContext();
8983  return __pyx_r;
8984 }
8985 
8986 /* "ctransportCoefficients.pyx":3479
8987  * <double*> vIn.data,
8988  * <double*> vOut.data)
8989  * def twophaseLevelSetCoefficientsEvaluate(int nPoints, # <<<<<<<<<<<<<<
8990  * int nSpace,
8991  * np.ndarray B,
8992  */
8993 
8994 /* Python wrapper */
8995 static PyObject *__pyx_pw_22ctransportCoefficients_39twophaseLevelSetCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
8996 static PyMethodDef __pyx_mdef_22ctransportCoefficients_39twophaseLevelSetCoefficientsEvaluate = {"twophaseLevelSetCoefficientsEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_39twophaseLevelSetCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
8997 static PyObject *__pyx_pw_22ctransportCoefficients_39twophaseLevelSetCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
8998  int __pyx_v_nPoints;
8999  int __pyx_v_nSpace;
9000  PyArrayObject *__pyx_v_B = 0;
9001  double __pyx_v_t;
9002  PyArrayObject *__pyx_v_x = 0;
9003  PyArrayObject *__pyx_v_u = 0;
9004  PyArrayObject *__pyx_v_grad_u = 0;
9005  PyArrayObject *__pyx_v_m = 0;
9006  PyArrayObject *__pyx_v_dm = 0;
9007  PyArrayObject *__pyx_v_h = 0;
9008  PyArrayObject *__pyx_v_dh = 0;
9009  PyArrayObject *__pyx_v_rh = 0;
9010  int __pyx_lineno = 0;
9011  const char *__pyx_filename = NULL;
9012  int __pyx_clineno = 0;
9013  PyObject *__pyx_r = 0;
9014  __Pyx_RefNannyDeclarations
9015  __Pyx_RefNannySetupContext("twophaseLevelSetCoefficientsEvaluate (wrapper)", 0);
9016  {
9017  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nPoints,&__pyx_n_s_nSpace,&__pyx_n_s_B,&__pyx_n_s_t,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_grad_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_h,&__pyx_n_s_dh,&__pyx_n_s_rh,0};
9018  PyObject* values[12] = {0,0,0,0,0,0,0,0,0,0,0,0};
9019  if (unlikely(__pyx_kwds)) {
9020  Py_ssize_t kw_args;
9021  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
9022  switch (pos_args) {
9023  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
9024  CYTHON_FALLTHROUGH;
9025  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
9026  CYTHON_FALLTHROUGH;
9027  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
9028  CYTHON_FALLTHROUGH;
9029  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
9030  CYTHON_FALLTHROUGH;
9031  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
9032  CYTHON_FALLTHROUGH;
9033  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9034  CYTHON_FALLTHROUGH;
9035  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9036  CYTHON_FALLTHROUGH;
9037  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9038  CYTHON_FALLTHROUGH;
9039  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9040  CYTHON_FALLTHROUGH;
9041  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9042  CYTHON_FALLTHROUGH;
9043  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9044  CYTHON_FALLTHROUGH;
9045  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9046  CYTHON_FALLTHROUGH;
9047  case 0: break;
9048  default: goto __pyx_L5_argtuple_error;
9049  }
9050  kw_args = PyDict_Size(__pyx_kwds);
9051  switch (pos_args) {
9052  case 0:
9053  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPoints)) != 0)) kw_args--;
9054  else goto __pyx_L5_argtuple_error;
9055  CYTHON_FALLTHROUGH;
9056  case 1:
9057  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
9058  else {
9059  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluate", 1, 12, 12, 1); __PYX_ERR(0, 3479, __pyx_L3_error)
9060  }
9061  CYTHON_FALLTHROUGH;
9062  case 2:
9063  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_B)) != 0)) kw_args--;
9064  else {
9065  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluate", 1, 12, 12, 2); __PYX_ERR(0, 3479, __pyx_L3_error)
9066  }
9067  CYTHON_FALLTHROUGH;
9068  case 3:
9069  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
9070  else {
9071  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluate", 1, 12, 12, 3); __PYX_ERR(0, 3479, __pyx_L3_error)
9072  }
9073  CYTHON_FALLTHROUGH;
9074  case 4:
9075  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
9076  else {
9077  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluate", 1, 12, 12, 4); __PYX_ERR(0, 3479, __pyx_L3_error)
9078  }
9079  CYTHON_FALLTHROUGH;
9080  case 5:
9081  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
9082  else {
9083  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluate", 1, 12, 12, 5); __PYX_ERR(0, 3479, __pyx_L3_error)
9084  }
9085  CYTHON_FALLTHROUGH;
9086  case 6:
9087  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
9088  else {
9089  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluate", 1, 12, 12, 6); __PYX_ERR(0, 3479, __pyx_L3_error)
9090  }
9091  CYTHON_FALLTHROUGH;
9092  case 7:
9093  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
9094  else {
9095  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluate", 1, 12, 12, 7); __PYX_ERR(0, 3479, __pyx_L3_error)
9096  }
9097  CYTHON_FALLTHROUGH;
9098  case 8:
9099  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
9100  else {
9101  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluate", 1, 12, 12, 8); __PYX_ERR(0, 3479, __pyx_L3_error)
9102  }
9103  CYTHON_FALLTHROUGH;
9104  case 9:
9105  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h)) != 0)) kw_args--;
9106  else {
9107  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluate", 1, 12, 12, 9); __PYX_ERR(0, 3479, __pyx_L3_error)
9108  }
9109  CYTHON_FALLTHROUGH;
9110  case 10:
9111  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dh)) != 0)) kw_args--;
9112  else {
9113  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluate", 1, 12, 12, 10); __PYX_ERR(0, 3479, __pyx_L3_error)
9114  }
9115  CYTHON_FALLTHROUGH;
9116  case 11:
9117  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rh)) != 0)) kw_args--;
9118  else {
9119  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluate", 1, 12, 12, 11); __PYX_ERR(0, 3479, __pyx_L3_error)
9120  }
9121  }
9122  if (unlikely(kw_args > 0)) {
9123  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "twophaseLevelSetCoefficientsEvaluate") < 0)) __PYX_ERR(0, 3479, __pyx_L3_error)
9124  }
9125  } else if (PyTuple_GET_SIZE(__pyx_args) != 12) {
9126  goto __pyx_L5_argtuple_error;
9127  } else {
9128  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9129  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9130  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9131  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9132  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9133  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9134  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9135  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
9136  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
9137  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
9138  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
9139  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
9140  }
9141  __pyx_v_nPoints = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_nPoints == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3479, __pyx_L3_error)
9142  __pyx_v_nSpace = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_nSpace == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3480, __pyx_L3_error)
9143  __pyx_v_B = ((PyArrayObject *)values[2]);
9144  __pyx_v_t = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_t == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3482, __pyx_L3_error)
9145  __pyx_v_x = ((PyArrayObject *)values[4]);
9146  __pyx_v_u = ((PyArrayObject *)values[5]);
9147  __pyx_v_grad_u = ((PyArrayObject *)values[6]);
9148  __pyx_v_m = ((PyArrayObject *)values[7]);
9149  __pyx_v_dm = ((PyArrayObject *)values[8]);
9150  __pyx_v_h = ((PyArrayObject *)values[9]);
9151  __pyx_v_dh = ((PyArrayObject *)values[10]);
9152  __pyx_v_rh = ((PyArrayObject *)values[11]);
9153  }
9154  goto __pyx_L4_argument_unpacking_done;
9155  __pyx_L5_argtuple_error:;
9156  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluate", 1, 12, 12, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3479, __pyx_L3_error)
9157  __pyx_L3_error:;
9158  __Pyx_AddTraceback("ctransportCoefficients.twophaseLevelSetCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
9159  __Pyx_RefNannyFinishContext();
9160  return NULL;
9161  __pyx_L4_argument_unpacking_done:;
9162  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_B), __pyx_ptype_5numpy_ndarray, 1, "B", 0))) __PYX_ERR(0, 3481, __pyx_L1_error)
9163  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1, "x", 0))) __PYX_ERR(0, 3483, __pyx_L1_error)
9164  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3484, __pyx_L1_error)
9165  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1, "grad_u", 0))) __PYX_ERR(0, 3485, __pyx_L1_error)
9166  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 3486, __pyx_L1_error)
9167  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 3487, __pyx_L1_error)
9168  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_h), __pyx_ptype_5numpy_ndarray, 1, "h", 0))) __PYX_ERR(0, 3488, __pyx_L1_error)
9169  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dh), __pyx_ptype_5numpy_ndarray, 1, "dh", 0))) __PYX_ERR(0, 3489, __pyx_L1_error)
9170  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rh), __pyx_ptype_5numpy_ndarray, 1, "rh", 0))) __PYX_ERR(0, 3490, __pyx_L1_error)
9171  __pyx_r = __pyx_pf_22ctransportCoefficients_38twophaseLevelSetCoefficientsEvaluate(__pyx_self, __pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_B, __pyx_v_t, __pyx_v_x, __pyx_v_u, __pyx_v_grad_u, __pyx_v_m, __pyx_v_dm, __pyx_v_h, __pyx_v_dh, __pyx_v_rh);
9172 
9173  /* function exit code */
9174  goto __pyx_L0;
9175  __pyx_L1_error:;
9176  __pyx_r = NULL;
9177  __pyx_L0:;
9178  __Pyx_RefNannyFinishContext();
9179  return __pyx_r;
9180 }
9181 
9182 static PyObject *__pyx_pf_22ctransportCoefficients_38twophaseLevelSetCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nPoints, int __pyx_v_nSpace, PyArrayObject *__pyx_v_B, double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_h, PyArrayObject *__pyx_v_dh, PyArrayObject *__pyx_v_rh) {
9183  PyObject *__pyx_r = NULL;
9184  __Pyx_RefNannyDeclarations
9185  __Pyx_RefNannySetupContext("twophaseLevelSetCoefficientsEvaluate", 0);
9186 
9187  /* "ctransportCoefficients.pyx":3491
9188  * np.ndarray dh,
9189  * np.ndarray rh):
9190  * ctwophaseLevelSetCoefficientsEvaluate( nPoints, # <<<<<<<<<<<<<<
9191  * nSpace,
9192  * <double*> B.data,
9193  */
9194  twophaseLevelSetCoefficientsEvaluate(__pyx_v_nPoints, __pyx_v_nSpace, ((double *)__pyx_v_B->data), __pyx_v_t, ((double *)__pyx_v_x->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_grad_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_h->data), ((double *)__pyx_v_dh->data), ((double *)__pyx_v_rh->data));
9195 
9196  /* "ctransportCoefficients.pyx":3479
9197  * <double*> vIn.data,
9198  * <double*> vOut.data)
9199  * def twophaseLevelSetCoefficientsEvaluate(int nPoints, # <<<<<<<<<<<<<<
9200  * int nSpace,
9201  * np.ndarray B,
9202  */
9203 
9204  /* function exit code */
9205  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9206  __Pyx_XGIVEREF(__pyx_r);
9207  __Pyx_RefNannyFinishContext();
9208  return __pyx_r;
9209 }
9210 
9211 /* "ctransportCoefficients.pyx":3503
9212  * <double*> dh.data,
9213  * <double*> rh.data)
9214  * def twophaseLevelSetCoefficientsEvaluateCI(int nPoints, # <<<<<<<<<<<<<<
9215  * int nSpace,
9216  * np.ndarray B,
9217  */
9218 
9219 /* Python wrapper */
9220 static PyObject *__pyx_pw_22ctransportCoefficients_41twophaseLevelSetCoefficientsEvaluateCI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
9221 static PyMethodDef __pyx_mdef_22ctransportCoefficients_41twophaseLevelSetCoefficientsEvaluateCI = {"twophaseLevelSetCoefficientsEvaluateCI", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_41twophaseLevelSetCoefficientsEvaluateCI, METH_VARARGS|METH_KEYWORDS, 0};
9222 static PyObject *__pyx_pw_22ctransportCoefficients_41twophaseLevelSetCoefficientsEvaluateCI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
9223  int __pyx_v_nPoints;
9224  int __pyx_v_nSpace;
9225  PyArrayObject *__pyx_v_B = 0;
9226  double __pyx_v_t;
9227  PyArrayObject *__pyx_v_x = 0;
9228  PyArrayObject *__pyx_v_u = 0;
9229  PyArrayObject *__pyx_v_m = 0;
9230  PyArrayObject *__pyx_v_dm = 0;
9231  PyArrayObject *__pyx_v_f = 0;
9232  PyArrayObject *__pyx_v_df = 0;
9233  PyArrayObject *__pyx_v_a = 0;
9234  PyArrayObject *__pyx_v_da = 0;
9235  PyArrayObject *__pyx_v_phi = 0;
9236  PyArrayObject *__pyx_v_dphi = 0;
9237  PyArrayObject *__pyx_v_r = 0;
9238  PyArrayObject *__pyx_v_dr = 0;
9239  int __pyx_lineno = 0;
9240  const char *__pyx_filename = NULL;
9241  int __pyx_clineno = 0;
9242  PyObject *__pyx_r = 0;
9243  __Pyx_RefNannyDeclarations
9244  __Pyx_RefNannySetupContext("twophaseLevelSetCoefficientsEvaluateCI (wrapper)", 0);
9245  {
9246  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nPoints,&__pyx_n_s_nSpace,&__pyx_n_s_B,&__pyx_n_s_t,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_phi,&__pyx_n_s_dphi,&__pyx_n_s_r,&__pyx_n_s_dr,0};
9247  PyObject* values[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
9248  if (unlikely(__pyx_kwds)) {
9249  Py_ssize_t kw_args;
9250  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
9251  switch (pos_args) {
9252  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
9253  CYTHON_FALLTHROUGH;
9254  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
9255  CYTHON_FALLTHROUGH;
9256  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
9257  CYTHON_FALLTHROUGH;
9258  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
9259  CYTHON_FALLTHROUGH;
9260  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
9261  CYTHON_FALLTHROUGH;
9262  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
9263  CYTHON_FALLTHROUGH;
9264  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
9265  CYTHON_FALLTHROUGH;
9266  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
9267  CYTHON_FALLTHROUGH;
9268  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
9269  CYTHON_FALLTHROUGH;
9270  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9271  CYTHON_FALLTHROUGH;
9272  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9273  CYTHON_FALLTHROUGH;
9274  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9275  CYTHON_FALLTHROUGH;
9276  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9277  CYTHON_FALLTHROUGH;
9278  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9279  CYTHON_FALLTHROUGH;
9280  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9281  CYTHON_FALLTHROUGH;
9282  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9283  CYTHON_FALLTHROUGH;
9284  case 0: break;
9285  default: goto __pyx_L5_argtuple_error;
9286  }
9287  kw_args = PyDict_Size(__pyx_kwds);
9288  switch (pos_args) {
9289  case 0:
9290  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPoints)) != 0)) kw_args--;
9291  else goto __pyx_L5_argtuple_error;
9292  CYTHON_FALLTHROUGH;
9293  case 1:
9294  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
9295  else {
9296  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 1); __PYX_ERR(0, 3503, __pyx_L3_error)
9297  }
9298  CYTHON_FALLTHROUGH;
9299  case 2:
9300  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_B)) != 0)) kw_args--;
9301  else {
9302  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 2); __PYX_ERR(0, 3503, __pyx_L3_error)
9303  }
9304  CYTHON_FALLTHROUGH;
9305  case 3:
9306  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
9307  else {
9308  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 3); __PYX_ERR(0, 3503, __pyx_L3_error)
9309  }
9310  CYTHON_FALLTHROUGH;
9311  case 4:
9312  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
9313  else {
9314  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 4); __PYX_ERR(0, 3503, __pyx_L3_error)
9315  }
9316  CYTHON_FALLTHROUGH;
9317  case 5:
9318  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
9319  else {
9320  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 5); __PYX_ERR(0, 3503, __pyx_L3_error)
9321  }
9322  CYTHON_FALLTHROUGH;
9323  case 6:
9324  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
9325  else {
9326  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 6); __PYX_ERR(0, 3503, __pyx_L3_error)
9327  }
9328  CYTHON_FALLTHROUGH;
9329  case 7:
9330  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
9331  else {
9332  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 7); __PYX_ERR(0, 3503, __pyx_L3_error)
9333  }
9334  CYTHON_FALLTHROUGH;
9335  case 8:
9336  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
9337  else {
9338  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 8); __PYX_ERR(0, 3503, __pyx_L3_error)
9339  }
9340  CYTHON_FALLTHROUGH;
9341  case 9:
9342  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
9343  else {
9344  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 9); __PYX_ERR(0, 3503, __pyx_L3_error)
9345  }
9346  CYTHON_FALLTHROUGH;
9347  case 10:
9348  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
9349  else {
9350  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 10); __PYX_ERR(0, 3503, __pyx_L3_error)
9351  }
9352  CYTHON_FALLTHROUGH;
9353  case 11:
9354  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
9355  else {
9356  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 11); __PYX_ERR(0, 3503, __pyx_L3_error)
9357  }
9358  CYTHON_FALLTHROUGH;
9359  case 12:
9360  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
9361  else {
9362  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 12); __PYX_ERR(0, 3503, __pyx_L3_error)
9363  }
9364  CYTHON_FALLTHROUGH;
9365  case 13:
9366  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
9367  else {
9368  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 13); __PYX_ERR(0, 3503, __pyx_L3_error)
9369  }
9370  CYTHON_FALLTHROUGH;
9371  case 14:
9372  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
9373  else {
9374  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 14); __PYX_ERR(0, 3503, __pyx_L3_error)
9375  }
9376  CYTHON_FALLTHROUGH;
9377  case 15:
9378  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
9379  else {
9380  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 15); __PYX_ERR(0, 3503, __pyx_L3_error)
9381  }
9382  }
9383  if (unlikely(kw_args > 0)) {
9384  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "twophaseLevelSetCoefficientsEvaluateCI") < 0)) __PYX_ERR(0, 3503, __pyx_L3_error)
9385  }
9386  } else if (PyTuple_GET_SIZE(__pyx_args) != 16) {
9387  goto __pyx_L5_argtuple_error;
9388  } else {
9389  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9390  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9391  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9392  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9393  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9394  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9395  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9396  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
9397  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
9398  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
9399  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
9400  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
9401  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
9402  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
9403  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
9404  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
9405  }
9406  __pyx_v_nPoints = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_nPoints == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3503, __pyx_L3_error)
9407  __pyx_v_nSpace = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_nSpace == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3504, __pyx_L3_error)
9408  __pyx_v_B = ((PyArrayObject *)values[2]);
9409  __pyx_v_t = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_t == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3506, __pyx_L3_error)
9410  __pyx_v_x = ((PyArrayObject *)values[4]);
9411  __pyx_v_u = ((PyArrayObject *)values[5]);
9412  __pyx_v_m = ((PyArrayObject *)values[6]);
9413  __pyx_v_dm = ((PyArrayObject *)values[7]);
9414  __pyx_v_f = ((PyArrayObject *)values[8]);
9415  __pyx_v_df = ((PyArrayObject *)values[9]);
9416  __pyx_v_a = ((PyArrayObject *)values[10]);
9417  __pyx_v_da = ((PyArrayObject *)values[11]);
9418  __pyx_v_phi = ((PyArrayObject *)values[12]);
9419  __pyx_v_dphi = ((PyArrayObject *)values[13]);
9420  __pyx_v_r = ((PyArrayObject *)values[14]);
9421  __pyx_v_dr = ((PyArrayObject *)values[15]);
9422  }
9423  goto __pyx_L4_argument_unpacking_done;
9424  __pyx_L5_argtuple_error:;
9425  __Pyx_RaiseArgtupleInvalid("twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3503, __pyx_L3_error)
9426  __pyx_L3_error:;
9427  __Pyx_AddTraceback("ctransportCoefficients.twophaseLevelSetCoefficientsEvaluateCI", __pyx_clineno, __pyx_lineno, __pyx_filename);
9428  __Pyx_RefNannyFinishContext();
9429  return NULL;
9430  __pyx_L4_argument_unpacking_done:;
9431  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_B), __pyx_ptype_5numpy_ndarray, 1, "B", 0))) __PYX_ERR(0, 3505, __pyx_L1_error)
9432  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1, "x", 0))) __PYX_ERR(0, 3507, __pyx_L1_error)
9433  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3508, __pyx_L1_error)
9434  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 3509, __pyx_L1_error)
9435  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 3510, __pyx_L1_error)
9436  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 3511, __pyx_L1_error)
9437  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 3512, __pyx_L1_error)
9438  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 3513, __pyx_L1_error)
9439  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 3514, __pyx_L1_error)
9440  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 3515, __pyx_L1_error)
9441  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1, "dphi", 0))) __PYX_ERR(0, 3516, __pyx_L1_error)
9442  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1, "r", 0))) __PYX_ERR(0, 3517, __pyx_L1_error)
9443  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1, "dr", 0))) __PYX_ERR(0, 3518, __pyx_L1_error)
9444  __pyx_r = __pyx_pf_22ctransportCoefficients_40twophaseLevelSetCoefficientsEvaluateCI(__pyx_self, __pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_B, __pyx_v_t, __pyx_v_x, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da, __pyx_v_phi, __pyx_v_dphi, __pyx_v_r, __pyx_v_dr);
9445 
9446  /* function exit code */
9447  goto __pyx_L0;
9448  __pyx_L1_error:;
9449  __pyx_r = NULL;
9450  __pyx_L0:;
9451  __Pyx_RefNannyFinishContext();
9452  return __pyx_r;
9453 }
9454 
9455 static PyObject *__pyx_pf_22ctransportCoefficients_40twophaseLevelSetCoefficientsEvaluateCI(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nPoints, int __pyx_v_nSpace, PyArrayObject *__pyx_v_B, double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr) {
9456  PyObject *__pyx_r = NULL;
9457  __Pyx_RefNannyDeclarations
9458  __Pyx_RefNannySetupContext("twophaseLevelSetCoefficientsEvaluateCI", 0);
9459 
9460  /* "ctransportCoefficients.pyx":3519
9461  * np.ndarray r,
9462  * np.ndarray dr):
9463  * ctwophaseLevelSetCoefficientsEvaluateCI( nPoints, # <<<<<<<<<<<<<<
9464  * nSpace,
9465  * <double*> B.data,
9466  */
9467  twophaseLevelSetCoefficientsEvaluateCI(__pyx_v_nPoints, __pyx_v_nSpace, ((double *)__pyx_v_B->data), __pyx_v_t, ((double *)__pyx_v_x->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_dphi->data), ((double *)__pyx_v_r->data), ((double *)__pyx_v_dr->data));
9468 
9469  /* "ctransportCoefficients.pyx":3503
9470  * <double*> dh.data,
9471  * <double*> rh.data)
9472  * def twophaseLevelSetCoefficientsEvaluateCI(int nPoints, # <<<<<<<<<<<<<<
9473  * int nSpace,
9474  * np.ndarray B,
9475  */
9476 
9477  /* function exit code */
9478  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9479  __Pyx_XGIVEREF(__pyx_r);
9480  __Pyx_RefNannyFinishContext();
9481  return __pyx_r;
9482 }
9483 
9484 /* "ctransportCoefficients.pyx":3535
9485  * <double*> r.data,
9486  * <double*> dr.data)
9487  * def ncLevelSetCoefficientsEvaluate(np.ndarray v, # <<<<<<<<<<<<<<
9488  * np.ndarray u,
9489  * np.ndarray grad_u,
9490  */
9491 
9492 /* Python wrapper */
9493 static PyObject *__pyx_pw_22ctransportCoefficients_43ncLevelSetCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
9494 static PyMethodDef __pyx_mdef_22ctransportCoefficients_43ncLevelSetCoefficientsEvaluate = {"ncLevelSetCoefficientsEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_43ncLevelSetCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
9495 static PyObject *__pyx_pw_22ctransportCoefficients_43ncLevelSetCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
9496  PyArrayObject *__pyx_v_v = 0;
9497  PyArrayObject *__pyx_v_u = 0;
9498  PyArrayObject *__pyx_v_grad_u = 0;
9499  PyArrayObject *__pyx_v_m = 0;
9500  PyArrayObject *__pyx_v_dm = 0;
9501  PyArrayObject *__pyx_v_H = 0;
9502  PyArrayObject *__pyx_v_dH = 0;
9503  int __pyx_lineno = 0;
9504  const char *__pyx_filename = NULL;
9505  int __pyx_clineno = 0;
9506  PyObject *__pyx_r = 0;
9507  __Pyx_RefNannyDeclarations
9508  __Pyx_RefNannySetupContext("ncLevelSetCoefficientsEvaluate (wrapper)", 0);
9509  {
9510  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_v,&__pyx_n_s_u,&__pyx_n_s_grad_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_H,&__pyx_n_s_dH,0};
9511  PyObject* values[7] = {0,0,0,0,0,0,0};
9512  if (unlikely(__pyx_kwds)) {
9513  Py_ssize_t kw_args;
9514  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
9515  switch (pos_args) {
9516  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9517  CYTHON_FALLTHROUGH;
9518  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9519  CYTHON_FALLTHROUGH;
9520  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9521  CYTHON_FALLTHROUGH;
9522  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9523  CYTHON_FALLTHROUGH;
9524  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9525  CYTHON_FALLTHROUGH;
9526  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9527  CYTHON_FALLTHROUGH;
9528  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9529  CYTHON_FALLTHROUGH;
9530  case 0: break;
9531  default: goto __pyx_L5_argtuple_error;
9532  }
9533  kw_args = PyDict_Size(__pyx_kwds);
9534  switch (pos_args) {
9535  case 0:
9536  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
9537  else goto __pyx_L5_argtuple_error;
9538  CYTHON_FALLTHROUGH;
9539  case 1:
9540  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
9541  else {
9542  __Pyx_RaiseArgtupleInvalid("ncLevelSetCoefficientsEvaluate", 1, 7, 7, 1); __PYX_ERR(0, 3535, __pyx_L3_error)
9543  }
9544  CYTHON_FALLTHROUGH;
9545  case 2:
9546  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
9547  else {
9548  __Pyx_RaiseArgtupleInvalid("ncLevelSetCoefficientsEvaluate", 1, 7, 7, 2); __PYX_ERR(0, 3535, __pyx_L3_error)
9549  }
9550  CYTHON_FALLTHROUGH;
9551  case 3:
9552  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
9553  else {
9554  __Pyx_RaiseArgtupleInvalid("ncLevelSetCoefficientsEvaluate", 1, 7, 7, 3); __PYX_ERR(0, 3535, __pyx_L3_error)
9555  }
9556  CYTHON_FALLTHROUGH;
9557  case 4:
9558  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
9559  else {
9560  __Pyx_RaiseArgtupleInvalid("ncLevelSetCoefficientsEvaluate", 1, 7, 7, 4); __PYX_ERR(0, 3535, __pyx_L3_error)
9561  }
9562  CYTHON_FALLTHROUGH;
9563  case 5:
9564  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
9565  else {
9566  __Pyx_RaiseArgtupleInvalid("ncLevelSetCoefficientsEvaluate", 1, 7, 7, 5); __PYX_ERR(0, 3535, __pyx_L3_error)
9567  }
9568  CYTHON_FALLTHROUGH;
9569  case 6:
9570  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
9571  else {
9572  __Pyx_RaiseArgtupleInvalid("ncLevelSetCoefficientsEvaluate", 1, 7, 7, 6); __PYX_ERR(0, 3535, __pyx_L3_error)
9573  }
9574  }
9575  if (unlikely(kw_args > 0)) {
9576  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "ncLevelSetCoefficientsEvaluate") < 0)) __PYX_ERR(0, 3535, __pyx_L3_error)
9577  }
9578  } else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
9579  goto __pyx_L5_argtuple_error;
9580  } else {
9581  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9582  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9583  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9584  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9585  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9586  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9587  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9588  }
9589  __pyx_v_v = ((PyArrayObject *)values[0]);
9590  __pyx_v_u = ((PyArrayObject *)values[1]);
9591  __pyx_v_grad_u = ((PyArrayObject *)values[2]);
9592  __pyx_v_m = ((PyArrayObject *)values[3]);
9593  __pyx_v_dm = ((PyArrayObject *)values[4]);
9594  __pyx_v_H = ((PyArrayObject *)values[5]);
9595  __pyx_v_dH = ((PyArrayObject *)values[6]);
9596  }
9597  goto __pyx_L4_argument_unpacking_done;
9598  __pyx_L5_argtuple_error:;
9599  __Pyx_RaiseArgtupleInvalid("ncLevelSetCoefficientsEvaluate", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3535, __pyx_L3_error)
9600  __pyx_L3_error:;
9601  __Pyx_AddTraceback("ctransportCoefficients.ncLevelSetCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
9602  __Pyx_RefNannyFinishContext();
9603  return NULL;
9604  __pyx_L4_argument_unpacking_done:;
9605  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 3535, __pyx_L1_error)
9606  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3536, __pyx_L1_error)
9607  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1, "grad_u", 0))) __PYX_ERR(0, 3537, __pyx_L1_error)
9608  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 3538, __pyx_L1_error)
9609  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 3539, __pyx_L1_error)
9610  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1, "H", 0))) __PYX_ERR(0, 3540, __pyx_L1_error)
9611  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1, "dH", 0))) __PYX_ERR(0, 3541, __pyx_L1_error)
9612  __pyx_r = __pyx_pf_22ctransportCoefficients_42ncLevelSetCoefficientsEvaluate(__pyx_self, __pyx_v_v, __pyx_v_u, __pyx_v_grad_u, __pyx_v_m, __pyx_v_dm, __pyx_v_H, __pyx_v_dH);
9613 
9614  /* function exit code */
9615  goto __pyx_L0;
9616  __pyx_L1_error:;
9617  __pyx_r = NULL;
9618  __pyx_L0:;
9619  __Pyx_RefNannyFinishContext();
9620  return __pyx_r;
9621 }
9622 
9623 static PyObject *__pyx_pf_22ctransportCoefficients_42ncLevelSetCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH) {
9624  PyObject *__pyx_r = NULL;
9625  __Pyx_RefNannyDeclarations
9626  PyObject *__pyx_t_1 = NULL;
9627  int __pyx_t_2;
9628  long __pyx_t_3;
9629  int __pyx_t_4;
9630  int __pyx_lineno = 0;
9631  const char *__pyx_filename = NULL;
9632  int __pyx_clineno = 0;
9633  __Pyx_RefNannySetupContext("ncLevelSetCoefficientsEvaluate", 0);
9634 
9635  /* "ctransportCoefficients.pyx":3542
9636  * np.ndarray H,
9637  * np.ndarray dH):
9638  * cncLevelSetCoefficientsEvaluate(u.size, # <<<<<<<<<<<<<<
9639  * dH[dH.ndim-1],
9640  * <double*> v.data,
9641  */
9642  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3542, __pyx_L1_error)
9643  __Pyx_GOTREF(__pyx_t_1);
9644  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3542, __pyx_L1_error)
9645  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9646 
9647  /* "ctransportCoefficients.pyx":3543
9648  * np.ndarray dH):
9649  * cncLevelSetCoefficientsEvaluate(u.size,
9650  * dH[dH.ndim-1], # <<<<<<<<<<<<<<
9651  * <double*> v.data,
9652  * <double*> u.data,
9653  */
9654  __pyx_t_3 = (__pyx_v_dH->nd - 1);
9655  __pyx_t_1 = __Pyx_GetItemInt(((PyObject *)__pyx_v_dH), __pyx_t_3, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3543, __pyx_L1_error)
9656  __Pyx_GOTREF(__pyx_t_1);
9657  __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3543, __pyx_L1_error)
9658  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9659 
9660  /* "ctransportCoefficients.pyx":3542
9661  * np.ndarray H,
9662  * np.ndarray dH):
9663  * cncLevelSetCoefficientsEvaluate(u.size, # <<<<<<<<<<<<<<
9664  * dH[dH.ndim-1],
9665  * <double*> v.data,
9666  */
9667  ncLevelSetCoefficientsEvaluate(__pyx_t_2, __pyx_t_4, ((double *)__pyx_v_v->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_grad_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_H->data), ((double *)__pyx_v_dH->data));
9668 
9669  /* "ctransportCoefficients.pyx":3535
9670  * <double*> r.data,
9671  * <double*> dr.data)
9672  * def ncLevelSetCoefficientsEvaluate(np.ndarray v, # <<<<<<<<<<<<<<
9673  * np.ndarray u,
9674  * np.ndarray grad_u,
9675  */
9676 
9677  /* function exit code */
9678  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9679  goto __pyx_L0;
9680  __pyx_L1_error:;
9681  __Pyx_XDECREF(__pyx_t_1);
9682  __Pyx_AddTraceback("ctransportCoefficients.ncLevelSetCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
9683  __pyx_r = NULL;
9684  __pyx_L0:;
9685  __Pyx_XGIVEREF(__pyx_r);
9686  __Pyx_RefNannyFinishContext();
9687  return __pyx_r;
9688 }
9689 
9690 /* "ctransportCoefficients.pyx":3551
9691  * <double*> H.data,
9692  * <double*> dH.data)
9693  * def cLevelSetCoefficientsEvaluate(np.ndarray v, # <<<<<<<<<<<<<<
9694  * np.ndarray u,
9695  * np.ndarray m,
9696  */
9697 
9698 /* Python wrapper */
9699 static PyObject *__pyx_pw_22ctransportCoefficients_45cLevelSetCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
9700 static PyMethodDef __pyx_mdef_22ctransportCoefficients_45cLevelSetCoefficientsEvaluate = {"cLevelSetCoefficientsEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_45cLevelSetCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
9701 static PyObject *__pyx_pw_22ctransportCoefficients_45cLevelSetCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
9702  PyArrayObject *__pyx_v_v = 0;
9703  PyArrayObject *__pyx_v_u = 0;
9704  PyArrayObject *__pyx_v_m = 0;
9705  PyArrayObject *__pyx_v_dm = 0;
9706  PyArrayObject *__pyx_v_f = 0;
9707  PyArrayObject *__pyx_v_df = 0;
9708  int __pyx_lineno = 0;
9709  const char *__pyx_filename = NULL;
9710  int __pyx_clineno = 0;
9711  PyObject *__pyx_r = 0;
9712  __Pyx_RefNannyDeclarations
9713  __Pyx_RefNannySetupContext("cLevelSetCoefficientsEvaluate (wrapper)", 0);
9714  {
9715  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_v,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,0};
9716  PyObject* values[6] = {0,0,0,0,0,0};
9717  if (unlikely(__pyx_kwds)) {
9718  Py_ssize_t kw_args;
9719  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
9720  switch (pos_args) {
9721  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9722  CYTHON_FALLTHROUGH;
9723  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9724  CYTHON_FALLTHROUGH;
9725  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9726  CYTHON_FALLTHROUGH;
9727  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9728  CYTHON_FALLTHROUGH;
9729  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9730  CYTHON_FALLTHROUGH;
9731  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9732  CYTHON_FALLTHROUGH;
9733  case 0: break;
9734  default: goto __pyx_L5_argtuple_error;
9735  }
9736  kw_args = PyDict_Size(__pyx_kwds);
9737  switch (pos_args) {
9738  case 0:
9739  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
9740  else goto __pyx_L5_argtuple_error;
9741  CYTHON_FALLTHROUGH;
9742  case 1:
9743  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
9744  else {
9745  __Pyx_RaiseArgtupleInvalid("cLevelSetCoefficientsEvaluate", 1, 6, 6, 1); __PYX_ERR(0, 3551, __pyx_L3_error)
9746  }
9747  CYTHON_FALLTHROUGH;
9748  case 2:
9749  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
9750  else {
9751  __Pyx_RaiseArgtupleInvalid("cLevelSetCoefficientsEvaluate", 1, 6, 6, 2); __PYX_ERR(0, 3551, __pyx_L3_error)
9752  }
9753  CYTHON_FALLTHROUGH;
9754  case 3:
9755  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
9756  else {
9757  __Pyx_RaiseArgtupleInvalid("cLevelSetCoefficientsEvaluate", 1, 6, 6, 3); __PYX_ERR(0, 3551, __pyx_L3_error)
9758  }
9759  CYTHON_FALLTHROUGH;
9760  case 4:
9761  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
9762  else {
9763  __Pyx_RaiseArgtupleInvalid("cLevelSetCoefficientsEvaluate", 1, 6, 6, 4); __PYX_ERR(0, 3551, __pyx_L3_error)
9764  }
9765  CYTHON_FALLTHROUGH;
9766  case 5:
9767  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
9768  else {
9769  __Pyx_RaiseArgtupleInvalid("cLevelSetCoefficientsEvaluate", 1, 6, 6, 5); __PYX_ERR(0, 3551, __pyx_L3_error)
9770  }
9771  }
9772  if (unlikely(kw_args > 0)) {
9773  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "cLevelSetCoefficientsEvaluate") < 0)) __PYX_ERR(0, 3551, __pyx_L3_error)
9774  }
9775  } else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
9776  goto __pyx_L5_argtuple_error;
9777  } else {
9778  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9779  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9780  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9781  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9782  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9783  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9784  }
9785  __pyx_v_v = ((PyArrayObject *)values[0]);
9786  __pyx_v_u = ((PyArrayObject *)values[1]);
9787  __pyx_v_m = ((PyArrayObject *)values[2]);
9788  __pyx_v_dm = ((PyArrayObject *)values[3]);
9789  __pyx_v_f = ((PyArrayObject *)values[4]);
9790  __pyx_v_df = ((PyArrayObject *)values[5]);
9791  }
9792  goto __pyx_L4_argument_unpacking_done;
9793  __pyx_L5_argtuple_error:;
9794  __Pyx_RaiseArgtupleInvalid("cLevelSetCoefficientsEvaluate", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3551, __pyx_L3_error)
9795  __pyx_L3_error:;
9796  __Pyx_AddTraceback("ctransportCoefficients.cLevelSetCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
9797  __Pyx_RefNannyFinishContext();
9798  return NULL;
9799  __pyx_L4_argument_unpacking_done:;
9800  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 3551, __pyx_L1_error)
9801  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3552, __pyx_L1_error)
9802  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 3553, __pyx_L1_error)
9803  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 3554, __pyx_L1_error)
9804  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 3555, __pyx_L1_error)
9805  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 3556, __pyx_L1_error)
9806  __pyx_r = __pyx_pf_22ctransportCoefficients_44cLevelSetCoefficientsEvaluate(__pyx_self, __pyx_v_v, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df);
9807 
9808  /* function exit code */
9809  goto __pyx_L0;
9810  __pyx_L1_error:;
9811  __pyx_r = NULL;
9812  __pyx_L0:;
9813  __Pyx_RefNannyFinishContext();
9814  return __pyx_r;
9815 }
9816 
9817 static PyObject *__pyx_pf_22ctransportCoefficients_44cLevelSetCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df) {
9818  PyObject *__pyx_r = NULL;
9819  __Pyx_RefNannyDeclarations
9820  PyObject *__pyx_t_1 = NULL;
9821  int __pyx_t_2;
9822  int __pyx_lineno = 0;
9823  const char *__pyx_filename = NULL;
9824  int __pyx_clineno = 0;
9825  __Pyx_RefNannySetupContext("cLevelSetCoefficientsEvaluate", 0);
9826 
9827  /* "ctransportCoefficients.pyx":3557
9828  * np.ndarray f,
9829  * np.ndarray df):
9830  * ccLevelSetCoefficientsEvaluate(u.size, # <<<<<<<<<<<<<<
9831  * f.shape[f.ndim-1],
9832  * <double*> v.data,
9833  */
9834  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3557, __pyx_L1_error)
9835  __Pyx_GOTREF(__pyx_t_1);
9836  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3557, __pyx_L1_error)
9837  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9838 
9839  /* "ctransportCoefficients.pyx":3564
9840  * <double*> dm.data,
9841  * <double*> f.data,
9842  * <double*> df.data) # <<<<<<<<<<<<<<
9843  * def VOFCoefficientsEvaluate(double eps,
9844  * np.ndarray v,
9845  */
9846  cLevelSetCoefficientsEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), ((double *)__pyx_v_v->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data));
9847 
9848  /* "ctransportCoefficients.pyx":3551
9849  * <double*> H.data,
9850  * <double*> dH.data)
9851  * def cLevelSetCoefficientsEvaluate(np.ndarray v, # <<<<<<<<<<<<<<
9852  * np.ndarray u,
9853  * np.ndarray m,
9854  */
9855 
9856  /* function exit code */
9857  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9858  goto __pyx_L0;
9859  __pyx_L1_error:;
9860  __Pyx_XDECREF(__pyx_t_1);
9861  __Pyx_AddTraceback("ctransportCoefficients.cLevelSetCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
9862  __pyx_r = NULL;
9863  __pyx_L0:;
9864  __Pyx_XGIVEREF(__pyx_r);
9865  __Pyx_RefNannyFinishContext();
9866  return __pyx_r;
9867 }
9868 
9869 /* "ctransportCoefficients.pyx":3565
9870  * <double*> f.data,
9871  * <double*> df.data)
9872  * def VOFCoefficientsEvaluate(double eps, # <<<<<<<<<<<<<<
9873  * np.ndarray v,
9874  * np.ndarray phi,
9875  */
9876 
9877 /* Python wrapper */
9878 static PyObject *__pyx_pw_22ctransportCoefficients_47VOFCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
9879 static PyMethodDef __pyx_mdef_22ctransportCoefficients_47VOFCoefficientsEvaluate = {"VOFCoefficientsEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_47VOFCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
9880 static PyObject *__pyx_pw_22ctransportCoefficients_47VOFCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
9881  double __pyx_v_eps;
9882  PyArrayObject *__pyx_v_v = 0;
9883  PyArrayObject *__pyx_v_phi = 0;
9884  PyArrayObject *__pyx_v_u = 0;
9885  PyArrayObject *__pyx_v_m = 0;
9886  PyArrayObject *__pyx_v_dm = 0;
9887  PyArrayObject *__pyx_v_f = 0;
9888  PyArrayObject *__pyx_v_df = 0;
9889  int __pyx_lineno = 0;
9890  const char *__pyx_filename = NULL;
9891  int __pyx_clineno = 0;
9892  PyObject *__pyx_r = 0;
9893  __Pyx_RefNannyDeclarations
9894  __Pyx_RefNannySetupContext("VOFCoefficientsEvaluate (wrapper)", 0);
9895  {
9896  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_v,&__pyx_n_s_phi,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,0};
9897  PyObject* values[8] = {0,0,0,0,0,0,0,0};
9898  if (unlikely(__pyx_kwds)) {
9899  Py_ssize_t kw_args;
9900  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
9901  switch (pos_args) {
9902  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
9903  CYTHON_FALLTHROUGH;
9904  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9905  CYTHON_FALLTHROUGH;
9906  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9907  CYTHON_FALLTHROUGH;
9908  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9909  CYTHON_FALLTHROUGH;
9910  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9911  CYTHON_FALLTHROUGH;
9912  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9913  CYTHON_FALLTHROUGH;
9914  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9915  CYTHON_FALLTHROUGH;
9916  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9917  CYTHON_FALLTHROUGH;
9918  case 0: break;
9919  default: goto __pyx_L5_argtuple_error;
9920  }
9921  kw_args = PyDict_Size(__pyx_kwds);
9922  switch (pos_args) {
9923  case 0:
9924  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
9925  else goto __pyx_L5_argtuple_error;
9926  CYTHON_FALLTHROUGH;
9927  case 1:
9928  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
9929  else {
9930  __Pyx_RaiseArgtupleInvalid("VOFCoefficientsEvaluate", 1, 8, 8, 1); __PYX_ERR(0, 3565, __pyx_L3_error)
9931  }
9932  CYTHON_FALLTHROUGH;
9933  case 2:
9934  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
9935  else {
9936  __Pyx_RaiseArgtupleInvalid("VOFCoefficientsEvaluate", 1, 8, 8, 2); __PYX_ERR(0, 3565, __pyx_L3_error)
9937  }
9938  CYTHON_FALLTHROUGH;
9939  case 3:
9940  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
9941  else {
9942  __Pyx_RaiseArgtupleInvalid("VOFCoefficientsEvaluate", 1, 8, 8, 3); __PYX_ERR(0, 3565, __pyx_L3_error)
9943  }
9944  CYTHON_FALLTHROUGH;
9945  case 4:
9946  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
9947  else {
9948  __Pyx_RaiseArgtupleInvalid("VOFCoefficientsEvaluate", 1, 8, 8, 4); __PYX_ERR(0, 3565, __pyx_L3_error)
9949  }
9950  CYTHON_FALLTHROUGH;
9951  case 5:
9952  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
9953  else {
9954  __Pyx_RaiseArgtupleInvalid("VOFCoefficientsEvaluate", 1, 8, 8, 5); __PYX_ERR(0, 3565, __pyx_L3_error)
9955  }
9956  CYTHON_FALLTHROUGH;
9957  case 6:
9958  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
9959  else {
9960  __Pyx_RaiseArgtupleInvalid("VOFCoefficientsEvaluate", 1, 8, 8, 6); __PYX_ERR(0, 3565, __pyx_L3_error)
9961  }
9962  CYTHON_FALLTHROUGH;
9963  case 7:
9964  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
9965  else {
9966  __Pyx_RaiseArgtupleInvalid("VOFCoefficientsEvaluate", 1, 8, 8, 7); __PYX_ERR(0, 3565, __pyx_L3_error)
9967  }
9968  }
9969  if (unlikely(kw_args > 0)) {
9970  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "VOFCoefficientsEvaluate") < 0)) __PYX_ERR(0, 3565, __pyx_L3_error)
9971  }
9972  } else if (PyTuple_GET_SIZE(__pyx_args) != 8) {
9973  goto __pyx_L5_argtuple_error;
9974  } else {
9975  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9976  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9977  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9978  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9979  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9980  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9981  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9982  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
9983  }
9984  __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3565, __pyx_L3_error)
9985  __pyx_v_v = ((PyArrayObject *)values[1]);
9986  __pyx_v_phi = ((PyArrayObject *)values[2]);
9987  __pyx_v_u = ((PyArrayObject *)values[3]);
9988  __pyx_v_m = ((PyArrayObject *)values[4]);
9989  __pyx_v_dm = ((PyArrayObject *)values[5]);
9990  __pyx_v_f = ((PyArrayObject *)values[6]);
9991  __pyx_v_df = ((PyArrayObject *)values[7]);
9992  }
9993  goto __pyx_L4_argument_unpacking_done;
9994  __pyx_L5_argtuple_error:;
9995  __Pyx_RaiseArgtupleInvalid("VOFCoefficientsEvaluate", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3565, __pyx_L3_error)
9996  __pyx_L3_error:;
9997  __Pyx_AddTraceback("ctransportCoefficients.VOFCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
9998  __Pyx_RefNannyFinishContext();
9999  return NULL;
10000  __pyx_L4_argument_unpacking_done:;
10001  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 3566, __pyx_L1_error)
10002  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 3567, __pyx_L1_error)
10003  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3568, __pyx_L1_error)
10004  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 3569, __pyx_L1_error)
10005  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 3570, __pyx_L1_error)
10006  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 3571, __pyx_L1_error)
10007  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 3572, __pyx_L1_error)
10008  __pyx_r = __pyx_pf_22ctransportCoefficients_46VOFCoefficientsEvaluate(__pyx_self, __pyx_v_eps, __pyx_v_v, __pyx_v_phi, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df);
10009 
10010  /* function exit code */
10011  goto __pyx_L0;
10012  __pyx_L1_error:;
10013  __pyx_r = NULL;
10014  __pyx_L0:;
10015  __Pyx_RefNannyFinishContext();
10016  return __pyx_r;
10017 }
10018 
10019 static PyObject *__pyx_pf_22ctransportCoefficients_46VOFCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df) {
10020  PyObject *__pyx_r = NULL;
10021  __Pyx_RefNannyDeclarations
10022  PyObject *__pyx_t_1 = NULL;
10023  int __pyx_t_2;
10024  int __pyx_lineno = 0;
10025  const char *__pyx_filename = NULL;
10026  int __pyx_clineno = 0;
10027  __Pyx_RefNannySetupContext("VOFCoefficientsEvaluate", 0);
10028 
10029  /* "ctransportCoefficients.pyx":3573
10030  * np.ndarray f,
10031  * np.ndarray df):
10032  * cVOFCoefficientsEvaluate(u.size, # <<<<<<<<<<<<<<
10033  * f.shape[f.ndim-1],
10034  * eps,
10035  */
10036  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3573, __pyx_L1_error)
10037  __Pyx_GOTREF(__pyx_t_1);
10038  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3573, __pyx_L1_error)
10039  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10040 
10041  /* "ctransportCoefficients.pyx":3582
10042  * <double*> dm.data,
10043  * <double*> f.data,
10044  * <double*> df.data) # <<<<<<<<<<<<<<
10045  * def levelSetCurvatureCoefficientsEvaluate(np.ndarray grad_phi,
10046  * np.ndarray u,
10047  */
10048  VOFCoefficientsEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_eps, ((double *)__pyx_v_v->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data));
10049 
10050  /* "ctransportCoefficients.pyx":3565
10051  * <double*> f.data,
10052  * <double*> df.data)
10053  * def VOFCoefficientsEvaluate(double eps, # <<<<<<<<<<<<<<
10054  * np.ndarray v,
10055  * np.ndarray phi,
10056  */
10057 
10058  /* function exit code */
10059  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10060  goto __pyx_L0;
10061  __pyx_L1_error:;
10062  __Pyx_XDECREF(__pyx_t_1);
10063  __Pyx_AddTraceback("ctransportCoefficients.VOFCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
10064  __pyx_r = NULL;
10065  __pyx_L0:;
10066  __Pyx_XGIVEREF(__pyx_r);
10067  __Pyx_RefNannyFinishContext();
10068  return __pyx_r;
10069 }
10070 
10071 /* "ctransportCoefficients.pyx":3583
10072  * <double*> f.data,
10073  * <double*> df.data)
10074  * def levelSetCurvatureCoefficientsEvaluate(np.ndarray grad_phi, # <<<<<<<<<<<<<<
10075  * np.ndarray u,
10076  * np.ndarray f,
10077  */
10078 
10079 /* Python wrapper */
10080 static PyObject *__pyx_pw_22ctransportCoefficients_49levelSetCurvatureCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
10081 static PyMethodDef __pyx_mdef_22ctransportCoefficients_49levelSetCurvatureCoefficientsEvaluate = {"levelSetCurvatureCoefficientsEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_49levelSetCurvatureCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
10082 static PyObject *__pyx_pw_22ctransportCoefficients_49levelSetCurvatureCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
10083  PyArrayObject *__pyx_v_grad_phi = 0;
10084  PyArrayObject *__pyx_v_u = 0;
10085  PyArrayObject *__pyx_v_f = 0;
10086  PyArrayObject *__pyx_v_r = 0;
10087  PyArrayObject *__pyx_v_dr = 0;
10088  int __pyx_lineno = 0;
10089  const char *__pyx_filename = NULL;
10090  int __pyx_clineno = 0;
10091  PyObject *__pyx_r = 0;
10092  __Pyx_RefNannyDeclarations
10093  __Pyx_RefNannySetupContext("levelSetCurvatureCoefficientsEvaluate (wrapper)", 0);
10094  {
10095  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_grad_phi,&__pyx_n_s_u,&__pyx_n_s_f,&__pyx_n_s_r,&__pyx_n_s_dr,0};
10096  PyObject* values[5] = {0,0,0,0,0};
10097  if (unlikely(__pyx_kwds)) {
10098  Py_ssize_t kw_args;
10099  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
10100  switch (pos_args) {
10101  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10102  CYTHON_FALLTHROUGH;
10103  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10104  CYTHON_FALLTHROUGH;
10105  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10106  CYTHON_FALLTHROUGH;
10107  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10108  CYTHON_FALLTHROUGH;
10109  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10110  CYTHON_FALLTHROUGH;
10111  case 0: break;
10112  default: goto __pyx_L5_argtuple_error;
10113  }
10114  kw_args = PyDict_Size(__pyx_kwds);
10115  switch (pos_args) {
10116  case 0:
10117  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
10118  else goto __pyx_L5_argtuple_error;
10119  CYTHON_FALLTHROUGH;
10120  case 1:
10121  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
10122  else {
10123  __Pyx_RaiseArgtupleInvalid("levelSetCurvatureCoefficientsEvaluate", 1, 5, 5, 1); __PYX_ERR(0, 3583, __pyx_L3_error)
10124  }
10125  CYTHON_FALLTHROUGH;
10126  case 2:
10127  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
10128  else {
10129  __Pyx_RaiseArgtupleInvalid("levelSetCurvatureCoefficientsEvaluate", 1, 5, 5, 2); __PYX_ERR(0, 3583, __pyx_L3_error)
10130  }
10131  CYTHON_FALLTHROUGH;
10132  case 3:
10133  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
10134  else {
10135  __Pyx_RaiseArgtupleInvalid("levelSetCurvatureCoefficientsEvaluate", 1, 5, 5, 3); __PYX_ERR(0, 3583, __pyx_L3_error)
10136  }
10137  CYTHON_FALLTHROUGH;
10138  case 4:
10139  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
10140  else {
10141  __Pyx_RaiseArgtupleInvalid("levelSetCurvatureCoefficientsEvaluate", 1, 5, 5, 4); __PYX_ERR(0, 3583, __pyx_L3_error)
10142  }
10143  }
10144  if (unlikely(kw_args > 0)) {
10145  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "levelSetCurvatureCoefficientsEvaluate") < 0)) __PYX_ERR(0, 3583, __pyx_L3_error)
10146  }
10147  } else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
10148  goto __pyx_L5_argtuple_error;
10149  } else {
10150  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10151  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10152  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10153  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10154  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10155  }
10156  __pyx_v_grad_phi = ((PyArrayObject *)values[0]);
10157  __pyx_v_u = ((PyArrayObject *)values[1]);
10158  __pyx_v_f = ((PyArrayObject *)values[2]);
10159  __pyx_v_r = ((PyArrayObject *)values[3]);
10160  __pyx_v_dr = ((PyArrayObject *)values[4]);
10161  }
10162  goto __pyx_L4_argument_unpacking_done;
10163  __pyx_L5_argtuple_error:;
10164  __Pyx_RaiseArgtupleInvalid("levelSetCurvatureCoefficientsEvaluate", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3583, __pyx_L3_error)
10165  __pyx_L3_error:;
10166  __Pyx_AddTraceback("ctransportCoefficients.levelSetCurvatureCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
10167  __Pyx_RefNannyFinishContext();
10168  return NULL;
10169  __pyx_L4_argument_unpacking_done:;
10170  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1, "grad_phi", 0))) __PYX_ERR(0, 3583, __pyx_L1_error)
10171  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3584, __pyx_L1_error)
10172  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 3585, __pyx_L1_error)
10173  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1, "r", 0))) __PYX_ERR(0, 3586, __pyx_L1_error)
10174  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1, "dr", 0))) __PYX_ERR(0, 3587, __pyx_L1_error)
10175  __pyx_r = __pyx_pf_22ctransportCoefficients_48levelSetCurvatureCoefficientsEvaluate(__pyx_self, __pyx_v_grad_phi, __pyx_v_u, __pyx_v_f, __pyx_v_r, __pyx_v_dr);
10176 
10177  /* function exit code */
10178  goto __pyx_L0;
10179  __pyx_L1_error:;
10180  __pyx_r = NULL;
10181  __pyx_L0:;
10182  __Pyx_RefNannyFinishContext();
10183  return __pyx_r;
10184 }
10185 
10186 static PyObject *__pyx_pf_22ctransportCoefficients_48levelSetCurvatureCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr) {
10187  PyObject *__pyx_r = NULL;
10188  __Pyx_RefNannyDeclarations
10189  PyObject *__pyx_t_1 = NULL;
10190  int __pyx_t_2;
10191  int __pyx_lineno = 0;
10192  const char *__pyx_filename = NULL;
10193  int __pyx_clineno = 0;
10194  __Pyx_RefNannySetupContext("levelSetCurvatureCoefficientsEvaluate", 0);
10195 
10196  /* "ctransportCoefficients.pyx":3588
10197  * np.ndarray r,
10198  * np.ndarray dr):
10199  * clevelSetCurvatureCoefficientsEvaluate(u.size, # <<<<<<<<<<<<<<
10200  * f.shape[f.ndim-1],
10201  * <double*> grad_phi.data,
10202  */
10203  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3588, __pyx_L1_error)
10204  __Pyx_GOTREF(__pyx_t_1);
10205  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3588, __pyx_L1_error)
10206  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10207 
10208  /* "ctransportCoefficients.pyx":3594
10209  * <double*> f.data,
10210  * <double*> r.data,
10211  * <double*> dr.data) # <<<<<<<<<<<<<<
10212  * def twophaseSignedDistanceCoefficientsEvaluate(int nPoints,
10213  * int nSpace,
10214  */
10215  levelSetCurvatureCoefficientsEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), ((double *)__pyx_v_grad_phi->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_r->data), ((double *)__pyx_v_dr->data));
10216 
10217  /* "ctransportCoefficients.pyx":3583
10218  * <double*> f.data,
10219  * <double*> df.data)
10220  * def levelSetCurvatureCoefficientsEvaluate(np.ndarray grad_phi, # <<<<<<<<<<<<<<
10221  * np.ndarray u,
10222  * np.ndarray f,
10223  */
10224 
10225  /* function exit code */
10226  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10227  goto __pyx_L0;
10228  __pyx_L1_error:;
10229  __Pyx_XDECREF(__pyx_t_1);
10230  __Pyx_AddTraceback("ctransportCoefficients.levelSetCurvatureCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
10231  __pyx_r = NULL;
10232  __pyx_L0:;
10233  __Pyx_XGIVEREF(__pyx_r);
10234  __Pyx_RefNannyFinishContext();
10235  return __pyx_r;
10236 }
10237 
10238 /* "ctransportCoefficients.pyx":3595
10239  * <double*> r.data,
10240  * <double*> dr.data)
10241  * def twophaseSignedDistanceCoefficientsEvaluate(int nPoints, # <<<<<<<<<<<<<<
10242  * int nSpace,
10243  * np.ndarray S,
10244  */
10245 
10246 /* Python wrapper */
10247 static PyObject *__pyx_pw_22ctransportCoefficients_51twophaseSignedDistanceCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
10248 static PyMethodDef __pyx_mdef_22ctransportCoefficients_51twophaseSignedDistanceCoefficientsEvaluate = {"twophaseSignedDistanceCoefficientsEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_51twophaseSignedDistanceCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
10249 static PyObject *__pyx_pw_22ctransportCoefficients_51twophaseSignedDistanceCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
10250  int __pyx_v_nPoints;
10251  int __pyx_v_nSpace;
10252  PyArrayObject *__pyx_v_S = 0;
10253  PyArrayObject *__pyx_v_u = 0;
10254  PyArrayObject *__pyx_v_grad_u = 0;
10255  PyArrayObject *__pyx_v_m = 0;
10256  PyArrayObject *__pyx_v_dm = 0;
10257  PyArrayObject *__pyx_v_h = 0;
10258  PyArrayObject *__pyx_v_dh = 0;
10259  PyArrayObject *__pyx_v_rh = 0;
10260  int __pyx_lineno = 0;
10261  const char *__pyx_filename = NULL;
10262  int __pyx_clineno = 0;
10263  PyObject *__pyx_r = 0;
10264  __Pyx_RefNannyDeclarations
10265  __Pyx_RefNannySetupContext("twophaseSignedDistanceCoefficientsEvaluate (wrapper)", 0);
10266  {
10267  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nPoints,&__pyx_n_s_nSpace,&__pyx_n_s_S,&__pyx_n_s_u,&__pyx_n_s_grad_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_h,&__pyx_n_s_dh,&__pyx_n_s_rh,0};
10268  PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
10269  if (unlikely(__pyx_kwds)) {
10270  Py_ssize_t kw_args;
10271  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
10272  switch (pos_args) {
10273  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
10274  CYTHON_FALLTHROUGH;
10275  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
10276  CYTHON_FALLTHROUGH;
10277  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10278  CYTHON_FALLTHROUGH;
10279  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10280  CYTHON_FALLTHROUGH;
10281  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10282  CYTHON_FALLTHROUGH;
10283  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10284  CYTHON_FALLTHROUGH;
10285  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10286  CYTHON_FALLTHROUGH;
10287  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10288  CYTHON_FALLTHROUGH;
10289  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10290  CYTHON_FALLTHROUGH;
10291  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10292  CYTHON_FALLTHROUGH;
10293  case 0: break;
10294  default: goto __pyx_L5_argtuple_error;
10295  }
10296  kw_args = PyDict_Size(__pyx_kwds);
10297  switch (pos_args) {
10298  case 0:
10299  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPoints)) != 0)) kw_args--;
10300  else goto __pyx_L5_argtuple_error;
10301  CYTHON_FALLTHROUGH;
10302  case 1:
10303  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
10304  else {
10305  __Pyx_RaiseArgtupleInvalid("twophaseSignedDistanceCoefficientsEvaluate", 1, 10, 10, 1); __PYX_ERR(0, 3595, __pyx_L3_error)
10306  }
10307  CYTHON_FALLTHROUGH;
10308  case 2:
10309  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_S)) != 0)) kw_args--;
10310  else {
10311  __Pyx_RaiseArgtupleInvalid("twophaseSignedDistanceCoefficientsEvaluate", 1, 10, 10, 2); __PYX_ERR(0, 3595, __pyx_L3_error)
10312  }
10313  CYTHON_FALLTHROUGH;
10314  case 3:
10315  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
10316  else {
10317  __Pyx_RaiseArgtupleInvalid("twophaseSignedDistanceCoefficientsEvaluate", 1, 10, 10, 3); __PYX_ERR(0, 3595, __pyx_L3_error)
10318  }
10319  CYTHON_FALLTHROUGH;
10320  case 4:
10321  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
10322  else {
10323  __Pyx_RaiseArgtupleInvalid("twophaseSignedDistanceCoefficientsEvaluate", 1, 10, 10, 4); __PYX_ERR(0, 3595, __pyx_L3_error)
10324  }
10325  CYTHON_FALLTHROUGH;
10326  case 5:
10327  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
10328  else {
10329  __Pyx_RaiseArgtupleInvalid("twophaseSignedDistanceCoefficientsEvaluate", 1, 10, 10, 5); __PYX_ERR(0, 3595, __pyx_L3_error)
10330  }
10331  CYTHON_FALLTHROUGH;
10332  case 6:
10333  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
10334  else {
10335  __Pyx_RaiseArgtupleInvalid("twophaseSignedDistanceCoefficientsEvaluate", 1, 10, 10, 6); __PYX_ERR(0, 3595, __pyx_L3_error)
10336  }
10337  CYTHON_FALLTHROUGH;
10338  case 7:
10339  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h)) != 0)) kw_args--;
10340  else {
10341  __Pyx_RaiseArgtupleInvalid("twophaseSignedDistanceCoefficientsEvaluate", 1, 10, 10, 7); __PYX_ERR(0, 3595, __pyx_L3_error)
10342  }
10343  CYTHON_FALLTHROUGH;
10344  case 8:
10345  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dh)) != 0)) kw_args--;
10346  else {
10347  __Pyx_RaiseArgtupleInvalid("twophaseSignedDistanceCoefficientsEvaluate", 1, 10, 10, 8); __PYX_ERR(0, 3595, __pyx_L3_error)
10348  }
10349  CYTHON_FALLTHROUGH;
10350  case 9:
10351  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rh)) != 0)) kw_args--;
10352  else {
10353  __Pyx_RaiseArgtupleInvalid("twophaseSignedDistanceCoefficientsEvaluate", 1, 10, 10, 9); __PYX_ERR(0, 3595, __pyx_L3_error)
10354  }
10355  }
10356  if (unlikely(kw_args > 0)) {
10357  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "twophaseSignedDistanceCoefficientsEvaluate") < 0)) __PYX_ERR(0, 3595, __pyx_L3_error)
10358  }
10359  } else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
10360  goto __pyx_L5_argtuple_error;
10361  } else {
10362  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10363  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10364  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10365  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10366  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10367  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10368  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10369  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10370  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
10371  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
10372  }
10373  __pyx_v_nPoints = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_nPoints == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3595, __pyx_L3_error)
10374  __pyx_v_nSpace = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_nSpace == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3596, __pyx_L3_error)
10375  __pyx_v_S = ((PyArrayObject *)values[2]);
10376  __pyx_v_u = ((PyArrayObject *)values[3]);
10377  __pyx_v_grad_u = ((PyArrayObject *)values[4]);
10378  __pyx_v_m = ((PyArrayObject *)values[5]);
10379  __pyx_v_dm = ((PyArrayObject *)values[6]);
10380  __pyx_v_h = ((PyArrayObject *)values[7]);
10381  __pyx_v_dh = ((PyArrayObject *)values[8]);
10382  __pyx_v_rh = ((PyArrayObject *)values[9]);
10383  }
10384  goto __pyx_L4_argument_unpacking_done;
10385  __pyx_L5_argtuple_error:;
10386  __Pyx_RaiseArgtupleInvalid("twophaseSignedDistanceCoefficientsEvaluate", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3595, __pyx_L3_error)
10387  __pyx_L3_error:;
10388  __Pyx_AddTraceback("ctransportCoefficients.twophaseSignedDistanceCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
10389  __Pyx_RefNannyFinishContext();
10390  return NULL;
10391  __pyx_L4_argument_unpacking_done:;
10392  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_S), __pyx_ptype_5numpy_ndarray, 1, "S", 0))) __PYX_ERR(0, 3597, __pyx_L1_error)
10393  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3598, __pyx_L1_error)
10394  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1, "grad_u", 0))) __PYX_ERR(0, 3599, __pyx_L1_error)
10395  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 3600, __pyx_L1_error)
10396  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 3601, __pyx_L1_error)
10397  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_h), __pyx_ptype_5numpy_ndarray, 1, "h", 0))) __PYX_ERR(0, 3602, __pyx_L1_error)
10398  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dh), __pyx_ptype_5numpy_ndarray, 1, "dh", 0))) __PYX_ERR(0, 3603, __pyx_L1_error)
10399  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rh), __pyx_ptype_5numpy_ndarray, 1, "rh", 0))) __PYX_ERR(0, 3604, __pyx_L1_error)
10400  __pyx_r = __pyx_pf_22ctransportCoefficients_50twophaseSignedDistanceCoefficientsEvaluate(__pyx_self, __pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_S, __pyx_v_u, __pyx_v_grad_u, __pyx_v_m, __pyx_v_dm, __pyx_v_h, __pyx_v_dh, __pyx_v_rh);
10401 
10402  /* function exit code */
10403  goto __pyx_L0;
10404  __pyx_L1_error:;
10405  __pyx_r = NULL;
10406  __pyx_L0:;
10407  __Pyx_RefNannyFinishContext();
10408  return __pyx_r;
10409 }
10410 
10411 static PyObject *__pyx_pf_22ctransportCoefficients_50twophaseSignedDistanceCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nPoints, int __pyx_v_nSpace, PyArrayObject *__pyx_v_S, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_h, PyArrayObject *__pyx_v_dh, PyArrayObject *__pyx_v_rh) {
10412  PyObject *__pyx_r = NULL;
10413  __Pyx_RefNannyDeclarations
10414  __Pyx_RefNannySetupContext("twophaseSignedDistanceCoefficientsEvaluate", 0);
10415 
10416  /* "ctransportCoefficients.pyx":3605
10417  * np.ndarray dh,
10418  * np.ndarray rh):
10419  * ctwophaseSignedDistanceCoefficientsEvaluate( nPoints, # <<<<<<<<<<<<<<
10420  * nSpace,
10421  * <double*> S.data,
10422  */
10423  twophaseSignedDistanceCoefficientsEvaluate(__pyx_v_nPoints, __pyx_v_nSpace, ((double *)__pyx_v_S->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_grad_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_h->data), ((double *)__pyx_v_dh->data), ((double *)__pyx_v_rh->data));
10424 
10425  /* "ctransportCoefficients.pyx":3595
10426  * <double*> r.data,
10427  * <double*> dr.data)
10428  * def twophaseSignedDistanceCoefficientsEvaluate(int nPoints, # <<<<<<<<<<<<<<
10429  * int nSpace,
10430  * np.ndarray S,
10431  */
10432 
10433  /* function exit code */
10434  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10435  __Pyx_XGIVEREF(__pyx_r);
10436  __Pyx_RefNannyFinishContext();
10437  return __pyx_r;
10438 }
10439 
10440 /* "ctransportCoefficients.pyx":3615
10441  * <double*> dh.data,
10442  * <double*> rh.data)
10443  * def eikonalEquationEvaluate(double rhs, # <<<<<<<<<<<<<<
10444  * np.ndarray u,
10445  * np.ndarray grad_u,
10446  */
10447 
10448 /* Python wrapper */
10449 static PyObject *__pyx_pw_22ctransportCoefficients_53eikonalEquationEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
10450 static PyMethodDef __pyx_mdef_22ctransportCoefficients_53eikonalEquationEvaluate = {"eikonalEquationEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_53eikonalEquationEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
10451 static PyObject *__pyx_pw_22ctransportCoefficients_53eikonalEquationEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
10452  double __pyx_v_rhs;
10453  PyArrayObject *__pyx_v_u = 0;
10454  PyArrayObject *__pyx_v_grad_u = 0;
10455  PyArrayObject *__pyx_v_m = 0;
10456  PyArrayObject *__pyx_v_dm = 0;
10457  PyArrayObject *__pyx_v_H = 0;
10458  PyArrayObject *__pyx_v_dH = 0;
10459  PyArrayObject *__pyx_v_r = 0;
10460  int __pyx_lineno = 0;
10461  const char *__pyx_filename = NULL;
10462  int __pyx_clineno = 0;
10463  PyObject *__pyx_r = 0;
10464  __Pyx_RefNannyDeclarations
10465  __Pyx_RefNannySetupContext("eikonalEquationEvaluate (wrapper)", 0);
10466  {
10467  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rhs,&__pyx_n_s_u,&__pyx_n_s_grad_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_H,&__pyx_n_s_dH,&__pyx_n_s_r,0};
10468  PyObject* values[8] = {0,0,0,0,0,0,0,0};
10469  if (unlikely(__pyx_kwds)) {
10470  Py_ssize_t kw_args;
10471  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
10472  switch (pos_args) {
10473  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10474  CYTHON_FALLTHROUGH;
10475  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10476  CYTHON_FALLTHROUGH;
10477  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10478  CYTHON_FALLTHROUGH;
10479  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10480  CYTHON_FALLTHROUGH;
10481  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10482  CYTHON_FALLTHROUGH;
10483  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10484  CYTHON_FALLTHROUGH;
10485  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10486  CYTHON_FALLTHROUGH;
10487  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10488  CYTHON_FALLTHROUGH;
10489  case 0: break;
10490  default: goto __pyx_L5_argtuple_error;
10491  }
10492  kw_args = PyDict_Size(__pyx_kwds);
10493  switch (pos_args) {
10494  case 0:
10495  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rhs)) != 0)) kw_args--;
10496  else goto __pyx_L5_argtuple_error;
10497  CYTHON_FALLTHROUGH;
10498  case 1:
10499  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
10500  else {
10501  __Pyx_RaiseArgtupleInvalid("eikonalEquationEvaluate", 1, 8, 8, 1); __PYX_ERR(0, 3615, __pyx_L3_error)
10502  }
10503  CYTHON_FALLTHROUGH;
10504  case 2:
10505  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
10506  else {
10507  __Pyx_RaiseArgtupleInvalid("eikonalEquationEvaluate", 1, 8, 8, 2); __PYX_ERR(0, 3615, __pyx_L3_error)
10508  }
10509  CYTHON_FALLTHROUGH;
10510  case 3:
10511  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
10512  else {
10513  __Pyx_RaiseArgtupleInvalid("eikonalEquationEvaluate", 1, 8, 8, 3); __PYX_ERR(0, 3615, __pyx_L3_error)
10514  }
10515  CYTHON_FALLTHROUGH;
10516  case 4:
10517  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
10518  else {
10519  __Pyx_RaiseArgtupleInvalid("eikonalEquationEvaluate", 1, 8, 8, 4); __PYX_ERR(0, 3615, __pyx_L3_error)
10520  }
10521  CYTHON_FALLTHROUGH;
10522  case 5:
10523  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
10524  else {
10525  __Pyx_RaiseArgtupleInvalid("eikonalEquationEvaluate", 1, 8, 8, 5); __PYX_ERR(0, 3615, __pyx_L3_error)
10526  }
10527  CYTHON_FALLTHROUGH;
10528  case 6:
10529  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
10530  else {
10531  __Pyx_RaiseArgtupleInvalid("eikonalEquationEvaluate", 1, 8, 8, 6); __PYX_ERR(0, 3615, __pyx_L3_error)
10532  }
10533  CYTHON_FALLTHROUGH;
10534  case 7:
10535  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
10536  else {
10537  __Pyx_RaiseArgtupleInvalid("eikonalEquationEvaluate", 1, 8, 8, 7); __PYX_ERR(0, 3615, __pyx_L3_error)
10538  }
10539  }
10540  if (unlikely(kw_args > 0)) {
10541  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "eikonalEquationEvaluate") < 0)) __PYX_ERR(0, 3615, __pyx_L3_error)
10542  }
10543  } else if (PyTuple_GET_SIZE(__pyx_args) != 8) {
10544  goto __pyx_L5_argtuple_error;
10545  } else {
10546  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10547  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10548  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10549  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10550  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10551  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10552  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10553  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10554  }
10555  __pyx_v_rhs = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_rhs == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3615, __pyx_L3_error)
10556  __pyx_v_u = ((PyArrayObject *)values[1]);
10557  __pyx_v_grad_u = ((PyArrayObject *)values[2]);
10558  __pyx_v_m = ((PyArrayObject *)values[3]);
10559  __pyx_v_dm = ((PyArrayObject *)values[4]);
10560  __pyx_v_H = ((PyArrayObject *)values[5]);
10561  __pyx_v_dH = ((PyArrayObject *)values[6]);
10562  __pyx_v_r = ((PyArrayObject *)values[7]);
10563  }
10564  goto __pyx_L4_argument_unpacking_done;
10565  __pyx_L5_argtuple_error:;
10566  __Pyx_RaiseArgtupleInvalid("eikonalEquationEvaluate", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3615, __pyx_L3_error)
10567  __pyx_L3_error:;
10568  __Pyx_AddTraceback("ctransportCoefficients.eikonalEquationEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
10569  __Pyx_RefNannyFinishContext();
10570  return NULL;
10571  __pyx_L4_argument_unpacking_done:;
10572  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3616, __pyx_L1_error)
10573  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1, "grad_u", 0))) __PYX_ERR(0, 3617, __pyx_L1_error)
10574  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 3618, __pyx_L1_error)
10575  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 3619, __pyx_L1_error)
10576  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1, "H", 0))) __PYX_ERR(0, 3620, __pyx_L1_error)
10577  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1, "dH", 0))) __PYX_ERR(0, 3621, __pyx_L1_error)
10578  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1, "r", 0))) __PYX_ERR(0, 3622, __pyx_L1_error)
10579  __pyx_r = __pyx_pf_22ctransportCoefficients_52eikonalEquationEvaluate(__pyx_self, __pyx_v_rhs, __pyx_v_u, __pyx_v_grad_u, __pyx_v_m, __pyx_v_dm, __pyx_v_H, __pyx_v_dH, __pyx_v_r);
10580 
10581  /* function exit code */
10582  goto __pyx_L0;
10583  __pyx_L1_error:;
10584  __pyx_r = NULL;
10585  __pyx_L0:;
10586  __Pyx_RefNannyFinishContext();
10587  return __pyx_r;
10588 }
10589 
10590 static PyObject *__pyx_pf_22ctransportCoefficients_52eikonalEquationEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rhs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_r) {
10591  PyObject *__pyx_r = NULL;
10592  __Pyx_RefNannyDeclarations
10593  PyObject *__pyx_t_1 = NULL;
10594  int __pyx_t_2;
10595  long __pyx_t_3;
10596  int __pyx_t_4;
10597  int __pyx_lineno = 0;
10598  const char *__pyx_filename = NULL;
10599  int __pyx_clineno = 0;
10600  __Pyx_RefNannySetupContext("eikonalEquationEvaluate", 0);
10601 
10602  /* "ctransportCoefficients.pyx":3623
10603  * np.ndarray dH,
10604  * np.ndarray r):
10605  * ceikonalEquationEvaluate(u.size, # <<<<<<<<<<<<<<
10606  * dH[dH.ndim-1],
10607  * rhs,
10608  */
10609  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3623, __pyx_L1_error)
10610  __Pyx_GOTREF(__pyx_t_1);
10611  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3623, __pyx_L1_error)
10612  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10613 
10614  /* "ctransportCoefficients.pyx":3624
10615  * np.ndarray r):
10616  * ceikonalEquationEvaluate(u.size,
10617  * dH[dH.ndim-1], # <<<<<<<<<<<<<<
10618  * rhs,
10619  * <double*> u.data,
10620  */
10621  __pyx_t_3 = (__pyx_v_dH->nd - 1);
10622  __pyx_t_1 = __Pyx_GetItemInt(((PyObject *)__pyx_v_dH), __pyx_t_3, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3624, __pyx_L1_error)
10623  __Pyx_GOTREF(__pyx_t_1);
10624  __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3624, __pyx_L1_error)
10625  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10626 
10627  /* "ctransportCoefficients.pyx":3623
10628  * np.ndarray dH,
10629  * np.ndarray r):
10630  * ceikonalEquationEvaluate(u.size, # <<<<<<<<<<<<<<
10631  * dH[dH.ndim-1],
10632  * rhs,
10633  */
10634  eikonalEquationEvaluate(__pyx_t_2, __pyx_t_4, __pyx_v_rhs, ((double *)__pyx_v_u->data), ((double *)__pyx_v_grad_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_H->data), ((double *)__pyx_v_dH->data), ((double *)__pyx_v_r->data));
10635 
10636  /* "ctransportCoefficients.pyx":3615
10637  * <double*> dh.data,
10638  * <double*> rh.data)
10639  * def eikonalEquationEvaluate(double rhs, # <<<<<<<<<<<<<<
10640  * np.ndarray u,
10641  * np.ndarray grad_u,
10642  */
10643 
10644  /* function exit code */
10645  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10646  goto __pyx_L0;
10647  __pyx_L1_error:;
10648  __Pyx_XDECREF(__pyx_t_1);
10649  __Pyx_AddTraceback("ctransportCoefficients.eikonalEquationEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
10650  __pyx_r = NULL;
10651  __pyx_L0:;
10652  __Pyx_XGIVEREF(__pyx_r);
10653  __Pyx_RefNannyFinishContext();
10654  return __pyx_r;
10655 }
10656 
10657 /* "ctransportCoefficients.pyx":3633
10658  * <double*> dH.data,
10659  * <double*> r.data)
10660  * def redistanceLevelSetCoefficientsEvaluate(double eps, # <<<<<<<<<<<<<<
10661  * np.ndarray u_levelSet,
10662  * np.ndarray u,
10663  */
10664 
10665 /* Python wrapper */
10666 static PyObject *__pyx_pw_22ctransportCoefficients_55redistanceLevelSetCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
10667 static PyMethodDef __pyx_mdef_22ctransportCoefficients_55redistanceLevelSetCoefficientsEvaluate = {"redistanceLevelSetCoefficientsEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_55redistanceLevelSetCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
10668 static PyObject *__pyx_pw_22ctransportCoefficients_55redistanceLevelSetCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
10669  double __pyx_v_eps;
10670  PyArrayObject *__pyx_v_u_levelSet = 0;
10671  PyArrayObject *__pyx_v_u = 0;
10672  PyArrayObject *__pyx_v_grad_u = 0;
10673  PyArrayObject *__pyx_v_m = 0;
10674  PyArrayObject *__pyx_v_dm = 0;
10675  PyArrayObject *__pyx_v_H = 0;
10676  PyArrayObject *__pyx_v_dH = 0;
10677  PyArrayObject *__pyx_v_r = 0;
10678  int __pyx_lineno = 0;
10679  const char *__pyx_filename = NULL;
10680  int __pyx_clineno = 0;
10681  PyObject *__pyx_r = 0;
10682  __Pyx_RefNannyDeclarations
10683  __Pyx_RefNannySetupContext("redistanceLevelSetCoefficientsEvaluate (wrapper)", 0);
10684  {
10685  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_u_levelSet,&__pyx_n_s_u,&__pyx_n_s_grad_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_H,&__pyx_n_s_dH,&__pyx_n_s_r,0};
10686  PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
10687  if (unlikely(__pyx_kwds)) {
10688  Py_ssize_t kw_args;
10689  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
10690  switch (pos_args) {
10691  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
10692  CYTHON_FALLTHROUGH;
10693  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10694  CYTHON_FALLTHROUGH;
10695  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10696  CYTHON_FALLTHROUGH;
10697  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10698  CYTHON_FALLTHROUGH;
10699  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10700  CYTHON_FALLTHROUGH;
10701  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10702  CYTHON_FALLTHROUGH;
10703  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10704  CYTHON_FALLTHROUGH;
10705  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10706  CYTHON_FALLTHROUGH;
10707  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10708  CYTHON_FALLTHROUGH;
10709  case 0: break;
10710  default: goto __pyx_L5_argtuple_error;
10711  }
10712  kw_args = PyDict_Size(__pyx_kwds);
10713  switch (pos_args) {
10714  case 0:
10715  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
10716  else goto __pyx_L5_argtuple_error;
10717  CYTHON_FALLTHROUGH;
10718  case 1:
10719  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_levelSet)) != 0)) kw_args--;
10720  else {
10721  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetCoefficientsEvaluate", 1, 9, 9, 1); __PYX_ERR(0, 3633, __pyx_L3_error)
10722  }
10723  CYTHON_FALLTHROUGH;
10724  case 2:
10725  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
10726  else {
10727  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetCoefficientsEvaluate", 1, 9, 9, 2); __PYX_ERR(0, 3633, __pyx_L3_error)
10728  }
10729  CYTHON_FALLTHROUGH;
10730  case 3:
10731  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
10732  else {
10733  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetCoefficientsEvaluate", 1, 9, 9, 3); __PYX_ERR(0, 3633, __pyx_L3_error)
10734  }
10735  CYTHON_FALLTHROUGH;
10736  case 4:
10737  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
10738  else {
10739  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetCoefficientsEvaluate", 1, 9, 9, 4); __PYX_ERR(0, 3633, __pyx_L3_error)
10740  }
10741  CYTHON_FALLTHROUGH;
10742  case 5:
10743  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
10744  else {
10745  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetCoefficientsEvaluate", 1, 9, 9, 5); __PYX_ERR(0, 3633, __pyx_L3_error)
10746  }
10747  CYTHON_FALLTHROUGH;
10748  case 6:
10749  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
10750  else {
10751  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetCoefficientsEvaluate", 1, 9, 9, 6); __PYX_ERR(0, 3633, __pyx_L3_error)
10752  }
10753  CYTHON_FALLTHROUGH;
10754  case 7:
10755  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
10756  else {
10757  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetCoefficientsEvaluate", 1, 9, 9, 7); __PYX_ERR(0, 3633, __pyx_L3_error)
10758  }
10759  CYTHON_FALLTHROUGH;
10760  case 8:
10761  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
10762  else {
10763  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetCoefficientsEvaluate", 1, 9, 9, 8); __PYX_ERR(0, 3633, __pyx_L3_error)
10764  }
10765  }
10766  if (unlikely(kw_args > 0)) {
10767  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "redistanceLevelSetCoefficientsEvaluate") < 0)) __PYX_ERR(0, 3633, __pyx_L3_error)
10768  }
10769  } else if (PyTuple_GET_SIZE(__pyx_args) != 9) {
10770  goto __pyx_L5_argtuple_error;
10771  } else {
10772  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10773  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10774  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10775  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10776  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10777  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10778  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10779  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10780  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
10781  }
10782  __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3633, __pyx_L3_error)
10783  __pyx_v_u_levelSet = ((PyArrayObject *)values[1]);
10784  __pyx_v_u = ((PyArrayObject *)values[2]);
10785  __pyx_v_grad_u = ((PyArrayObject *)values[3]);
10786  __pyx_v_m = ((PyArrayObject *)values[4]);
10787  __pyx_v_dm = ((PyArrayObject *)values[5]);
10788  __pyx_v_H = ((PyArrayObject *)values[6]);
10789  __pyx_v_dH = ((PyArrayObject *)values[7]);
10790  __pyx_v_r = ((PyArrayObject *)values[8]);
10791  }
10792  goto __pyx_L4_argument_unpacking_done;
10793  __pyx_L5_argtuple_error:;
10794  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetCoefficientsEvaluate", 1, 9, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3633, __pyx_L3_error)
10795  __pyx_L3_error:;
10796  __Pyx_AddTraceback("ctransportCoefficients.redistanceLevelSetCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
10797  __Pyx_RefNannyFinishContext();
10798  return NULL;
10799  __pyx_L4_argument_unpacking_done:;
10800  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_levelSet), __pyx_ptype_5numpy_ndarray, 1, "u_levelSet", 0))) __PYX_ERR(0, 3634, __pyx_L1_error)
10801  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3635, __pyx_L1_error)
10802  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1, "grad_u", 0))) __PYX_ERR(0, 3636, __pyx_L1_error)
10803  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 3637, __pyx_L1_error)
10804  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 3638, __pyx_L1_error)
10805  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1, "H", 0))) __PYX_ERR(0, 3639, __pyx_L1_error)
10806  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1, "dH", 0))) __PYX_ERR(0, 3640, __pyx_L1_error)
10807  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1, "r", 0))) __PYX_ERR(0, 3641, __pyx_L1_error)
10808  __pyx_r = __pyx_pf_22ctransportCoefficients_54redistanceLevelSetCoefficientsEvaluate(__pyx_self, __pyx_v_eps, __pyx_v_u_levelSet, __pyx_v_u, __pyx_v_grad_u, __pyx_v_m, __pyx_v_dm, __pyx_v_H, __pyx_v_dH, __pyx_v_r);
10809 
10810  /* function exit code */
10811  goto __pyx_L0;
10812  __pyx_L1_error:;
10813  __pyx_r = NULL;
10814  __pyx_L0:;
10815  __Pyx_RefNannyFinishContext();
10816  return __pyx_r;
10817 }
10818 
10819 static PyObject *__pyx_pf_22ctransportCoefficients_54redistanceLevelSetCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, PyArrayObject *__pyx_v_u_levelSet, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_r) {
10820  PyObject *__pyx_r = NULL;
10821  __Pyx_RefNannyDeclarations
10822  PyObject *__pyx_t_1 = NULL;
10823  int __pyx_t_2;
10824  long __pyx_t_3;
10825  int __pyx_t_4;
10826  int __pyx_lineno = 0;
10827  const char *__pyx_filename = NULL;
10828  int __pyx_clineno = 0;
10829  __Pyx_RefNannySetupContext("redistanceLevelSetCoefficientsEvaluate", 0);
10830 
10831  /* "ctransportCoefficients.pyx":3642
10832  * np.ndarray dH,
10833  * np.ndarray r):
10834  * credistanceLevelSetCoefficientsEvaluate(u.size, # <<<<<<<<<<<<<<
10835  * dH[dH.ndim-1],
10836  * eps,
10837  */
10838  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3642, __pyx_L1_error)
10839  __Pyx_GOTREF(__pyx_t_1);
10840  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3642, __pyx_L1_error)
10841  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10842 
10843  /* "ctransportCoefficients.pyx":3643
10844  * np.ndarray r):
10845  * credistanceLevelSetCoefficientsEvaluate(u.size,
10846  * dH[dH.ndim-1], # <<<<<<<<<<<<<<
10847  * eps,
10848  * <double*> u_levelSet.data,
10849  */
10850  __pyx_t_3 = (__pyx_v_dH->nd - 1);
10851  __pyx_t_1 = __Pyx_GetItemInt(((PyObject *)__pyx_v_dH), __pyx_t_3, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3643, __pyx_L1_error)
10852  __Pyx_GOTREF(__pyx_t_1);
10853  __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3643, __pyx_L1_error)
10854  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10855 
10856  /* "ctransportCoefficients.pyx":3642
10857  * np.ndarray dH,
10858  * np.ndarray r):
10859  * credistanceLevelSetCoefficientsEvaluate(u.size, # <<<<<<<<<<<<<<
10860  * dH[dH.ndim-1],
10861  * eps,
10862  */
10863  redistanceLevelSetCoefficientsEvaluate(__pyx_t_2, __pyx_t_4, __pyx_v_eps, ((double *)__pyx_v_u_levelSet->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_grad_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_H->data), ((double *)__pyx_v_dH->data), ((double *)__pyx_v_r->data));
10864 
10865  /* "ctransportCoefficients.pyx":3633
10866  * <double*> dH.data,
10867  * <double*> r.data)
10868  * def redistanceLevelSetCoefficientsEvaluate(double eps, # <<<<<<<<<<<<<<
10869  * np.ndarray u_levelSet,
10870  * np.ndarray u,
10871  */
10872 
10873  /* function exit code */
10874  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10875  goto __pyx_L0;
10876  __pyx_L1_error:;
10877  __Pyx_XDECREF(__pyx_t_1);
10878  __Pyx_AddTraceback("ctransportCoefficients.redistanceLevelSetCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
10879  __pyx_r = NULL;
10880  __pyx_L0:;
10881  __Pyx_XGIVEREF(__pyx_r);
10882  __Pyx_RefNannyFinishContext();
10883  return __pyx_r;
10884 }
10885 
10886 /* "ctransportCoefficients.pyx":3653
10887  * <double*> dH.data,
10888  * <double*> r.data)
10889  * def redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate(double eps, # <<<<<<<<<<<<<<
10890  * double Lambda_penalty,
10891  * np.ndarray u_levelSet,
10892  */
10893 
10894 /* Python wrapper */
10895 static PyObject *__pyx_pw_22ctransportCoefficients_57redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
10896 static PyMethodDef __pyx_mdef_22ctransportCoefficients_57redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate = {"redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_57redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
10897 static PyObject *__pyx_pw_22ctransportCoefficients_57redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
10898  double __pyx_v_eps;
10899  double __pyx_v_Lambda_penalty;
10900  PyArrayObject *__pyx_v_u_levelSet = 0;
10901  PyArrayObject *__pyx_v_u = 0;
10902  PyArrayObject *__pyx_v_grad_u = 0;
10903  PyArrayObject *__pyx_v_m = 0;
10904  PyArrayObject *__pyx_v_dm = 0;
10905  PyArrayObject *__pyx_v_H = 0;
10906  PyArrayObject *__pyx_v_dH = 0;
10907  PyArrayObject *__pyx_v_r = 0;
10908  PyArrayObject *__pyx_v_dr = 0;
10909  int __pyx_lineno = 0;
10910  const char *__pyx_filename = NULL;
10911  int __pyx_clineno = 0;
10912  PyObject *__pyx_r = 0;
10913  __Pyx_RefNannyDeclarations
10914  __Pyx_RefNannySetupContext("redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate (wrapper)", 0);
10915  {
10916  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_Lambda_penalty,&__pyx_n_s_u_levelSet,&__pyx_n_s_u,&__pyx_n_s_grad_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_H,&__pyx_n_s_dH,&__pyx_n_s_r,&__pyx_n_s_dr,0};
10917  PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0};
10918  if (unlikely(__pyx_kwds)) {
10919  Py_ssize_t kw_args;
10920  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
10921  switch (pos_args) {
10922  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
10923  CYTHON_FALLTHROUGH;
10924  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
10925  CYTHON_FALLTHROUGH;
10926  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
10927  CYTHON_FALLTHROUGH;
10928  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10929  CYTHON_FALLTHROUGH;
10930  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10931  CYTHON_FALLTHROUGH;
10932  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10933  CYTHON_FALLTHROUGH;
10934  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10935  CYTHON_FALLTHROUGH;
10936  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10937  CYTHON_FALLTHROUGH;
10938  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10939  CYTHON_FALLTHROUGH;
10940  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10941  CYTHON_FALLTHROUGH;
10942  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10943  CYTHON_FALLTHROUGH;
10944  case 0: break;
10945  default: goto __pyx_L5_argtuple_error;
10946  }
10947  kw_args = PyDict_Size(__pyx_kwds);
10948  switch (pos_args) {
10949  case 0:
10950  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
10951  else goto __pyx_L5_argtuple_error;
10952  CYTHON_FALLTHROUGH;
10953  case 1:
10954  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lambda_penalty)) != 0)) kw_args--;
10955  else {
10956  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", 1, 11, 11, 1); __PYX_ERR(0, 3653, __pyx_L3_error)
10957  }
10958  CYTHON_FALLTHROUGH;
10959  case 2:
10960  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_levelSet)) != 0)) kw_args--;
10961  else {
10962  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", 1, 11, 11, 2); __PYX_ERR(0, 3653, __pyx_L3_error)
10963  }
10964  CYTHON_FALLTHROUGH;
10965  case 3:
10966  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
10967  else {
10968  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", 1, 11, 11, 3); __PYX_ERR(0, 3653, __pyx_L3_error)
10969  }
10970  CYTHON_FALLTHROUGH;
10971  case 4:
10972  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
10973  else {
10974  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", 1, 11, 11, 4); __PYX_ERR(0, 3653, __pyx_L3_error)
10975  }
10976  CYTHON_FALLTHROUGH;
10977  case 5:
10978  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
10979  else {
10980  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", 1, 11, 11, 5); __PYX_ERR(0, 3653, __pyx_L3_error)
10981  }
10982  CYTHON_FALLTHROUGH;
10983  case 6:
10984  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
10985  else {
10986  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", 1, 11, 11, 6); __PYX_ERR(0, 3653, __pyx_L3_error)
10987  }
10988  CYTHON_FALLTHROUGH;
10989  case 7:
10990  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
10991  else {
10992  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", 1, 11, 11, 7); __PYX_ERR(0, 3653, __pyx_L3_error)
10993  }
10994  CYTHON_FALLTHROUGH;
10995  case 8:
10996  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
10997  else {
10998  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", 1, 11, 11, 8); __PYX_ERR(0, 3653, __pyx_L3_error)
10999  }
11000  CYTHON_FALLTHROUGH;
11001  case 9:
11002  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
11003  else {
11004  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", 1, 11, 11, 9); __PYX_ERR(0, 3653, __pyx_L3_error)
11005  }
11006  CYTHON_FALLTHROUGH;
11007  case 10:
11008  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
11009  else {
11010  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", 1, 11, 11, 10); __PYX_ERR(0, 3653, __pyx_L3_error)
11011  }
11012  }
11013  if (unlikely(kw_args > 0)) {
11014  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate") < 0)) __PYX_ERR(0, 3653, __pyx_L3_error)
11015  }
11016  } else if (PyTuple_GET_SIZE(__pyx_args) != 11) {
11017  goto __pyx_L5_argtuple_error;
11018  } else {
11019  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11020  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11021  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11022  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11023  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11024  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
11025  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
11026  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
11027  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
11028  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
11029  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
11030  }
11031  __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3653, __pyx_L3_error)
11032  __pyx_v_Lambda_penalty = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_Lambda_penalty == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3654, __pyx_L3_error)
11033  __pyx_v_u_levelSet = ((PyArrayObject *)values[2]);
11034  __pyx_v_u = ((PyArrayObject *)values[3]);
11035  __pyx_v_grad_u = ((PyArrayObject *)values[4]);
11036  __pyx_v_m = ((PyArrayObject *)values[5]);
11037  __pyx_v_dm = ((PyArrayObject *)values[6]);
11038  __pyx_v_H = ((PyArrayObject *)values[7]);
11039  __pyx_v_dH = ((PyArrayObject *)values[8]);
11040  __pyx_v_r = ((PyArrayObject *)values[9]);
11041  __pyx_v_dr = ((PyArrayObject *)values[10]);
11042  }
11043  goto __pyx_L4_argument_unpacking_done;
11044  __pyx_L5_argtuple_error:;
11045  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", 1, 11, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3653, __pyx_L3_error)
11046  __pyx_L3_error:;
11047  __Pyx_AddTraceback("ctransportCoefficients.redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
11048  __Pyx_RefNannyFinishContext();
11049  return NULL;
11050  __pyx_L4_argument_unpacking_done:;
11051  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_levelSet), __pyx_ptype_5numpy_ndarray, 1, "u_levelSet", 0))) __PYX_ERR(0, 3655, __pyx_L1_error)
11052  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3656, __pyx_L1_error)
11053  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1, "grad_u", 0))) __PYX_ERR(0, 3657, __pyx_L1_error)
11054  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 3658, __pyx_L1_error)
11055  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 3659, __pyx_L1_error)
11056  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1, "H", 0))) __PYX_ERR(0, 3660, __pyx_L1_error)
11057  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1, "dH", 0))) __PYX_ERR(0, 3661, __pyx_L1_error)
11058  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1, "r", 0))) __PYX_ERR(0, 3662, __pyx_L1_error)
11059  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1, "dr", 0))) __PYX_ERR(0, 3663, __pyx_L1_error)
11060  __pyx_r = __pyx_pf_22ctransportCoefficients_56redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate(__pyx_self, __pyx_v_eps, __pyx_v_Lambda_penalty, __pyx_v_u_levelSet, __pyx_v_u, __pyx_v_grad_u, __pyx_v_m, __pyx_v_dm, __pyx_v_H, __pyx_v_dH, __pyx_v_r, __pyx_v_dr);
11061 
11062  /* function exit code */
11063  goto __pyx_L0;
11064  __pyx_L1_error:;
11065  __pyx_r = NULL;
11066  __pyx_L0:;
11067  __Pyx_RefNannyFinishContext();
11068  return __pyx_r;
11069 }
11070 
11071 static PyObject *__pyx_pf_22ctransportCoefficients_56redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, double __pyx_v_Lambda_penalty, PyArrayObject *__pyx_v_u_levelSet, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr) {
11072  PyObject *__pyx_r = NULL;
11073  __Pyx_RefNannyDeclarations
11074  PyObject *__pyx_t_1 = NULL;
11075  int __pyx_t_2;
11076  long __pyx_t_3;
11077  int __pyx_t_4;
11078  int __pyx_lineno = 0;
11079  const char *__pyx_filename = NULL;
11080  int __pyx_clineno = 0;
11081  __Pyx_RefNannySetupContext("redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", 0);
11082 
11083  /* "ctransportCoefficients.pyx":3664
11084  * np.ndarray r,
11085  * np.ndarray dr):
11086  * credistanceLevelSetCoefficientsWithWeakPenaltyEvaluate(u.size, # <<<<<<<<<<<<<<
11087  * dH[dH.ndim-1],
11088  * eps,
11089  */
11090  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3664, __pyx_L1_error)
11091  __Pyx_GOTREF(__pyx_t_1);
11092  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3664, __pyx_L1_error)
11093  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11094 
11095  /* "ctransportCoefficients.pyx":3665
11096  * np.ndarray dr):
11097  * credistanceLevelSetCoefficientsWithWeakPenaltyEvaluate(u.size,
11098  * dH[dH.ndim-1], # <<<<<<<<<<<<<<
11099  * eps,
11100  * Lambda_penalty,
11101  */
11102  __pyx_t_3 = (__pyx_v_dH->nd - 1);
11103  __pyx_t_1 = __Pyx_GetItemInt(((PyObject *)__pyx_v_dH), __pyx_t_3, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3665, __pyx_L1_error)
11104  __Pyx_GOTREF(__pyx_t_1);
11105  __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3665, __pyx_L1_error)
11106  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11107 
11108  /* "ctransportCoefficients.pyx":3664
11109  * np.ndarray r,
11110  * np.ndarray dr):
11111  * credistanceLevelSetCoefficientsWithWeakPenaltyEvaluate(u.size, # <<<<<<<<<<<<<<
11112  * dH[dH.ndim-1],
11113  * eps,
11114  */
11115  redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate(__pyx_t_2, __pyx_t_4, __pyx_v_eps, __pyx_v_Lambda_penalty, ((double *)__pyx_v_u_levelSet->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_grad_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_H->data), ((double *)__pyx_v_dH->data), ((double *)__pyx_v_r->data), ((double *)__pyx_v_dr->data));
11116 
11117  /* "ctransportCoefficients.pyx":3653
11118  * <double*> dH.data,
11119  * <double*> r.data)
11120  * def redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate(double eps, # <<<<<<<<<<<<<<
11121  * double Lambda_penalty,
11122  * np.ndarray u_levelSet,
11123  */
11124 
11125  /* function exit code */
11126  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11127  goto __pyx_L0;
11128  __pyx_L1_error:;
11129  __Pyx_XDECREF(__pyx_t_1);
11130  __Pyx_AddTraceback("ctransportCoefficients.redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
11131  __pyx_r = NULL;
11132  __pyx_L0:;
11133  __Pyx_XGIVEREF(__pyx_r);
11134  __Pyx_RefNannyFinishContext();
11135  return __pyx_r;
11136 }
11137 
11138 /* "ctransportCoefficients.pyx":3677
11139  * <double*> r.data,
11140  * <double*> dr.data)
11141  * def redistanceLevelSetSandFCoefficientsEvaluate(double eps, # <<<<<<<<<<<<<<
11142  * np.ndarray u_levelSet,
11143  * np.ndarray dV,
11144  */
11145 
11146 /* Python wrapper */
11147 static PyObject *__pyx_pw_22ctransportCoefficients_59redistanceLevelSetSandFCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
11148 static PyMethodDef __pyx_mdef_22ctransportCoefficients_59redistanceLevelSetSandFCoefficientsEvaluate = {"redistanceLevelSetSandFCoefficientsEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_59redistanceLevelSetSandFCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
11149 static PyObject *__pyx_pw_22ctransportCoefficients_59redistanceLevelSetSandFCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11150  double __pyx_v_eps;
11151  PyArrayObject *__pyx_v_u_levelSet = 0;
11152  PyArrayObject *__pyx_v_dV = 0;
11153  PyArrayObject *__pyx_v_u = 0;
11154  PyArrayObject *__pyx_v_grad_u = 0;
11155  PyArrayObject *__pyx_v_m = 0;
11156  PyArrayObject *__pyx_v_dm = 0;
11157  PyArrayObject *__pyx_v_H = 0;
11158  PyArrayObject *__pyx_v_dH = 0;
11159  PyArrayObject *__pyx_v_r = 0;
11160  int __pyx_lineno = 0;
11161  const char *__pyx_filename = NULL;
11162  int __pyx_clineno = 0;
11163  PyObject *__pyx_r = 0;
11164  __Pyx_RefNannyDeclarations
11165  __Pyx_RefNannySetupContext("redistanceLevelSetSandFCoefficientsEvaluate (wrapper)", 0);
11166  {
11167  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_u_levelSet,&__pyx_n_s_dV,&__pyx_n_s_u,&__pyx_n_s_grad_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_H,&__pyx_n_s_dH,&__pyx_n_s_r,0};
11168  PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
11169  if (unlikely(__pyx_kwds)) {
11170  Py_ssize_t kw_args;
11171  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
11172  switch (pos_args) {
11173  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
11174  CYTHON_FALLTHROUGH;
11175  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
11176  CYTHON_FALLTHROUGH;
11177  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
11178  CYTHON_FALLTHROUGH;
11179  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
11180  CYTHON_FALLTHROUGH;
11181  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
11182  CYTHON_FALLTHROUGH;
11183  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11184  CYTHON_FALLTHROUGH;
11185  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11186  CYTHON_FALLTHROUGH;
11187  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11188  CYTHON_FALLTHROUGH;
11189  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11190  CYTHON_FALLTHROUGH;
11191  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11192  CYTHON_FALLTHROUGH;
11193  case 0: break;
11194  default: goto __pyx_L5_argtuple_error;
11195  }
11196  kw_args = PyDict_Size(__pyx_kwds);
11197  switch (pos_args) {
11198  case 0:
11199  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
11200  else goto __pyx_L5_argtuple_error;
11201  CYTHON_FALLTHROUGH;
11202  case 1:
11203  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_levelSet)) != 0)) kw_args--;
11204  else {
11205  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetSandFCoefficientsEvaluate", 1, 10, 10, 1); __PYX_ERR(0, 3677, __pyx_L3_error)
11206  }
11207  CYTHON_FALLTHROUGH;
11208  case 2:
11209  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dV)) != 0)) kw_args--;
11210  else {
11211  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetSandFCoefficientsEvaluate", 1, 10, 10, 2); __PYX_ERR(0, 3677, __pyx_L3_error)
11212  }
11213  CYTHON_FALLTHROUGH;
11214  case 3:
11215  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
11216  else {
11217  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetSandFCoefficientsEvaluate", 1, 10, 10, 3); __PYX_ERR(0, 3677, __pyx_L3_error)
11218  }
11219  CYTHON_FALLTHROUGH;
11220  case 4:
11221  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
11222  else {
11223  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetSandFCoefficientsEvaluate", 1, 10, 10, 4); __PYX_ERR(0, 3677, __pyx_L3_error)
11224  }
11225  CYTHON_FALLTHROUGH;
11226  case 5:
11227  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
11228  else {
11229  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetSandFCoefficientsEvaluate", 1, 10, 10, 5); __PYX_ERR(0, 3677, __pyx_L3_error)
11230  }
11231  CYTHON_FALLTHROUGH;
11232  case 6:
11233  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
11234  else {
11235  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetSandFCoefficientsEvaluate", 1, 10, 10, 6); __PYX_ERR(0, 3677, __pyx_L3_error)
11236  }
11237  CYTHON_FALLTHROUGH;
11238  case 7:
11239  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
11240  else {
11241  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetSandFCoefficientsEvaluate", 1, 10, 10, 7); __PYX_ERR(0, 3677, __pyx_L3_error)
11242  }
11243  CYTHON_FALLTHROUGH;
11244  case 8:
11245  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
11246  else {
11247  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetSandFCoefficientsEvaluate", 1, 10, 10, 8); __PYX_ERR(0, 3677, __pyx_L3_error)
11248  }
11249  CYTHON_FALLTHROUGH;
11250  case 9:
11251  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
11252  else {
11253  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetSandFCoefficientsEvaluate", 1, 10, 10, 9); __PYX_ERR(0, 3677, __pyx_L3_error)
11254  }
11255  }
11256  if (unlikely(kw_args > 0)) {
11257  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "redistanceLevelSetSandFCoefficientsEvaluate") < 0)) __PYX_ERR(0, 3677, __pyx_L3_error)
11258  }
11259  } else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
11260  goto __pyx_L5_argtuple_error;
11261  } else {
11262  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11263  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11264  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11265  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11266  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11267  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
11268  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
11269  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
11270  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
11271  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
11272  }
11273  __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3677, __pyx_L3_error)
11274  __pyx_v_u_levelSet = ((PyArrayObject *)values[1]);
11275  __pyx_v_dV = ((PyArrayObject *)values[2]);
11276  __pyx_v_u = ((PyArrayObject *)values[3]);
11277  __pyx_v_grad_u = ((PyArrayObject *)values[4]);
11278  __pyx_v_m = ((PyArrayObject *)values[5]);
11279  __pyx_v_dm = ((PyArrayObject *)values[6]);
11280  __pyx_v_H = ((PyArrayObject *)values[7]);
11281  __pyx_v_dH = ((PyArrayObject *)values[8]);
11282  __pyx_v_r = ((PyArrayObject *)values[9]);
11283  }
11284  goto __pyx_L4_argument_unpacking_done;
11285  __pyx_L5_argtuple_error:;
11286  __Pyx_RaiseArgtupleInvalid("redistanceLevelSetSandFCoefficientsEvaluate", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3677, __pyx_L3_error)
11287  __pyx_L3_error:;
11288  __Pyx_AddTraceback("ctransportCoefficients.redistanceLevelSetSandFCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
11289  __Pyx_RefNannyFinishContext();
11290  return NULL;
11291  __pyx_L4_argument_unpacking_done:;
11292  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_levelSet), __pyx_ptype_5numpy_ndarray, 1, "u_levelSet", 0))) __PYX_ERR(0, 3678, __pyx_L1_error)
11293  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dV), __pyx_ptype_5numpy_ndarray, 1, "dV", 0))) __PYX_ERR(0, 3679, __pyx_L1_error)
11294  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3680, __pyx_L1_error)
11295  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1, "grad_u", 0))) __PYX_ERR(0, 3681, __pyx_L1_error)
11296  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 3682, __pyx_L1_error)
11297  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 3683, __pyx_L1_error)
11298  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1, "H", 0))) __PYX_ERR(0, 3684, __pyx_L1_error)
11299  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1, "dH", 0))) __PYX_ERR(0, 3685, __pyx_L1_error)
11300  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1, "r", 0))) __PYX_ERR(0, 3686, __pyx_L1_error)
11301  __pyx_r = __pyx_pf_22ctransportCoefficients_58redistanceLevelSetSandFCoefficientsEvaluate(__pyx_self, __pyx_v_eps, __pyx_v_u_levelSet, __pyx_v_dV, __pyx_v_u, __pyx_v_grad_u, __pyx_v_m, __pyx_v_dm, __pyx_v_H, __pyx_v_dH, __pyx_v_r);
11302 
11303  /* function exit code */
11304  goto __pyx_L0;
11305  __pyx_L1_error:;
11306  __pyx_r = NULL;
11307  __pyx_L0:;
11308  __Pyx_RefNannyFinishContext();
11309  return __pyx_r;
11310 }
11311 
11312 static PyObject *__pyx_pf_22ctransportCoefficients_58redistanceLevelSetSandFCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, PyArrayObject *__pyx_v_u_levelSet, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_r) {
11313  npy_intp __pyx_v_nSimplex;
11314  npy_intp __pyx_v_nPointsPerSimplex;
11315  PyObject *__pyx_r = NULL;
11316  __Pyx_RefNannyDeclarations
11317  int __pyx_t_1;
11318  long __pyx_t_2;
11319  PyObject *__pyx_t_3 = NULL;
11320  int __pyx_t_4;
11321  int __pyx_lineno = 0;
11322  const char *__pyx_filename = NULL;
11323  int __pyx_clineno = 0;
11324  __Pyx_RefNannySetupContext("redistanceLevelSetSandFCoefficientsEvaluate", 0);
11325 
11326  /* "ctransportCoefficients.pyx":3687
11327  * np.ndarray dH,
11328  * np.ndarray r):
11329  * if u.ndim in [2,3]: # <<<<<<<<<<<<<<
11330  * if u.ndim == 2:
11331  * nSimplex = u.shape[0]
11332  */
11333  switch (__pyx_v_u->nd) {
11334  case 2:
11335  case 3:
11336 
11337  /* "ctransportCoefficients.pyx":3688
11338  * np.ndarray r):
11339  * if u.ndim in [2,3]:
11340  * if u.ndim == 2: # <<<<<<<<<<<<<<
11341  * nSimplex = u.shape[0]
11342  * nPointsPerSimplex = u.shape[1]
11343  */
11344  __pyx_t_1 = ((__pyx_v_u->nd == 2) != 0);
11345  if (__pyx_t_1) {
11346 
11347  /* "ctransportCoefficients.pyx":3689
11348  * if u.ndim in [2,3]:
11349  * if u.ndim == 2:
11350  * nSimplex = u.shape[0] # <<<<<<<<<<<<<<
11351  * nPointsPerSimplex = u.shape[1]
11352  * else:
11353  */
11354  __pyx_v_nSimplex = (__pyx_v_u->dimensions[0]);
11355 
11356  /* "ctransportCoefficients.pyx":3690
11357  * if u.ndim == 2:
11358  * nSimplex = u.shape[0]
11359  * nPointsPerSimplex = u.shape[1] # <<<<<<<<<<<<<<
11360  * else:
11361  * nSimplex = u.shape[0]*u.shape[1]
11362  */
11363  __pyx_v_nPointsPerSimplex = (__pyx_v_u->dimensions[1]);
11364 
11365  /* "ctransportCoefficients.pyx":3688
11366  * np.ndarray r):
11367  * if u.ndim in [2,3]:
11368  * if u.ndim == 2: # <<<<<<<<<<<<<<
11369  * nSimplex = u.shape[0]
11370  * nPointsPerSimplex = u.shape[1]
11371  */
11372  goto __pyx_L3;
11373  }
11374 
11375  /* "ctransportCoefficients.pyx":3692
11376  * nPointsPerSimplex = u.shape[1]
11377  * else:
11378  * nSimplex = u.shape[0]*u.shape[1] # <<<<<<<<<<<<<<
11379  * nPointsPerSimplex = u.shape[2]
11380  * credistanceLevelSetSandFCoefficientsEvaluate( nSimplex,
11381  */
11382  /*else*/ {
11383  __pyx_v_nSimplex = ((__pyx_v_u->dimensions[0]) * (__pyx_v_u->dimensions[1]));
11384 
11385  /* "ctransportCoefficients.pyx":3693
11386  * else:
11387  * nSimplex = u.shape[0]*u.shape[1]
11388  * nPointsPerSimplex = u.shape[2] # <<<<<<<<<<<<<<
11389  * credistanceLevelSetSandFCoefficientsEvaluate( nSimplex,
11390  * nPointsPerSimplex,
11391  */
11392  __pyx_v_nPointsPerSimplex = (__pyx_v_u->dimensions[2]);
11393  }
11394  __pyx_L3:;
11395 
11396  /* "ctransportCoefficients.pyx":3696
11397  * credistanceLevelSetSandFCoefficientsEvaluate( nSimplex,
11398  * nPointsPerSimplex,
11399  * dH[dH.ndim-1], # <<<<<<<<<<<<<<
11400  * eps,
11401  * <double*> u_levelSet.data,
11402  */
11403  __pyx_t_2 = (__pyx_v_dH->nd - 1);
11404  __pyx_t_3 = __Pyx_GetItemInt(((PyObject *)__pyx_v_dH), __pyx_t_2, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3696, __pyx_L1_error)
11405  __Pyx_GOTREF(__pyx_t_3);
11406  __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3696, __pyx_L1_error)
11407  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
11408 
11409  /* "ctransportCoefficients.pyx":3694
11410  * nSimplex = u.shape[0]*u.shape[1]
11411  * nPointsPerSimplex = u.shape[2]
11412  * credistanceLevelSetSandFCoefficientsEvaluate( nSimplex, # <<<<<<<<<<<<<<
11413  * nPointsPerSimplex,
11414  * dH[dH.ndim-1],
11415  */
11416  redistanceLevelSetSandFCoefficientsEvaluate(__pyx_v_nSimplex, __pyx_v_nPointsPerSimplex, __pyx_t_4, __pyx_v_eps, ((double *)__pyx_v_u_levelSet->data), ((double *)__pyx_v_dV->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_grad_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_H->data), ((double *)__pyx_v_dH->data), ((double *)__pyx_v_r->data));
11417 
11418  /* "ctransportCoefficients.pyx":3687
11419  * np.ndarray dH,
11420  * np.ndarray r):
11421  * if u.ndim in [2,3]: # <<<<<<<<<<<<<<
11422  * if u.ndim == 2:
11423  * nSimplex = u.shape[0]
11424  */
11425  break;
11426  default:
11427 
11428  /* "ctransportCoefficients.pyx":3708
11429  * <double*> r.data)
11430  * else:
11431  * assert 0 # <<<<<<<<<<<<<<
11432  * def setWeakDirichletConditionsForLevelSet(int nElements_global,
11433  * int nDOF_trial_element,
11434  */
11435  #ifndef CYTHON_WITHOUT_ASSERTIONS
11436  if (unlikely(!Py_OptimizeFlag)) {
11437  if (unlikely(!0)) {
11438  PyErr_SetNone(PyExc_AssertionError);
11439  __PYX_ERR(0, 3708, __pyx_L1_error)
11440  }
11441  }
11442  #endif
11443  break;
11444  }
11445 
11446  /* "ctransportCoefficients.pyx":3677
11447  * <double*> r.data,
11448  * <double*> dr.data)
11449  * def redistanceLevelSetSandFCoefficientsEvaluate(double eps, # <<<<<<<<<<<<<<
11450  * np.ndarray u_levelSet,
11451  * np.ndarray dV,
11452  */
11453 
11454  /* function exit code */
11455  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11456  goto __pyx_L0;
11457  __pyx_L1_error:;
11458  __Pyx_XDECREF(__pyx_t_3);
11459  __Pyx_AddTraceback("ctransportCoefficients.redistanceLevelSetSandFCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
11460  __pyx_r = NULL;
11461  __pyx_L0:;
11462  __Pyx_XGIVEREF(__pyx_r);
11463  __Pyx_RefNannyFinishContext();
11464  return __pyx_r;
11465 }
11466 
11467 /* "ctransportCoefficients.pyx":3709
11468  * else:
11469  * assert 0
11470  * def setWeakDirichletConditionsForLevelSet(int nElements_global, # <<<<<<<<<<<<<<
11471  * int nDOF_trial_element,
11472  * double epsilon_freeze_factor,
11473  */
11474 
11475 /* Python wrapper */
11476 static PyObject *__pyx_pw_22ctransportCoefficients_61setWeakDirichletConditionsForLevelSet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
11477 static PyMethodDef __pyx_mdef_22ctransportCoefficients_61setWeakDirichletConditionsForLevelSet = {"setWeakDirichletConditionsForLevelSet", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_61setWeakDirichletConditionsForLevelSet, METH_VARARGS|METH_KEYWORDS, 0};
11478 static PyObject *__pyx_pw_22ctransportCoefficients_61setWeakDirichletConditionsForLevelSet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11479  int __pyx_v_nElements_global;
11480  int __pyx_v_nDOF_trial_element;
11481  double __pyx_v_epsilon_freeze_factor;
11482  PyArrayObject *__pyx_v_elementDiameter = 0;
11483  PyArrayObject *__pyx_v_u_l2g = 0;
11484  PyArrayObject *__pyx_v_u_dof = 0;
11485  PyArrayObject *__pyx_v_freeze_nodes_tmp = 0;
11486  PyArrayObject *__pyx_v_weakDirichletConditionFlags = 0;
11487  int __pyx_lineno = 0;
11488  const char *__pyx_filename = NULL;
11489  int __pyx_clineno = 0;
11490  PyObject *__pyx_r = 0;
11491  __Pyx_RefNannyDeclarations
11492  __Pyx_RefNannySetupContext("setWeakDirichletConditionsForLevelSet (wrapper)", 0);
11493  {
11494  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nElements_global,&__pyx_n_s_nDOF_trial_element,&__pyx_n_s_epsilon_freeze_factor,&__pyx_n_s_elementDiameter,&__pyx_n_s_u_l2g,&__pyx_n_s_u_dof,&__pyx_n_s_freeze_nodes_tmp,&__pyx_n_s_weakDirichletConditionFlags,0};
11495  PyObject* values[8] = {0,0,0,0,0,0,0,0};
11496  if (unlikely(__pyx_kwds)) {
11497  Py_ssize_t kw_args;
11498  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
11499  switch (pos_args) {
11500  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
11501  CYTHON_FALLTHROUGH;
11502  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
11503  CYTHON_FALLTHROUGH;
11504  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
11505  CYTHON_FALLTHROUGH;
11506  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11507  CYTHON_FALLTHROUGH;
11508  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11509  CYTHON_FALLTHROUGH;
11510  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11511  CYTHON_FALLTHROUGH;
11512  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11513  CYTHON_FALLTHROUGH;
11514  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11515  CYTHON_FALLTHROUGH;
11516  case 0: break;
11517  default: goto __pyx_L5_argtuple_error;
11518  }
11519  kw_args = PyDict_Size(__pyx_kwds);
11520  switch (pos_args) {
11521  case 0:
11522  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_global)) != 0)) kw_args--;
11523  else goto __pyx_L5_argtuple_error;
11524  CYTHON_FALLTHROUGH;
11525  case 1:
11526  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nDOF_trial_element)) != 0)) kw_args--;
11527  else {
11528  __Pyx_RaiseArgtupleInvalid("setWeakDirichletConditionsForLevelSet", 1, 8, 8, 1); __PYX_ERR(0, 3709, __pyx_L3_error)
11529  }
11530  CYTHON_FALLTHROUGH;
11531  case 2:
11532  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon_freeze_factor)) != 0)) kw_args--;
11533  else {
11534  __Pyx_RaiseArgtupleInvalid("setWeakDirichletConditionsForLevelSet", 1, 8, 8, 2); __PYX_ERR(0, 3709, __pyx_L3_error)
11535  }
11536  CYTHON_FALLTHROUGH;
11537  case 3:
11538  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementDiameter)) != 0)) kw_args--;
11539  else {
11540  __Pyx_RaiseArgtupleInvalid("setWeakDirichletConditionsForLevelSet", 1, 8, 8, 3); __PYX_ERR(0, 3709, __pyx_L3_error)
11541  }
11542  CYTHON_FALLTHROUGH;
11543  case 4:
11544  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_l2g)) != 0)) kw_args--;
11545  else {
11546  __Pyx_RaiseArgtupleInvalid("setWeakDirichletConditionsForLevelSet", 1, 8, 8, 4); __PYX_ERR(0, 3709, __pyx_L3_error)
11547  }
11548  CYTHON_FALLTHROUGH;
11549  case 5:
11550  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_dof)) != 0)) kw_args--;
11551  else {
11552  __Pyx_RaiseArgtupleInvalid("setWeakDirichletConditionsForLevelSet", 1, 8, 8, 5); __PYX_ERR(0, 3709, __pyx_L3_error)
11553  }
11554  CYTHON_FALLTHROUGH;
11555  case 6:
11556  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeze_nodes_tmp)) != 0)) kw_args--;
11557  else {
11558  __Pyx_RaiseArgtupleInvalid("setWeakDirichletConditionsForLevelSet", 1, 8, 8, 6); __PYX_ERR(0, 3709, __pyx_L3_error)
11559  }
11560  CYTHON_FALLTHROUGH;
11561  case 7:
11562  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weakDirichletConditionFlags)) != 0)) kw_args--;
11563  else {
11564  __Pyx_RaiseArgtupleInvalid("setWeakDirichletConditionsForLevelSet", 1, 8, 8, 7); __PYX_ERR(0, 3709, __pyx_L3_error)
11565  }
11566  }
11567  if (unlikely(kw_args > 0)) {
11568  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setWeakDirichletConditionsForLevelSet") < 0)) __PYX_ERR(0, 3709, __pyx_L3_error)
11569  }
11570  } else if (PyTuple_GET_SIZE(__pyx_args) != 8) {
11571  goto __pyx_L5_argtuple_error;
11572  } else {
11573  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11574  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11575  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11576  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11577  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11578  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
11579  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
11580  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
11581  }
11582  __pyx_v_nElements_global = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_nElements_global == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3709, __pyx_L3_error)
11583  __pyx_v_nDOF_trial_element = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_nDOF_trial_element == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3710, __pyx_L3_error)
11584  __pyx_v_epsilon_freeze_factor = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_epsilon_freeze_factor == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3711, __pyx_L3_error)
11585  __pyx_v_elementDiameter = ((PyArrayObject *)values[3]);
11586  __pyx_v_u_l2g = ((PyArrayObject *)values[4]);
11587  __pyx_v_u_dof = ((PyArrayObject *)values[5]);
11588  __pyx_v_freeze_nodes_tmp = ((PyArrayObject *)values[6]);
11589  __pyx_v_weakDirichletConditionFlags = ((PyArrayObject *)values[7]);
11590  }
11591  goto __pyx_L4_argument_unpacking_done;
11592  __pyx_L5_argtuple_error:;
11593  __Pyx_RaiseArgtupleInvalid("setWeakDirichletConditionsForLevelSet", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3709, __pyx_L3_error)
11594  __pyx_L3_error:;
11595  __Pyx_AddTraceback("ctransportCoefficients.setWeakDirichletConditionsForLevelSet", __pyx_clineno, __pyx_lineno, __pyx_filename);
11596  __Pyx_RefNannyFinishContext();
11597  return NULL;
11598  __pyx_L4_argument_unpacking_done:;
11599  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementDiameter), __pyx_ptype_5numpy_ndarray, 1, "elementDiameter", 0))) __PYX_ERR(0, 3712, __pyx_L1_error)
11600  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_l2g), __pyx_ptype_5numpy_ndarray, 1, "u_l2g", 0))) __PYX_ERR(0, 3713, __pyx_L1_error)
11601  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_dof), __pyx_ptype_5numpy_ndarray, 1, "u_dof", 0))) __PYX_ERR(0, 3714, __pyx_L1_error)
11602  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeze_nodes_tmp), __pyx_ptype_5numpy_ndarray, 1, "freeze_nodes_tmp", 0))) __PYX_ERR(0, 3715, __pyx_L1_error)
11603  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_weakDirichletConditionFlags), __pyx_ptype_5numpy_ndarray, 1, "weakDirichletConditionFlags", 0))) __PYX_ERR(0, 3716, __pyx_L1_error)
11604  __pyx_r = __pyx_pf_22ctransportCoefficients_60setWeakDirichletConditionsForLevelSet(__pyx_self, __pyx_v_nElements_global, __pyx_v_nDOF_trial_element, __pyx_v_epsilon_freeze_factor, __pyx_v_elementDiameter, __pyx_v_u_l2g, __pyx_v_u_dof, __pyx_v_freeze_nodes_tmp, __pyx_v_weakDirichletConditionFlags);
11605 
11606  /* function exit code */
11607  goto __pyx_L0;
11608  __pyx_L1_error:;
11609  __pyx_r = NULL;
11610  __pyx_L0:;
11611  __Pyx_RefNannyFinishContext();
11612  return __pyx_r;
11613 }
11614 
11615 static PyObject *__pyx_pf_22ctransportCoefficients_60setWeakDirichletConditionsForLevelSet(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nElements_global, int __pyx_v_nDOF_trial_element, double __pyx_v_epsilon_freeze_factor, PyArrayObject *__pyx_v_elementDiameter, PyArrayObject *__pyx_v_u_l2g, PyArrayObject *__pyx_v_u_dof, PyArrayObject *__pyx_v_freeze_nodes_tmp, PyArrayObject *__pyx_v_weakDirichletConditionFlags) {
11616  PyObject *__pyx_r = NULL;
11617  __Pyx_RefNannyDeclarations
11618  __Pyx_RefNannySetupContext("setWeakDirichletConditionsForLevelSet", 0);
11619 
11620  /* "ctransportCoefficients.pyx":3717
11621  * np.ndarray freeze_nodes_tmp,
11622  * np.ndarray weakDirichletConditionFlags):
11623  * csetWeakDirichletConditionsForLevelSet( nElements_global, # <<<<<<<<<<<<<<
11624  * nDOF_trial_element,
11625  * epsilon_freeze_factor,
11626  */
11627  setWeakDirichletConditionsForLevelSet(__pyx_v_nElements_global, __pyx_v_nDOF_trial_element, __pyx_v_epsilon_freeze_factor, ((double *)__pyx_v_elementDiameter->data), ((int *)__pyx_v_u_l2g->data), ((double *)__pyx_v_u_dof->data), ((int *)__pyx_v_freeze_nodes_tmp->data), ((int *)__pyx_v_weakDirichletConditionFlags->data));
11628 
11629  /* "ctransportCoefficients.pyx":3709
11630  * else:
11631  * assert 0
11632  * def setWeakDirichletConditionsForLevelSet(int nElements_global, # <<<<<<<<<<<<<<
11633  * int nDOF_trial_element,
11634  * double epsilon_freeze_factor,
11635  */
11636 
11637  /* function exit code */
11638  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11639  __Pyx_XGIVEREF(__pyx_r);
11640  __Pyx_RefNannyFinishContext();
11641  return __pyx_r;
11642 }
11643 
11644 /* "ctransportCoefficients.pyx":3725
11645  * <int*> freeze_nodes_tmp.data,
11646  * <int*> weakDirichletConditionFlags.data)
11647  * def setSimpleWeakDirichletConditionsForLevelSet(int nElements_global, # <<<<<<<<<<<<<<
11648  * int nDOF_trial_element,
11649  * double epsilon_freeze_factor,
11650  */
11651 
11652 /* Python wrapper */
11653 static PyObject *__pyx_pw_22ctransportCoefficients_63setSimpleWeakDirichletConditionsForLevelSet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
11654 static PyMethodDef __pyx_mdef_22ctransportCoefficients_63setSimpleWeakDirichletConditionsForLevelSet = {"setSimpleWeakDirichletConditionsForLevelSet", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_63setSimpleWeakDirichletConditionsForLevelSet, METH_VARARGS|METH_KEYWORDS, 0};
11655 static PyObject *__pyx_pw_22ctransportCoefficients_63setSimpleWeakDirichletConditionsForLevelSet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11656  int __pyx_v_nElements_global;
11657  int __pyx_v_nDOF_trial_element;
11658  double __pyx_v_epsilon_freeze_factor;
11659  PyArrayObject *__pyx_v_elementDiameter = 0;
11660  PyArrayObject *__pyx_v_u_l2g = 0;
11661  PyArrayObject *__pyx_v_u_dof = 0;
11662  PyArrayObject *__pyx_v_freeze_nodes_tmp = 0;
11663  PyArrayObject *__pyx_v_weakDirichletConditionFlags = 0;
11664  int __pyx_lineno = 0;
11665  const char *__pyx_filename = NULL;
11666  int __pyx_clineno = 0;
11667  PyObject *__pyx_r = 0;
11668  __Pyx_RefNannyDeclarations
11669  __Pyx_RefNannySetupContext("setSimpleWeakDirichletConditionsForLevelSet (wrapper)", 0);
11670  {
11671  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nElements_global,&__pyx_n_s_nDOF_trial_element,&__pyx_n_s_epsilon_freeze_factor,&__pyx_n_s_elementDiameter,&__pyx_n_s_u_l2g,&__pyx_n_s_u_dof,&__pyx_n_s_freeze_nodes_tmp,&__pyx_n_s_weakDirichletConditionFlags,0};
11672  PyObject* values[8] = {0,0,0,0,0,0,0,0};
11673  if (unlikely(__pyx_kwds)) {
11674  Py_ssize_t kw_args;
11675  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
11676  switch (pos_args) {
11677  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
11678  CYTHON_FALLTHROUGH;
11679  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
11680  CYTHON_FALLTHROUGH;
11681  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
11682  CYTHON_FALLTHROUGH;
11683  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11684  CYTHON_FALLTHROUGH;
11685  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11686  CYTHON_FALLTHROUGH;
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  CYTHON_FALLTHROUGH;
11691  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11692  CYTHON_FALLTHROUGH;
11693  case 0: break;
11694  default: goto __pyx_L5_argtuple_error;
11695  }
11696  kw_args = PyDict_Size(__pyx_kwds);
11697  switch (pos_args) {
11698  case 0:
11699  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_global)) != 0)) kw_args--;
11700  else goto __pyx_L5_argtuple_error;
11701  CYTHON_FALLTHROUGH;
11702  case 1:
11703  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nDOF_trial_element)) != 0)) kw_args--;
11704  else {
11705  __Pyx_RaiseArgtupleInvalid("setSimpleWeakDirichletConditionsForLevelSet", 1, 8, 8, 1); __PYX_ERR(0, 3725, __pyx_L3_error)
11706  }
11707  CYTHON_FALLTHROUGH;
11708  case 2:
11709  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon_freeze_factor)) != 0)) kw_args--;
11710  else {
11711  __Pyx_RaiseArgtupleInvalid("setSimpleWeakDirichletConditionsForLevelSet", 1, 8, 8, 2); __PYX_ERR(0, 3725, __pyx_L3_error)
11712  }
11713  CYTHON_FALLTHROUGH;
11714  case 3:
11715  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementDiameter)) != 0)) kw_args--;
11716  else {
11717  __Pyx_RaiseArgtupleInvalid("setSimpleWeakDirichletConditionsForLevelSet", 1, 8, 8, 3); __PYX_ERR(0, 3725, __pyx_L3_error)
11718  }
11719  CYTHON_FALLTHROUGH;
11720  case 4:
11721  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_l2g)) != 0)) kw_args--;
11722  else {
11723  __Pyx_RaiseArgtupleInvalid("setSimpleWeakDirichletConditionsForLevelSet", 1, 8, 8, 4); __PYX_ERR(0, 3725, __pyx_L3_error)
11724  }
11725  CYTHON_FALLTHROUGH;
11726  case 5:
11727  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_dof)) != 0)) kw_args--;
11728  else {
11729  __Pyx_RaiseArgtupleInvalid("setSimpleWeakDirichletConditionsForLevelSet", 1, 8, 8, 5); __PYX_ERR(0, 3725, __pyx_L3_error)
11730  }
11731  CYTHON_FALLTHROUGH;
11732  case 6:
11733  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeze_nodes_tmp)) != 0)) kw_args--;
11734  else {
11735  __Pyx_RaiseArgtupleInvalid("setSimpleWeakDirichletConditionsForLevelSet", 1, 8, 8, 6); __PYX_ERR(0, 3725, __pyx_L3_error)
11736  }
11737  CYTHON_FALLTHROUGH;
11738  case 7:
11739  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weakDirichletConditionFlags)) != 0)) kw_args--;
11740  else {
11741  __Pyx_RaiseArgtupleInvalid("setSimpleWeakDirichletConditionsForLevelSet", 1, 8, 8, 7); __PYX_ERR(0, 3725, __pyx_L3_error)
11742  }
11743  }
11744  if (unlikely(kw_args > 0)) {
11745  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setSimpleWeakDirichletConditionsForLevelSet") < 0)) __PYX_ERR(0, 3725, __pyx_L3_error)
11746  }
11747  } else if (PyTuple_GET_SIZE(__pyx_args) != 8) {
11748  goto __pyx_L5_argtuple_error;
11749  } else {
11750  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11751  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11752  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11753  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11754  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11755  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
11756  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
11757  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
11758  }
11759  __pyx_v_nElements_global = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_nElements_global == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3725, __pyx_L3_error)
11760  __pyx_v_nDOF_trial_element = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_nDOF_trial_element == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3726, __pyx_L3_error)
11761  __pyx_v_epsilon_freeze_factor = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_epsilon_freeze_factor == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3727, __pyx_L3_error)
11762  __pyx_v_elementDiameter = ((PyArrayObject *)values[3]);
11763  __pyx_v_u_l2g = ((PyArrayObject *)values[4]);
11764  __pyx_v_u_dof = ((PyArrayObject *)values[5]);
11765  __pyx_v_freeze_nodes_tmp = ((PyArrayObject *)values[6]);
11766  __pyx_v_weakDirichletConditionFlags = ((PyArrayObject *)values[7]);
11767  }
11768  goto __pyx_L4_argument_unpacking_done;
11769  __pyx_L5_argtuple_error:;
11770  __Pyx_RaiseArgtupleInvalid("setSimpleWeakDirichletConditionsForLevelSet", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3725, __pyx_L3_error)
11771  __pyx_L3_error:;
11772  __Pyx_AddTraceback("ctransportCoefficients.setSimpleWeakDirichletConditionsForLevelSet", __pyx_clineno, __pyx_lineno, __pyx_filename);
11773  __Pyx_RefNannyFinishContext();
11774  return NULL;
11775  __pyx_L4_argument_unpacking_done:;
11776  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementDiameter), __pyx_ptype_5numpy_ndarray, 1, "elementDiameter", 0))) __PYX_ERR(0, 3728, __pyx_L1_error)
11777  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_l2g), __pyx_ptype_5numpy_ndarray, 1, "u_l2g", 0))) __PYX_ERR(0, 3729, __pyx_L1_error)
11778  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_dof), __pyx_ptype_5numpy_ndarray, 1, "u_dof", 0))) __PYX_ERR(0, 3730, __pyx_L1_error)
11779  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeze_nodes_tmp), __pyx_ptype_5numpy_ndarray, 1, "freeze_nodes_tmp", 0))) __PYX_ERR(0, 3731, __pyx_L1_error)
11780  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_weakDirichletConditionFlags), __pyx_ptype_5numpy_ndarray, 1, "weakDirichletConditionFlags", 0))) __PYX_ERR(0, 3732, __pyx_L1_error)
11781  __pyx_r = __pyx_pf_22ctransportCoefficients_62setSimpleWeakDirichletConditionsForLevelSet(__pyx_self, __pyx_v_nElements_global, __pyx_v_nDOF_trial_element, __pyx_v_epsilon_freeze_factor, __pyx_v_elementDiameter, __pyx_v_u_l2g, __pyx_v_u_dof, __pyx_v_freeze_nodes_tmp, __pyx_v_weakDirichletConditionFlags);
11782 
11783  /* function exit code */
11784  goto __pyx_L0;
11785  __pyx_L1_error:;
11786  __pyx_r = NULL;
11787  __pyx_L0:;
11788  __Pyx_RefNannyFinishContext();
11789  return __pyx_r;
11790 }
11791 
11792 static PyObject *__pyx_pf_22ctransportCoefficients_62setSimpleWeakDirichletConditionsForLevelSet(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nElements_global, int __pyx_v_nDOF_trial_element, double __pyx_v_epsilon_freeze_factor, PyArrayObject *__pyx_v_elementDiameter, PyArrayObject *__pyx_v_u_l2g, PyArrayObject *__pyx_v_u_dof, PyArrayObject *__pyx_v_freeze_nodes_tmp, PyArrayObject *__pyx_v_weakDirichletConditionFlags) {
11793  PyObject *__pyx_r = NULL;
11794  __Pyx_RefNannyDeclarations
11795  __Pyx_RefNannySetupContext("setSimpleWeakDirichletConditionsForLevelSet", 0);
11796 
11797  /* "ctransportCoefficients.pyx":3733
11798  * np.ndarray freeze_nodes_tmp,
11799  * np.ndarray weakDirichletConditionFlags):
11800  * csetSimpleWeakDirichletConditionsForLevelSet( nElements_global, # <<<<<<<<<<<<<<
11801  * nDOF_trial_element,
11802  * epsilon_freeze_factor,
11803  */
11804  setSimpleWeakDirichletConditionsForLevelSet(__pyx_v_nElements_global, __pyx_v_nDOF_trial_element, __pyx_v_epsilon_freeze_factor, ((double *)__pyx_v_elementDiameter->data), ((int *)__pyx_v_u_l2g->data), ((double *)__pyx_v_u_dof->data), ((int *)__pyx_v_freeze_nodes_tmp->data), ((int *)__pyx_v_weakDirichletConditionFlags->data));
11805 
11806  /* "ctransportCoefficients.pyx":3725
11807  * <int*> freeze_nodes_tmp.data,
11808  * <int*> weakDirichletConditionFlags.data)
11809  * def setSimpleWeakDirichletConditionsForLevelSet(int nElements_global, # <<<<<<<<<<<<<<
11810  * int nDOF_trial_element,
11811  * double epsilon_freeze_factor,
11812  */
11813 
11814  /* function exit code */
11815  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11816  __Pyx_XGIVEREF(__pyx_r);
11817  __Pyx_RefNannyFinishContext();
11818  return __pyx_r;
11819 }
11820 
11821 /* "ctransportCoefficients.pyx":3741
11822  * <int*> freeze_nodes_tmp.data,
11823  * <int*> weakDirichletConditionFlags.data)
11824  * def darcySharpInterfaceFlowEvaluate(double Km, # <<<<<<<<<<<<<<
11825  * double rhoM,
11826  * double Kp,
11827  */
11828 
11829 /* Python wrapper */
11830 static PyObject *__pyx_pw_22ctransportCoefficients_65darcySharpInterfaceFlowEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
11831 static PyMethodDef __pyx_mdef_22ctransportCoefficients_65darcySharpInterfaceFlowEvaluate = {"darcySharpInterfaceFlowEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_65darcySharpInterfaceFlowEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
11832 static PyObject *__pyx_pw_22ctransportCoefficients_65darcySharpInterfaceFlowEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11833  double __pyx_v_Km;
11834  double __pyx_v_rhoM;
11835  double __pyx_v_Kp;
11836  double __pyx_v_rhoP;
11837  double __pyx_v_eps;
11838  PyArrayObject *__pyx_v_gravity_u = 0;
11839  PyArrayObject *__pyx_v_u = 0;
11840  PyArrayObject *__pyx_v_gradu = 0;
11841  PyArrayObject *__pyx_v_u_levelSet = 0;
11842  PyArrayObject *__pyx_v_phi_pot = 0;
11843  PyArrayObject *__pyx_v_a = 0;
11844  PyArrayObject *__pyx_v_f = 0;
11845  PyArrayObject *__pyx_v_r = 0;
11846  PyArrayObject *__pyx_v_m = 0;
11847  PyArrayObject *__pyx_v_dphi_pot = 0;
11848  PyArrayObject *__pyx_v_da = 0;
11849  PyArrayObject *__pyx_v_df = 0;
11850  PyArrayObject *__pyx_v_dr = 0;
11851  PyArrayObject *__pyx_v_dm = 0;
11852  int __pyx_lineno = 0;
11853  const char *__pyx_filename = NULL;
11854  int __pyx_clineno = 0;
11855  PyObject *__pyx_r = 0;
11856  __Pyx_RefNannyDeclarations
11857  __Pyx_RefNannySetupContext("darcySharpInterfaceFlowEvaluate (wrapper)", 0);
11858  {
11859  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_Km,&__pyx_n_s_rhoM,&__pyx_n_s_Kp,&__pyx_n_s_rhoP,&__pyx_n_s_eps,&__pyx_n_s_gravity_u,&__pyx_n_s_u,&__pyx_n_s_gradu,&__pyx_n_s_u_levelSet,&__pyx_n_s_phi_pot,&__pyx_n_s_a,&__pyx_n_s_f,&__pyx_n_s_r,&__pyx_n_s_m,&__pyx_n_s_dphi_pot,&__pyx_n_s_da,&__pyx_n_s_df,&__pyx_n_s_dr,&__pyx_n_s_dm,0};
11860  PyObject* values[19] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
11861  if (unlikely(__pyx_kwds)) {
11862  Py_ssize_t kw_args;
11863  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
11864  switch (pos_args) {
11865  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
11866  CYTHON_FALLTHROUGH;
11867  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
11868  CYTHON_FALLTHROUGH;
11869  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
11870  CYTHON_FALLTHROUGH;
11871  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
11872  CYTHON_FALLTHROUGH;
11873  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
11874  CYTHON_FALLTHROUGH;
11875  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
11876  CYTHON_FALLTHROUGH;
11877  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
11878  CYTHON_FALLTHROUGH;
11879  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
11880  CYTHON_FALLTHROUGH;
11881  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
11882  CYTHON_FALLTHROUGH;
11883  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
11884  CYTHON_FALLTHROUGH;
11885  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
11886  CYTHON_FALLTHROUGH;
11887  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
11888  CYTHON_FALLTHROUGH;
11889  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
11890  CYTHON_FALLTHROUGH;
11891  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
11892  CYTHON_FALLTHROUGH;
11893  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11894  CYTHON_FALLTHROUGH;
11895  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11896  CYTHON_FALLTHROUGH;
11897  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11898  CYTHON_FALLTHROUGH;
11899  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11900  CYTHON_FALLTHROUGH;
11901  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11902  CYTHON_FALLTHROUGH;
11903  case 0: break;
11904  default: goto __pyx_L5_argtuple_error;
11905  }
11906  kw_args = PyDict_Size(__pyx_kwds);
11907  switch (pos_args) {
11908  case 0:
11909  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Km)) != 0)) kw_args--;
11910  else goto __pyx_L5_argtuple_error;
11911  CYTHON_FALLTHROUGH;
11912  case 1:
11913  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rhoM)) != 0)) kw_args--;
11914  else {
11915  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowEvaluate", 1, 19, 19, 1); __PYX_ERR(0, 3741, __pyx_L3_error)
11916  }
11917  CYTHON_FALLTHROUGH;
11918  case 2:
11919  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Kp)) != 0)) kw_args--;
11920  else {
11921  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowEvaluate", 1, 19, 19, 2); __PYX_ERR(0, 3741, __pyx_L3_error)
11922  }
11923  CYTHON_FALLTHROUGH;
11924  case 3:
11925  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rhoP)) != 0)) kw_args--;
11926  else {
11927  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowEvaluate", 1, 19, 19, 3); __PYX_ERR(0, 3741, __pyx_L3_error)
11928  }
11929  CYTHON_FALLTHROUGH;
11930  case 4:
11931  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
11932  else {
11933  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowEvaluate", 1, 19, 19, 4); __PYX_ERR(0, 3741, __pyx_L3_error)
11934  }
11935  CYTHON_FALLTHROUGH;
11936  case 5:
11937  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity_u)) != 0)) kw_args--;
11938  else {
11939  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowEvaluate", 1, 19, 19, 5); __PYX_ERR(0, 3741, __pyx_L3_error)
11940  }
11941  CYTHON_FALLTHROUGH;
11942  case 6:
11943  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
11944  else {
11945  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowEvaluate", 1, 19, 19, 6); __PYX_ERR(0, 3741, __pyx_L3_error)
11946  }
11947  CYTHON_FALLTHROUGH;
11948  case 7:
11949  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
11950  else {
11951  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowEvaluate", 1, 19, 19, 7); __PYX_ERR(0, 3741, __pyx_L3_error)
11952  }
11953  CYTHON_FALLTHROUGH;
11954  case 8:
11955  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_levelSet)) != 0)) kw_args--;
11956  else {
11957  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowEvaluate", 1, 19, 19, 8); __PYX_ERR(0, 3741, __pyx_L3_error)
11958  }
11959  CYTHON_FALLTHROUGH;
11960  case 9:
11961  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_pot)) != 0)) kw_args--;
11962  else {
11963  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowEvaluate", 1, 19, 19, 9); __PYX_ERR(0, 3741, __pyx_L3_error)
11964  }
11965  CYTHON_FALLTHROUGH;
11966  case 10:
11967  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
11968  else {
11969  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowEvaluate", 1, 19, 19, 10); __PYX_ERR(0, 3741, __pyx_L3_error)
11970  }
11971  CYTHON_FALLTHROUGH;
11972  case 11:
11973  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
11974  else {
11975  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowEvaluate", 1, 19, 19, 11); __PYX_ERR(0, 3741, __pyx_L3_error)
11976  }
11977  CYTHON_FALLTHROUGH;
11978  case 12:
11979  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
11980  else {
11981  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowEvaluate", 1, 19, 19, 12); __PYX_ERR(0, 3741, __pyx_L3_error)
11982  }
11983  CYTHON_FALLTHROUGH;
11984  case 13:
11985  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
11986  else {
11987  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowEvaluate", 1, 19, 19, 13); __PYX_ERR(0, 3741, __pyx_L3_error)
11988  }
11989  CYTHON_FALLTHROUGH;
11990  case 14:
11991  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_pot)) != 0)) kw_args--;
11992  else {
11993  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowEvaluate", 1, 19, 19, 14); __PYX_ERR(0, 3741, __pyx_L3_error)
11994  }
11995  CYTHON_FALLTHROUGH;
11996  case 15:
11997  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
11998  else {
11999  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowEvaluate", 1, 19, 19, 15); __PYX_ERR(0, 3741, __pyx_L3_error)
12000  }
12001  CYTHON_FALLTHROUGH;
12002  case 16:
12003  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
12004  else {
12005  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowEvaluate", 1, 19, 19, 16); __PYX_ERR(0, 3741, __pyx_L3_error)
12006  }
12007  CYTHON_FALLTHROUGH;
12008  case 17:
12009  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
12010  else {
12011  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowEvaluate", 1, 19, 19, 17); __PYX_ERR(0, 3741, __pyx_L3_error)
12012  }
12013  CYTHON_FALLTHROUGH;
12014  case 18:
12015  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
12016  else {
12017  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowEvaluate", 1, 19, 19, 18); __PYX_ERR(0, 3741, __pyx_L3_error)
12018  }
12019  }
12020  if (unlikely(kw_args > 0)) {
12021  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "darcySharpInterfaceFlowEvaluate") < 0)) __PYX_ERR(0, 3741, __pyx_L3_error)
12022  }
12023  } else if (PyTuple_GET_SIZE(__pyx_args) != 19) {
12024  goto __pyx_L5_argtuple_error;
12025  } else {
12026  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12027  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12028  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12029  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
12030  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
12031  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
12032  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
12033  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
12034  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
12035  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
12036  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
12037  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
12038  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
12039  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
12040  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
12041  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
12042  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
12043  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
12044  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
12045  }
12046  __pyx_v_Km = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_Km == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3741, __pyx_L3_error)
12047  __pyx_v_rhoM = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_rhoM == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3742, __pyx_L3_error)
12048  __pyx_v_Kp = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_Kp == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3743, __pyx_L3_error)
12049  __pyx_v_rhoP = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_rhoP == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3744, __pyx_L3_error)
12050  __pyx_v_eps = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3745, __pyx_L3_error)
12051  __pyx_v_gravity_u = ((PyArrayObject *)values[5]);
12052  __pyx_v_u = ((PyArrayObject *)values[6]);
12053  __pyx_v_gradu = ((PyArrayObject *)values[7]);
12054  __pyx_v_u_levelSet = ((PyArrayObject *)values[8]);
12055  __pyx_v_phi_pot = ((PyArrayObject *)values[9]);
12056  __pyx_v_a = ((PyArrayObject *)values[10]);
12057  __pyx_v_f = ((PyArrayObject *)values[11]);
12058  __pyx_v_r = ((PyArrayObject *)values[12]);
12059  __pyx_v_m = ((PyArrayObject *)values[13]);
12060  __pyx_v_dphi_pot = ((PyArrayObject *)values[14]);
12061  __pyx_v_da = ((PyArrayObject *)values[15]);
12062  __pyx_v_df = ((PyArrayObject *)values[16]);
12063  __pyx_v_dr = ((PyArrayObject *)values[17]);
12064  __pyx_v_dm = ((PyArrayObject *)values[18]);
12065  }
12066  goto __pyx_L4_argument_unpacking_done;
12067  __pyx_L5_argtuple_error:;
12068  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowEvaluate", 1, 19, 19, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3741, __pyx_L3_error)
12069  __pyx_L3_error:;
12070  __Pyx_AddTraceback("ctransportCoefficients.darcySharpInterfaceFlowEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
12071  __Pyx_RefNannyFinishContext();
12072  return NULL;
12073  __pyx_L4_argument_unpacking_done:;
12074  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity_u), __pyx_ptype_5numpy_ndarray, 1, "gravity_u", 0))) __PYX_ERR(0, 3746, __pyx_L1_error)
12075  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3747, __pyx_L1_error)
12076  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1, "gradu", 0))) __PYX_ERR(0, 3748, __pyx_L1_error)
12077  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_levelSet), __pyx_ptype_5numpy_ndarray, 1, "u_levelSet", 0))) __PYX_ERR(0, 3749, __pyx_L1_error)
12078  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_pot), __pyx_ptype_5numpy_ndarray, 1, "phi_pot", 0))) __PYX_ERR(0, 3750, __pyx_L1_error)
12079  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 3751, __pyx_L1_error)
12080  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 3752, __pyx_L1_error)
12081  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1, "r", 0))) __PYX_ERR(0, 3753, __pyx_L1_error)
12082  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 3754, __pyx_L1_error)
12083  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_pot), __pyx_ptype_5numpy_ndarray, 1, "dphi_pot", 0))) __PYX_ERR(0, 3755, __pyx_L1_error)
12084  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 3756, __pyx_L1_error)
12085  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 3757, __pyx_L1_error)
12086  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1, "dr", 0))) __PYX_ERR(0, 3758, __pyx_L1_error)
12087  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 3759, __pyx_L1_error)
12088  __pyx_r = __pyx_pf_22ctransportCoefficients_64darcySharpInterfaceFlowEvaluate(__pyx_self, __pyx_v_Km, __pyx_v_rhoM, __pyx_v_Kp, __pyx_v_rhoP, __pyx_v_eps, __pyx_v_gravity_u, __pyx_v_u, __pyx_v_gradu, __pyx_v_u_levelSet, __pyx_v_phi_pot, __pyx_v_a, __pyx_v_f, __pyx_v_r, __pyx_v_m, __pyx_v_dphi_pot, __pyx_v_da, __pyx_v_df, __pyx_v_dr, __pyx_v_dm);
12089 
12090  /* function exit code */
12091  goto __pyx_L0;
12092  __pyx_L1_error:;
12093  __pyx_r = NULL;
12094  __pyx_L0:;
12095  __Pyx_RefNannyFinishContext();
12096  return __pyx_r;
12097 }
12098 
12099 static PyObject *__pyx_pf_22ctransportCoefficients_64darcySharpInterfaceFlowEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_Km, double __pyx_v_rhoM, double __pyx_v_Kp, double __pyx_v_rhoP, double __pyx_v_eps, PyArrayObject *__pyx_v_gravity_u, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_u_levelSet, PyArrayObject *__pyx_v_phi_pot, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dphi_pot, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_dr, PyArrayObject *__pyx_v_dm) {
12100  PyObject *__pyx_r = NULL;
12101  __Pyx_RefNannyDeclarations
12102  PyObject *__pyx_t_1 = NULL;
12103  int __pyx_t_2;
12104  int __pyx_lineno = 0;
12105  const char *__pyx_filename = NULL;
12106  int __pyx_clineno = 0;
12107  __Pyx_RefNannySetupContext("darcySharpInterfaceFlowEvaluate", 0);
12108 
12109  /* "ctransportCoefficients.pyx":3760
12110  * np.ndarray dr,
12111  * np.ndarray dm):
12112  * cdarcySharpInterfaceFlowEvaluate(u.size, # <<<<<<<<<<<<<<
12113  * f.shape[f.ndim-1],
12114  * Km,
12115  */
12116  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3760, __pyx_L1_error)
12117  __Pyx_GOTREF(__pyx_t_1);
12118  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3760, __pyx_L1_error)
12119  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
12120 
12121  /* "ctransportCoefficients.pyx":3780
12122  * <double*> df.data,
12123  * <double*> dr.data,
12124  * <double*> dm.data) # <<<<<<<<<<<<<<
12125  * def darcySharpInterfaceFlowImEvaluate(double Km,
12126  * double rhoM,
12127  */
12128  darcySharpInterfaceFlowEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_Km, __pyx_v_rhoM, __pyx_v_Kp, __pyx_v_rhoP, __pyx_v_eps, ((double *)__pyx_v_gravity_u->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_gradu->data), ((double *)__pyx_v_u_levelSet->data), ((double *)__pyx_v_phi_pot->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_r->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dphi_pot->data), ((double *)__pyx_v_da->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_dr->data), ((double *)__pyx_v_dm->data));
12129 
12130  /* "ctransportCoefficients.pyx":3741
12131  * <int*> freeze_nodes_tmp.data,
12132  * <int*> weakDirichletConditionFlags.data)
12133  * def darcySharpInterfaceFlowEvaluate(double Km, # <<<<<<<<<<<<<<
12134  * double rhoM,
12135  * double Kp,
12136  */
12137 
12138  /* function exit code */
12139  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12140  goto __pyx_L0;
12141  __pyx_L1_error:;
12142  __Pyx_XDECREF(__pyx_t_1);
12143  __Pyx_AddTraceback("ctransportCoefficients.darcySharpInterfaceFlowEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
12144  __pyx_r = NULL;
12145  __pyx_L0:;
12146  __Pyx_XGIVEREF(__pyx_r);
12147  __Pyx_RefNannyFinishContext();
12148  return __pyx_r;
12149 }
12150 
12151 /* "ctransportCoefficients.pyx":3781
12152  * <double*> dr.data,
12153  * <double*> dm.data)
12154  * def darcySharpInterfaceFlowImEvaluate(double Km, # <<<<<<<<<<<<<<
12155  * double rhoM,
12156  * double Kp,
12157  */
12158 
12159 /* Python wrapper */
12160 static PyObject *__pyx_pw_22ctransportCoefficients_67darcySharpInterfaceFlowImEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
12161 static PyMethodDef __pyx_mdef_22ctransportCoefficients_67darcySharpInterfaceFlowImEvaluate = {"darcySharpInterfaceFlowImEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_67darcySharpInterfaceFlowImEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
12162 static PyObject *__pyx_pw_22ctransportCoefficients_67darcySharpInterfaceFlowImEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
12163  double __pyx_v_Km;
12164  double __pyx_v_rhoM;
12165  double __pyx_v_Kp;
12166  double __pyx_v_rhoP;
12167  double __pyx_v_eps;
12168  PyArrayObject *__pyx_v_gravity_u = 0;
12169  PyArrayObject *__pyx_v_u = 0;
12170  PyArrayObject *__pyx_v_gradu = 0;
12171  PyArrayObject *__pyx_v_u_levelSet = 0;
12172  PyArrayObject *__pyx_v_phi_pot = 0;
12173  PyArrayObject *__pyx_v_a = 0;
12174  PyArrayObject *__pyx_v_f = 0;
12175  PyArrayObject *__pyx_v_r = 0;
12176  PyArrayObject *__pyx_v_m = 0;
12177  PyArrayObject *__pyx_v_dphi_pot = 0;
12178  PyArrayObject *__pyx_v_da = 0;
12179  PyArrayObject *__pyx_v_df = 0;
12180  PyArrayObject *__pyx_v_dr = 0;
12181  PyArrayObject *__pyx_v_dm = 0;
12182  int __pyx_lineno = 0;
12183  const char *__pyx_filename = NULL;
12184  int __pyx_clineno = 0;
12185  PyObject *__pyx_r = 0;
12186  __Pyx_RefNannyDeclarations
12187  __Pyx_RefNannySetupContext("darcySharpInterfaceFlowImEvaluate (wrapper)", 0);
12188  {
12189  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_Km,&__pyx_n_s_rhoM,&__pyx_n_s_Kp,&__pyx_n_s_rhoP,&__pyx_n_s_eps,&__pyx_n_s_gravity_u,&__pyx_n_s_u,&__pyx_n_s_gradu,&__pyx_n_s_u_levelSet,&__pyx_n_s_phi_pot,&__pyx_n_s_a,&__pyx_n_s_f,&__pyx_n_s_r,&__pyx_n_s_m,&__pyx_n_s_dphi_pot,&__pyx_n_s_da,&__pyx_n_s_df,&__pyx_n_s_dr,&__pyx_n_s_dm,0};
12190  PyObject* values[19] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
12191  if (unlikely(__pyx_kwds)) {
12192  Py_ssize_t kw_args;
12193  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
12194  switch (pos_args) {
12195  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
12196  CYTHON_FALLTHROUGH;
12197  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
12198  CYTHON_FALLTHROUGH;
12199  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
12200  CYTHON_FALLTHROUGH;
12201  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
12202  CYTHON_FALLTHROUGH;
12203  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
12204  CYTHON_FALLTHROUGH;
12205  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
12206  CYTHON_FALLTHROUGH;
12207  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
12208  CYTHON_FALLTHROUGH;
12209  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
12210  CYTHON_FALLTHROUGH;
12211  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
12212  CYTHON_FALLTHROUGH;
12213  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
12214  CYTHON_FALLTHROUGH;
12215  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
12216  CYTHON_FALLTHROUGH;
12217  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
12218  CYTHON_FALLTHROUGH;
12219  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
12220  CYTHON_FALLTHROUGH;
12221  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
12222  CYTHON_FALLTHROUGH;
12223  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
12224  CYTHON_FALLTHROUGH;
12225  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
12226  CYTHON_FALLTHROUGH;
12227  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12228  CYTHON_FALLTHROUGH;
12229  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12230  CYTHON_FALLTHROUGH;
12231  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12232  CYTHON_FALLTHROUGH;
12233  case 0: break;
12234  default: goto __pyx_L5_argtuple_error;
12235  }
12236  kw_args = PyDict_Size(__pyx_kwds);
12237  switch (pos_args) {
12238  case 0:
12239  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Km)) != 0)) kw_args--;
12240  else goto __pyx_L5_argtuple_error;
12241  CYTHON_FALLTHROUGH;
12242  case 1:
12243  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rhoM)) != 0)) kw_args--;
12244  else {
12245  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 1); __PYX_ERR(0, 3781, __pyx_L3_error)
12246  }
12247  CYTHON_FALLTHROUGH;
12248  case 2:
12249  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Kp)) != 0)) kw_args--;
12250  else {
12251  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 2); __PYX_ERR(0, 3781, __pyx_L3_error)
12252  }
12253  CYTHON_FALLTHROUGH;
12254  case 3:
12255  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rhoP)) != 0)) kw_args--;
12256  else {
12257  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 3); __PYX_ERR(0, 3781, __pyx_L3_error)
12258  }
12259  CYTHON_FALLTHROUGH;
12260  case 4:
12261  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
12262  else {
12263  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 4); __PYX_ERR(0, 3781, __pyx_L3_error)
12264  }
12265  CYTHON_FALLTHROUGH;
12266  case 5:
12267  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity_u)) != 0)) kw_args--;
12268  else {
12269  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 5); __PYX_ERR(0, 3781, __pyx_L3_error)
12270  }
12271  CYTHON_FALLTHROUGH;
12272  case 6:
12273  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
12274  else {
12275  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 6); __PYX_ERR(0, 3781, __pyx_L3_error)
12276  }
12277  CYTHON_FALLTHROUGH;
12278  case 7:
12279  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
12280  else {
12281  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 7); __PYX_ERR(0, 3781, __pyx_L3_error)
12282  }
12283  CYTHON_FALLTHROUGH;
12284  case 8:
12285  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_levelSet)) != 0)) kw_args--;
12286  else {
12287  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 8); __PYX_ERR(0, 3781, __pyx_L3_error)
12288  }
12289  CYTHON_FALLTHROUGH;
12290  case 9:
12291  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_pot)) != 0)) kw_args--;
12292  else {
12293  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 9); __PYX_ERR(0, 3781, __pyx_L3_error)
12294  }
12295  CYTHON_FALLTHROUGH;
12296  case 10:
12297  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
12298  else {
12299  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 10); __PYX_ERR(0, 3781, __pyx_L3_error)
12300  }
12301  CYTHON_FALLTHROUGH;
12302  case 11:
12303  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
12304  else {
12305  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 11); __PYX_ERR(0, 3781, __pyx_L3_error)
12306  }
12307  CYTHON_FALLTHROUGH;
12308  case 12:
12309  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
12310  else {
12311  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 12); __PYX_ERR(0, 3781, __pyx_L3_error)
12312  }
12313  CYTHON_FALLTHROUGH;
12314  case 13:
12315  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
12316  else {
12317  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 13); __PYX_ERR(0, 3781, __pyx_L3_error)
12318  }
12319  CYTHON_FALLTHROUGH;
12320  case 14:
12321  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_pot)) != 0)) kw_args--;
12322  else {
12323  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 14); __PYX_ERR(0, 3781, __pyx_L3_error)
12324  }
12325  CYTHON_FALLTHROUGH;
12326  case 15:
12327  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
12328  else {
12329  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 15); __PYX_ERR(0, 3781, __pyx_L3_error)
12330  }
12331  CYTHON_FALLTHROUGH;
12332  case 16:
12333  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
12334  else {
12335  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 16); __PYX_ERR(0, 3781, __pyx_L3_error)
12336  }
12337  CYTHON_FALLTHROUGH;
12338  case 17:
12339  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
12340  else {
12341  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 17); __PYX_ERR(0, 3781, __pyx_L3_error)
12342  }
12343  CYTHON_FALLTHROUGH;
12344  case 18:
12345  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
12346  else {
12347  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 18); __PYX_ERR(0, 3781, __pyx_L3_error)
12348  }
12349  }
12350  if (unlikely(kw_args > 0)) {
12351  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "darcySharpInterfaceFlowImEvaluate") < 0)) __PYX_ERR(0, 3781, __pyx_L3_error)
12352  }
12353  } else if (PyTuple_GET_SIZE(__pyx_args) != 19) {
12354  goto __pyx_L5_argtuple_error;
12355  } else {
12356  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12357  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12358  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12359  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
12360  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
12361  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
12362  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
12363  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
12364  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
12365  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
12366  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
12367  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
12368  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
12369  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
12370  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
12371  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
12372  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
12373  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
12374  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
12375  }
12376  __pyx_v_Km = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_Km == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3781, __pyx_L3_error)
12377  __pyx_v_rhoM = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_rhoM == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3782, __pyx_L3_error)
12378  __pyx_v_Kp = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_Kp == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3783, __pyx_L3_error)
12379  __pyx_v_rhoP = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_rhoP == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3784, __pyx_L3_error)
12380  __pyx_v_eps = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3785, __pyx_L3_error)
12381  __pyx_v_gravity_u = ((PyArrayObject *)values[5]);
12382  __pyx_v_u = ((PyArrayObject *)values[6]);
12383  __pyx_v_gradu = ((PyArrayObject *)values[7]);
12384  __pyx_v_u_levelSet = ((PyArrayObject *)values[8]);
12385  __pyx_v_phi_pot = ((PyArrayObject *)values[9]);
12386  __pyx_v_a = ((PyArrayObject *)values[10]);
12387  __pyx_v_f = ((PyArrayObject *)values[11]);
12388  __pyx_v_r = ((PyArrayObject *)values[12]);
12389  __pyx_v_m = ((PyArrayObject *)values[13]);
12390  __pyx_v_dphi_pot = ((PyArrayObject *)values[14]);
12391  __pyx_v_da = ((PyArrayObject *)values[15]);
12392  __pyx_v_df = ((PyArrayObject *)values[16]);
12393  __pyx_v_dr = ((PyArrayObject *)values[17]);
12394  __pyx_v_dm = ((PyArrayObject *)values[18]);
12395  }
12396  goto __pyx_L4_argument_unpacking_done;
12397  __pyx_L5_argtuple_error:;
12398  __Pyx_RaiseArgtupleInvalid("darcySharpInterfaceFlowImEvaluate", 1, 19, 19, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3781, __pyx_L3_error)
12399  __pyx_L3_error:;
12400  __Pyx_AddTraceback("ctransportCoefficients.darcySharpInterfaceFlowImEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
12401  __Pyx_RefNannyFinishContext();
12402  return NULL;
12403  __pyx_L4_argument_unpacking_done:;
12404  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity_u), __pyx_ptype_5numpy_ndarray, 1, "gravity_u", 0))) __PYX_ERR(0, 3786, __pyx_L1_error)
12405  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3787, __pyx_L1_error)
12406  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1, "gradu", 0))) __PYX_ERR(0, 3788, __pyx_L1_error)
12407  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_levelSet), __pyx_ptype_5numpy_ndarray, 1, "u_levelSet", 0))) __PYX_ERR(0, 3789, __pyx_L1_error)
12408  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_pot), __pyx_ptype_5numpy_ndarray, 1, "phi_pot", 0))) __PYX_ERR(0, 3790, __pyx_L1_error)
12409  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 3791, __pyx_L1_error)
12410  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 3792, __pyx_L1_error)
12411  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1, "r", 0))) __PYX_ERR(0, 3793, __pyx_L1_error)
12412  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 3794, __pyx_L1_error)
12413  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_pot), __pyx_ptype_5numpy_ndarray, 1, "dphi_pot", 0))) __PYX_ERR(0, 3795, __pyx_L1_error)
12414  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 3796, __pyx_L1_error)
12415  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 3797, __pyx_L1_error)
12416  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1, "dr", 0))) __PYX_ERR(0, 3798, __pyx_L1_error)
12417  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 3799, __pyx_L1_error)
12418  __pyx_r = __pyx_pf_22ctransportCoefficients_66darcySharpInterfaceFlowImEvaluate(__pyx_self, __pyx_v_Km, __pyx_v_rhoM, __pyx_v_Kp, __pyx_v_rhoP, __pyx_v_eps, __pyx_v_gravity_u, __pyx_v_u, __pyx_v_gradu, __pyx_v_u_levelSet, __pyx_v_phi_pot, __pyx_v_a, __pyx_v_f, __pyx_v_r, __pyx_v_m, __pyx_v_dphi_pot, __pyx_v_da, __pyx_v_df, __pyx_v_dr, __pyx_v_dm);
12419 
12420  /* function exit code */
12421  goto __pyx_L0;
12422  __pyx_L1_error:;
12423  __pyx_r = NULL;
12424  __pyx_L0:;
12425  __Pyx_RefNannyFinishContext();
12426  return __pyx_r;
12427 }
12428 
12429 static PyObject *__pyx_pf_22ctransportCoefficients_66darcySharpInterfaceFlowImEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_Km, double __pyx_v_rhoM, double __pyx_v_Kp, double __pyx_v_rhoP, double __pyx_v_eps, PyArrayObject *__pyx_v_gravity_u, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_u_levelSet, PyArrayObject *__pyx_v_phi_pot, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dphi_pot, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_dr, PyArrayObject *__pyx_v_dm) {
12430  PyObject *__pyx_r = NULL;
12431  __Pyx_RefNannyDeclarations
12432  PyObject *__pyx_t_1 = NULL;
12433  int __pyx_t_2;
12434  int __pyx_lineno = 0;
12435  const char *__pyx_filename = NULL;
12436  int __pyx_clineno = 0;
12437  __Pyx_RefNannySetupContext("darcySharpInterfaceFlowImEvaluate", 0);
12438 
12439  /* "ctransportCoefficients.pyx":3800
12440  * np.ndarray dr,
12441  * np.ndarray dm):
12442  * cdarcySharpInterfaceFlowImEvaluate(u.size, # <<<<<<<<<<<<<<
12443  * f.shape[f.ndim-1],
12444  * Km, rhoM,
12445  */
12446  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3800, __pyx_L1_error)
12447  __Pyx_GOTREF(__pyx_t_1);
12448  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3800, __pyx_L1_error)
12449  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
12450 
12451  /* "ctransportCoefficients.pyx":3818
12452  * <double*> df.data,
12453  * <double*> dr.data,
12454  * <double*> dm.data) # <<<<<<<<<<<<<<
12455  * def NavierStokes_2D_Evaluate(const double rho,
12456  * const double nu,
12457  */
12458  darcySharpInterfaceFlowImEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_Km, __pyx_v_rhoM, __pyx_v_Kp, __pyx_v_rhoP, __pyx_v_eps, ((double *)__pyx_v_gravity_u->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_gradu->data), ((double *)__pyx_v_u_levelSet->data), ((double *)__pyx_v_phi_pot->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_r->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dphi_pot->data), ((double *)__pyx_v_da->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_dr->data), ((double *)__pyx_v_dm->data));
12459 
12460  /* "ctransportCoefficients.pyx":3781
12461  * <double*> dr.data,
12462  * <double*> dm.data)
12463  * def darcySharpInterfaceFlowImEvaluate(double Km, # <<<<<<<<<<<<<<
12464  * double rhoM,
12465  * double Kp,
12466  */
12467 
12468  /* function exit code */
12469  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12470  goto __pyx_L0;
12471  __pyx_L1_error:;
12472  __Pyx_XDECREF(__pyx_t_1);
12473  __Pyx_AddTraceback("ctransportCoefficients.darcySharpInterfaceFlowImEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
12474  __pyx_r = NULL;
12475  __pyx_L0:;
12476  __Pyx_XGIVEREF(__pyx_r);
12477  __Pyx_RefNannyFinishContext();
12478  return __pyx_r;
12479 }
12480 
12481 /* "ctransportCoefficients.pyx":3819
12482  * <double*> dr.data,
12483  * <double*> dm.data)
12484  * def NavierStokes_2D_Evaluate(const double rho, # <<<<<<<<<<<<<<
12485  * const double nu,
12486  * np.ndarray g,
12487  */
12488 
12489 /* Python wrapper */
12490 static PyObject *__pyx_pw_22ctransportCoefficients_69NavierStokes_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
12491 static PyMethodDef __pyx_mdef_22ctransportCoefficients_69NavierStokes_2D_Evaluate = {"NavierStokes_2D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_69NavierStokes_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
12492 static PyObject *__pyx_pw_22ctransportCoefficients_69NavierStokes_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
12493  double __pyx_v_rho;
12494  double __pyx_v_nu;
12495  PyArrayObject *__pyx_v_g = 0;
12496  PyArrayObject *__pyx_v_p = 0;
12497  PyArrayObject *__pyx_v_grad_p = 0;
12498  PyArrayObject *__pyx_v_u = 0;
12499  PyArrayObject *__pyx_v_v = 0;
12500  PyArrayObject *__pyx_v_mom_u_acc = 0;
12501  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
12502  PyArrayObject *__pyx_v_mom_v_acc = 0;
12503  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
12504  PyArrayObject *__pyx_v_mass_adv = 0;
12505  PyArrayObject *__pyx_v_dmass_adv_u = 0;
12506  PyArrayObject *__pyx_v_dmass_adv_v = 0;
12507  PyArrayObject *__pyx_v_mom_u_adv = 0;
12508  PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
12509  PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
12510  PyArrayObject *__pyx_v_mom_v_adv = 0;
12511  PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
12512  PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
12513  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
12514  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
12515  PyArrayObject *__pyx_v_mom_u_source = 0;
12516  PyArrayObject *__pyx_v_mom_v_source = 0;
12517  PyArrayObject *__pyx_v_mom_u_ham = 0;
12518  PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
12519  PyArrayObject *__pyx_v_mom_v_ham = 0;
12520  PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
12521  int __pyx_lineno = 0;
12522  const char *__pyx_filename = NULL;
12523  int __pyx_clineno = 0;
12524  PyObject *__pyx_r = 0;
12525  __Pyx_RefNannyDeclarations
12526  __Pyx_RefNannySetupContext("NavierStokes_2D_Evaluate (wrapper)", 0);
12527  {
12528  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_nu,&__pyx_n_s_g,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,0};
12529  PyObject* values[28] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
12530  if (unlikely(__pyx_kwds)) {
12531  Py_ssize_t kw_args;
12532  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
12533  switch (pos_args) {
12534  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
12535  CYTHON_FALLTHROUGH;
12536  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
12537  CYTHON_FALLTHROUGH;
12538  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
12539  CYTHON_FALLTHROUGH;
12540  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
12541  CYTHON_FALLTHROUGH;
12542  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
12543  CYTHON_FALLTHROUGH;
12544  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
12545  CYTHON_FALLTHROUGH;
12546  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
12547  CYTHON_FALLTHROUGH;
12548  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
12549  CYTHON_FALLTHROUGH;
12550  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
12551  CYTHON_FALLTHROUGH;
12552  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
12553  CYTHON_FALLTHROUGH;
12554  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
12555  CYTHON_FALLTHROUGH;
12556  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
12557  CYTHON_FALLTHROUGH;
12558  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
12559  CYTHON_FALLTHROUGH;
12560  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
12561  CYTHON_FALLTHROUGH;
12562  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
12563  CYTHON_FALLTHROUGH;
12564  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
12565  CYTHON_FALLTHROUGH;
12566  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
12567  CYTHON_FALLTHROUGH;
12568  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
12569  CYTHON_FALLTHROUGH;
12570  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
12571  CYTHON_FALLTHROUGH;
12572  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
12573  CYTHON_FALLTHROUGH;
12574  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
12575  CYTHON_FALLTHROUGH;
12576  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
12577  CYTHON_FALLTHROUGH;
12578  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
12579  CYTHON_FALLTHROUGH;
12580  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
12581  CYTHON_FALLTHROUGH;
12582  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
12583  CYTHON_FALLTHROUGH;
12584  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12585  CYTHON_FALLTHROUGH;
12586  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12587  CYTHON_FALLTHROUGH;
12588  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12589  CYTHON_FALLTHROUGH;
12590  case 0: break;
12591  default: goto __pyx_L5_argtuple_error;
12592  }
12593  kw_args = PyDict_Size(__pyx_kwds);
12594  switch (pos_args) {
12595  case 0:
12596  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
12597  else goto __pyx_L5_argtuple_error;
12598  CYTHON_FALLTHROUGH;
12599  case 1:
12600  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
12601  else {
12602  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, 1); __PYX_ERR(0, 3819, __pyx_L3_error)
12603  }
12604  CYTHON_FALLTHROUGH;
12605  case 2:
12606  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
12607  else {
12608  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, 2); __PYX_ERR(0, 3819, __pyx_L3_error)
12609  }
12610  CYTHON_FALLTHROUGH;
12611  case 3:
12612  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
12613  else {
12614  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, 3); __PYX_ERR(0, 3819, __pyx_L3_error)
12615  }
12616  CYTHON_FALLTHROUGH;
12617  case 4:
12618  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
12619  else {
12620  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, 4); __PYX_ERR(0, 3819, __pyx_L3_error)
12621  }
12622  CYTHON_FALLTHROUGH;
12623  case 5:
12624  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
12625  else {
12626  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, 5); __PYX_ERR(0, 3819, __pyx_L3_error)
12627  }
12628  CYTHON_FALLTHROUGH;
12629  case 6:
12630  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
12631  else {
12632  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, 6); __PYX_ERR(0, 3819, __pyx_L3_error)
12633  }
12634  CYTHON_FALLTHROUGH;
12635  case 7:
12636  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
12637  else {
12638  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, 7); __PYX_ERR(0, 3819, __pyx_L3_error)
12639  }
12640  CYTHON_FALLTHROUGH;
12641  case 8:
12642  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
12643  else {
12644  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, 8); __PYX_ERR(0, 3819, __pyx_L3_error)
12645  }
12646  CYTHON_FALLTHROUGH;
12647  case 9:
12648  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
12649  else {
12650  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, 9); __PYX_ERR(0, 3819, __pyx_L3_error)
12651  }
12652  CYTHON_FALLTHROUGH;
12653  case 10:
12654  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
12655  else {
12656  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, 10); __PYX_ERR(0, 3819, __pyx_L3_error)
12657  }
12658  CYTHON_FALLTHROUGH;
12659  case 11:
12660  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
12661  else {
12662  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, 11); __PYX_ERR(0, 3819, __pyx_L3_error)
12663  }
12664  CYTHON_FALLTHROUGH;
12665  case 12:
12666  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
12667  else {
12668  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, 12); __PYX_ERR(0, 3819, __pyx_L3_error)
12669  }
12670  CYTHON_FALLTHROUGH;
12671  case 13:
12672  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
12673  else {
12674  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, 13); __PYX_ERR(0, 3819, __pyx_L3_error)
12675  }
12676  CYTHON_FALLTHROUGH;
12677  case 14:
12678  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
12679  else {
12680  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, 14); __PYX_ERR(0, 3819, __pyx_L3_error)
12681  }
12682  CYTHON_FALLTHROUGH;
12683  case 15:
12684  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
12685  else {
12686  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, 15); __PYX_ERR(0, 3819, __pyx_L3_error)
12687  }
12688  CYTHON_FALLTHROUGH;
12689  case 16:
12690  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
12691  else {
12692  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, 16); __PYX_ERR(0, 3819, __pyx_L3_error)
12693  }
12694  CYTHON_FALLTHROUGH;
12695  case 17:
12696  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
12697  else {
12698  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, 17); __PYX_ERR(0, 3819, __pyx_L3_error)
12699  }
12700  CYTHON_FALLTHROUGH;
12701  case 18:
12702  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
12703  else {
12704  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, 18); __PYX_ERR(0, 3819, __pyx_L3_error)
12705  }
12706  CYTHON_FALLTHROUGH;
12707  case 19:
12708  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
12709  else {
12710  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, 19); __PYX_ERR(0, 3819, __pyx_L3_error)
12711  }
12712  CYTHON_FALLTHROUGH;
12713  case 20:
12714  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
12715  else {
12716  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, 20); __PYX_ERR(0, 3819, __pyx_L3_error)
12717  }
12718  CYTHON_FALLTHROUGH;
12719  case 21:
12720  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
12721  else {
12722  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, 21); __PYX_ERR(0, 3819, __pyx_L3_error)
12723  }
12724  CYTHON_FALLTHROUGH;
12725  case 22:
12726  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
12727  else {
12728  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, 22); __PYX_ERR(0, 3819, __pyx_L3_error)
12729  }
12730  CYTHON_FALLTHROUGH;
12731  case 23:
12732  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
12733  else {
12734  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, 23); __PYX_ERR(0, 3819, __pyx_L3_error)
12735  }
12736  CYTHON_FALLTHROUGH;
12737  case 24:
12738  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
12739  else {
12740  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, 24); __PYX_ERR(0, 3819, __pyx_L3_error)
12741  }
12742  CYTHON_FALLTHROUGH;
12743  case 25:
12744  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
12745  else {
12746  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, 25); __PYX_ERR(0, 3819, __pyx_L3_error)
12747  }
12748  CYTHON_FALLTHROUGH;
12749  case 26:
12750  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
12751  else {
12752  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, 26); __PYX_ERR(0, 3819, __pyx_L3_error)
12753  }
12754  CYTHON_FALLTHROUGH;
12755  case 27:
12756  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
12757  else {
12758  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, 27); __PYX_ERR(0, 3819, __pyx_L3_error)
12759  }
12760  }
12761  if (unlikely(kw_args > 0)) {
12762  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "NavierStokes_2D_Evaluate") < 0)) __PYX_ERR(0, 3819, __pyx_L3_error)
12763  }
12764  } else if (PyTuple_GET_SIZE(__pyx_args) != 28) {
12765  goto __pyx_L5_argtuple_error;
12766  } else {
12767  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12768  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12769  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12770  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
12771  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
12772  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
12773  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
12774  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
12775  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
12776  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
12777  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
12778  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
12779  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
12780  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
12781  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
12782  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
12783  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
12784  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
12785  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
12786  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
12787  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
12788  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
12789  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
12790  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
12791  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
12792  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
12793  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
12794  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
12795  }
12796  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3819, __pyx_L3_error)
12797  __pyx_v_nu = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_nu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3820, __pyx_L3_error)
12798  __pyx_v_g = ((PyArrayObject *)values[2]);
12799  __pyx_v_p = ((PyArrayObject *)values[3]);
12800  __pyx_v_grad_p = ((PyArrayObject *)values[4]);
12801  __pyx_v_u = ((PyArrayObject *)values[5]);
12802  __pyx_v_v = ((PyArrayObject *)values[6]);
12803  __pyx_v_mom_u_acc = ((PyArrayObject *)values[7]);
12804  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[8]);
12805  __pyx_v_mom_v_acc = ((PyArrayObject *)values[9]);
12806  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[10]);
12807  __pyx_v_mass_adv = ((PyArrayObject *)values[11]);
12808  __pyx_v_dmass_adv_u = ((PyArrayObject *)values[12]);
12809  __pyx_v_dmass_adv_v = ((PyArrayObject *)values[13]);
12810  __pyx_v_mom_u_adv = ((PyArrayObject *)values[14]);
12811  __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[15]);
12812  __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[16]);
12813  __pyx_v_mom_v_adv = ((PyArrayObject *)values[17]);
12814  __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[18]);
12815  __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[19]);
12816  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[20]);
12817  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[21]);
12818  __pyx_v_mom_u_source = ((PyArrayObject *)values[22]);
12819  __pyx_v_mom_v_source = ((PyArrayObject *)values[23]);
12820  __pyx_v_mom_u_ham = ((PyArrayObject *)values[24]);
12821  __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[25]);
12822  __pyx_v_mom_v_ham = ((PyArrayObject *)values[26]);
12823  __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[27]);
12824  }
12825  goto __pyx_L4_argument_unpacking_done;
12826  __pyx_L5_argtuple_error:;
12827  __Pyx_RaiseArgtupleInvalid("NavierStokes_2D_Evaluate", 1, 28, 28, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3819, __pyx_L3_error)
12828  __pyx_L3_error:;
12829  __Pyx_AddTraceback("ctransportCoefficients.NavierStokes_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
12830  __Pyx_RefNannyFinishContext();
12831  return NULL;
12832  __pyx_L4_argument_unpacking_done:;
12833  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 3821, __pyx_L1_error)
12834  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 3822, __pyx_L1_error)
12835  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1, "grad_p", 0))) __PYX_ERR(0, 3823, __pyx_L1_error)
12836  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3824, __pyx_L1_error)
12837  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 3825, __pyx_L1_error)
12838  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 3826, __pyx_L1_error)
12839  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 3827, __pyx_L1_error)
12840  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 3828, __pyx_L1_error)
12841  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 3829, __pyx_L1_error)
12842  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 3830, __pyx_L1_error)
12843  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_u", 0))) __PYX_ERR(0, 3831, __pyx_L1_error)
12844  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_v", 0))) __PYX_ERR(0, 3832, __pyx_L1_error)
12845  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_u_adv", 0))) __PYX_ERR(0, 3833, __pyx_L1_error)
12846  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_u", 0))) __PYX_ERR(0, 3834, __pyx_L1_error)
12847  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_v", 0))) __PYX_ERR(0, 3835, __pyx_L1_error)
12848  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_v_adv", 0))) __PYX_ERR(0, 3836, __pyx_L1_error)
12849  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_u", 0))) __PYX_ERR(0, 3837, __pyx_L1_error)
12850  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_v", 0))) __PYX_ERR(0, 3838, __pyx_L1_error)
12851  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 3839, __pyx_L1_error)
12852  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 3840, __pyx_L1_error)
12853  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 3841, __pyx_L1_error)
12854  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 3842, __pyx_L1_error)
12855  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_u_ham", 0))) __PYX_ERR(0, 3843, __pyx_L1_error)
12856  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 3844, __pyx_L1_error)
12857  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_v_ham", 0))) __PYX_ERR(0, 3845, __pyx_L1_error)
12858  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 3846, __pyx_L1_error)
12859  __pyx_r = __pyx_pf_22ctransportCoefficients_68NavierStokes_2D_Evaluate(__pyx_self, __pyx_v_rho, __pyx_v_nu, __pyx_v_g, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p);
12860 
12861  /* function exit code */
12862  goto __pyx_L0;
12863  __pyx_L1_error:;
12864  __pyx_r = NULL;
12865  __pyx_L0:;
12866  __Pyx_RefNannyFinishContext();
12867  return __pyx_r;
12868 }
12869 
12870 static PyObject *__pyx_pf_22ctransportCoefficients_68NavierStokes_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p) {
12871  PyObject *__pyx_r = NULL;
12872  __Pyx_RefNannyDeclarations
12873  PyObject *__pyx_t_1 = NULL;
12874  int __pyx_t_2;
12875  int __pyx_lineno = 0;
12876  const char *__pyx_filename = NULL;
12877  int __pyx_clineno = 0;
12878  __Pyx_RefNannySetupContext("NavierStokes_2D_Evaluate", 0);
12879 
12880  /* "ctransportCoefficients.pyx":3847
12881  * np.ndarray mom_v_ham,
12882  * np.ndarray dmom_v_ham_grad_p):
12883  * cNavierStokes_2D_Evaluate(p.size, # <<<<<<<<<<<<<<
12884  * rho,
12885  * nu,
12886  */
12887  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3847, __pyx_L1_error)
12888  __Pyx_GOTREF(__pyx_t_1);
12889  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3847, __pyx_L1_error)
12890  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
12891 
12892  /* "ctransportCoefficients.pyx":3875
12893  * <double*> dmom_u_ham_grad_p.data,
12894  * <double*> mom_v_ham.data,
12895  * <double*> dmom_v_ham_grad_p.data) # <<<<<<<<<<<<<<
12896  * def NavierStokes_3D_Evaluate(const double rho,
12897  * const double nu,
12898  */
12899  NavierStokes_2D_Evaluate(__pyx_t_2, __pyx_v_rho, __pyx_v_nu, ((double *)__pyx_v_g->data), ((double *)__pyx_v_p->data), ((double *)__pyx_v_grad_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_v_acc_v->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_u->data), ((double *)__pyx_v_dmass_adv_v->data), ((double *)__pyx_v_mom_u_adv->data), ((double *)__pyx_v_dmom_u_adv_u->data), ((double *)__pyx_v_dmom_u_adv_v->data), ((double *)__pyx_v_mom_v_adv->data), ((double *)__pyx_v_dmom_v_adv_u->data), ((double *)__pyx_v_dmom_v_adv_v->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_mom_u_ham->data), ((double *)__pyx_v_dmom_u_ham_grad_p->data), ((double *)__pyx_v_mom_v_ham->data), ((double *)__pyx_v_dmom_v_ham_grad_p->data));
12900 
12901  /* "ctransportCoefficients.pyx":3819
12902  * <double*> dr.data,
12903  * <double*> dm.data)
12904  * def NavierStokes_2D_Evaluate(const double rho, # <<<<<<<<<<<<<<
12905  * const double nu,
12906  * np.ndarray g,
12907  */
12908 
12909  /* function exit code */
12910  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12911  goto __pyx_L0;
12912  __pyx_L1_error:;
12913  __Pyx_XDECREF(__pyx_t_1);
12914  __Pyx_AddTraceback("ctransportCoefficients.NavierStokes_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
12915  __pyx_r = NULL;
12916  __pyx_L0:;
12917  __Pyx_XGIVEREF(__pyx_r);
12918  __Pyx_RefNannyFinishContext();
12919  return __pyx_r;
12920 }
12921 
12922 /* "ctransportCoefficients.pyx":3876
12923  * <double*> mom_v_ham.data,
12924  * <double*> dmom_v_ham_grad_p.data)
12925  * def NavierStokes_3D_Evaluate(const double rho, # <<<<<<<<<<<<<<
12926  * const double nu,
12927  * np.ndarray g,
12928  */
12929 
12930 /* Python wrapper */
12931 static PyObject *__pyx_pw_22ctransportCoefficients_71NavierStokes_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
12932 static PyMethodDef __pyx_mdef_22ctransportCoefficients_71NavierStokes_3D_Evaluate = {"NavierStokes_3D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_71NavierStokes_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
12933 static PyObject *__pyx_pw_22ctransportCoefficients_71NavierStokes_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
12934  double __pyx_v_rho;
12935  double __pyx_v_nu;
12936  PyArrayObject *__pyx_v_g = 0;
12937  PyArrayObject *__pyx_v_p = 0;
12938  PyArrayObject *__pyx_v_grad_p = 0;
12939  PyArrayObject *__pyx_v_u = 0;
12940  PyArrayObject *__pyx_v_v = 0;
12941  PyArrayObject *__pyx_v_w = 0;
12942  PyArrayObject *__pyx_v_mom_u_acc = 0;
12943  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
12944  PyArrayObject *__pyx_v_mom_v_acc = 0;
12945  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
12946  PyArrayObject *__pyx_v_mom_w_acc = 0;
12947  PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
12948  PyArrayObject *__pyx_v_mass_adv = 0;
12949  PyArrayObject *__pyx_v_dmass_adv_u = 0;
12950  PyArrayObject *__pyx_v_dmass_adv_v = 0;
12951  PyArrayObject *__pyx_v_dmass_adv_w = 0;
12952  PyArrayObject *__pyx_v_mom_u_adv = 0;
12953  PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
12954  PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
12955  PyArrayObject *__pyx_v_dmom_u_adv_w = 0;
12956  PyArrayObject *__pyx_v_mom_v_adv = 0;
12957  PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
12958  PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
12959  PyArrayObject *__pyx_v_dmom_v_adv_w = 0;
12960  PyArrayObject *__pyx_v_mom_w_adv = 0;
12961  PyArrayObject *__pyx_v_dmom_w_adv_u = 0;
12962  PyArrayObject *__pyx_v_dmom_w_adv_v = 0;
12963  PyArrayObject *__pyx_v_dmom_w_adv_w = 0;
12964  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
12965  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
12966  PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
12967  PyArrayObject *__pyx_v_mom_u_source = 0;
12968  PyArrayObject *__pyx_v_mom_v_source = 0;
12969  PyArrayObject *__pyx_v_mom_w_source = 0;
12970  PyArrayObject *__pyx_v_mom_u_ham = 0;
12971  PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
12972  PyArrayObject *__pyx_v_mom_v_ham = 0;
12973  PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
12974  PyArrayObject *__pyx_v_mom_w_ham = 0;
12975  PyArrayObject *__pyx_v_dmom_w_ham_grad_p = 0;
12976  int __pyx_lineno = 0;
12977  const char *__pyx_filename = NULL;
12978  int __pyx_clineno = 0;
12979  PyObject *__pyx_r = 0;
12980  __Pyx_RefNannyDeclarations
12981  __Pyx_RefNannySetupContext("NavierStokes_3D_Evaluate (wrapper)", 0);
12982  {
12983  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_nu,&__pyx_n_s_g,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_w_acc_w,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_dmass_adv_w,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_dmom_u_adv_w,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_dmom_v_adv_w,&__pyx_n_s_mom_w_adv,&__pyx_n_s_dmom_w_adv_u,&__pyx_n_s_dmom_w_adv_v,&__pyx_n_s_dmom_w_adv_w,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,&__pyx_n_s_mom_w_ham,&__pyx_n_s_dmom_w_ham_grad_p,0};
12984  PyObject* values[42] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
12985  if (unlikely(__pyx_kwds)) {
12986  Py_ssize_t kw_args;
12987  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
12988  switch (pos_args) {
12989  case 42: values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
12990  CYTHON_FALLTHROUGH;
12991  case 41: values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
12992  CYTHON_FALLTHROUGH;
12993  case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
12994  CYTHON_FALLTHROUGH;
12995  case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
12996  CYTHON_FALLTHROUGH;
12997  case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
12998  CYTHON_FALLTHROUGH;
12999  case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
13000  CYTHON_FALLTHROUGH;
13001  case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
13002  CYTHON_FALLTHROUGH;
13003  case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
13004  CYTHON_FALLTHROUGH;
13005  case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
13006  CYTHON_FALLTHROUGH;
13007  case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
13008  CYTHON_FALLTHROUGH;
13009  case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
13010  CYTHON_FALLTHROUGH;
13011  case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
13012  CYTHON_FALLTHROUGH;
13013  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
13014  CYTHON_FALLTHROUGH;
13015  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
13016  CYTHON_FALLTHROUGH;
13017  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
13018  CYTHON_FALLTHROUGH;
13019  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
13020  CYTHON_FALLTHROUGH;
13021  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
13022  CYTHON_FALLTHROUGH;
13023  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
13024  CYTHON_FALLTHROUGH;
13025  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
13026  CYTHON_FALLTHROUGH;
13027  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
13028  CYTHON_FALLTHROUGH;
13029  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
13030  CYTHON_FALLTHROUGH;
13031  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
13032  CYTHON_FALLTHROUGH;
13033  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
13034  CYTHON_FALLTHROUGH;
13035  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
13036  CYTHON_FALLTHROUGH;
13037  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
13038  CYTHON_FALLTHROUGH;
13039  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
13040  CYTHON_FALLTHROUGH;
13041  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
13042  CYTHON_FALLTHROUGH;
13043  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
13044  CYTHON_FALLTHROUGH;
13045  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
13046  CYTHON_FALLTHROUGH;
13047  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
13048  CYTHON_FALLTHROUGH;
13049  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
13050  CYTHON_FALLTHROUGH;
13051  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
13052  CYTHON_FALLTHROUGH;
13053  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
13054  CYTHON_FALLTHROUGH;
13055  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
13056  CYTHON_FALLTHROUGH;
13057  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
13058  CYTHON_FALLTHROUGH;
13059  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
13060  CYTHON_FALLTHROUGH;
13061  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
13062  CYTHON_FALLTHROUGH;
13063  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
13064  CYTHON_FALLTHROUGH;
13065  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
13066  CYTHON_FALLTHROUGH;
13067  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13068  CYTHON_FALLTHROUGH;
13069  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13070  CYTHON_FALLTHROUGH;
13071  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13072  CYTHON_FALLTHROUGH;
13073  case 0: break;
13074  default: goto __pyx_L5_argtuple_error;
13075  }
13076  kw_args = PyDict_Size(__pyx_kwds);
13077  switch (pos_args) {
13078  case 0:
13079  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
13080  else goto __pyx_L5_argtuple_error;
13081  CYTHON_FALLTHROUGH;
13082  case 1:
13083  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
13084  else {
13085  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 1); __PYX_ERR(0, 3876, __pyx_L3_error)
13086  }
13087  CYTHON_FALLTHROUGH;
13088  case 2:
13089  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
13090  else {
13091  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 2); __PYX_ERR(0, 3876, __pyx_L3_error)
13092  }
13093  CYTHON_FALLTHROUGH;
13094  case 3:
13095  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
13096  else {
13097  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 3); __PYX_ERR(0, 3876, __pyx_L3_error)
13098  }
13099  CYTHON_FALLTHROUGH;
13100  case 4:
13101  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
13102  else {
13103  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 4); __PYX_ERR(0, 3876, __pyx_L3_error)
13104  }
13105  CYTHON_FALLTHROUGH;
13106  case 5:
13107  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
13108  else {
13109  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 5); __PYX_ERR(0, 3876, __pyx_L3_error)
13110  }
13111  CYTHON_FALLTHROUGH;
13112  case 6:
13113  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
13114  else {
13115  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 6); __PYX_ERR(0, 3876, __pyx_L3_error)
13116  }
13117  CYTHON_FALLTHROUGH;
13118  case 7:
13119  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
13120  else {
13121  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 7); __PYX_ERR(0, 3876, __pyx_L3_error)
13122  }
13123  CYTHON_FALLTHROUGH;
13124  case 8:
13125  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
13126  else {
13127  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 8); __PYX_ERR(0, 3876, __pyx_L3_error)
13128  }
13129  CYTHON_FALLTHROUGH;
13130  case 9:
13131  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
13132  else {
13133  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 9); __PYX_ERR(0, 3876, __pyx_L3_error)
13134  }
13135  CYTHON_FALLTHROUGH;
13136  case 10:
13137  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
13138  else {
13139  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 10); __PYX_ERR(0, 3876, __pyx_L3_error)
13140  }
13141  CYTHON_FALLTHROUGH;
13142  case 11:
13143  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
13144  else {
13145  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 11); __PYX_ERR(0, 3876, __pyx_L3_error)
13146  }
13147  CYTHON_FALLTHROUGH;
13148  case 12:
13149  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
13150  else {
13151  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 12); __PYX_ERR(0, 3876, __pyx_L3_error)
13152  }
13153  CYTHON_FALLTHROUGH;
13154  case 13:
13155  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
13156  else {
13157  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 13); __PYX_ERR(0, 3876, __pyx_L3_error)
13158  }
13159  CYTHON_FALLTHROUGH;
13160  case 14:
13161  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
13162  else {
13163  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 14); __PYX_ERR(0, 3876, __pyx_L3_error)
13164  }
13165  CYTHON_FALLTHROUGH;
13166  case 15:
13167  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
13168  else {
13169  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 15); __PYX_ERR(0, 3876, __pyx_L3_error)
13170  }
13171  CYTHON_FALLTHROUGH;
13172  case 16:
13173  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
13174  else {
13175  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 16); __PYX_ERR(0, 3876, __pyx_L3_error)
13176  }
13177  CYTHON_FALLTHROUGH;
13178  case 17:
13179  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_w)) != 0)) kw_args--;
13180  else {
13181  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 17); __PYX_ERR(0, 3876, __pyx_L3_error)
13182  }
13183  CYTHON_FALLTHROUGH;
13184  case 18:
13185  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
13186  else {
13187  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 18); __PYX_ERR(0, 3876, __pyx_L3_error)
13188  }
13189  CYTHON_FALLTHROUGH;
13190  case 19:
13191  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
13192  else {
13193  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 19); __PYX_ERR(0, 3876, __pyx_L3_error)
13194  }
13195  CYTHON_FALLTHROUGH;
13196  case 20:
13197  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
13198  else {
13199  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 20); __PYX_ERR(0, 3876, __pyx_L3_error)
13200  }
13201  CYTHON_FALLTHROUGH;
13202  case 21:
13203  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_w)) != 0)) kw_args--;
13204  else {
13205  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 21); __PYX_ERR(0, 3876, __pyx_L3_error)
13206  }
13207  CYTHON_FALLTHROUGH;
13208  case 22:
13209  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
13210  else {
13211  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 22); __PYX_ERR(0, 3876, __pyx_L3_error)
13212  }
13213  CYTHON_FALLTHROUGH;
13214  case 23:
13215  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
13216  else {
13217  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 23); __PYX_ERR(0, 3876, __pyx_L3_error)
13218  }
13219  CYTHON_FALLTHROUGH;
13220  case 24:
13221  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
13222  else {
13223  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 24); __PYX_ERR(0, 3876, __pyx_L3_error)
13224  }
13225  CYTHON_FALLTHROUGH;
13226  case 25:
13227  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_w)) != 0)) kw_args--;
13228  else {
13229  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 25); __PYX_ERR(0, 3876, __pyx_L3_error)
13230  }
13231  CYTHON_FALLTHROUGH;
13232  case 26:
13233  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_adv)) != 0)) kw_args--;
13234  else {
13235  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 26); __PYX_ERR(0, 3876, __pyx_L3_error)
13236  }
13237  CYTHON_FALLTHROUGH;
13238  case 27:
13239  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_u)) != 0)) kw_args--;
13240  else {
13241  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 27); __PYX_ERR(0, 3876, __pyx_L3_error)
13242  }
13243  CYTHON_FALLTHROUGH;
13244  case 28:
13245  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_v)) != 0)) kw_args--;
13246  else {
13247  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 28); __PYX_ERR(0, 3876, __pyx_L3_error)
13248  }
13249  CYTHON_FALLTHROUGH;
13250  case 29:
13251  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_w)) != 0)) kw_args--;
13252  else {
13253  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 29); __PYX_ERR(0, 3876, __pyx_L3_error)
13254  }
13255  CYTHON_FALLTHROUGH;
13256  case 30:
13257  if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
13258  else {
13259  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 30); __PYX_ERR(0, 3876, __pyx_L3_error)
13260  }
13261  CYTHON_FALLTHROUGH;
13262  case 31:
13263  if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
13264  else {
13265  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 31); __PYX_ERR(0, 3876, __pyx_L3_error)
13266  }
13267  CYTHON_FALLTHROUGH;
13268  case 32:
13269  if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
13270  else {
13271  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 32); __PYX_ERR(0, 3876, __pyx_L3_error)
13272  }
13273  CYTHON_FALLTHROUGH;
13274  case 33:
13275  if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
13276  else {
13277  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 33); __PYX_ERR(0, 3876, __pyx_L3_error)
13278  }
13279  CYTHON_FALLTHROUGH;
13280  case 34:
13281  if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
13282  else {
13283  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 34); __PYX_ERR(0, 3876, __pyx_L3_error)
13284  }
13285  CYTHON_FALLTHROUGH;
13286  case 35:
13287  if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
13288  else {
13289  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 35); __PYX_ERR(0, 3876, __pyx_L3_error)
13290  }
13291  CYTHON_FALLTHROUGH;
13292  case 36:
13293  if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
13294  else {
13295  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 36); __PYX_ERR(0, 3876, __pyx_L3_error)
13296  }
13297  CYTHON_FALLTHROUGH;
13298  case 37:
13299  if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
13300  else {
13301  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 37); __PYX_ERR(0, 3876, __pyx_L3_error)
13302  }
13303  CYTHON_FALLTHROUGH;
13304  case 38:
13305  if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
13306  else {
13307  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 38); __PYX_ERR(0, 3876, __pyx_L3_error)
13308  }
13309  CYTHON_FALLTHROUGH;
13310  case 39:
13311  if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
13312  else {
13313  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 39); __PYX_ERR(0, 3876, __pyx_L3_error)
13314  }
13315  CYTHON_FALLTHROUGH;
13316  case 40:
13317  if (likely((values[40] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_ham)) != 0)) kw_args--;
13318  else {
13319  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 40); __PYX_ERR(0, 3876, __pyx_L3_error)
13320  }
13321  CYTHON_FALLTHROUGH;
13322  case 41:
13323  if (likely((values[41] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_ham_grad_p)) != 0)) kw_args--;
13324  else {
13325  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, 41); __PYX_ERR(0, 3876, __pyx_L3_error)
13326  }
13327  }
13328  if (unlikely(kw_args > 0)) {
13329  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "NavierStokes_3D_Evaluate") < 0)) __PYX_ERR(0, 3876, __pyx_L3_error)
13330  }
13331  } else if (PyTuple_GET_SIZE(__pyx_args) != 42) {
13332  goto __pyx_L5_argtuple_error;
13333  } else {
13334  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13335  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13336  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13337  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
13338  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
13339  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
13340  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
13341  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
13342  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
13343  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
13344  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
13345  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
13346  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
13347  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
13348  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
13349  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
13350  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
13351  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
13352  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
13353  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
13354  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
13355  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
13356  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
13357  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
13358  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
13359  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
13360  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
13361  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
13362  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
13363  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
13364  values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
13365  values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
13366  values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
13367  values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
13368  values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
13369  values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
13370  values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
13371  values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
13372  values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
13373  values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
13374  values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
13375  values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
13376  }
13377  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3876, __pyx_L3_error)
13378  __pyx_v_nu = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_nu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3877, __pyx_L3_error)
13379  __pyx_v_g = ((PyArrayObject *)values[2]);
13380  __pyx_v_p = ((PyArrayObject *)values[3]);
13381  __pyx_v_grad_p = ((PyArrayObject *)values[4]);
13382  __pyx_v_u = ((PyArrayObject *)values[5]);
13383  __pyx_v_v = ((PyArrayObject *)values[6]);
13384  __pyx_v_w = ((PyArrayObject *)values[7]);
13385  __pyx_v_mom_u_acc = ((PyArrayObject *)values[8]);
13386  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[9]);
13387  __pyx_v_mom_v_acc = ((PyArrayObject *)values[10]);
13388  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[11]);
13389  __pyx_v_mom_w_acc = ((PyArrayObject *)values[12]);
13390  __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[13]);
13391  __pyx_v_mass_adv = ((PyArrayObject *)values[14]);
13392  __pyx_v_dmass_adv_u = ((PyArrayObject *)values[15]);
13393  __pyx_v_dmass_adv_v = ((PyArrayObject *)values[16]);
13394  __pyx_v_dmass_adv_w = ((PyArrayObject *)values[17]);
13395  __pyx_v_mom_u_adv = ((PyArrayObject *)values[18]);
13396  __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[19]);
13397  __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[20]);
13398  __pyx_v_dmom_u_adv_w = ((PyArrayObject *)values[21]);
13399  __pyx_v_mom_v_adv = ((PyArrayObject *)values[22]);
13400  __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[23]);
13401  __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[24]);
13402  __pyx_v_dmom_v_adv_w = ((PyArrayObject *)values[25]);
13403  __pyx_v_mom_w_adv = ((PyArrayObject *)values[26]);
13404  __pyx_v_dmom_w_adv_u = ((PyArrayObject *)values[27]);
13405  __pyx_v_dmom_w_adv_v = ((PyArrayObject *)values[28]);
13406  __pyx_v_dmom_w_adv_w = ((PyArrayObject *)values[29]);
13407  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[30]);
13408  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[31]);
13409  __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[32]);
13410  __pyx_v_mom_u_source = ((PyArrayObject *)values[33]);
13411  __pyx_v_mom_v_source = ((PyArrayObject *)values[34]);
13412  __pyx_v_mom_w_source = ((PyArrayObject *)values[35]);
13413  __pyx_v_mom_u_ham = ((PyArrayObject *)values[36]);
13414  __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[37]);
13415  __pyx_v_mom_v_ham = ((PyArrayObject *)values[38]);
13416  __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[39]);
13417  __pyx_v_mom_w_ham = ((PyArrayObject *)values[40]);
13418  __pyx_v_dmom_w_ham_grad_p = ((PyArrayObject *)values[41]);
13419  }
13420  goto __pyx_L4_argument_unpacking_done;
13421  __pyx_L5_argtuple_error:;
13422  __Pyx_RaiseArgtupleInvalid("NavierStokes_3D_Evaluate", 1, 42, 42, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3876, __pyx_L3_error)
13423  __pyx_L3_error:;
13424  __Pyx_AddTraceback("ctransportCoefficients.NavierStokes_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
13425  __Pyx_RefNannyFinishContext();
13426  return NULL;
13427  __pyx_L4_argument_unpacking_done:;
13428  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 3878, __pyx_L1_error)
13429  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 3879, __pyx_L1_error)
13430  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1, "grad_p", 0))) __PYX_ERR(0, 3880, __pyx_L1_error)
13431  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3881, __pyx_L1_error)
13432  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 3882, __pyx_L1_error)
13433  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1, "w", 0))) __PYX_ERR(0, 3883, __pyx_L1_error)
13434  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 3884, __pyx_L1_error)
13435  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 3885, __pyx_L1_error)
13436  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 3886, __pyx_L1_error)
13437  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 3887, __pyx_L1_error)
13438  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_w_acc", 0))) __PYX_ERR(0, 3888, __pyx_L1_error)
13439  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_acc_w", 0))) __PYX_ERR(0, 3889, __pyx_L1_error)
13440  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 3890, __pyx_L1_error)
13441  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_u", 0))) __PYX_ERR(0, 3891, __pyx_L1_error)
13442  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_v", 0))) __PYX_ERR(0, 3892, __pyx_L1_error)
13443  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_w", 0))) __PYX_ERR(0, 3893, __pyx_L1_error)
13444  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_u_adv", 0))) __PYX_ERR(0, 3894, __pyx_L1_error)
13445  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_u", 0))) __PYX_ERR(0, 3895, __pyx_L1_error)
13446  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_v", 0))) __PYX_ERR(0, 3896, __pyx_L1_error)
13447  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_w", 0))) __PYX_ERR(0, 3897, __pyx_L1_error)
13448  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_v_adv", 0))) __PYX_ERR(0, 3898, __pyx_L1_error)
13449  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_u", 0))) __PYX_ERR(0, 3899, __pyx_L1_error)
13450  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_v", 0))) __PYX_ERR(0, 3900, __pyx_L1_error)
13451  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_w", 0))) __PYX_ERR(0, 3901, __pyx_L1_error)
13452  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_w_adv", 0))) __PYX_ERR(0, 3902, __pyx_L1_error)
13453  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_u", 0))) __PYX_ERR(0, 3903, __pyx_L1_error)
13454  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_v", 0))) __PYX_ERR(0, 3904, __pyx_L1_error)
13455  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_w", 0))) __PYX_ERR(0, 3905, __pyx_L1_error)
13456  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 3906, __pyx_L1_error)
13457  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 3907, __pyx_L1_error)
13458  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_w_diff_ten", 0))) __PYX_ERR(0, 3908, __pyx_L1_error)
13459  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 3909, __pyx_L1_error)
13460  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 3910, __pyx_L1_error)
13461  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1, "mom_w_source", 0))) __PYX_ERR(0, 3911, __pyx_L1_error)
13462  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_u_ham", 0))) __PYX_ERR(0, 3912, __pyx_L1_error)
13463  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 3913, __pyx_L1_error)
13464  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_v_ham", 0))) __PYX_ERR(0, 3914, __pyx_L1_error)
13465  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 3915, __pyx_L1_error)
13466  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_w_ham", 0))) __PYX_ERR(0, 3916, __pyx_L1_error)
13467  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_ham_grad_p", 0))) __PYX_ERR(0, 3917, __pyx_L1_error)
13468  __pyx_r = __pyx_pf_22ctransportCoefficients_70NavierStokes_3D_Evaluate(__pyx_self, __pyx_v_rho, __pyx_v_nu, __pyx_v_g, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mom_w_acc, __pyx_v_dmom_w_acc_w, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_dmass_adv_w, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_dmom_u_adv_w, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_dmom_v_adv_w, __pyx_v_mom_w_adv, __pyx_v_dmom_w_adv_u, __pyx_v_dmom_w_adv_v, __pyx_v_dmom_w_adv_w, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p, __pyx_v_mom_w_ham, __pyx_v_dmom_w_ham_grad_p);
13469 
13470  /* function exit code */
13471  goto __pyx_L0;
13472  __pyx_L1_error:;
13473  __pyx_r = NULL;
13474  __pyx_L0:;
13475  __Pyx_RefNannyFinishContext();
13476  return __pyx_r;
13477 }
13478 
13479 static PyObject *__pyx_pf_22ctransportCoefficients_70NavierStokes_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p) {
13480  PyObject *__pyx_r = NULL;
13481  __Pyx_RefNannyDeclarations
13482  PyObject *__pyx_t_1 = NULL;
13483  int __pyx_t_2;
13484  int __pyx_lineno = 0;
13485  const char *__pyx_filename = NULL;
13486  int __pyx_clineno = 0;
13487  __Pyx_RefNannySetupContext("NavierStokes_3D_Evaluate", 0);
13488 
13489  /* "ctransportCoefficients.pyx":3918
13490  * np.ndarray mom_w_ham,
13491  * np.ndarray dmom_w_ham_grad_p):
13492  * cNavierStokes_3D_Evaluate(p.size, # <<<<<<<<<<<<<<
13493  * rho,
13494  * nu,
13495  */
13496  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3918, __pyx_L1_error)
13497  __Pyx_GOTREF(__pyx_t_1);
13498  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3918, __pyx_L1_error)
13499  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13500 
13501  /* "ctransportCoefficients.pyx":3960
13502  * <double*> dmom_v_ham_grad_p.data,
13503  * <double*> mom_w_ham.data,
13504  * <double*> dmom_w_ham_grad_p.data) # <<<<<<<<<<<<<<
13505  * def Stokes_2D_Evaluate(const double rho,
13506  * const double nu,
13507  */
13508  NavierStokes_3D_Evaluate(__pyx_t_2, __pyx_v_rho, __pyx_v_nu, ((double *)__pyx_v_g->data), ((double *)__pyx_v_p->data), ((double *)__pyx_v_grad_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_w->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_v_acc_v->data), ((double *)__pyx_v_mom_w_acc->data), ((double *)__pyx_v_dmom_w_acc_w->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_u->data), ((double *)__pyx_v_dmass_adv_v->data), ((double *)__pyx_v_dmass_adv_w->data), ((double *)__pyx_v_mom_u_adv->data), ((double *)__pyx_v_dmom_u_adv_u->data), ((double *)__pyx_v_dmom_u_adv_v->data), ((double *)__pyx_v_dmom_u_adv_w->data), ((double *)__pyx_v_mom_v_adv->data), ((double *)__pyx_v_dmom_v_adv_u->data), ((double *)__pyx_v_dmom_v_adv_v->data), ((double *)__pyx_v_dmom_v_adv_w->data), ((double *)__pyx_v_mom_w_adv->data), ((double *)__pyx_v_dmom_w_adv_u->data), ((double *)__pyx_v_dmom_w_adv_v->data), ((double *)__pyx_v_dmom_w_adv_w->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_w_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_mom_w_source->data), ((double *)__pyx_v_mom_u_ham->data), ((double *)__pyx_v_dmom_u_ham_grad_p->data), ((double *)__pyx_v_mom_v_ham->data), ((double *)__pyx_v_dmom_v_ham_grad_p->data), ((double *)__pyx_v_mom_w_ham->data), ((double *)__pyx_v_dmom_w_ham_grad_p->data));
13509 
13510  /* "ctransportCoefficients.pyx":3876
13511  * <double*> mom_v_ham.data,
13512  * <double*> dmom_v_ham_grad_p.data)
13513  * def NavierStokes_3D_Evaluate(const double rho, # <<<<<<<<<<<<<<
13514  * const double nu,
13515  * np.ndarray g,
13516  */
13517 
13518  /* function exit code */
13519  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
13520  goto __pyx_L0;
13521  __pyx_L1_error:;
13522  __Pyx_XDECREF(__pyx_t_1);
13523  __Pyx_AddTraceback("ctransportCoefficients.NavierStokes_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
13524  __pyx_r = NULL;
13525  __pyx_L0:;
13526  __Pyx_XGIVEREF(__pyx_r);
13527  __Pyx_RefNannyFinishContext();
13528  return __pyx_r;
13529 }
13530 
13531 /* "ctransportCoefficients.pyx":3961
13532  * <double*> mom_w_ham.data,
13533  * <double*> dmom_w_ham_grad_p.data)
13534  * def Stokes_2D_Evaluate(const double rho, # <<<<<<<<<<<<<<
13535  * const double nu,
13536  * np.ndarray g,
13537  */
13538 
13539 /* Python wrapper */
13540 static PyObject *__pyx_pw_22ctransportCoefficients_73Stokes_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
13541 static PyMethodDef __pyx_mdef_22ctransportCoefficients_73Stokes_2D_Evaluate = {"Stokes_2D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_73Stokes_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
13542 static PyObject *__pyx_pw_22ctransportCoefficients_73Stokes_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
13543  double __pyx_v_rho;
13544  double __pyx_v_nu;
13545  PyArrayObject *__pyx_v_g = 0;
13546  PyArrayObject *__pyx_v_p = 0;
13547  PyArrayObject *__pyx_v_grad_p = 0;
13548  PyArrayObject *__pyx_v_u = 0;
13549  PyArrayObject *__pyx_v_v = 0;
13550  PyArrayObject *__pyx_v_mom_u_acc = 0;
13551  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
13552  PyArrayObject *__pyx_v_mom_v_acc = 0;
13553  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
13554  PyArrayObject *__pyx_v_mass_adv = 0;
13555  PyArrayObject *__pyx_v_dmass_adv_u = 0;
13556  PyArrayObject *__pyx_v_dmass_adv_v = 0;
13557  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
13558  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
13559  PyArrayObject *__pyx_v_mom_u_source = 0;
13560  PyArrayObject *__pyx_v_mom_v_source = 0;
13561  PyArrayObject *__pyx_v_mom_u_ham = 0;
13562  PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
13563  PyArrayObject *__pyx_v_mom_v_ham = 0;
13564  PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
13565  int __pyx_lineno = 0;
13566  const char *__pyx_filename = NULL;
13567  int __pyx_clineno = 0;
13568  PyObject *__pyx_r = 0;
13569  __Pyx_RefNannyDeclarations
13570  __Pyx_RefNannySetupContext("Stokes_2D_Evaluate (wrapper)", 0);
13571  {
13572  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_nu,&__pyx_n_s_g,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,0};
13573  PyObject* values[22] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
13574  if (unlikely(__pyx_kwds)) {
13575  Py_ssize_t kw_args;
13576  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
13577  switch (pos_args) {
13578  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
13579  CYTHON_FALLTHROUGH;
13580  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
13581  CYTHON_FALLTHROUGH;
13582  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
13583  CYTHON_FALLTHROUGH;
13584  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
13585  CYTHON_FALLTHROUGH;
13586  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
13587  CYTHON_FALLTHROUGH;
13588  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
13589  CYTHON_FALLTHROUGH;
13590  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
13591  CYTHON_FALLTHROUGH;
13592  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
13593  CYTHON_FALLTHROUGH;
13594  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
13595  CYTHON_FALLTHROUGH;
13596  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
13597  CYTHON_FALLTHROUGH;
13598  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
13599  CYTHON_FALLTHROUGH;
13600  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
13601  CYTHON_FALLTHROUGH;
13602  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
13603  CYTHON_FALLTHROUGH;
13604  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
13605  CYTHON_FALLTHROUGH;
13606  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
13607  CYTHON_FALLTHROUGH;
13608  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
13609  CYTHON_FALLTHROUGH;
13610  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
13611  CYTHON_FALLTHROUGH;
13612  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
13613  CYTHON_FALLTHROUGH;
13614  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
13615  CYTHON_FALLTHROUGH;
13616  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13617  CYTHON_FALLTHROUGH;
13618  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13619  CYTHON_FALLTHROUGH;
13620  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13621  CYTHON_FALLTHROUGH;
13622  case 0: break;
13623  default: goto __pyx_L5_argtuple_error;
13624  }
13625  kw_args = PyDict_Size(__pyx_kwds);
13626  switch (pos_args) {
13627  case 0:
13628  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
13629  else goto __pyx_L5_argtuple_error;
13630  CYTHON_FALLTHROUGH;
13631  case 1:
13632  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
13633  else {
13634  __Pyx_RaiseArgtupleInvalid("Stokes_2D_Evaluate", 1, 22, 22, 1); __PYX_ERR(0, 3961, __pyx_L3_error)
13635  }
13636  CYTHON_FALLTHROUGH;
13637  case 2:
13638  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
13639  else {
13640  __Pyx_RaiseArgtupleInvalid("Stokes_2D_Evaluate", 1, 22, 22, 2); __PYX_ERR(0, 3961, __pyx_L3_error)
13641  }
13642  CYTHON_FALLTHROUGH;
13643  case 3:
13644  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
13645  else {
13646  __Pyx_RaiseArgtupleInvalid("Stokes_2D_Evaluate", 1, 22, 22, 3); __PYX_ERR(0, 3961, __pyx_L3_error)
13647  }
13648  CYTHON_FALLTHROUGH;
13649  case 4:
13650  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
13651  else {
13652  __Pyx_RaiseArgtupleInvalid("Stokes_2D_Evaluate", 1, 22, 22, 4); __PYX_ERR(0, 3961, __pyx_L3_error)
13653  }
13654  CYTHON_FALLTHROUGH;
13655  case 5:
13656  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
13657  else {
13658  __Pyx_RaiseArgtupleInvalid("Stokes_2D_Evaluate", 1, 22, 22, 5); __PYX_ERR(0, 3961, __pyx_L3_error)
13659  }
13660  CYTHON_FALLTHROUGH;
13661  case 6:
13662  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
13663  else {
13664  __Pyx_RaiseArgtupleInvalid("Stokes_2D_Evaluate", 1, 22, 22, 6); __PYX_ERR(0, 3961, __pyx_L3_error)
13665  }
13666  CYTHON_FALLTHROUGH;
13667  case 7:
13668  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
13669  else {
13670  __Pyx_RaiseArgtupleInvalid("Stokes_2D_Evaluate", 1, 22, 22, 7); __PYX_ERR(0, 3961, __pyx_L3_error)
13671  }
13672  CYTHON_FALLTHROUGH;
13673  case 8:
13674  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
13675  else {
13676  __Pyx_RaiseArgtupleInvalid("Stokes_2D_Evaluate", 1, 22, 22, 8); __PYX_ERR(0, 3961, __pyx_L3_error)
13677  }
13678  CYTHON_FALLTHROUGH;
13679  case 9:
13680  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
13681  else {
13682  __Pyx_RaiseArgtupleInvalid("Stokes_2D_Evaluate", 1, 22, 22, 9); __PYX_ERR(0, 3961, __pyx_L3_error)
13683  }
13684  CYTHON_FALLTHROUGH;
13685  case 10:
13686  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
13687  else {
13688  __Pyx_RaiseArgtupleInvalid("Stokes_2D_Evaluate", 1, 22, 22, 10); __PYX_ERR(0, 3961, __pyx_L3_error)
13689  }
13690  CYTHON_FALLTHROUGH;
13691  case 11:
13692  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
13693  else {
13694  __Pyx_RaiseArgtupleInvalid("Stokes_2D_Evaluate", 1, 22, 22, 11); __PYX_ERR(0, 3961, __pyx_L3_error)
13695  }
13696  CYTHON_FALLTHROUGH;
13697  case 12:
13698  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
13699  else {
13700  __Pyx_RaiseArgtupleInvalid("Stokes_2D_Evaluate", 1, 22, 22, 12); __PYX_ERR(0, 3961, __pyx_L3_error)
13701  }
13702  CYTHON_FALLTHROUGH;
13703  case 13:
13704  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
13705  else {
13706  __Pyx_RaiseArgtupleInvalid("Stokes_2D_Evaluate", 1, 22, 22, 13); __PYX_ERR(0, 3961, __pyx_L3_error)
13707  }
13708  CYTHON_FALLTHROUGH;
13709  case 14:
13710  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
13711  else {
13712  __Pyx_RaiseArgtupleInvalid("Stokes_2D_Evaluate", 1, 22, 22, 14); __PYX_ERR(0, 3961, __pyx_L3_error)
13713  }
13714  CYTHON_FALLTHROUGH;
13715  case 15:
13716  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
13717  else {
13718  __Pyx_RaiseArgtupleInvalid("Stokes_2D_Evaluate", 1, 22, 22, 15); __PYX_ERR(0, 3961, __pyx_L3_error)
13719  }
13720  CYTHON_FALLTHROUGH;
13721  case 16:
13722  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
13723  else {
13724  __Pyx_RaiseArgtupleInvalid("Stokes_2D_Evaluate", 1, 22, 22, 16); __PYX_ERR(0, 3961, __pyx_L3_error)
13725  }
13726  CYTHON_FALLTHROUGH;
13727  case 17:
13728  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
13729  else {
13730  __Pyx_RaiseArgtupleInvalid("Stokes_2D_Evaluate", 1, 22, 22, 17); __PYX_ERR(0, 3961, __pyx_L3_error)
13731  }
13732  CYTHON_FALLTHROUGH;
13733  case 18:
13734  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
13735  else {
13736  __Pyx_RaiseArgtupleInvalid("Stokes_2D_Evaluate", 1, 22, 22, 18); __PYX_ERR(0, 3961, __pyx_L3_error)
13737  }
13738  CYTHON_FALLTHROUGH;
13739  case 19:
13740  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
13741  else {
13742  __Pyx_RaiseArgtupleInvalid("Stokes_2D_Evaluate", 1, 22, 22, 19); __PYX_ERR(0, 3961, __pyx_L3_error)
13743  }
13744  CYTHON_FALLTHROUGH;
13745  case 20:
13746  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
13747  else {
13748  __Pyx_RaiseArgtupleInvalid("Stokes_2D_Evaluate", 1, 22, 22, 20); __PYX_ERR(0, 3961, __pyx_L3_error)
13749  }
13750  CYTHON_FALLTHROUGH;
13751  case 21:
13752  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
13753  else {
13754  __Pyx_RaiseArgtupleInvalid("Stokes_2D_Evaluate", 1, 22, 22, 21); __PYX_ERR(0, 3961, __pyx_L3_error)
13755  }
13756  }
13757  if (unlikely(kw_args > 0)) {
13758  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "Stokes_2D_Evaluate") < 0)) __PYX_ERR(0, 3961, __pyx_L3_error)
13759  }
13760  } else if (PyTuple_GET_SIZE(__pyx_args) != 22) {
13761  goto __pyx_L5_argtuple_error;
13762  } else {
13763  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13764  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13765  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13766  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
13767  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
13768  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
13769  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
13770  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
13771  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
13772  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
13773  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
13774  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
13775  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
13776  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
13777  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
13778  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
13779  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
13780  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
13781  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
13782  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
13783  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
13784  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
13785  }
13786  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3961, __pyx_L3_error)
13787  __pyx_v_nu = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_nu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3962, __pyx_L3_error)
13788  __pyx_v_g = ((PyArrayObject *)values[2]);
13789  __pyx_v_p = ((PyArrayObject *)values[3]);
13790  __pyx_v_grad_p = ((PyArrayObject *)values[4]);
13791  __pyx_v_u = ((PyArrayObject *)values[5]);
13792  __pyx_v_v = ((PyArrayObject *)values[6]);
13793  __pyx_v_mom_u_acc = ((PyArrayObject *)values[7]);
13794  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[8]);
13795  __pyx_v_mom_v_acc = ((PyArrayObject *)values[9]);
13796  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[10]);
13797  __pyx_v_mass_adv = ((PyArrayObject *)values[11]);
13798  __pyx_v_dmass_adv_u = ((PyArrayObject *)values[12]);
13799  __pyx_v_dmass_adv_v = ((PyArrayObject *)values[13]);
13800  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[14]);
13801  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[15]);
13802  __pyx_v_mom_u_source = ((PyArrayObject *)values[16]);
13803  __pyx_v_mom_v_source = ((PyArrayObject *)values[17]);
13804  __pyx_v_mom_u_ham = ((PyArrayObject *)values[18]);
13805  __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[19]);
13806  __pyx_v_mom_v_ham = ((PyArrayObject *)values[20]);
13807  __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[21]);
13808  }
13809  goto __pyx_L4_argument_unpacking_done;
13810  __pyx_L5_argtuple_error:;
13811  __Pyx_RaiseArgtupleInvalid("Stokes_2D_Evaluate", 1, 22, 22, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3961, __pyx_L3_error)
13812  __pyx_L3_error:;
13813  __Pyx_AddTraceback("ctransportCoefficients.Stokes_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
13814  __Pyx_RefNannyFinishContext();
13815  return NULL;
13816  __pyx_L4_argument_unpacking_done:;
13817  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 3963, __pyx_L1_error)
13818  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 3964, __pyx_L1_error)
13819  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1, "grad_p", 0))) __PYX_ERR(0, 3965, __pyx_L1_error)
13820  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 3966, __pyx_L1_error)
13821  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 3967, __pyx_L1_error)
13822  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 3968, __pyx_L1_error)
13823  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 3969, __pyx_L1_error)
13824  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 3970, __pyx_L1_error)
13825  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 3971, __pyx_L1_error)
13826  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 3972, __pyx_L1_error)
13827  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_u", 0))) __PYX_ERR(0, 3973, __pyx_L1_error)
13828  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_v", 0))) __PYX_ERR(0, 3974, __pyx_L1_error)
13829  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 3975, __pyx_L1_error)
13830  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 3976, __pyx_L1_error)
13831  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 3977, __pyx_L1_error)
13832  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 3978, __pyx_L1_error)
13833  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_u_ham", 0))) __PYX_ERR(0, 3979, __pyx_L1_error)
13834  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 3980, __pyx_L1_error)
13835  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_v_ham", 0))) __PYX_ERR(0, 3981, __pyx_L1_error)
13836  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 3982, __pyx_L1_error)
13837  __pyx_r = __pyx_pf_22ctransportCoefficients_72Stokes_2D_Evaluate(__pyx_self, __pyx_v_rho, __pyx_v_nu, __pyx_v_g, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p);
13838 
13839  /* function exit code */
13840  goto __pyx_L0;
13841  __pyx_L1_error:;
13842  __pyx_r = NULL;
13843  __pyx_L0:;
13844  __Pyx_RefNannyFinishContext();
13845  return __pyx_r;
13846 }
13847 
13848 static PyObject *__pyx_pf_22ctransportCoefficients_72Stokes_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p) {
13849  PyObject *__pyx_r = NULL;
13850  __Pyx_RefNannyDeclarations
13851  PyObject *__pyx_t_1 = NULL;
13852  int __pyx_t_2;
13853  int __pyx_lineno = 0;
13854  const char *__pyx_filename = NULL;
13855  int __pyx_clineno = 0;
13856  __Pyx_RefNannySetupContext("Stokes_2D_Evaluate", 0);
13857 
13858  /* "ctransportCoefficients.pyx":3983
13859  * np.ndarray mom_v_ham,
13860  * np.ndarray dmom_v_ham_grad_p):
13861  * cStokes_2D_Evaluate(p.size, # <<<<<<<<<<<<<<
13862  * rho,
13863  * nu,
13864  */
13865  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3983, __pyx_L1_error)
13866  __Pyx_GOTREF(__pyx_t_1);
13867  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3983, __pyx_L1_error)
13868  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13869 
13870  /* "ctransportCoefficients.pyx":4005
13871  * <double*> dmom_u_ham_grad_p.data,
13872  * <double*> mom_v_ham.data,
13873  * <double*> dmom_v_ham_grad_p.data) # <<<<<<<<<<<<<<
13874  * def StokesP_2D_Evaluate(const double rho,
13875  * const double nu,
13876  */
13877  Stokes_2D_Evaluate(__pyx_t_2, __pyx_v_rho, __pyx_v_nu, ((double *)__pyx_v_g->data), ((double *)__pyx_v_p->data), ((double *)__pyx_v_grad_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_v_acc_v->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_u->data), ((double *)__pyx_v_dmass_adv_v->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_mom_u_ham->data), ((double *)__pyx_v_dmom_u_ham_grad_p->data), ((double *)__pyx_v_mom_v_ham->data), ((double *)__pyx_v_dmom_v_ham_grad_p->data));
13878 
13879  /* "ctransportCoefficients.pyx":3961
13880  * <double*> mom_w_ham.data,
13881  * <double*> dmom_w_ham_grad_p.data)
13882  * def Stokes_2D_Evaluate(const double rho, # <<<<<<<<<<<<<<
13883  * const double nu,
13884  * np.ndarray g,
13885  */
13886 
13887  /* function exit code */
13888  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
13889  goto __pyx_L0;
13890  __pyx_L1_error:;
13891  __Pyx_XDECREF(__pyx_t_1);
13892  __Pyx_AddTraceback("ctransportCoefficients.Stokes_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
13893  __pyx_r = NULL;
13894  __pyx_L0:;
13895  __Pyx_XGIVEREF(__pyx_r);
13896  __Pyx_RefNannyFinishContext();
13897  return __pyx_r;
13898 }
13899 
13900 /* "ctransportCoefficients.pyx":4006
13901  * <double*> mom_v_ham.data,
13902  * <double*> dmom_v_ham_grad_p.data)
13903  * def StokesP_2D_Evaluate(const double rho, # <<<<<<<<<<<<<<
13904  * const double nu,
13905  * np.ndarray g,
13906  */
13907 
13908 /* Python wrapper */
13909 static PyObject *__pyx_pw_22ctransportCoefficients_75StokesP_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
13910 static PyMethodDef __pyx_mdef_22ctransportCoefficients_75StokesP_2D_Evaluate = {"StokesP_2D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_75StokesP_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
13911 static PyObject *__pyx_pw_22ctransportCoefficients_75StokesP_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
13912  double __pyx_v_rho;
13913  double __pyx_v_nu;
13914  PyArrayObject *__pyx_v_g = 0;
13915  PyArrayObject *__pyx_v_p = 0;
13916  PyArrayObject *__pyx_v_u = 0;
13917  PyArrayObject *__pyx_v_v = 0;
13918  PyArrayObject *__pyx_v_mom_u_acc = 0;
13919  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
13920  PyArrayObject *__pyx_v_mom_v_acc = 0;
13921  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
13922  PyArrayObject *__pyx_v_mass_adv = 0;
13923  PyArrayObject *__pyx_v_dmass_adv_u = 0;
13924  PyArrayObject *__pyx_v_dmass_adv_v = 0;
13925  PyArrayObject *__pyx_v_mom_u_adv = 0;
13926  PyArrayObject *__pyx_v_dmom_u_adv_p = 0;
13927  PyArrayObject *__pyx_v_mom_v_adv = 0;
13928  PyArrayObject *__pyx_v_dmom_v_adv_p = 0;
13929  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
13930  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
13931  PyArrayObject *__pyx_v_mom_u_source = 0;
13932  PyArrayObject *__pyx_v_mom_v_source = 0;
13933  int __pyx_lineno = 0;
13934  const char *__pyx_filename = NULL;
13935  int __pyx_clineno = 0;
13936  PyObject *__pyx_r = 0;
13937  __Pyx_RefNannyDeclarations
13938  __Pyx_RefNannySetupContext("StokesP_2D_Evaluate (wrapper)", 0);
13939  {
13940  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_nu,&__pyx_n_s_g,&__pyx_n_s_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_p,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_p,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,0};
13941  PyObject* values[21] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
13942  if (unlikely(__pyx_kwds)) {
13943  Py_ssize_t kw_args;
13944  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
13945  switch (pos_args) {
13946  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
13947  CYTHON_FALLTHROUGH;
13948  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
13949  CYTHON_FALLTHROUGH;
13950  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
13951  CYTHON_FALLTHROUGH;
13952  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
13953  CYTHON_FALLTHROUGH;
13954  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
13955  CYTHON_FALLTHROUGH;
13956  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
13957  CYTHON_FALLTHROUGH;
13958  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
13959  CYTHON_FALLTHROUGH;
13960  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
13961  CYTHON_FALLTHROUGH;
13962  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
13963  CYTHON_FALLTHROUGH;
13964  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
13965  CYTHON_FALLTHROUGH;
13966  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
13967  CYTHON_FALLTHROUGH;
13968  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
13969  CYTHON_FALLTHROUGH;
13970  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
13971  CYTHON_FALLTHROUGH;
13972  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
13973  CYTHON_FALLTHROUGH;
13974  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
13975  CYTHON_FALLTHROUGH;
13976  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
13977  CYTHON_FALLTHROUGH;
13978  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
13979  CYTHON_FALLTHROUGH;
13980  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
13981  CYTHON_FALLTHROUGH;
13982  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13983  CYTHON_FALLTHROUGH;
13984  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13985  CYTHON_FALLTHROUGH;
13986  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13987  CYTHON_FALLTHROUGH;
13988  case 0: break;
13989  default: goto __pyx_L5_argtuple_error;
13990  }
13991  kw_args = PyDict_Size(__pyx_kwds);
13992  switch (pos_args) {
13993  case 0:
13994  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
13995  else goto __pyx_L5_argtuple_error;
13996  CYTHON_FALLTHROUGH;
13997  case 1:
13998  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
13999  else {
14000  __Pyx_RaiseArgtupleInvalid("StokesP_2D_Evaluate", 1, 21, 21, 1); __PYX_ERR(0, 4006, __pyx_L3_error)
14001  }
14002  CYTHON_FALLTHROUGH;
14003  case 2:
14004  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
14005  else {
14006  __Pyx_RaiseArgtupleInvalid("StokesP_2D_Evaluate", 1, 21, 21, 2); __PYX_ERR(0, 4006, __pyx_L3_error)
14007  }
14008  CYTHON_FALLTHROUGH;
14009  case 3:
14010  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
14011  else {
14012  __Pyx_RaiseArgtupleInvalid("StokesP_2D_Evaluate", 1, 21, 21, 3); __PYX_ERR(0, 4006, __pyx_L3_error)
14013  }
14014  CYTHON_FALLTHROUGH;
14015  case 4:
14016  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
14017  else {
14018  __Pyx_RaiseArgtupleInvalid("StokesP_2D_Evaluate", 1, 21, 21, 4); __PYX_ERR(0, 4006, __pyx_L3_error)
14019  }
14020  CYTHON_FALLTHROUGH;
14021  case 5:
14022  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
14023  else {
14024  __Pyx_RaiseArgtupleInvalid("StokesP_2D_Evaluate", 1, 21, 21, 5); __PYX_ERR(0, 4006, __pyx_L3_error)
14025  }
14026  CYTHON_FALLTHROUGH;
14027  case 6:
14028  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
14029  else {
14030  __Pyx_RaiseArgtupleInvalid("StokesP_2D_Evaluate", 1, 21, 21, 6); __PYX_ERR(0, 4006, __pyx_L3_error)
14031  }
14032  CYTHON_FALLTHROUGH;
14033  case 7:
14034  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
14035  else {
14036  __Pyx_RaiseArgtupleInvalid("StokesP_2D_Evaluate", 1, 21, 21, 7); __PYX_ERR(0, 4006, __pyx_L3_error)
14037  }
14038  CYTHON_FALLTHROUGH;
14039  case 8:
14040  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
14041  else {
14042  __Pyx_RaiseArgtupleInvalid("StokesP_2D_Evaluate", 1, 21, 21, 8); __PYX_ERR(0, 4006, __pyx_L3_error)
14043  }
14044  CYTHON_FALLTHROUGH;
14045  case 9:
14046  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
14047  else {
14048  __Pyx_RaiseArgtupleInvalid("StokesP_2D_Evaluate", 1, 21, 21, 9); __PYX_ERR(0, 4006, __pyx_L3_error)
14049  }
14050  CYTHON_FALLTHROUGH;
14051  case 10:
14052  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
14053  else {
14054  __Pyx_RaiseArgtupleInvalid("StokesP_2D_Evaluate", 1, 21, 21, 10); __PYX_ERR(0, 4006, __pyx_L3_error)
14055  }
14056  CYTHON_FALLTHROUGH;
14057  case 11:
14058  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
14059  else {
14060  __Pyx_RaiseArgtupleInvalid("StokesP_2D_Evaluate", 1, 21, 21, 11); __PYX_ERR(0, 4006, __pyx_L3_error)
14061  }
14062  CYTHON_FALLTHROUGH;
14063  case 12:
14064  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
14065  else {
14066  __Pyx_RaiseArgtupleInvalid("StokesP_2D_Evaluate", 1, 21, 21, 12); __PYX_ERR(0, 4006, __pyx_L3_error)
14067  }
14068  CYTHON_FALLTHROUGH;
14069  case 13:
14070  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
14071  else {
14072  __Pyx_RaiseArgtupleInvalid("StokesP_2D_Evaluate", 1, 21, 21, 13); __PYX_ERR(0, 4006, __pyx_L3_error)
14073  }
14074  CYTHON_FALLTHROUGH;
14075  case 14:
14076  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_p)) != 0)) kw_args--;
14077  else {
14078  __Pyx_RaiseArgtupleInvalid("StokesP_2D_Evaluate", 1, 21, 21, 14); __PYX_ERR(0, 4006, __pyx_L3_error)
14079  }
14080  CYTHON_FALLTHROUGH;
14081  case 15:
14082  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
14083  else {
14084  __Pyx_RaiseArgtupleInvalid("StokesP_2D_Evaluate", 1, 21, 21, 15); __PYX_ERR(0, 4006, __pyx_L3_error)
14085  }
14086  CYTHON_FALLTHROUGH;
14087  case 16:
14088  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_p)) != 0)) kw_args--;
14089  else {
14090  __Pyx_RaiseArgtupleInvalid("StokesP_2D_Evaluate", 1, 21, 21, 16); __PYX_ERR(0, 4006, __pyx_L3_error)
14091  }
14092  CYTHON_FALLTHROUGH;
14093  case 17:
14094  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
14095  else {
14096  __Pyx_RaiseArgtupleInvalid("StokesP_2D_Evaluate", 1, 21, 21, 17); __PYX_ERR(0, 4006, __pyx_L3_error)
14097  }
14098  CYTHON_FALLTHROUGH;
14099  case 18:
14100  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
14101  else {
14102  __Pyx_RaiseArgtupleInvalid("StokesP_2D_Evaluate", 1, 21, 21, 18); __PYX_ERR(0, 4006, __pyx_L3_error)
14103  }
14104  CYTHON_FALLTHROUGH;
14105  case 19:
14106  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
14107  else {
14108  __Pyx_RaiseArgtupleInvalid("StokesP_2D_Evaluate", 1, 21, 21, 19); __PYX_ERR(0, 4006, __pyx_L3_error)
14109  }
14110  CYTHON_FALLTHROUGH;
14111  case 20:
14112  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
14113  else {
14114  __Pyx_RaiseArgtupleInvalid("StokesP_2D_Evaluate", 1, 21, 21, 20); __PYX_ERR(0, 4006, __pyx_L3_error)
14115  }
14116  }
14117  if (unlikely(kw_args > 0)) {
14118  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "StokesP_2D_Evaluate") < 0)) __PYX_ERR(0, 4006, __pyx_L3_error)
14119  }
14120  } else if (PyTuple_GET_SIZE(__pyx_args) != 21) {
14121  goto __pyx_L5_argtuple_error;
14122  } else {
14123  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14124  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14125  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14126  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
14127  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
14128  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
14129  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
14130  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
14131  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
14132  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
14133  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
14134  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
14135  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
14136  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
14137  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
14138  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
14139  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
14140  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
14141  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
14142  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
14143  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
14144  }
14145  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4006, __pyx_L3_error)
14146  __pyx_v_nu = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_nu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4007, __pyx_L3_error)
14147  __pyx_v_g = ((PyArrayObject *)values[2]);
14148  __pyx_v_p = ((PyArrayObject *)values[3]);
14149  __pyx_v_u = ((PyArrayObject *)values[4]);
14150  __pyx_v_v = ((PyArrayObject *)values[5]);
14151  __pyx_v_mom_u_acc = ((PyArrayObject *)values[6]);
14152  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[7]);
14153  __pyx_v_mom_v_acc = ((PyArrayObject *)values[8]);
14154  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[9]);
14155  __pyx_v_mass_adv = ((PyArrayObject *)values[10]);
14156  __pyx_v_dmass_adv_u = ((PyArrayObject *)values[11]);
14157  __pyx_v_dmass_adv_v = ((PyArrayObject *)values[12]);
14158  __pyx_v_mom_u_adv = ((PyArrayObject *)values[13]);
14159  __pyx_v_dmom_u_adv_p = ((PyArrayObject *)values[14]);
14160  __pyx_v_mom_v_adv = ((PyArrayObject *)values[15]);
14161  __pyx_v_dmom_v_adv_p = ((PyArrayObject *)values[16]);
14162  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[17]);
14163  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[18]);
14164  __pyx_v_mom_u_source = ((PyArrayObject *)values[19]);
14165  __pyx_v_mom_v_source = ((PyArrayObject *)values[20]);
14166  }
14167  goto __pyx_L4_argument_unpacking_done;
14168  __pyx_L5_argtuple_error:;
14169  __Pyx_RaiseArgtupleInvalid("StokesP_2D_Evaluate", 1, 21, 21, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4006, __pyx_L3_error)
14170  __pyx_L3_error:;
14171  __Pyx_AddTraceback("ctransportCoefficients.StokesP_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
14172  __Pyx_RefNannyFinishContext();
14173  return NULL;
14174  __pyx_L4_argument_unpacking_done:;
14175  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 4008, __pyx_L1_error)
14176  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 4009, __pyx_L1_error)
14177  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 4010, __pyx_L1_error)
14178  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 4011, __pyx_L1_error)
14179  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 4012, __pyx_L1_error)
14180  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 4013, __pyx_L1_error)
14181  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 4014, __pyx_L1_error)
14182  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 4015, __pyx_L1_error)
14183  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 4016, __pyx_L1_error)
14184  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_u", 0))) __PYX_ERR(0, 4017, __pyx_L1_error)
14185  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_v", 0))) __PYX_ERR(0, 4018, __pyx_L1_error)
14186  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_u_adv", 0))) __PYX_ERR(0, 4019, __pyx_L1_error)
14187  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_p", 0))) __PYX_ERR(0, 4020, __pyx_L1_error)
14188  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_v_adv", 0))) __PYX_ERR(0, 4021, __pyx_L1_error)
14189  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_p", 0))) __PYX_ERR(0, 4022, __pyx_L1_error)
14190  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 4023, __pyx_L1_error)
14191  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 4024, __pyx_L1_error)
14192  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 4025, __pyx_L1_error)
14193  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 4026, __pyx_L1_error)
14194  __pyx_r = __pyx_pf_22ctransportCoefficients_74StokesP_2D_Evaluate(__pyx_self, __pyx_v_rho, __pyx_v_nu, __pyx_v_g, __pyx_v_p, __pyx_v_u, __pyx_v_v, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_p, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_p, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source);
14195 
14196  /* function exit code */
14197  goto __pyx_L0;
14198  __pyx_L1_error:;
14199  __pyx_r = NULL;
14200  __pyx_L0:;
14201  __Pyx_RefNannyFinishContext();
14202  return __pyx_r;
14203 }
14204 
14205 static PyObject *__pyx_pf_22ctransportCoefficients_74StokesP_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_p, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_p, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source) {
14206  PyObject *__pyx_r = NULL;
14207  __Pyx_RefNannyDeclarations
14208  PyObject *__pyx_t_1 = NULL;
14209  int __pyx_t_2;
14210  int __pyx_lineno = 0;
14211  const char *__pyx_filename = NULL;
14212  int __pyx_clineno = 0;
14213  __Pyx_RefNannySetupContext("StokesP_2D_Evaluate", 0);
14214 
14215  /* "ctransportCoefficients.pyx":4027
14216  * np.ndarray mom_u_source,
14217  * np.ndarray mom_v_source):
14218  * cStokesP_2D_Evaluate(p.size, # <<<<<<<<<<<<<<
14219  * rho,
14220  * nu,
14221  */
14222  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4027, __pyx_L1_error)
14223  __Pyx_GOTREF(__pyx_t_1);
14224  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4027, __pyx_L1_error)
14225  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
14226 
14227  /* "ctransportCoefficients.pyx":4048
14228  * <double*> mom_v_diff_ten.data,
14229  * <double*> mom_u_source.data,
14230  * <double*> mom_v_source.data) # <<<<<<<<<<<<<<
14231  * def Stokes_3D_Evaluate(const double rho,
14232  * const double nu,
14233  */
14234  StokesP_2D_Evaluate(__pyx_t_2, __pyx_v_rho, __pyx_v_nu, ((double *)__pyx_v_g->data), ((double *)__pyx_v_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_v_acc_v->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_u->data), ((double *)__pyx_v_dmass_adv_v->data), ((double *)__pyx_v_mom_u_adv->data), ((double *)__pyx_v_dmom_u_adv_p->data), ((double *)__pyx_v_mom_v_adv->data), ((double *)__pyx_v_dmom_v_adv_p->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data));
14235 
14236  /* "ctransportCoefficients.pyx":4006
14237  * <double*> mom_v_ham.data,
14238  * <double*> dmom_v_ham_grad_p.data)
14239  * def StokesP_2D_Evaluate(const double rho, # <<<<<<<<<<<<<<
14240  * const double nu,
14241  * np.ndarray g,
14242  */
14243 
14244  /* function exit code */
14245  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
14246  goto __pyx_L0;
14247  __pyx_L1_error:;
14248  __Pyx_XDECREF(__pyx_t_1);
14249  __Pyx_AddTraceback("ctransportCoefficients.StokesP_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
14250  __pyx_r = NULL;
14251  __pyx_L0:;
14252  __Pyx_XGIVEREF(__pyx_r);
14253  __Pyx_RefNannyFinishContext();
14254  return __pyx_r;
14255 }
14256 
14257 /* "ctransportCoefficients.pyx":4049
14258  * <double*> mom_u_source.data,
14259  * <double*> mom_v_source.data)
14260  * def Stokes_3D_Evaluate(const double rho, # <<<<<<<<<<<<<<
14261  * const double nu,
14262  * np.ndarray g,
14263  */
14264 
14265 /* Python wrapper */
14266 static PyObject *__pyx_pw_22ctransportCoefficients_77Stokes_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
14267 static PyMethodDef __pyx_mdef_22ctransportCoefficients_77Stokes_3D_Evaluate = {"Stokes_3D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_77Stokes_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
14268 static PyObject *__pyx_pw_22ctransportCoefficients_77Stokes_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
14269  double __pyx_v_rho;
14270  double __pyx_v_nu;
14271  PyArrayObject *__pyx_v_g = 0;
14272  PyArrayObject *__pyx_v_p = 0;
14273  PyArrayObject *__pyx_v_grad_p = 0;
14274  PyArrayObject *__pyx_v_u = 0;
14275  PyArrayObject *__pyx_v_v = 0;
14276  PyArrayObject *__pyx_v_w = 0;
14277  PyArrayObject *__pyx_v_mom_u_acc = 0;
14278  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
14279  PyArrayObject *__pyx_v_mom_v_acc = 0;
14280  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
14281  PyArrayObject *__pyx_v_mom_w_acc = 0;
14282  PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
14283  PyArrayObject *__pyx_v_mass_adv = 0;
14284  PyArrayObject *__pyx_v_dmass_adv_u = 0;
14285  PyArrayObject *__pyx_v_dmass_adv_v = 0;
14286  PyArrayObject *__pyx_v_dmass_adv_w = 0;
14287  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
14288  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
14289  PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
14290  PyArrayObject *__pyx_v_mom_u_source = 0;
14291  PyArrayObject *__pyx_v_mom_v_source = 0;
14292  PyArrayObject *__pyx_v_mom_w_source = 0;
14293  PyArrayObject *__pyx_v_mom_u_ham = 0;
14294  PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
14295  PyArrayObject *__pyx_v_mom_v_ham = 0;
14296  PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
14297  PyArrayObject *__pyx_v_mom_w_ham = 0;
14298  PyArrayObject *__pyx_v_dmom_w_ham_grad_p = 0;
14299  int __pyx_lineno = 0;
14300  const char *__pyx_filename = NULL;
14301  int __pyx_clineno = 0;
14302  PyObject *__pyx_r = 0;
14303  __Pyx_RefNannyDeclarations
14304  __Pyx_RefNannySetupContext("Stokes_3D_Evaluate (wrapper)", 0);
14305  {
14306  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_nu,&__pyx_n_s_g,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_w_acc_w,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_dmass_adv_w,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,&__pyx_n_s_mom_w_ham,&__pyx_n_s_dmom_w_ham_grad_p,0};
14307  PyObject* values[30] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
14308  if (unlikely(__pyx_kwds)) {
14309  Py_ssize_t kw_args;
14310  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
14311  switch (pos_args) {
14312  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
14313  CYTHON_FALLTHROUGH;
14314  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
14315  CYTHON_FALLTHROUGH;
14316  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
14317  CYTHON_FALLTHROUGH;
14318  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
14319  CYTHON_FALLTHROUGH;
14320  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
14321  CYTHON_FALLTHROUGH;
14322  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
14323  CYTHON_FALLTHROUGH;
14324  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
14325  CYTHON_FALLTHROUGH;
14326  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
14327  CYTHON_FALLTHROUGH;
14328  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
14329  CYTHON_FALLTHROUGH;
14330  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
14331  CYTHON_FALLTHROUGH;
14332  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
14333  CYTHON_FALLTHROUGH;
14334  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
14335  CYTHON_FALLTHROUGH;
14336  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
14337  CYTHON_FALLTHROUGH;
14338  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
14339  CYTHON_FALLTHROUGH;
14340  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
14341  CYTHON_FALLTHROUGH;
14342  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
14343  CYTHON_FALLTHROUGH;
14344  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
14345  CYTHON_FALLTHROUGH;
14346  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
14347  CYTHON_FALLTHROUGH;
14348  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
14349  CYTHON_FALLTHROUGH;
14350  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
14351  CYTHON_FALLTHROUGH;
14352  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
14353  CYTHON_FALLTHROUGH;
14354  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
14355  CYTHON_FALLTHROUGH;
14356  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
14357  CYTHON_FALLTHROUGH;
14358  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
14359  CYTHON_FALLTHROUGH;
14360  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
14361  CYTHON_FALLTHROUGH;
14362  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
14363  CYTHON_FALLTHROUGH;
14364  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
14365  CYTHON_FALLTHROUGH;
14366  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14367  CYTHON_FALLTHROUGH;
14368  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14369  CYTHON_FALLTHROUGH;
14370  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14371  CYTHON_FALLTHROUGH;
14372  case 0: break;
14373  default: goto __pyx_L5_argtuple_error;
14374  }
14375  kw_args = PyDict_Size(__pyx_kwds);
14376  switch (pos_args) {
14377  case 0:
14378  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
14379  else goto __pyx_L5_argtuple_error;
14380  CYTHON_FALLTHROUGH;
14381  case 1:
14382  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
14383  else {
14384  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 1); __PYX_ERR(0, 4049, __pyx_L3_error)
14385  }
14386  CYTHON_FALLTHROUGH;
14387  case 2:
14388  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
14389  else {
14390  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 2); __PYX_ERR(0, 4049, __pyx_L3_error)
14391  }
14392  CYTHON_FALLTHROUGH;
14393  case 3:
14394  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
14395  else {
14396  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 3); __PYX_ERR(0, 4049, __pyx_L3_error)
14397  }
14398  CYTHON_FALLTHROUGH;
14399  case 4:
14400  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
14401  else {
14402  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 4); __PYX_ERR(0, 4049, __pyx_L3_error)
14403  }
14404  CYTHON_FALLTHROUGH;
14405  case 5:
14406  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
14407  else {
14408  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 5); __PYX_ERR(0, 4049, __pyx_L3_error)
14409  }
14410  CYTHON_FALLTHROUGH;
14411  case 6:
14412  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
14413  else {
14414  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 6); __PYX_ERR(0, 4049, __pyx_L3_error)
14415  }
14416  CYTHON_FALLTHROUGH;
14417  case 7:
14418  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
14419  else {
14420  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 7); __PYX_ERR(0, 4049, __pyx_L3_error)
14421  }
14422  CYTHON_FALLTHROUGH;
14423  case 8:
14424  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
14425  else {
14426  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 8); __PYX_ERR(0, 4049, __pyx_L3_error)
14427  }
14428  CYTHON_FALLTHROUGH;
14429  case 9:
14430  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
14431  else {
14432  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 9); __PYX_ERR(0, 4049, __pyx_L3_error)
14433  }
14434  CYTHON_FALLTHROUGH;
14435  case 10:
14436  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
14437  else {
14438  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 10); __PYX_ERR(0, 4049, __pyx_L3_error)
14439  }
14440  CYTHON_FALLTHROUGH;
14441  case 11:
14442  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
14443  else {
14444  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 11); __PYX_ERR(0, 4049, __pyx_L3_error)
14445  }
14446  CYTHON_FALLTHROUGH;
14447  case 12:
14448  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
14449  else {
14450  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 12); __PYX_ERR(0, 4049, __pyx_L3_error)
14451  }
14452  CYTHON_FALLTHROUGH;
14453  case 13:
14454  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
14455  else {
14456  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 13); __PYX_ERR(0, 4049, __pyx_L3_error)
14457  }
14458  CYTHON_FALLTHROUGH;
14459  case 14:
14460  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
14461  else {
14462  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 14); __PYX_ERR(0, 4049, __pyx_L3_error)
14463  }
14464  CYTHON_FALLTHROUGH;
14465  case 15:
14466  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
14467  else {
14468  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 15); __PYX_ERR(0, 4049, __pyx_L3_error)
14469  }
14470  CYTHON_FALLTHROUGH;
14471  case 16:
14472  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
14473  else {
14474  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 16); __PYX_ERR(0, 4049, __pyx_L3_error)
14475  }
14476  CYTHON_FALLTHROUGH;
14477  case 17:
14478  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_w)) != 0)) kw_args--;
14479  else {
14480  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 17); __PYX_ERR(0, 4049, __pyx_L3_error)
14481  }
14482  CYTHON_FALLTHROUGH;
14483  case 18:
14484  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
14485  else {
14486  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 18); __PYX_ERR(0, 4049, __pyx_L3_error)
14487  }
14488  CYTHON_FALLTHROUGH;
14489  case 19:
14490  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
14491  else {
14492  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 19); __PYX_ERR(0, 4049, __pyx_L3_error)
14493  }
14494  CYTHON_FALLTHROUGH;
14495  case 20:
14496  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
14497  else {
14498  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 20); __PYX_ERR(0, 4049, __pyx_L3_error)
14499  }
14500  CYTHON_FALLTHROUGH;
14501  case 21:
14502  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
14503  else {
14504  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 21); __PYX_ERR(0, 4049, __pyx_L3_error)
14505  }
14506  CYTHON_FALLTHROUGH;
14507  case 22:
14508  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
14509  else {
14510  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 22); __PYX_ERR(0, 4049, __pyx_L3_error)
14511  }
14512  CYTHON_FALLTHROUGH;
14513  case 23:
14514  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
14515  else {
14516  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 23); __PYX_ERR(0, 4049, __pyx_L3_error)
14517  }
14518  CYTHON_FALLTHROUGH;
14519  case 24:
14520  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
14521  else {
14522  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 24); __PYX_ERR(0, 4049, __pyx_L3_error)
14523  }
14524  CYTHON_FALLTHROUGH;
14525  case 25:
14526  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
14527  else {
14528  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 25); __PYX_ERR(0, 4049, __pyx_L3_error)
14529  }
14530  CYTHON_FALLTHROUGH;
14531  case 26:
14532  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
14533  else {
14534  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 26); __PYX_ERR(0, 4049, __pyx_L3_error)
14535  }
14536  CYTHON_FALLTHROUGH;
14537  case 27:
14538  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
14539  else {
14540  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 27); __PYX_ERR(0, 4049, __pyx_L3_error)
14541  }
14542  CYTHON_FALLTHROUGH;
14543  case 28:
14544  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_ham)) != 0)) kw_args--;
14545  else {
14546  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 28); __PYX_ERR(0, 4049, __pyx_L3_error)
14547  }
14548  CYTHON_FALLTHROUGH;
14549  case 29:
14550  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_ham_grad_p)) != 0)) kw_args--;
14551  else {
14552  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, 29); __PYX_ERR(0, 4049, __pyx_L3_error)
14553  }
14554  }
14555  if (unlikely(kw_args > 0)) {
14556  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "Stokes_3D_Evaluate") < 0)) __PYX_ERR(0, 4049, __pyx_L3_error)
14557  }
14558  } else if (PyTuple_GET_SIZE(__pyx_args) != 30) {
14559  goto __pyx_L5_argtuple_error;
14560  } else {
14561  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14562  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14563  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14564  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
14565  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
14566  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
14567  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
14568  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
14569  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
14570  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
14571  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
14572  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
14573  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
14574  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
14575  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
14576  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
14577  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
14578  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
14579  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
14580  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
14581  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
14582  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
14583  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
14584  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
14585  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
14586  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
14587  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
14588  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
14589  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
14590  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
14591  }
14592  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4049, __pyx_L3_error)
14593  __pyx_v_nu = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_nu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4050, __pyx_L3_error)
14594  __pyx_v_g = ((PyArrayObject *)values[2]);
14595  __pyx_v_p = ((PyArrayObject *)values[3]);
14596  __pyx_v_grad_p = ((PyArrayObject *)values[4]);
14597  __pyx_v_u = ((PyArrayObject *)values[5]);
14598  __pyx_v_v = ((PyArrayObject *)values[6]);
14599  __pyx_v_w = ((PyArrayObject *)values[7]);
14600  __pyx_v_mom_u_acc = ((PyArrayObject *)values[8]);
14601  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[9]);
14602  __pyx_v_mom_v_acc = ((PyArrayObject *)values[10]);
14603  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[11]);
14604  __pyx_v_mom_w_acc = ((PyArrayObject *)values[12]);
14605  __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[13]);
14606  __pyx_v_mass_adv = ((PyArrayObject *)values[14]);
14607  __pyx_v_dmass_adv_u = ((PyArrayObject *)values[15]);
14608  __pyx_v_dmass_adv_v = ((PyArrayObject *)values[16]);
14609  __pyx_v_dmass_adv_w = ((PyArrayObject *)values[17]);
14610  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[18]);
14611  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[19]);
14612  __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[20]);
14613  __pyx_v_mom_u_source = ((PyArrayObject *)values[21]);
14614  __pyx_v_mom_v_source = ((PyArrayObject *)values[22]);
14615  __pyx_v_mom_w_source = ((PyArrayObject *)values[23]);
14616  __pyx_v_mom_u_ham = ((PyArrayObject *)values[24]);
14617  __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[25]);
14618  __pyx_v_mom_v_ham = ((PyArrayObject *)values[26]);
14619  __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[27]);
14620  __pyx_v_mom_w_ham = ((PyArrayObject *)values[28]);
14621  __pyx_v_dmom_w_ham_grad_p = ((PyArrayObject *)values[29]);
14622  }
14623  goto __pyx_L4_argument_unpacking_done;
14624  __pyx_L5_argtuple_error:;
14625  __Pyx_RaiseArgtupleInvalid("Stokes_3D_Evaluate", 1, 30, 30, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4049, __pyx_L3_error)
14626  __pyx_L3_error:;
14627  __Pyx_AddTraceback("ctransportCoefficients.Stokes_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
14628  __Pyx_RefNannyFinishContext();
14629  return NULL;
14630  __pyx_L4_argument_unpacking_done:;
14631  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 4051, __pyx_L1_error)
14632  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 4052, __pyx_L1_error)
14633  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1, "grad_p", 0))) __PYX_ERR(0, 4053, __pyx_L1_error)
14634  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 4054, __pyx_L1_error)
14635  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 4055, __pyx_L1_error)
14636  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1, "w", 0))) __PYX_ERR(0, 4056, __pyx_L1_error)
14637  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 4057, __pyx_L1_error)
14638  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 4058, __pyx_L1_error)
14639  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 4059, __pyx_L1_error)
14640  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 4060, __pyx_L1_error)
14641  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_w_acc", 0))) __PYX_ERR(0, 4061, __pyx_L1_error)
14642  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_acc_w", 0))) __PYX_ERR(0, 4062, __pyx_L1_error)
14643  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 4063, __pyx_L1_error)
14644  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_u", 0))) __PYX_ERR(0, 4064, __pyx_L1_error)
14645  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_v", 0))) __PYX_ERR(0, 4065, __pyx_L1_error)
14646  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_w", 0))) __PYX_ERR(0, 4066, __pyx_L1_error)
14647  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 4067, __pyx_L1_error)
14648  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 4068, __pyx_L1_error)
14649  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_w_diff_ten", 0))) __PYX_ERR(0, 4069, __pyx_L1_error)
14650  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 4070, __pyx_L1_error)
14651  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 4071, __pyx_L1_error)
14652  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1, "mom_w_source", 0))) __PYX_ERR(0, 4072, __pyx_L1_error)
14653  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_u_ham", 0))) __PYX_ERR(0, 4073, __pyx_L1_error)
14654  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 4074, __pyx_L1_error)
14655  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_v_ham", 0))) __PYX_ERR(0, 4075, __pyx_L1_error)
14656  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 4076, __pyx_L1_error)
14657  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_w_ham", 0))) __PYX_ERR(0, 4077, __pyx_L1_error)
14658  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_ham_grad_p", 0))) __PYX_ERR(0, 4078, __pyx_L1_error)
14659  __pyx_r = __pyx_pf_22ctransportCoefficients_76Stokes_3D_Evaluate(__pyx_self, __pyx_v_rho, __pyx_v_nu, __pyx_v_g, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mom_w_acc, __pyx_v_dmom_w_acc_w, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_dmass_adv_w, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p, __pyx_v_mom_w_ham, __pyx_v_dmom_w_ham_grad_p);
14660 
14661  /* function exit code */
14662  goto __pyx_L0;
14663  __pyx_L1_error:;
14664  __pyx_r = NULL;
14665  __pyx_L0:;
14666  __Pyx_RefNannyFinishContext();
14667  return __pyx_r;
14668 }
14669 
14670 static PyObject *__pyx_pf_22ctransportCoefficients_76Stokes_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p) {
14671  PyObject *__pyx_r = NULL;
14672  __Pyx_RefNannyDeclarations
14673  PyObject *__pyx_t_1 = NULL;
14674  int __pyx_t_2;
14675  int __pyx_lineno = 0;
14676  const char *__pyx_filename = NULL;
14677  int __pyx_clineno = 0;
14678  __Pyx_RefNannySetupContext("Stokes_3D_Evaluate", 0);
14679 
14680  /* "ctransportCoefficients.pyx":4079
14681  * np.ndarray mom_w_ham,
14682  * np.ndarray dmom_w_ham_grad_p):
14683  * cStokes_3D_Evaluate(p.size, # <<<<<<<<<<<<<<
14684  * rho,
14685  * nu,
14686  */
14687  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4079, __pyx_L1_error)
14688  __Pyx_GOTREF(__pyx_t_1);
14689  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4079, __pyx_L1_error)
14690  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
14691 
14692  /* "ctransportCoefficients.pyx":4109
14693  * <double*> dmom_v_ham_grad_p.data,
14694  * <double*> mom_w_ham.data,
14695  * <double*> dmom_w_ham_grad_p.data) # <<<<<<<<<<<<<<
14696  * def StokesP_3D_Evaluate(const int nPoints,
14697  * const double rho,
14698  */
14699  Stokes_3D_Evaluate(__pyx_t_2, __pyx_v_rho, __pyx_v_nu, ((double *)__pyx_v_g->data), ((double *)__pyx_v_p->data), ((double *)__pyx_v_grad_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_w->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_v_acc_v->data), ((double *)__pyx_v_mom_w_acc->data), ((double *)__pyx_v_dmom_w_acc_w->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_u->data), ((double *)__pyx_v_dmass_adv_v->data), ((double *)__pyx_v_dmass_adv_w->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_w_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_mom_w_source->data), ((double *)__pyx_v_mom_u_ham->data), ((double *)__pyx_v_dmom_u_ham_grad_p->data), ((double *)__pyx_v_mom_v_ham->data), ((double *)__pyx_v_dmom_v_ham_grad_p->data), ((double *)__pyx_v_mom_w_ham->data), ((double *)__pyx_v_dmom_w_ham_grad_p->data));
14700 
14701  /* "ctransportCoefficients.pyx":4049
14702  * <double*> mom_u_source.data,
14703  * <double*> mom_v_source.data)
14704  * def Stokes_3D_Evaluate(const double rho, # <<<<<<<<<<<<<<
14705  * const double nu,
14706  * np.ndarray g,
14707  */
14708 
14709  /* function exit code */
14710  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
14711  goto __pyx_L0;
14712  __pyx_L1_error:;
14713  __Pyx_XDECREF(__pyx_t_1);
14714  __Pyx_AddTraceback("ctransportCoefficients.Stokes_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
14715  __pyx_r = NULL;
14716  __pyx_L0:;
14717  __Pyx_XGIVEREF(__pyx_r);
14718  __Pyx_RefNannyFinishContext();
14719  return __pyx_r;
14720 }
14721 
14722 /* "ctransportCoefficients.pyx":4110
14723  * <double*> mom_w_ham.data,
14724  * <double*> dmom_w_ham_grad_p.data)
14725  * def StokesP_3D_Evaluate(const int nPoints, # <<<<<<<<<<<<<<
14726  * const double rho,
14727  * const double nu,
14728  */
14729 
14730 /* Python wrapper */
14731 static PyObject *__pyx_pw_22ctransportCoefficients_79StokesP_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
14732 static PyMethodDef __pyx_mdef_22ctransportCoefficients_79StokesP_3D_Evaluate = {"StokesP_3D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_79StokesP_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
14733 static PyObject *__pyx_pw_22ctransportCoefficients_79StokesP_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
14734  int __pyx_v_nPoints;
14735  double __pyx_v_rho;
14736  double __pyx_v_nu;
14737  PyArrayObject *__pyx_v_g = 0;
14738  PyArrayObject *__pyx_v_p = 0;
14739  PyArrayObject *__pyx_v_u = 0;
14740  PyArrayObject *__pyx_v_v = 0;
14741  PyArrayObject *__pyx_v_w = 0;
14742  PyArrayObject *__pyx_v_mom_u_acc = 0;
14743  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
14744  PyArrayObject *__pyx_v_mom_v_acc = 0;
14745  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
14746  PyArrayObject *__pyx_v_mom_w_acc = 0;
14747  PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
14748  PyArrayObject *__pyx_v_mass_adv = 0;
14749  PyArrayObject *__pyx_v_dmass_adv_u = 0;
14750  PyArrayObject *__pyx_v_dmass_adv_v = 0;
14751  PyArrayObject *__pyx_v_dmass_adv_w = 0;
14752  PyArrayObject *__pyx_v_mom_u_adv = 0;
14753  PyArrayObject *__pyx_v_dmom_u_adv_p = 0;
14754  PyArrayObject *__pyx_v_mom_v_adv = 0;
14755  PyArrayObject *__pyx_v_dmom_v_adv_p = 0;
14756  PyArrayObject *__pyx_v_mom_w_adv = 0;
14757  PyArrayObject *__pyx_v_dmom_w_adv_p = 0;
14758  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
14759  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
14760  PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
14761  PyArrayObject *__pyx_v_mom_u_source = 0;
14762  PyArrayObject *__pyx_v_mom_v_source = 0;
14763  PyArrayObject *__pyx_v_mom_w_source = 0;
14764  int __pyx_lineno = 0;
14765  const char *__pyx_filename = NULL;
14766  int __pyx_clineno = 0;
14767  PyObject *__pyx_r = 0;
14768  __Pyx_RefNannyDeclarations
14769  __Pyx_RefNannySetupContext("StokesP_3D_Evaluate (wrapper)", 0);
14770  {
14771  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nPoints,&__pyx_n_s_rho,&__pyx_n_s_nu,&__pyx_n_s_g,&__pyx_n_s_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_w_acc_w,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_dmass_adv_w,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_p,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_p,&__pyx_n_s_mom_w_adv,&__pyx_n_s_dmom_w_adv_p,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,0};
14772  PyObject* values[30] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
14773  if (unlikely(__pyx_kwds)) {
14774  Py_ssize_t kw_args;
14775  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
14776  switch (pos_args) {
14777  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
14778  CYTHON_FALLTHROUGH;
14779  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
14780  CYTHON_FALLTHROUGH;
14781  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
14782  CYTHON_FALLTHROUGH;
14783  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
14784  CYTHON_FALLTHROUGH;
14785  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
14786  CYTHON_FALLTHROUGH;
14787  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
14788  CYTHON_FALLTHROUGH;
14789  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
14790  CYTHON_FALLTHROUGH;
14791  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
14792  CYTHON_FALLTHROUGH;
14793  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
14794  CYTHON_FALLTHROUGH;
14795  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
14796  CYTHON_FALLTHROUGH;
14797  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
14798  CYTHON_FALLTHROUGH;
14799  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
14800  CYTHON_FALLTHROUGH;
14801  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
14802  CYTHON_FALLTHROUGH;
14803  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
14804  CYTHON_FALLTHROUGH;
14805  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
14806  CYTHON_FALLTHROUGH;
14807  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
14808  CYTHON_FALLTHROUGH;
14809  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
14810  CYTHON_FALLTHROUGH;
14811  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
14812  CYTHON_FALLTHROUGH;
14813  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
14814  CYTHON_FALLTHROUGH;
14815  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
14816  CYTHON_FALLTHROUGH;
14817  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
14818  CYTHON_FALLTHROUGH;
14819  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
14820  CYTHON_FALLTHROUGH;
14821  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
14822  CYTHON_FALLTHROUGH;
14823  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
14824  CYTHON_FALLTHROUGH;
14825  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
14826  CYTHON_FALLTHROUGH;
14827  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
14828  CYTHON_FALLTHROUGH;
14829  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
14830  CYTHON_FALLTHROUGH;
14831  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14832  CYTHON_FALLTHROUGH;
14833  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14834  CYTHON_FALLTHROUGH;
14835  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14836  CYTHON_FALLTHROUGH;
14837  case 0: break;
14838  default: goto __pyx_L5_argtuple_error;
14839  }
14840  kw_args = PyDict_Size(__pyx_kwds);
14841  switch (pos_args) {
14842  case 0:
14843  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPoints)) != 0)) kw_args--;
14844  else goto __pyx_L5_argtuple_error;
14845  CYTHON_FALLTHROUGH;
14846  case 1:
14847  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
14848  else {
14849  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 1); __PYX_ERR(0, 4110, __pyx_L3_error)
14850  }
14851  CYTHON_FALLTHROUGH;
14852  case 2:
14853  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
14854  else {
14855  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 2); __PYX_ERR(0, 4110, __pyx_L3_error)
14856  }
14857  CYTHON_FALLTHROUGH;
14858  case 3:
14859  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
14860  else {
14861  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 3); __PYX_ERR(0, 4110, __pyx_L3_error)
14862  }
14863  CYTHON_FALLTHROUGH;
14864  case 4:
14865  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
14866  else {
14867  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 4); __PYX_ERR(0, 4110, __pyx_L3_error)
14868  }
14869  CYTHON_FALLTHROUGH;
14870  case 5:
14871  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
14872  else {
14873  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 5); __PYX_ERR(0, 4110, __pyx_L3_error)
14874  }
14875  CYTHON_FALLTHROUGH;
14876  case 6:
14877  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
14878  else {
14879  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 6); __PYX_ERR(0, 4110, __pyx_L3_error)
14880  }
14881  CYTHON_FALLTHROUGH;
14882  case 7:
14883  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
14884  else {
14885  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 7); __PYX_ERR(0, 4110, __pyx_L3_error)
14886  }
14887  CYTHON_FALLTHROUGH;
14888  case 8:
14889  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
14890  else {
14891  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 8); __PYX_ERR(0, 4110, __pyx_L3_error)
14892  }
14893  CYTHON_FALLTHROUGH;
14894  case 9:
14895  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
14896  else {
14897  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 9); __PYX_ERR(0, 4110, __pyx_L3_error)
14898  }
14899  CYTHON_FALLTHROUGH;
14900  case 10:
14901  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
14902  else {
14903  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 10); __PYX_ERR(0, 4110, __pyx_L3_error)
14904  }
14905  CYTHON_FALLTHROUGH;
14906  case 11:
14907  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
14908  else {
14909  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 11); __PYX_ERR(0, 4110, __pyx_L3_error)
14910  }
14911  CYTHON_FALLTHROUGH;
14912  case 12:
14913  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
14914  else {
14915  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 12); __PYX_ERR(0, 4110, __pyx_L3_error)
14916  }
14917  CYTHON_FALLTHROUGH;
14918  case 13:
14919  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
14920  else {
14921  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 13); __PYX_ERR(0, 4110, __pyx_L3_error)
14922  }
14923  CYTHON_FALLTHROUGH;
14924  case 14:
14925  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
14926  else {
14927  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 14); __PYX_ERR(0, 4110, __pyx_L3_error)
14928  }
14929  CYTHON_FALLTHROUGH;
14930  case 15:
14931  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
14932  else {
14933  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 15); __PYX_ERR(0, 4110, __pyx_L3_error)
14934  }
14935  CYTHON_FALLTHROUGH;
14936  case 16:
14937  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
14938  else {
14939  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 16); __PYX_ERR(0, 4110, __pyx_L3_error)
14940  }
14941  CYTHON_FALLTHROUGH;
14942  case 17:
14943  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_w)) != 0)) kw_args--;
14944  else {
14945  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 17); __PYX_ERR(0, 4110, __pyx_L3_error)
14946  }
14947  CYTHON_FALLTHROUGH;
14948  case 18:
14949  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
14950  else {
14951  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 18); __PYX_ERR(0, 4110, __pyx_L3_error)
14952  }
14953  CYTHON_FALLTHROUGH;
14954  case 19:
14955  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_p)) != 0)) kw_args--;
14956  else {
14957  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 19); __PYX_ERR(0, 4110, __pyx_L3_error)
14958  }
14959  CYTHON_FALLTHROUGH;
14960  case 20:
14961  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
14962  else {
14963  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 20); __PYX_ERR(0, 4110, __pyx_L3_error)
14964  }
14965  CYTHON_FALLTHROUGH;
14966  case 21:
14967  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_p)) != 0)) kw_args--;
14968  else {
14969  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 21); __PYX_ERR(0, 4110, __pyx_L3_error)
14970  }
14971  CYTHON_FALLTHROUGH;
14972  case 22:
14973  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_adv)) != 0)) kw_args--;
14974  else {
14975  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 22); __PYX_ERR(0, 4110, __pyx_L3_error)
14976  }
14977  CYTHON_FALLTHROUGH;
14978  case 23:
14979  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_p)) != 0)) kw_args--;
14980  else {
14981  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 23); __PYX_ERR(0, 4110, __pyx_L3_error)
14982  }
14983  CYTHON_FALLTHROUGH;
14984  case 24:
14985  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
14986  else {
14987  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 24); __PYX_ERR(0, 4110, __pyx_L3_error)
14988  }
14989  CYTHON_FALLTHROUGH;
14990  case 25:
14991  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
14992  else {
14993  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 25); __PYX_ERR(0, 4110, __pyx_L3_error)
14994  }
14995  CYTHON_FALLTHROUGH;
14996  case 26:
14997  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
14998  else {
14999  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 26); __PYX_ERR(0, 4110, __pyx_L3_error)
15000  }
15001  CYTHON_FALLTHROUGH;
15002  case 27:
15003  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
15004  else {
15005  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 27); __PYX_ERR(0, 4110, __pyx_L3_error)
15006  }
15007  CYTHON_FALLTHROUGH;
15008  case 28:
15009  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
15010  else {
15011  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 28); __PYX_ERR(0, 4110, __pyx_L3_error)
15012  }
15013  CYTHON_FALLTHROUGH;
15014  case 29:
15015  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
15016  else {
15017  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, 29); __PYX_ERR(0, 4110, __pyx_L3_error)
15018  }
15019  }
15020  if (unlikely(kw_args > 0)) {
15021  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "StokesP_3D_Evaluate") < 0)) __PYX_ERR(0, 4110, __pyx_L3_error)
15022  }
15023  } else if (PyTuple_GET_SIZE(__pyx_args) != 30) {
15024  goto __pyx_L5_argtuple_error;
15025  } else {
15026  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15027  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15028  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15029  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
15030  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
15031  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
15032  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
15033  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
15034  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
15035  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
15036  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
15037  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
15038  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
15039  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
15040  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
15041  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
15042  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
15043  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
15044  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
15045  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
15046  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
15047  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
15048  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
15049  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
15050  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
15051  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
15052  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
15053  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
15054  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
15055  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
15056  }
15057  __pyx_v_nPoints = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_nPoints == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4110, __pyx_L3_error)
15058  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4111, __pyx_L3_error)
15059  __pyx_v_nu = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_nu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4112, __pyx_L3_error)
15060  __pyx_v_g = ((PyArrayObject *)values[3]);
15061  __pyx_v_p = ((PyArrayObject *)values[4]);
15062  __pyx_v_u = ((PyArrayObject *)values[5]);
15063  __pyx_v_v = ((PyArrayObject *)values[6]);
15064  __pyx_v_w = ((PyArrayObject *)values[7]);
15065  __pyx_v_mom_u_acc = ((PyArrayObject *)values[8]);
15066  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[9]);
15067  __pyx_v_mom_v_acc = ((PyArrayObject *)values[10]);
15068  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[11]);
15069  __pyx_v_mom_w_acc = ((PyArrayObject *)values[12]);
15070  __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[13]);
15071  __pyx_v_mass_adv = ((PyArrayObject *)values[14]);
15072  __pyx_v_dmass_adv_u = ((PyArrayObject *)values[15]);
15073  __pyx_v_dmass_adv_v = ((PyArrayObject *)values[16]);
15074  __pyx_v_dmass_adv_w = ((PyArrayObject *)values[17]);
15075  __pyx_v_mom_u_adv = ((PyArrayObject *)values[18]);
15076  __pyx_v_dmom_u_adv_p = ((PyArrayObject *)values[19]);
15077  __pyx_v_mom_v_adv = ((PyArrayObject *)values[20]);
15078  __pyx_v_dmom_v_adv_p = ((PyArrayObject *)values[21]);
15079  __pyx_v_mom_w_adv = ((PyArrayObject *)values[22]);
15080  __pyx_v_dmom_w_adv_p = ((PyArrayObject *)values[23]);
15081  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[24]);
15082  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[25]);
15083  __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[26]);
15084  __pyx_v_mom_u_source = ((PyArrayObject *)values[27]);
15085  __pyx_v_mom_v_source = ((PyArrayObject *)values[28]);
15086  __pyx_v_mom_w_source = ((PyArrayObject *)values[29]);
15087  }
15088  goto __pyx_L4_argument_unpacking_done;
15089  __pyx_L5_argtuple_error:;
15090  __Pyx_RaiseArgtupleInvalid("StokesP_3D_Evaluate", 1, 30, 30, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4110, __pyx_L3_error)
15091  __pyx_L3_error:;
15092  __Pyx_AddTraceback("ctransportCoefficients.StokesP_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
15093  __Pyx_RefNannyFinishContext();
15094  return NULL;
15095  __pyx_L4_argument_unpacking_done:;
15096  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 4113, __pyx_L1_error)
15097  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 4114, __pyx_L1_error)
15098  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 4115, __pyx_L1_error)
15099  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 4116, __pyx_L1_error)
15100  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1, "w", 0))) __PYX_ERR(0, 4117, __pyx_L1_error)
15101  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 4118, __pyx_L1_error)
15102  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 4119, __pyx_L1_error)
15103  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 4120, __pyx_L1_error)
15104  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 4121, __pyx_L1_error)
15105  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_w_acc", 0))) __PYX_ERR(0, 4122, __pyx_L1_error)
15106  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_acc_w", 0))) __PYX_ERR(0, 4123, __pyx_L1_error)
15107  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 4124, __pyx_L1_error)
15108  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_u", 0))) __PYX_ERR(0, 4125, __pyx_L1_error)
15109  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_v", 0))) __PYX_ERR(0, 4126, __pyx_L1_error)
15110  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_w", 0))) __PYX_ERR(0, 4127, __pyx_L1_error)
15111  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_u_adv", 0))) __PYX_ERR(0, 4128, __pyx_L1_error)
15112  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_p", 0))) __PYX_ERR(0, 4129, __pyx_L1_error)
15113  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_v_adv", 0))) __PYX_ERR(0, 4130, __pyx_L1_error)
15114  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_p", 0))) __PYX_ERR(0, 4131, __pyx_L1_error)
15115  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_w_adv", 0))) __PYX_ERR(0, 4132, __pyx_L1_error)
15116  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_p", 0))) __PYX_ERR(0, 4133, __pyx_L1_error)
15117  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 4134, __pyx_L1_error)
15118  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 4135, __pyx_L1_error)
15119  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_w_diff_ten", 0))) __PYX_ERR(0, 4136, __pyx_L1_error)
15120  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 4137, __pyx_L1_error)
15121  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 4138, __pyx_L1_error)
15122  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1, "mom_w_source", 0))) __PYX_ERR(0, 4139, __pyx_L1_error)
15123  __pyx_r = __pyx_pf_22ctransportCoefficients_78StokesP_3D_Evaluate(__pyx_self, __pyx_v_nPoints, __pyx_v_rho, __pyx_v_nu, __pyx_v_g, __pyx_v_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mom_w_acc, __pyx_v_dmom_w_acc_w, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_dmass_adv_w, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_p, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_p, __pyx_v_mom_w_adv, __pyx_v_dmom_w_adv_p, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source);
15124 
15125  /* function exit code */
15126  goto __pyx_L0;
15127  __pyx_L1_error:;
15128  __pyx_r = NULL;
15129  __pyx_L0:;
15130  __Pyx_RefNannyFinishContext();
15131  return __pyx_r;
15132 }
15133 
15134 static PyObject *__pyx_pf_22ctransportCoefficients_78StokesP_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nPoints, double __pyx_v_rho, double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_p, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_p, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_p, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source) {
15135  PyObject *__pyx_r = NULL;
15136  __Pyx_RefNannyDeclarations
15137  __Pyx_RefNannySetupContext("StokesP_3D_Evaluate", 0);
15138 
15139  /* "ctransportCoefficients.pyx":4140
15140  * np.ndarray mom_v_source,
15141  * np.ndarray mom_w_source):
15142  * cStokesP_3D_Evaluate(nPoints, # <<<<<<<<<<<<<<
15143  * rho,
15144  * nu,
15145  */
15146  StokesP_3D_Evaluate(__pyx_v_nPoints, __pyx_v_rho, __pyx_v_nu, ((double *)__pyx_v_g->data), ((double *)__pyx_v_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_w->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_v_acc_v->data), ((double *)__pyx_v_mom_w_acc->data), ((double *)__pyx_v_dmom_w_acc_w->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_u->data), ((double *)__pyx_v_dmass_adv_v->data), ((double *)__pyx_v_dmass_adv_w->data), ((double *)__pyx_v_mom_u_adv->data), ((double *)__pyx_v_dmom_u_adv_p->data), ((double *)__pyx_v_mom_v_adv->data), ((double *)__pyx_v_dmom_v_adv_p->data), ((double *)__pyx_v_mom_w_adv->data), ((double *)__pyx_v_dmom_w_adv_p->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_w_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_mom_w_source->data));
15147 
15148  /* "ctransportCoefficients.pyx":4110
15149  * <double*> mom_w_ham.data,
15150  * <double*> dmom_w_ham_grad_p.data)
15151  * def StokesP_3D_Evaluate(const int nPoints, # <<<<<<<<<<<<<<
15152  * const double rho,
15153  * const double nu,
15154  */
15155 
15156  /* function exit code */
15157  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
15158  __Pyx_XGIVEREF(__pyx_r);
15159  __Pyx_RefNannyFinishContext();
15160  return __pyx_r;
15161 }
15162 
15163 /* "ctransportCoefficients.pyx":4170
15164  * <double*> mom_v_source.data,
15165  * <double*> mom_w_source.data)
15166  * def TwophaseNavierStokes_LS_SO_2D_Evaluate(const double eps, # <<<<<<<<<<<<<<
15167  * const double rho_0,
15168  * const double nu_0,
15169  */
15170 
15171 /* Python wrapper */
15172 static PyObject *__pyx_pw_22ctransportCoefficients_81TwophaseNavierStokes_LS_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
15173 static PyMethodDef __pyx_mdef_22ctransportCoefficients_81TwophaseNavierStokes_LS_SO_2D_Evaluate = {"TwophaseNavierStokes_LS_SO_2D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_81TwophaseNavierStokes_LS_SO_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
15174 static PyObject *__pyx_pw_22ctransportCoefficients_81TwophaseNavierStokes_LS_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
15175  double __pyx_v_eps;
15176  double __pyx_v_rho_0;
15177  double __pyx_v_nu_0;
15178  double __pyx_v_rho_1;
15179  double __pyx_v_nu_1;
15180  PyArrayObject *__pyx_v_g = 0;
15181  PyArrayObject *__pyx_v_phi = 0;
15182  PyArrayObject *__pyx_v_p = 0;
15183  PyArrayObject *__pyx_v_grad_p = 0;
15184  PyArrayObject *__pyx_v_u = 0;
15185  PyArrayObject *__pyx_v_v = 0;
15186  PyArrayObject *__pyx_v_mom_u_acc = 0;
15187  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
15188  PyArrayObject *__pyx_v_mom_v_acc = 0;
15189  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
15190  PyArrayObject *__pyx_v_mass_adv = 0;
15191  PyArrayObject *__pyx_v_dmass_adv_u = 0;
15192  PyArrayObject *__pyx_v_dmass_adv_v = 0;
15193  PyArrayObject *__pyx_v_mom_u_adv = 0;
15194  PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
15195  PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
15196  PyArrayObject *__pyx_v_mom_v_adv = 0;
15197  PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
15198  PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
15199  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
15200  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
15201  PyArrayObject *__pyx_v_mom_u_source = 0;
15202  PyArrayObject *__pyx_v_mom_v_source = 0;
15203  PyArrayObject *__pyx_v_mom_u_ham = 0;
15204  PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
15205  PyArrayObject *__pyx_v_mom_v_ham = 0;
15206  PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
15207  int __pyx_lineno = 0;
15208  const char *__pyx_filename = NULL;
15209  int __pyx_clineno = 0;
15210  PyObject *__pyx_r = 0;
15211  __Pyx_RefNannyDeclarations
15212  __Pyx_RefNannySetupContext("TwophaseNavierStokes_LS_SO_2D_Evaluate (wrapper)", 0);
15213  {
15214  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,0};
15215  PyObject* values[32] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
15216  if (unlikely(__pyx_kwds)) {
15217  Py_ssize_t kw_args;
15218  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
15219  switch (pos_args) {
15220  case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
15221  CYTHON_FALLTHROUGH;
15222  case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
15223  CYTHON_FALLTHROUGH;
15224  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
15225  CYTHON_FALLTHROUGH;
15226  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
15227  CYTHON_FALLTHROUGH;
15228  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
15229  CYTHON_FALLTHROUGH;
15230  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
15231  CYTHON_FALLTHROUGH;
15232  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
15233  CYTHON_FALLTHROUGH;
15234  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
15235  CYTHON_FALLTHROUGH;
15236  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
15237  CYTHON_FALLTHROUGH;
15238  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
15239  CYTHON_FALLTHROUGH;
15240  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
15241  CYTHON_FALLTHROUGH;
15242  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
15243  CYTHON_FALLTHROUGH;
15244  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
15245  CYTHON_FALLTHROUGH;
15246  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
15247  CYTHON_FALLTHROUGH;
15248  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
15249  CYTHON_FALLTHROUGH;
15250  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
15251  CYTHON_FALLTHROUGH;
15252  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
15253  CYTHON_FALLTHROUGH;
15254  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
15255  CYTHON_FALLTHROUGH;
15256  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
15257  CYTHON_FALLTHROUGH;
15258  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
15259  CYTHON_FALLTHROUGH;
15260  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
15261  CYTHON_FALLTHROUGH;
15262  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
15263  CYTHON_FALLTHROUGH;
15264  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
15265  CYTHON_FALLTHROUGH;
15266  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
15267  CYTHON_FALLTHROUGH;
15268  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
15269  CYTHON_FALLTHROUGH;
15270  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
15271  CYTHON_FALLTHROUGH;
15272  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
15273  CYTHON_FALLTHROUGH;
15274  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
15275  CYTHON_FALLTHROUGH;
15276  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
15277  CYTHON_FALLTHROUGH;
15278  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15279  CYTHON_FALLTHROUGH;
15280  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15281  CYTHON_FALLTHROUGH;
15282  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15283  CYTHON_FALLTHROUGH;
15284  case 0: break;
15285  default: goto __pyx_L5_argtuple_error;
15286  }
15287  kw_args = PyDict_Size(__pyx_kwds);
15288  switch (pos_args) {
15289  case 0:
15290  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
15291  else goto __pyx_L5_argtuple_error;
15292  CYTHON_FALLTHROUGH;
15293  case 1:
15294  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
15295  else {
15296  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 1); __PYX_ERR(0, 4170, __pyx_L3_error)
15297  }
15298  CYTHON_FALLTHROUGH;
15299  case 2:
15300  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
15301  else {
15302  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 2); __PYX_ERR(0, 4170, __pyx_L3_error)
15303  }
15304  CYTHON_FALLTHROUGH;
15305  case 3:
15306  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
15307  else {
15308  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 3); __PYX_ERR(0, 4170, __pyx_L3_error)
15309  }
15310  CYTHON_FALLTHROUGH;
15311  case 4:
15312  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
15313  else {
15314  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 4); __PYX_ERR(0, 4170, __pyx_L3_error)
15315  }
15316  CYTHON_FALLTHROUGH;
15317  case 5:
15318  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
15319  else {
15320  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 5); __PYX_ERR(0, 4170, __pyx_L3_error)
15321  }
15322  CYTHON_FALLTHROUGH;
15323  case 6:
15324  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
15325  else {
15326  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 6); __PYX_ERR(0, 4170, __pyx_L3_error)
15327  }
15328  CYTHON_FALLTHROUGH;
15329  case 7:
15330  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
15331  else {
15332  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 7); __PYX_ERR(0, 4170, __pyx_L3_error)
15333  }
15334  CYTHON_FALLTHROUGH;
15335  case 8:
15336  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
15337  else {
15338  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 8); __PYX_ERR(0, 4170, __pyx_L3_error)
15339  }
15340  CYTHON_FALLTHROUGH;
15341  case 9:
15342  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
15343  else {
15344  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 9); __PYX_ERR(0, 4170, __pyx_L3_error)
15345  }
15346  CYTHON_FALLTHROUGH;
15347  case 10:
15348  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
15349  else {
15350  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 10); __PYX_ERR(0, 4170, __pyx_L3_error)
15351  }
15352  CYTHON_FALLTHROUGH;
15353  case 11:
15354  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
15355  else {
15356  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 11); __PYX_ERR(0, 4170, __pyx_L3_error)
15357  }
15358  CYTHON_FALLTHROUGH;
15359  case 12:
15360  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
15361  else {
15362  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 12); __PYX_ERR(0, 4170, __pyx_L3_error)
15363  }
15364  CYTHON_FALLTHROUGH;
15365  case 13:
15366  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
15367  else {
15368  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 13); __PYX_ERR(0, 4170, __pyx_L3_error)
15369  }
15370  CYTHON_FALLTHROUGH;
15371  case 14:
15372  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
15373  else {
15374  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 14); __PYX_ERR(0, 4170, __pyx_L3_error)
15375  }
15376  CYTHON_FALLTHROUGH;
15377  case 15:
15378  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
15379  else {
15380  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 15); __PYX_ERR(0, 4170, __pyx_L3_error)
15381  }
15382  CYTHON_FALLTHROUGH;
15383  case 16:
15384  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
15385  else {
15386  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 16); __PYX_ERR(0, 4170, __pyx_L3_error)
15387  }
15388  CYTHON_FALLTHROUGH;
15389  case 17:
15390  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
15391  else {
15392  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 17); __PYX_ERR(0, 4170, __pyx_L3_error)
15393  }
15394  CYTHON_FALLTHROUGH;
15395  case 18:
15396  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
15397  else {
15398  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 18); __PYX_ERR(0, 4170, __pyx_L3_error)
15399  }
15400  CYTHON_FALLTHROUGH;
15401  case 19:
15402  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
15403  else {
15404  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 19); __PYX_ERR(0, 4170, __pyx_L3_error)
15405  }
15406  CYTHON_FALLTHROUGH;
15407  case 20:
15408  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
15409  else {
15410  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 20); __PYX_ERR(0, 4170, __pyx_L3_error)
15411  }
15412  CYTHON_FALLTHROUGH;
15413  case 21:
15414  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
15415  else {
15416  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 21); __PYX_ERR(0, 4170, __pyx_L3_error)
15417  }
15418  CYTHON_FALLTHROUGH;
15419  case 22:
15420  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
15421  else {
15422  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 22); __PYX_ERR(0, 4170, __pyx_L3_error)
15423  }
15424  CYTHON_FALLTHROUGH;
15425  case 23:
15426  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
15427  else {
15428  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 23); __PYX_ERR(0, 4170, __pyx_L3_error)
15429  }
15430  CYTHON_FALLTHROUGH;
15431  case 24:
15432  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
15433  else {
15434  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 24); __PYX_ERR(0, 4170, __pyx_L3_error)
15435  }
15436  CYTHON_FALLTHROUGH;
15437  case 25:
15438  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
15439  else {
15440  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 25); __PYX_ERR(0, 4170, __pyx_L3_error)
15441  }
15442  CYTHON_FALLTHROUGH;
15443  case 26:
15444  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
15445  else {
15446  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 26); __PYX_ERR(0, 4170, __pyx_L3_error)
15447  }
15448  CYTHON_FALLTHROUGH;
15449  case 27:
15450  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
15451  else {
15452  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 27); __PYX_ERR(0, 4170, __pyx_L3_error)
15453  }
15454  CYTHON_FALLTHROUGH;
15455  case 28:
15456  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
15457  else {
15458  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 28); __PYX_ERR(0, 4170, __pyx_L3_error)
15459  }
15460  CYTHON_FALLTHROUGH;
15461  case 29:
15462  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
15463  else {
15464  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 29); __PYX_ERR(0, 4170, __pyx_L3_error)
15465  }
15466  CYTHON_FALLTHROUGH;
15467  case 30:
15468  if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
15469  else {
15470  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 30); __PYX_ERR(0, 4170, __pyx_L3_error)
15471  }
15472  CYTHON_FALLTHROUGH;
15473  case 31:
15474  if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
15475  else {
15476  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 31); __PYX_ERR(0, 4170, __pyx_L3_error)
15477  }
15478  }
15479  if (unlikely(kw_args > 0)) {
15480  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "TwophaseNavierStokes_LS_SO_2D_Evaluate") < 0)) __PYX_ERR(0, 4170, __pyx_L3_error)
15481  }
15482  } else if (PyTuple_GET_SIZE(__pyx_args) != 32) {
15483  goto __pyx_L5_argtuple_error;
15484  } else {
15485  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15486  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15487  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15488  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
15489  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
15490  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
15491  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
15492  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
15493  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
15494  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
15495  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
15496  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
15497  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
15498  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
15499  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
15500  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
15501  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
15502  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
15503  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
15504  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
15505  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
15506  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
15507  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
15508  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
15509  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
15510  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
15511  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
15512  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
15513  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
15514  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
15515  values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
15516  values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
15517  }
15518  __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4170, __pyx_L3_error)
15519  __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_rho_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4171, __pyx_L3_error)
15520  __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_nu_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4172, __pyx_L3_error)
15521  __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_rho_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4173, __pyx_L3_error)
15522  __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_nu_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4174, __pyx_L3_error)
15523  __pyx_v_g = ((PyArrayObject *)values[5]);
15524  __pyx_v_phi = ((PyArrayObject *)values[6]);
15525  __pyx_v_p = ((PyArrayObject *)values[7]);
15526  __pyx_v_grad_p = ((PyArrayObject *)values[8]);
15527  __pyx_v_u = ((PyArrayObject *)values[9]);
15528  __pyx_v_v = ((PyArrayObject *)values[10]);
15529  __pyx_v_mom_u_acc = ((PyArrayObject *)values[11]);
15530  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[12]);
15531  __pyx_v_mom_v_acc = ((PyArrayObject *)values[13]);
15532  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[14]);
15533  __pyx_v_mass_adv = ((PyArrayObject *)values[15]);
15534  __pyx_v_dmass_adv_u = ((PyArrayObject *)values[16]);
15535  __pyx_v_dmass_adv_v = ((PyArrayObject *)values[17]);
15536  __pyx_v_mom_u_adv = ((PyArrayObject *)values[18]);
15537  __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[19]);
15538  __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[20]);
15539  __pyx_v_mom_v_adv = ((PyArrayObject *)values[21]);
15540  __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[22]);
15541  __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[23]);
15542  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[24]);
15543  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[25]);
15544  __pyx_v_mom_u_source = ((PyArrayObject *)values[26]);
15545  __pyx_v_mom_v_source = ((PyArrayObject *)values[27]);
15546  __pyx_v_mom_u_ham = ((PyArrayObject *)values[28]);
15547  __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[29]);
15548  __pyx_v_mom_v_ham = ((PyArrayObject *)values[30]);
15549  __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[31]);
15550  }
15551  goto __pyx_L4_argument_unpacking_done;
15552  __pyx_L5_argtuple_error:;
15553  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4170, __pyx_L3_error)
15554  __pyx_L3_error:;
15555  __Pyx_AddTraceback("ctransportCoefficients.TwophaseNavierStokes_LS_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
15556  __Pyx_RefNannyFinishContext();
15557  return NULL;
15558  __pyx_L4_argument_unpacking_done:;
15559  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 4175, __pyx_L1_error)
15560  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 4176, __pyx_L1_error)
15561  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 4177, __pyx_L1_error)
15562  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1, "grad_p", 0))) __PYX_ERR(0, 4178, __pyx_L1_error)
15563  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 4179, __pyx_L1_error)
15564  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 4180, __pyx_L1_error)
15565  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 4181, __pyx_L1_error)
15566  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 4182, __pyx_L1_error)
15567  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 4183, __pyx_L1_error)
15568  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 4184, __pyx_L1_error)
15569  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 4185, __pyx_L1_error)
15570  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_u", 0))) __PYX_ERR(0, 4186, __pyx_L1_error)
15571  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_v", 0))) __PYX_ERR(0, 4187, __pyx_L1_error)
15572  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_u_adv", 0))) __PYX_ERR(0, 4188, __pyx_L1_error)
15573  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_u", 0))) __PYX_ERR(0, 4189, __pyx_L1_error)
15574  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_v", 0))) __PYX_ERR(0, 4190, __pyx_L1_error)
15575  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_v_adv", 0))) __PYX_ERR(0, 4191, __pyx_L1_error)
15576  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_u", 0))) __PYX_ERR(0, 4192, __pyx_L1_error)
15577  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_v", 0))) __PYX_ERR(0, 4193, __pyx_L1_error)
15578  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 4194, __pyx_L1_error)
15579  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 4195, __pyx_L1_error)
15580  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 4196, __pyx_L1_error)
15581  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 4197, __pyx_L1_error)
15582  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_u_ham", 0))) __PYX_ERR(0, 4198, __pyx_L1_error)
15583  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 4199, __pyx_L1_error)
15584  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_v_ham", 0))) __PYX_ERR(0, 4200, __pyx_L1_error)
15585  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 4201, __pyx_L1_error)
15586  __pyx_r = __pyx_pf_22ctransportCoefficients_80TwophaseNavierStokes_LS_SO_2D_Evaluate(__pyx_self, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_g, __pyx_v_phi, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p);
15587 
15588  /* function exit code */
15589  goto __pyx_L0;
15590  __pyx_L1_error:;
15591  __pyx_r = NULL;
15592  __pyx_L0:;
15593  __Pyx_RefNannyFinishContext();
15594  return __pyx_r;
15595 }
15596 
15597 static PyObject *__pyx_pf_22ctransportCoefficients_80TwophaseNavierStokes_LS_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p) {
15598  PyObject *__pyx_r = NULL;
15599  __Pyx_RefNannyDeclarations
15600  PyObject *__pyx_t_1 = NULL;
15601  int __pyx_t_2;
15602  int __pyx_lineno = 0;
15603  const char *__pyx_filename = NULL;
15604  int __pyx_clineno = 0;
15605  __Pyx_RefNannySetupContext("TwophaseNavierStokes_LS_SO_2D_Evaluate", 0);
15606 
15607  /* "ctransportCoefficients.pyx":4202
15608  * np.ndarray mom_v_ham,
15609  * np.ndarray dmom_v_ham_grad_p):
15610  * cTwophaseNavierStokes_LS_SO_2D_Evaluate(p.size, # <<<<<<<<<<<<<<
15611  * eps,
15612  * rho_0,
15613  */
15614  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4202, __pyx_L1_error)
15615  __Pyx_GOTREF(__pyx_t_1);
15616  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4202, __pyx_L1_error)
15617  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
15618 
15619  /* "ctransportCoefficients.pyx":4234
15620  * <double*> dmom_u_ham_grad_p.data,
15621  * <double*> mom_v_ham.data,
15622  * <double*> dmom_v_ham_grad_p.data) # <<<<<<<<<<<<<<
15623  * def TwophaseNavierStokes_ST_LS_SO_2D_Evaluate(const double eps_rho,
15624  * const double eps_mu,
15625  */
15626  TwophaseNavierStokes_LS_SO_2D_Evaluate(__pyx_t_2, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((double *)__pyx_v_g->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_p->data), ((double *)__pyx_v_grad_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_v_acc_v->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_u->data), ((double *)__pyx_v_dmass_adv_v->data), ((double *)__pyx_v_mom_u_adv->data), ((double *)__pyx_v_dmom_u_adv_u->data), ((double *)__pyx_v_dmom_u_adv_v->data), ((double *)__pyx_v_mom_v_adv->data), ((double *)__pyx_v_dmom_v_adv_u->data), ((double *)__pyx_v_dmom_v_adv_v->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_mom_u_ham->data), ((double *)__pyx_v_dmom_u_ham_grad_p->data), ((double *)__pyx_v_mom_v_ham->data), ((double *)__pyx_v_dmom_v_ham_grad_p->data));
15627 
15628  /* "ctransportCoefficients.pyx":4170
15629  * <double*> mom_v_source.data,
15630  * <double*> mom_w_source.data)
15631  * def TwophaseNavierStokes_LS_SO_2D_Evaluate(const double eps, # <<<<<<<<<<<<<<
15632  * const double rho_0,
15633  * const double nu_0,
15634  */
15635 
15636  /* function exit code */
15637  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
15638  goto __pyx_L0;
15639  __pyx_L1_error:;
15640  __Pyx_XDECREF(__pyx_t_1);
15641  __Pyx_AddTraceback("ctransportCoefficients.TwophaseNavierStokes_LS_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
15642  __pyx_r = NULL;
15643  __pyx_L0:;
15644  __Pyx_XGIVEREF(__pyx_r);
15645  __Pyx_RefNannyFinishContext();
15646  return __pyx_r;
15647 }
15648 
15649 /* "ctransportCoefficients.pyx":4235
15650  * <double*> mom_v_ham.data,
15651  * <double*> dmom_v_ham_grad_p.data)
15652  * def TwophaseNavierStokes_ST_LS_SO_2D_Evaluate(const double eps_rho, # <<<<<<<<<<<<<<
15653  * const double eps_mu,
15654  * const double sigma,
15655  */
15656 
15657 /* Python wrapper */
15658 static PyObject *__pyx_pw_22ctransportCoefficients_83TwophaseNavierStokes_ST_LS_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
15659 static PyMethodDef __pyx_mdef_22ctransportCoefficients_83TwophaseNavierStokes_ST_LS_SO_2D_Evaluate = {"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_83TwophaseNavierStokes_ST_LS_SO_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
15660 static PyObject *__pyx_pw_22ctransportCoefficients_83TwophaseNavierStokes_ST_LS_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
15661  double __pyx_v_eps_rho;
15662  double __pyx_v_eps_mu;
15663  double __pyx_v_sigma;
15664  double __pyx_v_rho_0;
15665  double __pyx_v_nu_0;
15666  double __pyx_v_rho_1;
15667  double __pyx_v_nu_1;
15668  PyArrayObject *__pyx_v_g = 0;
15669  PyArrayObject *__pyx_v_phi = 0;
15670  PyArrayObject *__pyx_v_n = 0;
15671  PyArrayObject *__pyx_v_kappa = 0;
15672  PyArrayObject *__pyx_v_p = 0;
15673  PyArrayObject *__pyx_v_grad_p = 0;
15674  PyArrayObject *__pyx_v_u = 0;
15675  PyArrayObject *__pyx_v_v = 0;
15676  PyArrayObject *__pyx_v_mom_u_acc = 0;
15677  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
15678  PyArrayObject *__pyx_v_mom_v_acc = 0;
15679  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
15680  PyArrayObject *__pyx_v_mass_adv = 0;
15681  PyArrayObject *__pyx_v_dmass_adv_u = 0;
15682  PyArrayObject *__pyx_v_dmass_adv_v = 0;
15683  PyArrayObject *__pyx_v_mom_u_adv = 0;
15684  PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
15685  PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
15686  PyArrayObject *__pyx_v_mom_v_adv = 0;
15687  PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
15688  PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
15689  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
15690  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
15691  PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
15692  PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
15693  PyArrayObject *__pyx_v_mom_u_source = 0;
15694  PyArrayObject *__pyx_v_mom_v_source = 0;
15695  PyArrayObject *__pyx_v_mom_u_ham = 0;
15696  PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
15697  PyArrayObject *__pyx_v_mom_v_ham = 0;
15698  PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
15699  int __pyx_lineno = 0;
15700  const char *__pyx_filename = NULL;
15701  int __pyx_clineno = 0;
15702  PyObject *__pyx_r = 0;
15703  __Pyx_RefNannyDeclarations
15704  __Pyx_RefNannySetupContext("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate (wrapper)", 0);
15705  {
15706  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps_rho,&__pyx_n_s_eps_mu,&__pyx_n_s_sigma,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_n,&__pyx_n_s_kappa,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,0};
15707  PyObject* values[38] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
15708  if (unlikely(__pyx_kwds)) {
15709  Py_ssize_t kw_args;
15710  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
15711  switch (pos_args) {
15712  case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
15713  CYTHON_FALLTHROUGH;
15714  case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
15715  CYTHON_FALLTHROUGH;
15716  case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
15717  CYTHON_FALLTHROUGH;
15718  case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
15719  CYTHON_FALLTHROUGH;
15720  case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
15721  CYTHON_FALLTHROUGH;
15722  case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
15723  CYTHON_FALLTHROUGH;
15724  case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
15725  CYTHON_FALLTHROUGH;
15726  case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
15727  CYTHON_FALLTHROUGH;
15728  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
15729  CYTHON_FALLTHROUGH;
15730  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
15731  CYTHON_FALLTHROUGH;
15732  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
15733  CYTHON_FALLTHROUGH;
15734  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
15735  CYTHON_FALLTHROUGH;
15736  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
15737  CYTHON_FALLTHROUGH;
15738  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
15739  CYTHON_FALLTHROUGH;
15740  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
15741  CYTHON_FALLTHROUGH;
15742  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
15743  CYTHON_FALLTHROUGH;
15744  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
15745  CYTHON_FALLTHROUGH;
15746  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
15747  CYTHON_FALLTHROUGH;
15748  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
15749  CYTHON_FALLTHROUGH;
15750  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
15751  CYTHON_FALLTHROUGH;
15752  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
15753  CYTHON_FALLTHROUGH;
15754  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
15755  CYTHON_FALLTHROUGH;
15756  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
15757  CYTHON_FALLTHROUGH;
15758  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
15759  CYTHON_FALLTHROUGH;
15760  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
15761  CYTHON_FALLTHROUGH;
15762  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
15763  CYTHON_FALLTHROUGH;
15764  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
15765  CYTHON_FALLTHROUGH;
15766  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
15767  CYTHON_FALLTHROUGH;
15768  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
15769  CYTHON_FALLTHROUGH;
15770  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
15771  CYTHON_FALLTHROUGH;
15772  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
15773  CYTHON_FALLTHROUGH;
15774  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
15775  CYTHON_FALLTHROUGH;
15776  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
15777  CYTHON_FALLTHROUGH;
15778  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
15779  CYTHON_FALLTHROUGH;
15780  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
15781  CYTHON_FALLTHROUGH;
15782  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15783  CYTHON_FALLTHROUGH;
15784  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15785  CYTHON_FALLTHROUGH;
15786  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15787  CYTHON_FALLTHROUGH;
15788  case 0: break;
15789  default: goto __pyx_L5_argtuple_error;
15790  }
15791  kw_args = PyDict_Size(__pyx_kwds);
15792  switch (pos_args) {
15793  case 0:
15794  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_rho)) != 0)) kw_args--;
15795  else goto __pyx_L5_argtuple_error;
15796  CYTHON_FALLTHROUGH;
15797  case 1:
15798  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_mu)) != 0)) kw_args--;
15799  else {
15800  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 1); __PYX_ERR(0, 4235, __pyx_L3_error)
15801  }
15802  CYTHON_FALLTHROUGH;
15803  case 2:
15804  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
15805  else {
15806  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 2); __PYX_ERR(0, 4235, __pyx_L3_error)
15807  }
15808  CYTHON_FALLTHROUGH;
15809  case 3:
15810  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
15811  else {
15812  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 3); __PYX_ERR(0, 4235, __pyx_L3_error)
15813  }
15814  CYTHON_FALLTHROUGH;
15815  case 4:
15816  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
15817  else {
15818  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 4); __PYX_ERR(0, 4235, __pyx_L3_error)
15819  }
15820  CYTHON_FALLTHROUGH;
15821  case 5:
15822  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
15823  else {
15824  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 5); __PYX_ERR(0, 4235, __pyx_L3_error)
15825  }
15826  CYTHON_FALLTHROUGH;
15827  case 6:
15828  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
15829  else {
15830  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 6); __PYX_ERR(0, 4235, __pyx_L3_error)
15831  }
15832  CYTHON_FALLTHROUGH;
15833  case 7:
15834  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
15835  else {
15836  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 7); __PYX_ERR(0, 4235, __pyx_L3_error)
15837  }
15838  CYTHON_FALLTHROUGH;
15839  case 8:
15840  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
15841  else {
15842  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 8); __PYX_ERR(0, 4235, __pyx_L3_error)
15843  }
15844  CYTHON_FALLTHROUGH;
15845  case 9:
15846  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
15847  else {
15848  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 9); __PYX_ERR(0, 4235, __pyx_L3_error)
15849  }
15850  CYTHON_FALLTHROUGH;
15851  case 10:
15852  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kappa)) != 0)) kw_args--;
15853  else {
15854  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 10); __PYX_ERR(0, 4235, __pyx_L3_error)
15855  }
15856  CYTHON_FALLTHROUGH;
15857  case 11:
15858  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
15859  else {
15860  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 11); __PYX_ERR(0, 4235, __pyx_L3_error)
15861  }
15862  CYTHON_FALLTHROUGH;
15863  case 12:
15864  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
15865  else {
15866  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 12); __PYX_ERR(0, 4235, __pyx_L3_error)
15867  }
15868  CYTHON_FALLTHROUGH;
15869  case 13:
15870  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
15871  else {
15872  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 13); __PYX_ERR(0, 4235, __pyx_L3_error)
15873  }
15874  CYTHON_FALLTHROUGH;
15875  case 14:
15876  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
15877  else {
15878  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 14); __PYX_ERR(0, 4235, __pyx_L3_error)
15879  }
15880  CYTHON_FALLTHROUGH;
15881  case 15:
15882  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
15883  else {
15884  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 15); __PYX_ERR(0, 4235, __pyx_L3_error)
15885  }
15886  CYTHON_FALLTHROUGH;
15887  case 16:
15888  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
15889  else {
15890  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 16); __PYX_ERR(0, 4235, __pyx_L3_error)
15891  }
15892  CYTHON_FALLTHROUGH;
15893  case 17:
15894  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
15895  else {
15896  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 17); __PYX_ERR(0, 4235, __pyx_L3_error)
15897  }
15898  CYTHON_FALLTHROUGH;
15899  case 18:
15900  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
15901  else {
15902  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 18); __PYX_ERR(0, 4235, __pyx_L3_error)
15903  }
15904  CYTHON_FALLTHROUGH;
15905  case 19:
15906  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
15907  else {
15908  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 19); __PYX_ERR(0, 4235, __pyx_L3_error)
15909  }
15910  CYTHON_FALLTHROUGH;
15911  case 20:
15912  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
15913  else {
15914  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 20); __PYX_ERR(0, 4235, __pyx_L3_error)
15915  }
15916  CYTHON_FALLTHROUGH;
15917  case 21:
15918  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
15919  else {
15920  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 21); __PYX_ERR(0, 4235, __pyx_L3_error)
15921  }
15922  CYTHON_FALLTHROUGH;
15923  case 22:
15924  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
15925  else {
15926  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 22); __PYX_ERR(0, 4235, __pyx_L3_error)
15927  }
15928  CYTHON_FALLTHROUGH;
15929  case 23:
15930  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
15931  else {
15932  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 23); __PYX_ERR(0, 4235, __pyx_L3_error)
15933  }
15934  CYTHON_FALLTHROUGH;
15935  case 24:
15936  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
15937  else {
15938  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 24); __PYX_ERR(0, 4235, __pyx_L3_error)
15939  }
15940  CYTHON_FALLTHROUGH;
15941  case 25:
15942  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
15943  else {
15944  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 25); __PYX_ERR(0, 4235, __pyx_L3_error)
15945  }
15946  CYTHON_FALLTHROUGH;
15947  case 26:
15948  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
15949  else {
15950  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 26); __PYX_ERR(0, 4235, __pyx_L3_error)
15951  }
15952  CYTHON_FALLTHROUGH;
15953  case 27:
15954  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
15955  else {
15956  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 27); __PYX_ERR(0, 4235, __pyx_L3_error)
15957  }
15958  CYTHON_FALLTHROUGH;
15959  case 28:
15960  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
15961  else {
15962  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 28); __PYX_ERR(0, 4235, __pyx_L3_error)
15963  }
15964  CYTHON_FALLTHROUGH;
15965  case 29:
15966  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
15967  else {
15968  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 29); __PYX_ERR(0, 4235, __pyx_L3_error)
15969  }
15970  CYTHON_FALLTHROUGH;
15971  case 30:
15972  if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
15973  else {
15974  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 30); __PYX_ERR(0, 4235, __pyx_L3_error)
15975  }
15976  CYTHON_FALLTHROUGH;
15977  case 31:
15978  if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
15979  else {
15980  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 31); __PYX_ERR(0, 4235, __pyx_L3_error)
15981  }
15982  CYTHON_FALLTHROUGH;
15983  case 32:
15984  if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
15985  else {
15986  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 32); __PYX_ERR(0, 4235, __pyx_L3_error)
15987  }
15988  CYTHON_FALLTHROUGH;
15989  case 33:
15990  if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
15991  else {
15992  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 33); __PYX_ERR(0, 4235, __pyx_L3_error)
15993  }
15994  CYTHON_FALLTHROUGH;
15995  case 34:
15996  if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
15997  else {
15998  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 34); __PYX_ERR(0, 4235, __pyx_L3_error)
15999  }
16000  CYTHON_FALLTHROUGH;
16001  case 35:
16002  if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
16003  else {
16004  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 35); __PYX_ERR(0, 4235, __pyx_L3_error)
16005  }
16006  CYTHON_FALLTHROUGH;
16007  case 36:
16008  if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
16009  else {
16010  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 36); __PYX_ERR(0, 4235, __pyx_L3_error)
16011  }
16012  CYTHON_FALLTHROUGH;
16013  case 37:
16014  if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
16015  else {
16016  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 37); __PYX_ERR(0, 4235, __pyx_L3_error)
16017  }
16018  }
16019  if (unlikely(kw_args > 0)) {
16020  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "TwophaseNavierStokes_ST_LS_SO_2D_Evaluate") < 0)) __PYX_ERR(0, 4235, __pyx_L3_error)
16021  }
16022  } else if (PyTuple_GET_SIZE(__pyx_args) != 38) {
16023  goto __pyx_L5_argtuple_error;
16024  } else {
16025  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16026  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16027  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16028  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16029  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
16030  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
16031  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
16032  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
16033  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
16034  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
16035  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
16036  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
16037  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
16038  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
16039  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
16040  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
16041  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
16042  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
16043  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
16044  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
16045  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
16046  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
16047  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
16048  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
16049  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
16050  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
16051  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
16052  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
16053  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
16054  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
16055  values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
16056  values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
16057  values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
16058  values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
16059  values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
16060  values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
16061  values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
16062  values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
16063  }
16064  __pyx_v_eps_rho = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_eps_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4235, __pyx_L3_error)
16065  __pyx_v_eps_mu = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_eps_mu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4236, __pyx_L3_error)
16066  __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_sigma == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4237, __pyx_L3_error)
16067  __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_rho_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4238, __pyx_L3_error)
16068  __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_nu_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4239, __pyx_L3_error)
16069  __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_rho_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4240, __pyx_L3_error)
16070  __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_nu_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4241, __pyx_L3_error)
16071  __pyx_v_g = ((PyArrayObject *)values[7]);
16072  __pyx_v_phi = ((PyArrayObject *)values[8]);
16073  __pyx_v_n = ((PyArrayObject *)values[9]);
16074  __pyx_v_kappa = ((PyArrayObject *)values[10]);
16075  __pyx_v_p = ((PyArrayObject *)values[11]);
16076  __pyx_v_grad_p = ((PyArrayObject *)values[12]);
16077  __pyx_v_u = ((PyArrayObject *)values[13]);
16078  __pyx_v_v = ((PyArrayObject *)values[14]);
16079  __pyx_v_mom_u_acc = ((PyArrayObject *)values[15]);
16080  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[16]);
16081  __pyx_v_mom_v_acc = ((PyArrayObject *)values[17]);
16082  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[18]);
16083  __pyx_v_mass_adv = ((PyArrayObject *)values[19]);
16084  __pyx_v_dmass_adv_u = ((PyArrayObject *)values[20]);
16085  __pyx_v_dmass_adv_v = ((PyArrayObject *)values[21]);
16086  __pyx_v_mom_u_adv = ((PyArrayObject *)values[22]);
16087  __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[23]);
16088  __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[24]);
16089  __pyx_v_mom_v_adv = ((PyArrayObject *)values[25]);
16090  __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[26]);
16091  __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[27]);
16092  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[28]);
16093  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[29]);
16094  __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[30]);
16095  __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[31]);
16096  __pyx_v_mom_u_source = ((PyArrayObject *)values[32]);
16097  __pyx_v_mom_v_source = ((PyArrayObject *)values[33]);
16098  __pyx_v_mom_u_ham = ((PyArrayObject *)values[34]);
16099  __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[35]);
16100  __pyx_v_mom_v_ham = ((PyArrayObject *)values[36]);
16101  __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[37]);
16102  }
16103  goto __pyx_L4_argument_unpacking_done;
16104  __pyx_L5_argtuple_error:;
16105  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4235, __pyx_L3_error)
16106  __pyx_L3_error:;
16107  __Pyx_AddTraceback("ctransportCoefficients.TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
16108  __Pyx_RefNannyFinishContext();
16109  return NULL;
16110  __pyx_L4_argument_unpacking_done:;
16111  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 4242, __pyx_L1_error)
16112  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 4243, __pyx_L1_error)
16113  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1, "n", 0))) __PYX_ERR(0, 4244, __pyx_L1_error)
16114  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kappa), __pyx_ptype_5numpy_ndarray, 1, "kappa", 0))) __PYX_ERR(0, 4245, __pyx_L1_error)
16115  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 4246, __pyx_L1_error)
16116  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1, "grad_p", 0))) __PYX_ERR(0, 4247, __pyx_L1_error)
16117  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 4248, __pyx_L1_error)
16118  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 4249, __pyx_L1_error)
16119  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 4250, __pyx_L1_error)
16120  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 4251, __pyx_L1_error)
16121  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 4252, __pyx_L1_error)
16122  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 4253, __pyx_L1_error)
16123  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 4254, __pyx_L1_error)
16124  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_u", 0))) __PYX_ERR(0, 4255, __pyx_L1_error)
16125  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_v", 0))) __PYX_ERR(0, 4256, __pyx_L1_error)
16126  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_u_adv", 0))) __PYX_ERR(0, 4257, __pyx_L1_error)
16127  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_u", 0))) __PYX_ERR(0, 4258, __pyx_L1_error)
16128  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_v", 0))) __PYX_ERR(0, 4259, __pyx_L1_error)
16129  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_v_adv", 0))) __PYX_ERR(0, 4260, __pyx_L1_error)
16130  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_u", 0))) __PYX_ERR(0, 4261, __pyx_L1_error)
16131  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_v", 0))) __PYX_ERR(0, 4262, __pyx_L1_error)
16132  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 4263, __pyx_L1_error)
16133  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 4264, __pyx_L1_error)
16134  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uv_diff_ten", 0))) __PYX_ERR(0, 4265, __pyx_L1_error)
16135  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vu_diff_ten", 0))) __PYX_ERR(0, 4266, __pyx_L1_error)
16136  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 4267, __pyx_L1_error)
16137  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 4268, __pyx_L1_error)
16138  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_u_ham", 0))) __PYX_ERR(0, 4269, __pyx_L1_error)
16139  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 4270, __pyx_L1_error)
16140  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_v_ham", 0))) __PYX_ERR(0, 4271, __pyx_L1_error)
16141  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 4272, __pyx_L1_error)
16142  __pyx_r = __pyx_pf_22ctransportCoefficients_82TwophaseNavierStokes_ST_LS_SO_2D_Evaluate(__pyx_self, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_g, __pyx_v_phi, __pyx_v_n, __pyx_v_kappa, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p);
16143 
16144  /* function exit code */
16145  goto __pyx_L0;
16146  __pyx_L1_error:;
16147  __pyx_r = NULL;
16148  __pyx_L0:;
16149  __Pyx_RefNannyFinishContext();
16150  return __pyx_r;
16151 }
16152 
16153 static PyObject *__pyx_pf_22ctransportCoefficients_82TwophaseNavierStokes_ST_LS_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps_rho, double __pyx_v_eps_mu, double __pyx_v_sigma, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p) {
16154  PyObject *__pyx_r = NULL;
16155  __Pyx_RefNannyDeclarations
16156  PyObject *__pyx_t_1 = NULL;
16157  int __pyx_t_2;
16158  int __pyx_lineno = 0;
16159  const char *__pyx_filename = NULL;
16160  int __pyx_clineno = 0;
16161  __Pyx_RefNannySetupContext("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 0);
16162 
16163  /* "ctransportCoefficients.pyx":4273
16164  * np.ndarray mom_v_ham,
16165  * np.ndarray dmom_v_ham_grad_p):
16166  * cTwophaseNavierStokes_ST_LS_SO_2D_Evaluate(p.size, # <<<<<<<<<<<<<<
16167  * eps_rho,
16168  * eps_mu,
16169  */
16170  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4273, __pyx_L1_error)
16171  __Pyx_GOTREF(__pyx_t_1);
16172  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4273, __pyx_L1_error)
16173  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16174 
16175  /* "ctransportCoefficients.pyx":4311
16176  * <double*> dmom_u_ham_grad_p.data,
16177  * <double*> mom_v_ham.data,
16178  * <double*> dmom_v_ham_grad_p.data) # <<<<<<<<<<<<<<
16179  * def TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(const double eps_rho,
16180  * const double eps_mu,
16181  */
16182  TwophaseNavierStokes_ST_LS_SO_2D_Evaluate(__pyx_t_2, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((double *)__pyx_v_g->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_n->data), ((double *)__pyx_v_kappa->data), ((double *)__pyx_v_p->data), ((double *)__pyx_v_grad_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_v_acc_v->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_u->data), ((double *)__pyx_v_dmass_adv_v->data), ((double *)__pyx_v_mom_u_adv->data), ((double *)__pyx_v_dmom_u_adv_u->data), ((double *)__pyx_v_dmom_u_adv_v->data), ((double *)__pyx_v_mom_v_adv->data), ((double *)__pyx_v_dmom_v_adv_u->data), ((double *)__pyx_v_dmom_v_adv_v->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_uv_diff_ten->data), ((double *)__pyx_v_mom_vu_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_mom_u_ham->data), ((double *)__pyx_v_dmom_u_ham_grad_p->data), ((double *)__pyx_v_mom_v_ham->data), ((double *)__pyx_v_dmom_v_ham_grad_p->data));
16183 
16184  /* "ctransportCoefficients.pyx":4235
16185  * <double*> mom_v_ham.data,
16186  * <double*> dmom_v_ham_grad_p.data)
16187  * def TwophaseNavierStokes_ST_LS_SO_2D_Evaluate(const double eps_rho, # <<<<<<<<<<<<<<
16188  * const double eps_mu,
16189  * const double sigma,
16190  */
16191 
16192  /* function exit code */
16193  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
16194  goto __pyx_L0;
16195  __pyx_L1_error:;
16196  __Pyx_XDECREF(__pyx_t_1);
16197  __Pyx_AddTraceback("ctransportCoefficients.TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
16198  __pyx_r = NULL;
16199  __pyx_L0:;
16200  __Pyx_XGIVEREF(__pyx_r);
16201  __Pyx_RefNannyFinishContext();
16202  return __pyx_r;
16203 }
16204 
16205 /* "ctransportCoefficients.pyx":4312
16206  * <double*> mom_v_ham.data,
16207  * <double*> dmom_v_ham_grad_p.data)
16208  * def TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(const double eps_rho, # <<<<<<<<<<<<<<
16209  * const double eps_mu,
16210  * const double sigma,
16211  */
16212 
16213 /* Python wrapper */
16214 static PyObject *__pyx_pw_22ctransportCoefficients_85TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
16215 static PyMethodDef __pyx_mdef_22ctransportCoefficients_85TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd = {"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_85TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd, METH_VARARGS|METH_KEYWORDS, 0};
16216 static PyObject *__pyx_pw_22ctransportCoefficients_85TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
16217  double __pyx_v_eps_rho;
16218  double __pyx_v_eps_mu;
16219  double __pyx_v_sigma;
16220  double __pyx_v_rho_0;
16221  double __pyx_v_nu_0;
16222  double __pyx_v_rho_1;
16223  double __pyx_v_nu_1;
16224  PyArrayObject *__pyx_v_g = 0;
16225  PyArrayObject *__pyx_v_phi = 0;
16226  PyArrayObject *__pyx_v_n = 0;
16227  PyArrayObject *__pyx_v_kappa = 0;
16228  PyArrayObject *__pyx_v_p = 0;
16229  PyArrayObject *__pyx_v_grad_p = 0;
16230  PyArrayObject *__pyx_v_u = 0;
16231  PyArrayObject *__pyx_v_v = 0;
16232  PyArrayObject *__pyx_v_mom_u_acc = 0;
16233  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
16234  PyArrayObject *__pyx_v_mom_v_acc = 0;
16235  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
16236  PyArrayObject *__pyx_v_mass_adv = 0;
16237  PyArrayObject *__pyx_v_dmass_adv_u = 0;
16238  PyArrayObject *__pyx_v_dmass_adv_v = 0;
16239  PyArrayObject *__pyx_v_mom_u_adv = 0;
16240  PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
16241  PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
16242  PyArrayObject *__pyx_v_mom_v_adv = 0;
16243  PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
16244  PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
16245  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
16246  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
16247  PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
16248  PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
16249  PyArrayObject *__pyx_v_mom_u_source = 0;
16250  PyArrayObject *__pyx_v_mom_v_source = 0;
16251  PyArrayObject *__pyx_v_mom_u_ham = 0;
16252  PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
16253  PyArrayObject *__pyx_v_mom_v_ham = 0;
16254  PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
16255  int __pyx_lineno = 0;
16256  const char *__pyx_filename = NULL;
16257  int __pyx_clineno = 0;
16258  PyObject *__pyx_r = 0;
16259  __Pyx_RefNannyDeclarations
16260  __Pyx_RefNannySetupContext("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd (wrapper)", 0);
16261  {
16262  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps_rho,&__pyx_n_s_eps_mu,&__pyx_n_s_sigma,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_n,&__pyx_n_s_kappa,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,0};
16263  PyObject* values[38] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
16264  if (unlikely(__pyx_kwds)) {
16265  Py_ssize_t kw_args;
16266  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
16267  switch (pos_args) {
16268  case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
16269  CYTHON_FALLTHROUGH;
16270  case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
16271  CYTHON_FALLTHROUGH;
16272  case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
16273  CYTHON_FALLTHROUGH;
16274  case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
16275  CYTHON_FALLTHROUGH;
16276  case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
16277  CYTHON_FALLTHROUGH;
16278  case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
16279  CYTHON_FALLTHROUGH;
16280  case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
16281  CYTHON_FALLTHROUGH;
16282  case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
16283  CYTHON_FALLTHROUGH;
16284  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
16285  CYTHON_FALLTHROUGH;
16286  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
16287  CYTHON_FALLTHROUGH;
16288  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
16289  CYTHON_FALLTHROUGH;
16290  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
16291  CYTHON_FALLTHROUGH;
16292  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
16293  CYTHON_FALLTHROUGH;
16294  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
16295  CYTHON_FALLTHROUGH;
16296  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
16297  CYTHON_FALLTHROUGH;
16298  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
16299  CYTHON_FALLTHROUGH;
16300  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
16301  CYTHON_FALLTHROUGH;
16302  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
16303  CYTHON_FALLTHROUGH;
16304  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
16305  CYTHON_FALLTHROUGH;
16306  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
16307  CYTHON_FALLTHROUGH;
16308  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
16309  CYTHON_FALLTHROUGH;
16310  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
16311  CYTHON_FALLTHROUGH;
16312  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
16313  CYTHON_FALLTHROUGH;
16314  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
16315  CYTHON_FALLTHROUGH;
16316  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
16317  CYTHON_FALLTHROUGH;
16318  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
16319  CYTHON_FALLTHROUGH;
16320  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
16321  CYTHON_FALLTHROUGH;
16322  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
16323  CYTHON_FALLTHROUGH;
16324  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
16325  CYTHON_FALLTHROUGH;
16326  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
16327  CYTHON_FALLTHROUGH;
16328  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
16329  CYTHON_FALLTHROUGH;
16330  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
16331  CYTHON_FALLTHROUGH;
16332  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
16333  CYTHON_FALLTHROUGH;
16334  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
16335  CYTHON_FALLTHROUGH;
16336  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16337  CYTHON_FALLTHROUGH;
16338  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16339  CYTHON_FALLTHROUGH;
16340  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16341  CYTHON_FALLTHROUGH;
16342  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16343  CYTHON_FALLTHROUGH;
16344  case 0: break;
16345  default: goto __pyx_L5_argtuple_error;
16346  }
16347  kw_args = PyDict_Size(__pyx_kwds);
16348  switch (pos_args) {
16349  case 0:
16350  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_rho)) != 0)) kw_args--;
16351  else goto __pyx_L5_argtuple_error;
16352  CYTHON_FALLTHROUGH;
16353  case 1:
16354  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_mu)) != 0)) kw_args--;
16355  else {
16356  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 1); __PYX_ERR(0, 4312, __pyx_L3_error)
16357  }
16358  CYTHON_FALLTHROUGH;
16359  case 2:
16360  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
16361  else {
16362  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 2); __PYX_ERR(0, 4312, __pyx_L3_error)
16363  }
16364  CYTHON_FALLTHROUGH;
16365  case 3:
16366  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
16367  else {
16368  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 3); __PYX_ERR(0, 4312, __pyx_L3_error)
16369  }
16370  CYTHON_FALLTHROUGH;
16371  case 4:
16372  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
16373  else {
16374  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 4); __PYX_ERR(0, 4312, __pyx_L3_error)
16375  }
16376  CYTHON_FALLTHROUGH;
16377  case 5:
16378  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
16379  else {
16380  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 5); __PYX_ERR(0, 4312, __pyx_L3_error)
16381  }
16382  CYTHON_FALLTHROUGH;
16383  case 6:
16384  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
16385  else {
16386  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 6); __PYX_ERR(0, 4312, __pyx_L3_error)
16387  }
16388  CYTHON_FALLTHROUGH;
16389  case 7:
16390  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
16391  else {
16392  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 7); __PYX_ERR(0, 4312, __pyx_L3_error)
16393  }
16394  CYTHON_FALLTHROUGH;
16395  case 8:
16396  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
16397  else {
16398  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 8); __PYX_ERR(0, 4312, __pyx_L3_error)
16399  }
16400  CYTHON_FALLTHROUGH;
16401  case 9:
16402  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
16403  else {
16404  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 9); __PYX_ERR(0, 4312, __pyx_L3_error)
16405  }
16406  CYTHON_FALLTHROUGH;
16407  case 10:
16408  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kappa)) != 0)) kw_args--;
16409  else {
16410  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 10); __PYX_ERR(0, 4312, __pyx_L3_error)
16411  }
16412  CYTHON_FALLTHROUGH;
16413  case 11:
16414  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
16415  else {
16416  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 11); __PYX_ERR(0, 4312, __pyx_L3_error)
16417  }
16418  CYTHON_FALLTHROUGH;
16419  case 12:
16420  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
16421  else {
16422  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 12); __PYX_ERR(0, 4312, __pyx_L3_error)
16423  }
16424  CYTHON_FALLTHROUGH;
16425  case 13:
16426  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
16427  else {
16428  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 13); __PYX_ERR(0, 4312, __pyx_L3_error)
16429  }
16430  CYTHON_FALLTHROUGH;
16431  case 14:
16432  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
16433  else {
16434  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 14); __PYX_ERR(0, 4312, __pyx_L3_error)
16435  }
16436  CYTHON_FALLTHROUGH;
16437  case 15:
16438  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
16439  else {
16440  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 15); __PYX_ERR(0, 4312, __pyx_L3_error)
16441  }
16442  CYTHON_FALLTHROUGH;
16443  case 16:
16444  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
16445  else {
16446  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 16); __PYX_ERR(0, 4312, __pyx_L3_error)
16447  }
16448  CYTHON_FALLTHROUGH;
16449  case 17:
16450  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
16451  else {
16452  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 17); __PYX_ERR(0, 4312, __pyx_L3_error)
16453  }
16454  CYTHON_FALLTHROUGH;
16455  case 18:
16456  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
16457  else {
16458  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 18); __PYX_ERR(0, 4312, __pyx_L3_error)
16459  }
16460  CYTHON_FALLTHROUGH;
16461  case 19:
16462  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
16463  else {
16464  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 19); __PYX_ERR(0, 4312, __pyx_L3_error)
16465  }
16466  CYTHON_FALLTHROUGH;
16467  case 20:
16468  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
16469  else {
16470  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 20); __PYX_ERR(0, 4312, __pyx_L3_error)
16471  }
16472  CYTHON_FALLTHROUGH;
16473  case 21:
16474  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
16475  else {
16476  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 21); __PYX_ERR(0, 4312, __pyx_L3_error)
16477  }
16478  CYTHON_FALLTHROUGH;
16479  case 22:
16480  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
16481  else {
16482  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 22); __PYX_ERR(0, 4312, __pyx_L3_error)
16483  }
16484  CYTHON_FALLTHROUGH;
16485  case 23:
16486  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
16487  else {
16488  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 23); __PYX_ERR(0, 4312, __pyx_L3_error)
16489  }
16490  CYTHON_FALLTHROUGH;
16491  case 24:
16492  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
16493  else {
16494  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 24); __PYX_ERR(0, 4312, __pyx_L3_error)
16495  }
16496  CYTHON_FALLTHROUGH;
16497  case 25:
16498  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
16499  else {
16500  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 25); __PYX_ERR(0, 4312, __pyx_L3_error)
16501  }
16502  CYTHON_FALLTHROUGH;
16503  case 26:
16504  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
16505  else {
16506  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 26); __PYX_ERR(0, 4312, __pyx_L3_error)
16507  }
16508  CYTHON_FALLTHROUGH;
16509  case 27:
16510  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
16511  else {
16512  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 27); __PYX_ERR(0, 4312, __pyx_L3_error)
16513  }
16514  CYTHON_FALLTHROUGH;
16515  case 28:
16516  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
16517  else {
16518  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 28); __PYX_ERR(0, 4312, __pyx_L3_error)
16519  }
16520  CYTHON_FALLTHROUGH;
16521  case 29:
16522  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
16523  else {
16524  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 29); __PYX_ERR(0, 4312, __pyx_L3_error)
16525  }
16526  CYTHON_FALLTHROUGH;
16527  case 30:
16528  if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
16529  else {
16530  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 30); __PYX_ERR(0, 4312, __pyx_L3_error)
16531  }
16532  CYTHON_FALLTHROUGH;
16533  case 31:
16534  if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
16535  else {
16536  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 31); __PYX_ERR(0, 4312, __pyx_L3_error)
16537  }
16538  CYTHON_FALLTHROUGH;
16539  case 32:
16540  if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
16541  else {
16542  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 32); __PYX_ERR(0, 4312, __pyx_L3_error)
16543  }
16544  CYTHON_FALLTHROUGH;
16545  case 33:
16546  if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
16547  else {
16548  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 33); __PYX_ERR(0, 4312, __pyx_L3_error)
16549  }
16550  CYTHON_FALLTHROUGH;
16551  case 34:
16552  if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
16553  else {
16554  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 34); __PYX_ERR(0, 4312, __pyx_L3_error)
16555  }
16556  CYTHON_FALLTHROUGH;
16557  case 35:
16558  if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
16559  else {
16560  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 35); __PYX_ERR(0, 4312, __pyx_L3_error)
16561  }
16562  CYTHON_FALLTHROUGH;
16563  case 36:
16564  if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
16565  else {
16566  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 36); __PYX_ERR(0, 4312, __pyx_L3_error)
16567  }
16568  CYTHON_FALLTHROUGH;
16569  case 37:
16570  if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
16571  else {
16572  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 37); __PYX_ERR(0, 4312, __pyx_L3_error)
16573  }
16574  }
16575  if (unlikely(kw_args > 0)) {
16576  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd") < 0)) __PYX_ERR(0, 4312, __pyx_L3_error)
16577  }
16578  } else if (PyTuple_GET_SIZE(__pyx_args) != 38) {
16579  goto __pyx_L5_argtuple_error;
16580  } else {
16581  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16582  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16583  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16584  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16585  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
16586  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
16587  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
16588  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
16589  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
16590  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
16591  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
16592  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
16593  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
16594  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
16595  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
16596  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
16597  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
16598  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
16599  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
16600  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
16601  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
16602  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
16603  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
16604  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
16605  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
16606  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
16607  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
16608  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
16609  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
16610  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
16611  values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
16612  values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
16613  values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
16614  values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
16615  values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
16616  values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
16617  values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
16618  values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
16619  }
16620  __pyx_v_eps_rho = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_eps_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4312, __pyx_L3_error)
16621  __pyx_v_eps_mu = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_eps_mu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4313, __pyx_L3_error)
16622  __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_sigma == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4314, __pyx_L3_error)
16623  __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_rho_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4315, __pyx_L3_error)
16624  __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_nu_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4316, __pyx_L3_error)
16625  __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_rho_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4317, __pyx_L3_error)
16626  __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_nu_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4318, __pyx_L3_error)
16627  __pyx_v_g = ((PyArrayObject *)values[7]);
16628  __pyx_v_phi = ((PyArrayObject *)values[8]);
16629  __pyx_v_n = ((PyArrayObject *)values[9]);
16630  __pyx_v_kappa = ((PyArrayObject *)values[10]);
16631  __pyx_v_p = ((PyArrayObject *)values[11]);
16632  __pyx_v_grad_p = ((PyArrayObject *)values[12]);
16633  __pyx_v_u = ((PyArrayObject *)values[13]);
16634  __pyx_v_v = ((PyArrayObject *)values[14]);
16635  __pyx_v_mom_u_acc = ((PyArrayObject *)values[15]);
16636  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[16]);
16637  __pyx_v_mom_v_acc = ((PyArrayObject *)values[17]);
16638  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[18]);
16639  __pyx_v_mass_adv = ((PyArrayObject *)values[19]);
16640  __pyx_v_dmass_adv_u = ((PyArrayObject *)values[20]);
16641  __pyx_v_dmass_adv_v = ((PyArrayObject *)values[21]);
16642  __pyx_v_mom_u_adv = ((PyArrayObject *)values[22]);
16643  __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[23]);
16644  __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[24]);
16645  __pyx_v_mom_v_adv = ((PyArrayObject *)values[25]);
16646  __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[26]);
16647  __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[27]);
16648  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[28]);
16649  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[29]);
16650  __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[30]);
16651  __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[31]);
16652  __pyx_v_mom_u_source = ((PyArrayObject *)values[32]);
16653  __pyx_v_mom_v_source = ((PyArrayObject *)values[33]);
16654  __pyx_v_mom_u_ham = ((PyArrayObject *)values[34]);
16655  __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[35]);
16656  __pyx_v_mom_v_ham = ((PyArrayObject *)values[36]);
16657  __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[37]);
16658  }
16659  goto __pyx_L4_argument_unpacking_done;
16660  __pyx_L5_argtuple_error:;
16661  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4312, __pyx_L3_error)
16662  __pyx_L3_error:;
16663  __Pyx_AddTraceback("ctransportCoefficients.TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
16664  __Pyx_RefNannyFinishContext();
16665  return NULL;
16666  __pyx_L4_argument_unpacking_done:;
16667  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 4319, __pyx_L1_error)
16668  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 4320, __pyx_L1_error)
16669  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1, "n", 0))) __PYX_ERR(0, 4321, __pyx_L1_error)
16670  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kappa), __pyx_ptype_5numpy_ndarray, 1, "kappa", 0))) __PYX_ERR(0, 4322, __pyx_L1_error)
16671  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 4323, __pyx_L1_error)
16672  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1, "grad_p", 0))) __PYX_ERR(0, 4324, __pyx_L1_error)
16673  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 4325, __pyx_L1_error)
16674  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 4326, __pyx_L1_error)
16675  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 4327, __pyx_L1_error)
16676  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 4328, __pyx_L1_error)
16677  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 4329, __pyx_L1_error)
16678  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 4330, __pyx_L1_error)
16679  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 4331, __pyx_L1_error)
16680  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_u", 0))) __PYX_ERR(0, 4332, __pyx_L1_error)
16681  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_v", 0))) __PYX_ERR(0, 4333, __pyx_L1_error)
16682  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_u_adv", 0))) __PYX_ERR(0, 4334, __pyx_L1_error)
16683  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_u", 0))) __PYX_ERR(0, 4335, __pyx_L1_error)
16684  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_v", 0))) __PYX_ERR(0, 4336, __pyx_L1_error)
16685  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_v_adv", 0))) __PYX_ERR(0, 4337, __pyx_L1_error)
16686  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_u", 0))) __PYX_ERR(0, 4338, __pyx_L1_error)
16687  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_v", 0))) __PYX_ERR(0, 4339, __pyx_L1_error)
16688  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 4340, __pyx_L1_error)
16689  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 4341, __pyx_L1_error)
16690  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uv_diff_ten", 0))) __PYX_ERR(0, 4342, __pyx_L1_error)
16691  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vu_diff_ten", 0))) __PYX_ERR(0, 4343, __pyx_L1_error)
16692  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 4344, __pyx_L1_error)
16693  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 4345, __pyx_L1_error)
16694  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_u_ham", 0))) __PYX_ERR(0, 4346, __pyx_L1_error)
16695  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 4347, __pyx_L1_error)
16696  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_v_ham", 0))) __PYX_ERR(0, 4348, __pyx_L1_error)
16697  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 4349, __pyx_L1_error)
16698  __pyx_r = __pyx_pf_22ctransportCoefficients_84TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(__pyx_self, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_g, __pyx_v_phi, __pyx_v_n, __pyx_v_kappa, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p);
16699 
16700  /* function exit code */
16701  goto __pyx_L0;
16702  __pyx_L1_error:;
16703  __pyx_r = NULL;
16704  __pyx_L0:;
16705  __Pyx_RefNannyFinishContext();
16706  return __pyx_r;
16707 }
16708 
16709 static PyObject *__pyx_pf_22ctransportCoefficients_84TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps_rho, double __pyx_v_eps_mu, double __pyx_v_sigma, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p) {
16710  PyObject *__pyx_r = NULL;
16711  __Pyx_RefNannyDeclarations
16712  PyObject *__pyx_t_1 = NULL;
16713  int __pyx_t_2;
16714  int __pyx_lineno = 0;
16715  const char *__pyx_filename = NULL;
16716  int __pyx_clineno = 0;
16717  __Pyx_RefNannySetupContext("TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 0);
16718 
16719  /* "ctransportCoefficients.pyx":4350
16720  * np.ndarray mom_v_ham,
16721  * np.ndarray dmom_v_ham_grad_p):
16722  * cTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(p.size, # <<<<<<<<<<<<<<
16723  * eps_rho,
16724  * eps_mu,
16725  */
16726  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4350, __pyx_L1_error)
16727  __Pyx_GOTREF(__pyx_t_1);
16728  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4350, __pyx_L1_error)
16729  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16730 
16731  /* "ctransportCoefficients.pyx":4388
16732  * <double*> dmom_u_ham_grad_p.data,
16733  * <double*> mom_v_ham.data,
16734  * <double*> dmom_v_ham_grad_p.data) # <<<<<<<<<<<<<<
16735  * def ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate(const double boundaryPenaltyCoef,
16736  * const double volumePenaltyCoef,
16737  */
16738  TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(__pyx_t_2, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((double *)__pyx_v_g->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_n->data), ((double *)__pyx_v_kappa->data), ((double *)__pyx_v_p->data), ((double *)__pyx_v_grad_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_v_acc_v->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_u->data), ((double *)__pyx_v_dmass_adv_v->data), ((double *)__pyx_v_mom_u_adv->data), ((double *)__pyx_v_dmom_u_adv_u->data), ((double *)__pyx_v_dmom_u_adv_v->data), ((double *)__pyx_v_mom_v_adv->data), ((double *)__pyx_v_dmom_v_adv_u->data), ((double *)__pyx_v_dmom_v_adv_v->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_uv_diff_ten->data), ((double *)__pyx_v_mom_vu_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_mom_u_ham->data), ((double *)__pyx_v_dmom_u_ham_grad_p->data), ((double *)__pyx_v_mom_v_ham->data), ((double *)__pyx_v_dmom_v_ham_grad_p->data));
16739 
16740  /* "ctransportCoefficients.pyx":4312
16741  * <double*> mom_v_ham.data,
16742  * <double*> dmom_v_ham_grad_p.data)
16743  * def TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(const double eps_rho, # <<<<<<<<<<<<<<
16744  * const double eps_mu,
16745  * const double sigma,
16746  */
16747 
16748  /* function exit code */
16749  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
16750  goto __pyx_L0;
16751  __pyx_L1_error:;
16752  __Pyx_XDECREF(__pyx_t_1);
16753  __Pyx_AddTraceback("ctransportCoefficients.TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
16754  __pyx_r = NULL;
16755  __pyx_L0:;
16756  __Pyx_XGIVEREF(__pyx_r);
16757  __Pyx_RefNannyFinishContext();
16758  return __pyx_r;
16759 }
16760 
16761 /* "ctransportCoefficients.pyx":4389
16762  * <double*> mom_v_ham.data,
16763  * <double*> dmom_v_ham_grad_p.data)
16764  * def ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate(const double boundaryPenaltyCoef, # <<<<<<<<<<<<<<
16765  * const double volumePenaltyCoef,
16766  * const double eps_rho,
16767  */
16768 
16769 /* Python wrapper */
16770 static PyObject *__pyx_pw_22ctransportCoefficients_87ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
16771 static PyMethodDef __pyx_mdef_22ctransportCoefficients_87ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate = {"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_87ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
16772 static PyObject *__pyx_pw_22ctransportCoefficients_87ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
16773  double __pyx_v_boundaryPenaltyCoef;
16774  double __pyx_v_volumePenaltyCoef;
16775  double __pyx_v_eps_rho;
16776  double __pyx_v_eps_mu;
16777  double __pyx_v_sigma;
16778  double __pyx_v_rho_0;
16779  double __pyx_v_nu_0;
16780  double __pyx_v_rho_1;
16781  double __pyx_v_nu_1;
16782  double __pyx_v_rho_s;
16783  double __pyx_v_nu_s;
16784  PyArrayObject *__pyx_v_g = 0;
16785  PyArrayObject *__pyx_v_phi = 0;
16786  PyArrayObject *__pyx_v_n = 0;
16787  PyArrayObject *__pyx_v_kappa = 0;
16788  PyArrayObject *__pyx_v_phi_s = 0;
16789  PyArrayObject *__pyx_v_n_s = 0;
16790  PyArrayObject *__pyx_v_p = 0;
16791  PyArrayObject *__pyx_v_grad_p = 0;
16792  PyArrayObject *__pyx_v_u = 0;
16793  PyArrayObject *__pyx_v_v = 0;
16794  PyArrayObject *__pyx_v_mom_u_acc = 0;
16795  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
16796  PyArrayObject *__pyx_v_mom_v_acc = 0;
16797  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
16798  PyArrayObject *__pyx_v_mass_adv = 0;
16799  PyArrayObject *__pyx_v_dmass_adv_u = 0;
16800  PyArrayObject *__pyx_v_dmass_adv_v = 0;
16801  PyArrayObject *__pyx_v_mom_u_adv = 0;
16802  PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
16803  PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
16804  PyArrayObject *__pyx_v_mom_v_adv = 0;
16805  PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
16806  PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
16807  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
16808  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
16809  PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
16810  PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
16811  PyArrayObject *__pyx_v_mom_u_source = 0;
16812  PyArrayObject *__pyx_v_dmom_u_source_u = 0;
16813  PyArrayObject *__pyx_v_dmom_u_source_v = 0;
16814  PyArrayObject *__pyx_v_mom_v_source = 0;
16815  PyArrayObject *__pyx_v_dmom_v_source_u = 0;
16816  PyArrayObject *__pyx_v_dmom_v_source_v = 0;
16817  PyArrayObject *__pyx_v_mom_u_ham = 0;
16818  PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
16819  PyArrayObject *__pyx_v_mom_v_ham = 0;
16820  PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
16821  int __pyx_lineno = 0;
16822  const char *__pyx_filename = NULL;
16823  int __pyx_clineno = 0;
16824  PyObject *__pyx_r = 0;
16825  __Pyx_RefNannyDeclarations
16826  __Pyx_RefNannySetupContext("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate (wrapper)", 0);
16827  {
16828  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_boundaryPenaltyCoef,&__pyx_n_s_volumePenaltyCoef,&__pyx_n_s_eps_rho,&__pyx_n_s_eps_mu,&__pyx_n_s_sigma,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_rho_s,&__pyx_n_s_nu_s,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_n,&__pyx_n_s_kappa,&__pyx_n_s_phi_s,&__pyx_n_s_n_s,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_dmom_u_source_u,&__pyx_n_s_dmom_u_source_v,&__pyx_n_s_mom_v_source,&__pyx_n_s_dmom_v_source_u,&__pyx_n_s_dmom_v_source_v,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,0};
16829  PyObject* values[48] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
16830  if (unlikely(__pyx_kwds)) {
16831  Py_ssize_t kw_args;
16832  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
16833  switch (pos_args) {
16834  case 48: values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
16835  CYTHON_FALLTHROUGH;
16836  case 47: values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
16837  CYTHON_FALLTHROUGH;
16838  case 46: values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
16839  CYTHON_FALLTHROUGH;
16840  case 45: values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
16841  CYTHON_FALLTHROUGH;
16842  case 44: values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
16843  CYTHON_FALLTHROUGH;
16844  case 43: values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
16845  CYTHON_FALLTHROUGH;
16846  case 42: values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
16847  CYTHON_FALLTHROUGH;
16848  case 41: values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
16849  CYTHON_FALLTHROUGH;
16850  case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
16851  CYTHON_FALLTHROUGH;
16852  case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
16853  CYTHON_FALLTHROUGH;
16854  case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
16855  CYTHON_FALLTHROUGH;
16856  case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
16857  CYTHON_FALLTHROUGH;
16858  case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
16859  CYTHON_FALLTHROUGH;
16860  case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
16861  CYTHON_FALLTHROUGH;
16862  case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
16863  CYTHON_FALLTHROUGH;
16864  case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
16865  CYTHON_FALLTHROUGH;
16866  case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
16867  CYTHON_FALLTHROUGH;
16868  case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
16869  CYTHON_FALLTHROUGH;
16870  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
16871  CYTHON_FALLTHROUGH;
16872  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
16873  CYTHON_FALLTHROUGH;
16874  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
16875  CYTHON_FALLTHROUGH;
16876  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
16877  CYTHON_FALLTHROUGH;
16878  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
16879  CYTHON_FALLTHROUGH;
16880  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
16881  CYTHON_FALLTHROUGH;
16882  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
16883  CYTHON_FALLTHROUGH;
16884  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
16885  CYTHON_FALLTHROUGH;
16886  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
16887  CYTHON_FALLTHROUGH;
16888  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
16889  CYTHON_FALLTHROUGH;
16890  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
16891  CYTHON_FALLTHROUGH;
16892  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
16893  CYTHON_FALLTHROUGH;
16894  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
16895  CYTHON_FALLTHROUGH;
16896  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
16897  CYTHON_FALLTHROUGH;
16898  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
16899  CYTHON_FALLTHROUGH;
16900  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
16901  CYTHON_FALLTHROUGH;
16902  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
16903  CYTHON_FALLTHROUGH;
16904  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
16905  CYTHON_FALLTHROUGH;
16906  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
16907  CYTHON_FALLTHROUGH;
16908  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
16909  CYTHON_FALLTHROUGH;
16910  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
16911  CYTHON_FALLTHROUGH;
16912  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
16913  CYTHON_FALLTHROUGH;
16914  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
16915  CYTHON_FALLTHROUGH;
16916  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
16917  CYTHON_FALLTHROUGH;
16918  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
16919  CYTHON_FALLTHROUGH;
16920  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
16921  CYTHON_FALLTHROUGH;
16922  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16923  CYTHON_FALLTHROUGH;
16924  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16925  CYTHON_FALLTHROUGH;
16926  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16927  CYTHON_FALLTHROUGH;
16928  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16929  CYTHON_FALLTHROUGH;
16930  case 0: break;
16931  default: goto __pyx_L5_argtuple_error;
16932  }
16933  kw_args = PyDict_Size(__pyx_kwds);
16934  switch (pos_args) {
16935  case 0:
16936  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_boundaryPenaltyCoef)) != 0)) kw_args--;
16937  else goto __pyx_L5_argtuple_error;
16938  CYTHON_FALLTHROUGH;
16939  case 1:
16940  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_volumePenaltyCoef)) != 0)) kw_args--;
16941  else {
16942  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 1); __PYX_ERR(0, 4389, __pyx_L3_error)
16943  }
16944  CYTHON_FALLTHROUGH;
16945  case 2:
16946  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_rho)) != 0)) kw_args--;
16947  else {
16948  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 2); __PYX_ERR(0, 4389, __pyx_L3_error)
16949  }
16950  CYTHON_FALLTHROUGH;
16951  case 3:
16952  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_mu)) != 0)) kw_args--;
16953  else {
16954  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 3); __PYX_ERR(0, 4389, __pyx_L3_error)
16955  }
16956  CYTHON_FALLTHROUGH;
16957  case 4:
16958  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
16959  else {
16960  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 4); __PYX_ERR(0, 4389, __pyx_L3_error)
16961  }
16962  CYTHON_FALLTHROUGH;
16963  case 5:
16964  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
16965  else {
16966  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 5); __PYX_ERR(0, 4389, __pyx_L3_error)
16967  }
16968  CYTHON_FALLTHROUGH;
16969  case 6:
16970  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
16971  else {
16972  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 6); __PYX_ERR(0, 4389, __pyx_L3_error)
16973  }
16974  CYTHON_FALLTHROUGH;
16975  case 7:
16976  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
16977  else {
16978  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 7); __PYX_ERR(0, 4389, __pyx_L3_error)
16979  }
16980  CYTHON_FALLTHROUGH;
16981  case 8:
16982  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
16983  else {
16984  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 8); __PYX_ERR(0, 4389, __pyx_L3_error)
16985  }
16986  CYTHON_FALLTHROUGH;
16987  case 9:
16988  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_s)) != 0)) kw_args--;
16989  else {
16990  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 9); __PYX_ERR(0, 4389, __pyx_L3_error)
16991  }
16992  CYTHON_FALLTHROUGH;
16993  case 10:
16994  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_s)) != 0)) kw_args--;
16995  else {
16996  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 10); __PYX_ERR(0, 4389, __pyx_L3_error)
16997  }
16998  CYTHON_FALLTHROUGH;
16999  case 11:
17000  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
17001  else {
17002  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 11); __PYX_ERR(0, 4389, __pyx_L3_error)
17003  }
17004  CYTHON_FALLTHROUGH;
17005  case 12:
17006  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
17007  else {
17008  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 12); __PYX_ERR(0, 4389, __pyx_L3_error)
17009  }
17010  CYTHON_FALLTHROUGH;
17011  case 13:
17012  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
17013  else {
17014  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 13); __PYX_ERR(0, 4389, __pyx_L3_error)
17015  }
17016  CYTHON_FALLTHROUGH;
17017  case 14:
17018  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kappa)) != 0)) kw_args--;
17019  else {
17020  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 14); __PYX_ERR(0, 4389, __pyx_L3_error)
17021  }
17022  CYTHON_FALLTHROUGH;
17023  case 15:
17024  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_s)) != 0)) kw_args--;
17025  else {
17026  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 15); __PYX_ERR(0, 4389, __pyx_L3_error)
17027  }
17028  CYTHON_FALLTHROUGH;
17029  case 16:
17030  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n_s)) != 0)) kw_args--;
17031  else {
17032  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 16); __PYX_ERR(0, 4389, __pyx_L3_error)
17033  }
17034  CYTHON_FALLTHROUGH;
17035  case 17:
17036  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
17037  else {
17038  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 17); __PYX_ERR(0, 4389, __pyx_L3_error)
17039  }
17040  CYTHON_FALLTHROUGH;
17041  case 18:
17042  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
17043  else {
17044  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 18); __PYX_ERR(0, 4389, __pyx_L3_error)
17045  }
17046  CYTHON_FALLTHROUGH;
17047  case 19:
17048  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
17049  else {
17050  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 19); __PYX_ERR(0, 4389, __pyx_L3_error)
17051  }
17052  CYTHON_FALLTHROUGH;
17053  case 20:
17054  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
17055  else {
17056  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 20); __PYX_ERR(0, 4389, __pyx_L3_error)
17057  }
17058  CYTHON_FALLTHROUGH;
17059  case 21:
17060  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
17061  else {
17062  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 21); __PYX_ERR(0, 4389, __pyx_L3_error)
17063  }
17064  CYTHON_FALLTHROUGH;
17065  case 22:
17066  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
17067  else {
17068  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 22); __PYX_ERR(0, 4389, __pyx_L3_error)
17069  }
17070  CYTHON_FALLTHROUGH;
17071  case 23:
17072  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
17073  else {
17074  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 23); __PYX_ERR(0, 4389, __pyx_L3_error)
17075  }
17076  CYTHON_FALLTHROUGH;
17077  case 24:
17078  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
17079  else {
17080  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 24); __PYX_ERR(0, 4389, __pyx_L3_error)
17081  }
17082  CYTHON_FALLTHROUGH;
17083  case 25:
17084  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
17085  else {
17086  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 25); __PYX_ERR(0, 4389, __pyx_L3_error)
17087  }
17088  CYTHON_FALLTHROUGH;
17089  case 26:
17090  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
17091  else {
17092  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 26); __PYX_ERR(0, 4389, __pyx_L3_error)
17093  }
17094  CYTHON_FALLTHROUGH;
17095  case 27:
17096  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
17097  else {
17098  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 27); __PYX_ERR(0, 4389, __pyx_L3_error)
17099  }
17100  CYTHON_FALLTHROUGH;
17101  case 28:
17102  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
17103  else {
17104  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 28); __PYX_ERR(0, 4389, __pyx_L3_error)
17105  }
17106  CYTHON_FALLTHROUGH;
17107  case 29:
17108  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
17109  else {
17110  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 29); __PYX_ERR(0, 4389, __pyx_L3_error)
17111  }
17112  CYTHON_FALLTHROUGH;
17113  case 30:
17114  if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
17115  else {
17116  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 30); __PYX_ERR(0, 4389, __pyx_L3_error)
17117  }
17118  CYTHON_FALLTHROUGH;
17119  case 31:
17120  if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
17121  else {
17122  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 31); __PYX_ERR(0, 4389, __pyx_L3_error)
17123  }
17124  CYTHON_FALLTHROUGH;
17125  case 32:
17126  if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
17127  else {
17128  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 32); __PYX_ERR(0, 4389, __pyx_L3_error)
17129  }
17130  CYTHON_FALLTHROUGH;
17131  case 33:
17132  if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
17133  else {
17134  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 33); __PYX_ERR(0, 4389, __pyx_L3_error)
17135  }
17136  CYTHON_FALLTHROUGH;
17137  case 34:
17138  if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
17139  else {
17140  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 34); __PYX_ERR(0, 4389, __pyx_L3_error)
17141  }
17142  CYTHON_FALLTHROUGH;
17143  case 35:
17144  if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
17145  else {
17146  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 35); __PYX_ERR(0, 4389, __pyx_L3_error)
17147  }
17148  CYTHON_FALLTHROUGH;
17149  case 36:
17150  if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
17151  else {
17152  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 36); __PYX_ERR(0, 4389, __pyx_L3_error)
17153  }
17154  CYTHON_FALLTHROUGH;
17155  case 37:
17156  if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
17157  else {
17158  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 37); __PYX_ERR(0, 4389, __pyx_L3_error)
17159  }
17160  CYTHON_FALLTHROUGH;
17161  case 38:
17162  if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
17163  else {
17164  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 38); __PYX_ERR(0, 4389, __pyx_L3_error)
17165  }
17166  CYTHON_FALLTHROUGH;
17167  case 39:
17168  if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_u)) != 0)) kw_args--;
17169  else {
17170  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 39); __PYX_ERR(0, 4389, __pyx_L3_error)
17171  }
17172  CYTHON_FALLTHROUGH;
17173  case 40:
17174  if (likely((values[40] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_v)) != 0)) kw_args--;
17175  else {
17176  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 40); __PYX_ERR(0, 4389, __pyx_L3_error)
17177  }
17178  CYTHON_FALLTHROUGH;
17179  case 41:
17180  if (likely((values[41] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
17181  else {
17182  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 41); __PYX_ERR(0, 4389, __pyx_L3_error)
17183  }
17184  CYTHON_FALLTHROUGH;
17185  case 42:
17186  if (likely((values[42] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_u)) != 0)) kw_args--;
17187  else {
17188  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 42); __PYX_ERR(0, 4389, __pyx_L3_error)
17189  }
17190  CYTHON_FALLTHROUGH;
17191  case 43:
17192  if (likely((values[43] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_v)) != 0)) kw_args--;
17193  else {
17194  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 43); __PYX_ERR(0, 4389, __pyx_L3_error)
17195  }
17196  CYTHON_FALLTHROUGH;
17197  case 44:
17198  if (likely((values[44] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
17199  else {
17200  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 44); __PYX_ERR(0, 4389, __pyx_L3_error)
17201  }
17202  CYTHON_FALLTHROUGH;
17203  case 45:
17204  if (likely((values[45] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
17205  else {
17206  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 45); __PYX_ERR(0, 4389, __pyx_L3_error)
17207  }
17208  CYTHON_FALLTHROUGH;
17209  case 46:
17210  if (likely((values[46] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
17211  else {
17212  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 46); __PYX_ERR(0, 4389, __pyx_L3_error)
17213  }
17214  CYTHON_FALLTHROUGH;
17215  case 47:
17216  if (likely((values[47] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
17217  else {
17218  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 47); __PYX_ERR(0, 4389, __pyx_L3_error)
17219  }
17220  }
17221  if (unlikely(kw_args > 0)) {
17222  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate") < 0)) __PYX_ERR(0, 4389, __pyx_L3_error)
17223  }
17224  } else if (PyTuple_GET_SIZE(__pyx_args) != 48) {
17225  goto __pyx_L5_argtuple_error;
17226  } else {
17227  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17228  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17229  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17230  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
17231  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
17232  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
17233  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
17234  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
17235  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
17236  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
17237  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
17238  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
17239  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
17240  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
17241  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
17242  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
17243  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
17244  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
17245  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
17246  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
17247  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
17248  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
17249  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
17250  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
17251  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
17252  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
17253  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
17254  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
17255  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
17256  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
17257  values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
17258  values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
17259  values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
17260  values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
17261  values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
17262  values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
17263  values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
17264  values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
17265  values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
17266  values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
17267  values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
17268  values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
17269  values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
17270  values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
17271  values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
17272  values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
17273  values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
17274  values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
17275  }
17276  __pyx_v_boundaryPenaltyCoef = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_boundaryPenaltyCoef == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4389, __pyx_L3_error)
17277  __pyx_v_volumePenaltyCoef = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_volumePenaltyCoef == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4390, __pyx_L3_error)
17278  __pyx_v_eps_rho = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_eps_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4391, __pyx_L3_error)
17279  __pyx_v_eps_mu = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_eps_mu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4392, __pyx_L3_error)
17280  __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_sigma == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4393, __pyx_L3_error)
17281  __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_rho_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4394, __pyx_L3_error)
17282  __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_nu_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4395, __pyx_L3_error)
17283  __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[7]); if (unlikely((__pyx_v_rho_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4396, __pyx_L3_error)
17284  __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[8]); if (unlikely((__pyx_v_nu_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4397, __pyx_L3_error)
17285  __pyx_v_rho_s = __pyx_PyFloat_AsDouble(values[9]); if (unlikely((__pyx_v_rho_s == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4398, __pyx_L3_error)
17286  __pyx_v_nu_s = __pyx_PyFloat_AsDouble(values[10]); if (unlikely((__pyx_v_nu_s == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4399, __pyx_L3_error)
17287  __pyx_v_g = ((PyArrayObject *)values[11]);
17288  __pyx_v_phi = ((PyArrayObject *)values[12]);
17289  __pyx_v_n = ((PyArrayObject *)values[13]);
17290  __pyx_v_kappa = ((PyArrayObject *)values[14]);
17291  __pyx_v_phi_s = ((PyArrayObject *)values[15]);
17292  __pyx_v_n_s = ((PyArrayObject *)values[16]);
17293  __pyx_v_p = ((PyArrayObject *)values[17]);
17294  __pyx_v_grad_p = ((PyArrayObject *)values[18]);
17295  __pyx_v_u = ((PyArrayObject *)values[19]);
17296  __pyx_v_v = ((PyArrayObject *)values[20]);
17297  __pyx_v_mom_u_acc = ((PyArrayObject *)values[21]);
17298  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[22]);
17299  __pyx_v_mom_v_acc = ((PyArrayObject *)values[23]);
17300  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[24]);
17301  __pyx_v_mass_adv = ((PyArrayObject *)values[25]);
17302  __pyx_v_dmass_adv_u = ((PyArrayObject *)values[26]);
17303  __pyx_v_dmass_adv_v = ((PyArrayObject *)values[27]);
17304  __pyx_v_mom_u_adv = ((PyArrayObject *)values[28]);
17305  __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[29]);
17306  __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[30]);
17307  __pyx_v_mom_v_adv = ((PyArrayObject *)values[31]);
17308  __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[32]);
17309  __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[33]);
17310  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[34]);
17311  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[35]);
17312  __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[36]);
17313  __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[37]);
17314  __pyx_v_mom_u_source = ((PyArrayObject *)values[38]);
17315  __pyx_v_dmom_u_source_u = ((PyArrayObject *)values[39]);
17316  __pyx_v_dmom_u_source_v = ((PyArrayObject *)values[40]);
17317  __pyx_v_mom_v_source = ((PyArrayObject *)values[41]);
17318  __pyx_v_dmom_v_source_u = ((PyArrayObject *)values[42]);
17319  __pyx_v_dmom_v_source_v = ((PyArrayObject *)values[43]);
17320  __pyx_v_mom_u_ham = ((PyArrayObject *)values[44]);
17321  __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[45]);
17322  __pyx_v_mom_v_ham = ((PyArrayObject *)values[46]);
17323  __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[47]);
17324  }
17325  goto __pyx_L4_argument_unpacking_done;
17326  __pyx_L5_argtuple_error:;
17327  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4389, __pyx_L3_error)
17328  __pyx_L3_error:;
17329  __Pyx_AddTraceback("ctransportCoefficients.ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
17330  __Pyx_RefNannyFinishContext();
17331  return NULL;
17332  __pyx_L4_argument_unpacking_done:;
17333  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 4400, __pyx_L1_error)
17334  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 4401, __pyx_L1_error)
17335  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1, "n", 0))) __PYX_ERR(0, 4402, __pyx_L1_error)
17336  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kappa), __pyx_ptype_5numpy_ndarray, 1, "kappa", 0))) __PYX_ERR(0, 4403, __pyx_L1_error)
17337  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_s), __pyx_ptype_5numpy_ndarray, 1, "phi_s", 0))) __PYX_ERR(0, 4404, __pyx_L1_error)
17338  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n_s), __pyx_ptype_5numpy_ndarray, 1, "n_s", 0))) __PYX_ERR(0, 4405, __pyx_L1_error)
17339  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 4406, __pyx_L1_error)
17340  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1, "grad_p", 0))) __PYX_ERR(0, 4407, __pyx_L1_error)
17341  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 4408, __pyx_L1_error)
17342  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 4409, __pyx_L1_error)
17343  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 4410, __pyx_L1_error)
17344  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 4411, __pyx_L1_error)
17345  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 4412, __pyx_L1_error)
17346  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 4413, __pyx_L1_error)
17347  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 4414, __pyx_L1_error)
17348  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_u", 0))) __PYX_ERR(0, 4415, __pyx_L1_error)
17349  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_v", 0))) __PYX_ERR(0, 4416, __pyx_L1_error)
17350  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_u_adv", 0))) __PYX_ERR(0, 4417, __pyx_L1_error)
17351  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_u", 0))) __PYX_ERR(0, 4418, __pyx_L1_error)
17352  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_v", 0))) __PYX_ERR(0, 4419, __pyx_L1_error)
17353  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_v_adv", 0))) __PYX_ERR(0, 4420, __pyx_L1_error)
17354  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_u", 0))) __PYX_ERR(0, 4421, __pyx_L1_error)
17355  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_v", 0))) __PYX_ERR(0, 4422, __pyx_L1_error)
17356  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 4423, __pyx_L1_error)
17357  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 4424, __pyx_L1_error)
17358  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uv_diff_ten", 0))) __PYX_ERR(0, 4425, __pyx_L1_error)
17359  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vu_diff_ten", 0))) __PYX_ERR(0, 4426, __pyx_L1_error)
17360  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 4427, __pyx_L1_error)
17361  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_source_u", 0))) __PYX_ERR(0, 4428, __pyx_L1_error)
17362  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_source_v", 0))) __PYX_ERR(0, 4429, __pyx_L1_error)
17363  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 4430, __pyx_L1_error)
17364  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_source_u", 0))) __PYX_ERR(0, 4431, __pyx_L1_error)
17365  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_source_v", 0))) __PYX_ERR(0, 4432, __pyx_L1_error)
17366  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_u_ham", 0))) __PYX_ERR(0, 4433, __pyx_L1_error)
17367  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 4434, __pyx_L1_error)
17368  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_v_ham", 0))) __PYX_ERR(0, 4435, __pyx_L1_error)
17369  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 4436, __pyx_L1_error)
17370  __pyx_r = __pyx_pf_22ctransportCoefficients_86ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate(__pyx_self, __pyx_v_boundaryPenaltyCoef, __pyx_v_volumePenaltyCoef, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_rho_s, __pyx_v_nu_s, __pyx_v_g, __pyx_v_phi, __pyx_v_n, __pyx_v_kappa, __pyx_v_phi_s, __pyx_v_n_s, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_u_source, __pyx_v_dmom_u_source_u, __pyx_v_dmom_u_source_v, __pyx_v_mom_v_source, __pyx_v_dmom_v_source_u, __pyx_v_dmom_v_source_v, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p);
17371 
17372  /* function exit code */
17373  goto __pyx_L0;
17374  __pyx_L1_error:;
17375  __pyx_r = NULL;
17376  __pyx_L0:;
17377  __Pyx_RefNannyFinishContext();
17378  return __pyx_r;
17379 }
17380 
17381 static PyObject *__pyx_pf_22ctransportCoefficients_86ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_boundaryPenaltyCoef, double __pyx_v_volumePenaltyCoef, double __pyx_v_eps_rho, double __pyx_v_eps_mu, double __pyx_v_sigma, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, double __pyx_v_rho_s, double __pyx_v_nu_s, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_phi_s, PyArrayObject *__pyx_v_n_s, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p) {
17382  PyObject *__pyx_r = NULL;
17383  __Pyx_RefNannyDeclarations
17384  PyObject *__pyx_t_1 = NULL;
17385  int __pyx_t_2;
17386  int __pyx_lineno = 0;
17387  const char *__pyx_filename = NULL;
17388  int __pyx_clineno = 0;
17389  __Pyx_RefNannySetupContext("ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 0);
17390 
17391  /* "ctransportCoefficients.pyx":4437
17392  * np.ndarray mom_v_ham,
17393  * np.ndarray dmom_v_ham_grad_p):
17394  * cThreephaseNavierStokes_ST_LS_SO_2D_Evaluate(p.size, # <<<<<<<<<<<<<<
17395  * boundaryPenaltyCoef,
17396  * volumePenaltyCoef,
17397  */
17398  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4437, __pyx_L1_error)
17399  __Pyx_GOTREF(__pyx_t_1);
17400  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4437, __pyx_L1_error)
17401  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
17402 
17403  /* "ctransportCoefficients.pyx":4485
17404  * <double*> dmom_u_ham_grad_p.data,
17405  * <double*> mom_v_ham.data,
17406  * <double*> dmom_v_ham_grad_p.data) # <<<<<<<<<<<<<<
17407  * def TwophaseNavierStokes_ST_LS_SO_3D_Evaluate(const double eps_rho,
17408  * const double eps_mu,
17409  */
17410  ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate(__pyx_t_2, __pyx_v_boundaryPenaltyCoef, __pyx_v_volumePenaltyCoef, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_rho_s, __pyx_v_nu_s, ((double *)__pyx_v_g->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_n->data), ((double *)__pyx_v_kappa->data), ((double *)__pyx_v_phi_s->data), ((double *)__pyx_v_n_s->data), ((double *)__pyx_v_p->data), ((double *)__pyx_v_grad_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_v_acc_v->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_u->data), ((double *)__pyx_v_dmass_adv_v->data), ((double *)__pyx_v_mom_u_adv->data), ((double *)__pyx_v_dmom_u_adv_u->data), ((double *)__pyx_v_dmom_u_adv_v->data), ((double *)__pyx_v_mom_v_adv->data), ((double *)__pyx_v_dmom_v_adv_u->data), ((double *)__pyx_v_dmom_v_adv_v->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_uv_diff_ten->data), ((double *)__pyx_v_mom_vu_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_dmom_u_source_u->data), ((double *)__pyx_v_dmom_u_source_v->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_dmom_v_source_u->data), ((double *)__pyx_v_dmom_v_source_v->data), ((double *)__pyx_v_mom_u_ham->data), ((double *)__pyx_v_dmom_u_ham_grad_p->data), ((double *)__pyx_v_mom_v_ham->data), ((double *)__pyx_v_dmom_v_ham_grad_p->data));
17411 
17412  /* "ctransportCoefficients.pyx":4389
17413  * <double*> mom_v_ham.data,
17414  * <double*> dmom_v_ham_grad_p.data)
17415  * def ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate(const double boundaryPenaltyCoef, # <<<<<<<<<<<<<<
17416  * const double volumePenaltyCoef,
17417  * const double eps_rho,
17418  */
17419 
17420  /* function exit code */
17421  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
17422  goto __pyx_L0;
17423  __pyx_L1_error:;
17424  __Pyx_XDECREF(__pyx_t_1);
17425  __Pyx_AddTraceback("ctransportCoefficients.ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
17426  __pyx_r = NULL;
17427  __pyx_L0:;
17428  __Pyx_XGIVEREF(__pyx_r);
17429  __Pyx_RefNannyFinishContext();
17430  return __pyx_r;
17431 }
17432 
17433 /* "ctransportCoefficients.pyx":4486
17434  * <double*> mom_v_ham.data,
17435  * <double*> dmom_v_ham_grad_p.data)
17436  * def TwophaseNavierStokes_ST_LS_SO_3D_Evaluate(const double eps_rho, # <<<<<<<<<<<<<<
17437  * const double eps_mu,
17438  * const double sigma,
17439  */
17440 
17441 /* Python wrapper */
17442 static PyObject *__pyx_pw_22ctransportCoefficients_89TwophaseNavierStokes_ST_LS_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
17443 static PyMethodDef __pyx_mdef_22ctransportCoefficients_89TwophaseNavierStokes_ST_LS_SO_3D_Evaluate = {"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_89TwophaseNavierStokes_ST_LS_SO_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
17444 static PyObject *__pyx_pw_22ctransportCoefficients_89TwophaseNavierStokes_ST_LS_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
17445  double __pyx_v_eps_rho;
17446  double __pyx_v_eps_mu;
17447  double __pyx_v_sigma;
17448  double __pyx_v_rho_0;
17449  double __pyx_v_nu_0;
17450  double __pyx_v_rho_1;
17451  double __pyx_v_nu_1;
17452  PyArrayObject *__pyx_v_g = 0;
17453  PyArrayObject *__pyx_v_phi = 0;
17454  PyArrayObject *__pyx_v_n = 0;
17455  PyArrayObject *__pyx_v_kappa = 0;
17456  PyArrayObject *__pyx_v_p = 0;
17457  PyArrayObject *__pyx_v_grad_p = 0;
17458  PyArrayObject *__pyx_v_u = 0;
17459  PyArrayObject *__pyx_v_v = 0;
17460  PyArrayObject *__pyx_v_w = 0;
17461  PyArrayObject *__pyx_v_mom_u_acc = 0;
17462  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
17463  PyArrayObject *__pyx_v_mom_v_acc = 0;
17464  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
17465  PyArrayObject *__pyx_v_mom_w_acc = 0;
17466  PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
17467  PyArrayObject *__pyx_v_mass_adv = 0;
17468  PyArrayObject *__pyx_v_dmass_adv_u = 0;
17469  PyArrayObject *__pyx_v_dmass_adv_v = 0;
17470  PyArrayObject *__pyx_v_dmass_adv_w = 0;
17471  PyArrayObject *__pyx_v_mom_u_adv = 0;
17472  PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
17473  PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
17474  PyArrayObject *__pyx_v_dmom_u_adv_w = 0;
17475  PyArrayObject *__pyx_v_mom_v_adv = 0;
17476  PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
17477  PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
17478  PyArrayObject *__pyx_v_dmom_v_adv_w = 0;
17479  PyArrayObject *__pyx_v_mom_w_adv = 0;
17480  PyArrayObject *__pyx_v_dmom_w_adv_u = 0;
17481  PyArrayObject *__pyx_v_dmom_w_adv_v = 0;
17482  PyArrayObject *__pyx_v_dmom_w_adv_w = 0;
17483  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
17484  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
17485  PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
17486  PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
17487  PyArrayObject *__pyx_v_mom_uw_diff_ten = 0;
17488  PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
17489  PyArrayObject *__pyx_v_mom_vw_diff_ten = 0;
17490  PyArrayObject *__pyx_v_mom_wu_diff_ten = 0;
17491  PyArrayObject *__pyx_v_mom_wv_diff_ten = 0;
17492  PyArrayObject *__pyx_v_mom_u_source = 0;
17493  PyArrayObject *__pyx_v_mom_v_source = 0;
17494  PyArrayObject *__pyx_v_mom_w_source = 0;
17495  PyArrayObject *__pyx_v_mom_u_ham = 0;
17496  PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
17497  PyArrayObject *__pyx_v_mom_v_ham = 0;
17498  PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
17499  PyArrayObject *__pyx_v_mom_w_ham = 0;
17500  PyArrayObject *__pyx_v_dmom_w_ham_grad_p = 0;
17501  int __pyx_lineno = 0;
17502  const char *__pyx_filename = NULL;
17503  int __pyx_clineno = 0;
17504  PyObject *__pyx_r = 0;
17505  __Pyx_RefNannyDeclarations
17506  __Pyx_RefNannySetupContext("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate (wrapper)", 0);
17507  {
17508  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps_rho,&__pyx_n_s_eps_mu,&__pyx_n_s_sigma,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_n,&__pyx_n_s_kappa,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_w_acc_w,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_dmass_adv_w,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_dmom_u_adv_w,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_dmom_v_adv_w,&__pyx_n_s_mom_w_adv,&__pyx_n_s_dmom_w_adv_u,&__pyx_n_s_dmom_w_adv_v,&__pyx_n_s_dmom_w_adv_w,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_uw_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_vw_diff_ten,&__pyx_n_s_mom_wu_diff_ten,&__pyx_n_s_mom_wv_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,&__pyx_n_s_mom_w_ham,&__pyx_n_s_dmom_w_ham_grad_p,0};
17509  PyObject* values[56] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
17510  if (unlikely(__pyx_kwds)) {
17511  Py_ssize_t kw_args;
17512  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
17513  switch (pos_args) {
17514  case 56: values[55] = PyTuple_GET_ITEM(__pyx_args, 55);
17515  CYTHON_FALLTHROUGH;
17516  case 55: values[54] = PyTuple_GET_ITEM(__pyx_args, 54);
17517  CYTHON_FALLTHROUGH;
17518  case 54: values[53] = PyTuple_GET_ITEM(__pyx_args, 53);
17519  CYTHON_FALLTHROUGH;
17520  case 53: values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
17521  CYTHON_FALLTHROUGH;
17522  case 52: values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
17523  CYTHON_FALLTHROUGH;
17524  case 51: values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
17525  CYTHON_FALLTHROUGH;
17526  case 50: values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
17527  CYTHON_FALLTHROUGH;
17528  case 49: values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
17529  CYTHON_FALLTHROUGH;
17530  case 48: values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
17531  CYTHON_FALLTHROUGH;
17532  case 47: values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
17533  CYTHON_FALLTHROUGH;
17534  case 46: values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
17535  CYTHON_FALLTHROUGH;
17536  case 45: values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
17537  CYTHON_FALLTHROUGH;
17538  case 44: values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
17539  CYTHON_FALLTHROUGH;
17540  case 43: values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
17541  CYTHON_FALLTHROUGH;
17542  case 42: values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
17543  CYTHON_FALLTHROUGH;
17544  case 41: values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
17545  CYTHON_FALLTHROUGH;
17546  case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
17547  CYTHON_FALLTHROUGH;
17548  case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
17549  CYTHON_FALLTHROUGH;
17550  case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
17551  CYTHON_FALLTHROUGH;
17552  case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
17553  CYTHON_FALLTHROUGH;
17554  case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
17555  CYTHON_FALLTHROUGH;
17556  case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
17557  CYTHON_FALLTHROUGH;
17558  case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
17559  CYTHON_FALLTHROUGH;
17560  case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
17561  CYTHON_FALLTHROUGH;
17562  case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
17563  CYTHON_FALLTHROUGH;
17564  case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
17565  CYTHON_FALLTHROUGH;
17566  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
17567  CYTHON_FALLTHROUGH;
17568  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
17569  CYTHON_FALLTHROUGH;
17570  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
17571  CYTHON_FALLTHROUGH;
17572  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
17573  CYTHON_FALLTHROUGH;
17574  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
17575  CYTHON_FALLTHROUGH;
17576  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
17577  CYTHON_FALLTHROUGH;
17578  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
17579  CYTHON_FALLTHROUGH;
17580  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
17581  CYTHON_FALLTHROUGH;
17582  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
17583  CYTHON_FALLTHROUGH;
17584  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
17585  CYTHON_FALLTHROUGH;
17586  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
17587  CYTHON_FALLTHROUGH;
17588  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
17589  CYTHON_FALLTHROUGH;
17590  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
17591  CYTHON_FALLTHROUGH;
17592  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
17593  CYTHON_FALLTHROUGH;
17594  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
17595  CYTHON_FALLTHROUGH;
17596  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
17597  CYTHON_FALLTHROUGH;
17598  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
17599  CYTHON_FALLTHROUGH;
17600  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
17601  CYTHON_FALLTHROUGH;
17602  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
17603  CYTHON_FALLTHROUGH;
17604  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
17605  CYTHON_FALLTHROUGH;
17606  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
17607  CYTHON_FALLTHROUGH;
17608  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
17609  CYTHON_FALLTHROUGH;
17610  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
17611  CYTHON_FALLTHROUGH;
17612  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
17613  CYTHON_FALLTHROUGH;
17614  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
17615  CYTHON_FALLTHROUGH;
17616  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
17617  CYTHON_FALLTHROUGH;
17618  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
17619  CYTHON_FALLTHROUGH;
17620  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17621  CYTHON_FALLTHROUGH;
17622  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17623  CYTHON_FALLTHROUGH;
17624  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17625  CYTHON_FALLTHROUGH;
17626  case 0: break;
17627  default: goto __pyx_L5_argtuple_error;
17628  }
17629  kw_args = PyDict_Size(__pyx_kwds);
17630  switch (pos_args) {
17631  case 0:
17632  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_rho)) != 0)) kw_args--;
17633  else goto __pyx_L5_argtuple_error;
17634  CYTHON_FALLTHROUGH;
17635  case 1:
17636  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_mu)) != 0)) kw_args--;
17637  else {
17638  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 1); __PYX_ERR(0, 4486, __pyx_L3_error)
17639  }
17640  CYTHON_FALLTHROUGH;
17641  case 2:
17642  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
17643  else {
17644  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 2); __PYX_ERR(0, 4486, __pyx_L3_error)
17645  }
17646  CYTHON_FALLTHROUGH;
17647  case 3:
17648  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
17649  else {
17650  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 3); __PYX_ERR(0, 4486, __pyx_L3_error)
17651  }
17652  CYTHON_FALLTHROUGH;
17653  case 4:
17654  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
17655  else {
17656  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 4); __PYX_ERR(0, 4486, __pyx_L3_error)
17657  }
17658  CYTHON_FALLTHROUGH;
17659  case 5:
17660  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
17661  else {
17662  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 5); __PYX_ERR(0, 4486, __pyx_L3_error)
17663  }
17664  CYTHON_FALLTHROUGH;
17665  case 6:
17666  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
17667  else {
17668  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 6); __PYX_ERR(0, 4486, __pyx_L3_error)
17669  }
17670  CYTHON_FALLTHROUGH;
17671  case 7:
17672  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
17673  else {
17674  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 7); __PYX_ERR(0, 4486, __pyx_L3_error)
17675  }
17676  CYTHON_FALLTHROUGH;
17677  case 8:
17678  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
17679  else {
17680  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 8); __PYX_ERR(0, 4486, __pyx_L3_error)
17681  }
17682  CYTHON_FALLTHROUGH;
17683  case 9:
17684  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
17685  else {
17686  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 9); __PYX_ERR(0, 4486, __pyx_L3_error)
17687  }
17688  CYTHON_FALLTHROUGH;
17689  case 10:
17690  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kappa)) != 0)) kw_args--;
17691  else {
17692  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 10); __PYX_ERR(0, 4486, __pyx_L3_error)
17693  }
17694  CYTHON_FALLTHROUGH;
17695  case 11:
17696  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
17697  else {
17698  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 11); __PYX_ERR(0, 4486, __pyx_L3_error)
17699  }
17700  CYTHON_FALLTHROUGH;
17701  case 12:
17702  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
17703  else {
17704  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 12); __PYX_ERR(0, 4486, __pyx_L3_error)
17705  }
17706  CYTHON_FALLTHROUGH;
17707  case 13:
17708  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
17709  else {
17710  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 13); __PYX_ERR(0, 4486, __pyx_L3_error)
17711  }
17712  CYTHON_FALLTHROUGH;
17713  case 14:
17714  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
17715  else {
17716  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 14); __PYX_ERR(0, 4486, __pyx_L3_error)
17717  }
17718  CYTHON_FALLTHROUGH;
17719  case 15:
17720  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
17721  else {
17722  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 15); __PYX_ERR(0, 4486, __pyx_L3_error)
17723  }
17724  CYTHON_FALLTHROUGH;
17725  case 16:
17726  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
17727  else {
17728  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 16); __PYX_ERR(0, 4486, __pyx_L3_error)
17729  }
17730  CYTHON_FALLTHROUGH;
17731  case 17:
17732  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
17733  else {
17734  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 17); __PYX_ERR(0, 4486, __pyx_L3_error)
17735  }
17736  CYTHON_FALLTHROUGH;
17737  case 18:
17738  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
17739  else {
17740  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 18); __PYX_ERR(0, 4486, __pyx_L3_error)
17741  }
17742  CYTHON_FALLTHROUGH;
17743  case 19:
17744  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
17745  else {
17746  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 19); __PYX_ERR(0, 4486, __pyx_L3_error)
17747  }
17748  CYTHON_FALLTHROUGH;
17749  case 20:
17750  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
17751  else {
17752  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 20); __PYX_ERR(0, 4486, __pyx_L3_error)
17753  }
17754  CYTHON_FALLTHROUGH;
17755  case 21:
17756  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
17757  else {
17758  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 21); __PYX_ERR(0, 4486, __pyx_L3_error)
17759  }
17760  CYTHON_FALLTHROUGH;
17761  case 22:
17762  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
17763  else {
17764  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 22); __PYX_ERR(0, 4486, __pyx_L3_error)
17765  }
17766  CYTHON_FALLTHROUGH;
17767  case 23:
17768  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
17769  else {
17770  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 23); __PYX_ERR(0, 4486, __pyx_L3_error)
17771  }
17772  CYTHON_FALLTHROUGH;
17773  case 24:
17774  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
17775  else {
17776  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 24); __PYX_ERR(0, 4486, __pyx_L3_error)
17777  }
17778  CYTHON_FALLTHROUGH;
17779  case 25:
17780  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_w)) != 0)) kw_args--;
17781  else {
17782  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 25); __PYX_ERR(0, 4486, __pyx_L3_error)
17783  }
17784  CYTHON_FALLTHROUGH;
17785  case 26:
17786  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
17787  else {
17788  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 26); __PYX_ERR(0, 4486, __pyx_L3_error)
17789  }
17790  CYTHON_FALLTHROUGH;
17791  case 27:
17792  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
17793  else {
17794  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 27); __PYX_ERR(0, 4486, __pyx_L3_error)
17795  }
17796  CYTHON_FALLTHROUGH;
17797  case 28:
17798  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
17799  else {
17800  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 28); __PYX_ERR(0, 4486, __pyx_L3_error)
17801  }
17802  CYTHON_FALLTHROUGH;
17803  case 29:
17804  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_w)) != 0)) kw_args--;
17805  else {
17806  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 29); __PYX_ERR(0, 4486, __pyx_L3_error)
17807  }
17808  CYTHON_FALLTHROUGH;
17809  case 30:
17810  if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
17811  else {
17812  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 30); __PYX_ERR(0, 4486, __pyx_L3_error)
17813  }
17814  CYTHON_FALLTHROUGH;
17815  case 31:
17816  if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
17817  else {
17818  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 31); __PYX_ERR(0, 4486, __pyx_L3_error)
17819  }
17820  CYTHON_FALLTHROUGH;
17821  case 32:
17822  if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
17823  else {
17824  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 32); __PYX_ERR(0, 4486, __pyx_L3_error)
17825  }
17826  CYTHON_FALLTHROUGH;
17827  case 33:
17828  if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_w)) != 0)) kw_args--;
17829  else {
17830  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 33); __PYX_ERR(0, 4486, __pyx_L3_error)
17831  }
17832  CYTHON_FALLTHROUGH;
17833  case 34:
17834  if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_adv)) != 0)) kw_args--;
17835  else {
17836  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 34); __PYX_ERR(0, 4486, __pyx_L3_error)
17837  }
17838  CYTHON_FALLTHROUGH;
17839  case 35:
17840  if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_u)) != 0)) kw_args--;
17841  else {
17842  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 35); __PYX_ERR(0, 4486, __pyx_L3_error)
17843  }
17844  CYTHON_FALLTHROUGH;
17845  case 36:
17846  if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_v)) != 0)) kw_args--;
17847  else {
17848  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 36); __PYX_ERR(0, 4486, __pyx_L3_error)
17849  }
17850  CYTHON_FALLTHROUGH;
17851  case 37:
17852  if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_w)) != 0)) kw_args--;
17853  else {
17854  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 37); __PYX_ERR(0, 4486, __pyx_L3_error)
17855  }
17856  CYTHON_FALLTHROUGH;
17857  case 38:
17858  if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
17859  else {
17860  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 38); __PYX_ERR(0, 4486, __pyx_L3_error)
17861  }
17862  CYTHON_FALLTHROUGH;
17863  case 39:
17864  if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
17865  else {
17866  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 39); __PYX_ERR(0, 4486, __pyx_L3_error)
17867  }
17868  CYTHON_FALLTHROUGH;
17869  case 40:
17870  if (likely((values[40] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
17871  else {
17872  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 40); __PYX_ERR(0, 4486, __pyx_L3_error)
17873  }
17874  CYTHON_FALLTHROUGH;
17875  case 41:
17876  if (likely((values[41] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
17877  else {
17878  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 41); __PYX_ERR(0, 4486, __pyx_L3_error)
17879  }
17880  CYTHON_FALLTHROUGH;
17881  case 42:
17882  if (likely((values[42] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uw_diff_ten)) != 0)) kw_args--;
17883  else {
17884  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 42); __PYX_ERR(0, 4486, __pyx_L3_error)
17885  }
17886  CYTHON_FALLTHROUGH;
17887  case 43:
17888  if (likely((values[43] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
17889  else {
17890  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 43); __PYX_ERR(0, 4486, __pyx_L3_error)
17891  }
17892  CYTHON_FALLTHROUGH;
17893  case 44:
17894  if (likely((values[44] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vw_diff_ten)) != 0)) kw_args--;
17895  else {
17896  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 44); __PYX_ERR(0, 4486, __pyx_L3_error)
17897  }
17898  CYTHON_FALLTHROUGH;
17899  case 45:
17900  if (likely((values[45] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wu_diff_ten)) != 0)) kw_args--;
17901  else {
17902  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 45); __PYX_ERR(0, 4486, __pyx_L3_error)
17903  }
17904  CYTHON_FALLTHROUGH;
17905  case 46:
17906  if (likely((values[46] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wv_diff_ten)) != 0)) kw_args--;
17907  else {
17908  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 46); __PYX_ERR(0, 4486, __pyx_L3_error)
17909  }
17910  CYTHON_FALLTHROUGH;
17911  case 47:
17912  if (likely((values[47] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
17913  else {
17914  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 47); __PYX_ERR(0, 4486, __pyx_L3_error)
17915  }
17916  CYTHON_FALLTHROUGH;
17917  case 48:
17918  if (likely((values[48] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
17919  else {
17920  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 48); __PYX_ERR(0, 4486, __pyx_L3_error)
17921  }
17922  CYTHON_FALLTHROUGH;
17923  case 49:
17924  if (likely((values[49] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
17925  else {
17926  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 49); __PYX_ERR(0, 4486, __pyx_L3_error)
17927  }
17928  CYTHON_FALLTHROUGH;
17929  case 50:
17930  if (likely((values[50] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
17931  else {
17932  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 50); __PYX_ERR(0, 4486, __pyx_L3_error)
17933  }
17934  CYTHON_FALLTHROUGH;
17935  case 51:
17936  if (likely((values[51] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
17937  else {
17938  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 51); __PYX_ERR(0, 4486, __pyx_L3_error)
17939  }
17940  CYTHON_FALLTHROUGH;
17941  case 52:
17942  if (likely((values[52] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
17943  else {
17944  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 52); __PYX_ERR(0, 4486, __pyx_L3_error)
17945  }
17946  CYTHON_FALLTHROUGH;
17947  case 53:
17948  if (likely((values[53] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
17949  else {
17950  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 53); __PYX_ERR(0, 4486, __pyx_L3_error)
17951  }
17952  CYTHON_FALLTHROUGH;
17953  case 54:
17954  if (likely((values[54] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_ham)) != 0)) kw_args--;
17955  else {
17956  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 54); __PYX_ERR(0, 4486, __pyx_L3_error)
17957  }
17958  CYTHON_FALLTHROUGH;
17959  case 55:
17960  if (likely((values[55] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_ham_grad_p)) != 0)) kw_args--;
17961  else {
17962  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 55); __PYX_ERR(0, 4486, __pyx_L3_error)
17963  }
17964  }
17965  if (unlikely(kw_args > 0)) {
17966  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "TwophaseNavierStokes_ST_LS_SO_3D_Evaluate") < 0)) __PYX_ERR(0, 4486, __pyx_L3_error)
17967  }
17968  } else if (PyTuple_GET_SIZE(__pyx_args) != 56) {
17969  goto __pyx_L5_argtuple_error;
17970  } else {
17971  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17972  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17973  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17974  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
17975  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
17976  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
17977  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
17978  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
17979  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
17980  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
17981  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
17982  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
17983  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
17984  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
17985  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
17986  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
17987  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
17988  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
17989  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
17990  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
17991  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
17992  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
17993  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
17994  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
17995  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
17996  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
17997  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
17998  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
17999  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
18000  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
18001  values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
18002  values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
18003  values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
18004  values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
18005  values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
18006  values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
18007  values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
18008  values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
18009  values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
18010  values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
18011  values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
18012  values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
18013  values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
18014  values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
18015  values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
18016  values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
18017  values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
18018  values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
18019  values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
18020  values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
18021  values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
18022  values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
18023  values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
18024  values[53] = PyTuple_GET_ITEM(__pyx_args, 53);
18025  values[54] = PyTuple_GET_ITEM(__pyx_args, 54);
18026  values[55] = PyTuple_GET_ITEM(__pyx_args, 55);
18027  }
18028  __pyx_v_eps_rho = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_eps_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4486, __pyx_L3_error)
18029  __pyx_v_eps_mu = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_eps_mu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4487, __pyx_L3_error)
18030  __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_sigma == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4488, __pyx_L3_error)
18031  __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_rho_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4489, __pyx_L3_error)
18032  __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_nu_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4490, __pyx_L3_error)
18033  __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_rho_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4491, __pyx_L3_error)
18034  __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_nu_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4492, __pyx_L3_error)
18035  __pyx_v_g = ((PyArrayObject *)values[7]);
18036  __pyx_v_phi = ((PyArrayObject *)values[8]);
18037  __pyx_v_n = ((PyArrayObject *)values[9]);
18038  __pyx_v_kappa = ((PyArrayObject *)values[10]);
18039  __pyx_v_p = ((PyArrayObject *)values[11]);
18040  __pyx_v_grad_p = ((PyArrayObject *)values[12]);
18041  __pyx_v_u = ((PyArrayObject *)values[13]);
18042  __pyx_v_v = ((PyArrayObject *)values[14]);
18043  __pyx_v_w = ((PyArrayObject *)values[15]);
18044  __pyx_v_mom_u_acc = ((PyArrayObject *)values[16]);
18045  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[17]);
18046  __pyx_v_mom_v_acc = ((PyArrayObject *)values[18]);
18047  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[19]);
18048  __pyx_v_mom_w_acc = ((PyArrayObject *)values[20]);
18049  __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[21]);
18050  __pyx_v_mass_adv = ((PyArrayObject *)values[22]);
18051  __pyx_v_dmass_adv_u = ((PyArrayObject *)values[23]);
18052  __pyx_v_dmass_adv_v = ((PyArrayObject *)values[24]);
18053  __pyx_v_dmass_adv_w = ((PyArrayObject *)values[25]);
18054  __pyx_v_mom_u_adv = ((PyArrayObject *)values[26]);
18055  __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[27]);
18056  __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[28]);
18057  __pyx_v_dmom_u_adv_w = ((PyArrayObject *)values[29]);
18058  __pyx_v_mom_v_adv = ((PyArrayObject *)values[30]);
18059  __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[31]);
18060  __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[32]);
18061  __pyx_v_dmom_v_adv_w = ((PyArrayObject *)values[33]);
18062  __pyx_v_mom_w_adv = ((PyArrayObject *)values[34]);
18063  __pyx_v_dmom_w_adv_u = ((PyArrayObject *)values[35]);
18064  __pyx_v_dmom_w_adv_v = ((PyArrayObject *)values[36]);
18065  __pyx_v_dmom_w_adv_w = ((PyArrayObject *)values[37]);
18066  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[38]);
18067  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[39]);
18068  __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[40]);
18069  __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[41]);
18070  __pyx_v_mom_uw_diff_ten = ((PyArrayObject *)values[42]);
18071  __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[43]);
18072  __pyx_v_mom_vw_diff_ten = ((PyArrayObject *)values[44]);
18073  __pyx_v_mom_wu_diff_ten = ((PyArrayObject *)values[45]);
18074  __pyx_v_mom_wv_diff_ten = ((PyArrayObject *)values[46]);
18075  __pyx_v_mom_u_source = ((PyArrayObject *)values[47]);
18076  __pyx_v_mom_v_source = ((PyArrayObject *)values[48]);
18077  __pyx_v_mom_w_source = ((PyArrayObject *)values[49]);
18078  __pyx_v_mom_u_ham = ((PyArrayObject *)values[50]);
18079  __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[51]);
18080  __pyx_v_mom_v_ham = ((PyArrayObject *)values[52]);
18081  __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[53]);
18082  __pyx_v_mom_w_ham = ((PyArrayObject *)values[54]);
18083  __pyx_v_dmom_w_ham_grad_p = ((PyArrayObject *)values[55]);
18084  }
18085  goto __pyx_L4_argument_unpacking_done;
18086  __pyx_L5_argtuple_error:;
18087  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4486, __pyx_L3_error)
18088  __pyx_L3_error:;
18089  __Pyx_AddTraceback("ctransportCoefficients.TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
18090  __Pyx_RefNannyFinishContext();
18091  return NULL;
18092  __pyx_L4_argument_unpacking_done:;
18093  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 4493, __pyx_L1_error)
18094  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 4494, __pyx_L1_error)
18095  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1, "n", 0))) __PYX_ERR(0, 4495, __pyx_L1_error)
18096  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kappa), __pyx_ptype_5numpy_ndarray, 1, "kappa", 0))) __PYX_ERR(0, 4496, __pyx_L1_error)
18097  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 4497, __pyx_L1_error)
18098  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1, "grad_p", 0))) __PYX_ERR(0, 4498, __pyx_L1_error)
18099  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 4499, __pyx_L1_error)
18100  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 4500, __pyx_L1_error)
18101  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1, "w", 0))) __PYX_ERR(0, 4501, __pyx_L1_error)
18102  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 4502, __pyx_L1_error)
18103  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 4503, __pyx_L1_error)
18104  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 4504, __pyx_L1_error)
18105  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 4505, __pyx_L1_error)
18106  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_w_acc", 0))) __PYX_ERR(0, 4506, __pyx_L1_error)
18107  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_acc_w", 0))) __PYX_ERR(0, 4507, __pyx_L1_error)
18108  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 4508, __pyx_L1_error)
18109  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_u", 0))) __PYX_ERR(0, 4509, __pyx_L1_error)
18110  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_v", 0))) __PYX_ERR(0, 4510, __pyx_L1_error)
18111  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_w", 0))) __PYX_ERR(0, 4511, __pyx_L1_error)
18112  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_u_adv", 0))) __PYX_ERR(0, 4512, __pyx_L1_error)
18113  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_u", 0))) __PYX_ERR(0, 4513, __pyx_L1_error)
18114  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_v", 0))) __PYX_ERR(0, 4514, __pyx_L1_error)
18115  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_w", 0))) __PYX_ERR(0, 4515, __pyx_L1_error)
18116  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_v_adv", 0))) __PYX_ERR(0, 4516, __pyx_L1_error)
18117  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_u", 0))) __PYX_ERR(0, 4517, __pyx_L1_error)
18118  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_v", 0))) __PYX_ERR(0, 4518, __pyx_L1_error)
18119  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_w", 0))) __PYX_ERR(0, 4519, __pyx_L1_error)
18120  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_w_adv", 0))) __PYX_ERR(0, 4520, __pyx_L1_error)
18121  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_u", 0))) __PYX_ERR(0, 4521, __pyx_L1_error)
18122  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_v", 0))) __PYX_ERR(0, 4522, __pyx_L1_error)
18123  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_w", 0))) __PYX_ERR(0, 4523, __pyx_L1_error)
18124  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 4524, __pyx_L1_error)
18125  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 4525, __pyx_L1_error)
18126  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_w_diff_ten", 0))) __PYX_ERR(0, 4526, __pyx_L1_error)
18127  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uv_diff_ten", 0))) __PYX_ERR(0, 4527, __pyx_L1_error)
18128  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uw_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uw_diff_ten", 0))) __PYX_ERR(0, 4528, __pyx_L1_error)
18129  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vu_diff_ten", 0))) __PYX_ERR(0, 4529, __pyx_L1_error)
18130  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vw_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vw_diff_ten", 0))) __PYX_ERR(0, 4530, __pyx_L1_error)
18131  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_wu_diff_ten", 0))) __PYX_ERR(0, 4531, __pyx_L1_error)
18132  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_wv_diff_ten", 0))) __PYX_ERR(0, 4532, __pyx_L1_error)
18133  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 4533, __pyx_L1_error)
18134  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 4534, __pyx_L1_error)
18135  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1, "mom_w_source", 0))) __PYX_ERR(0, 4535, __pyx_L1_error)
18136  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_u_ham", 0))) __PYX_ERR(0, 4536, __pyx_L1_error)
18137  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 4537, __pyx_L1_error)
18138  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_v_ham", 0))) __PYX_ERR(0, 4538, __pyx_L1_error)
18139  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 4539, __pyx_L1_error)
18140  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_w_ham", 0))) __PYX_ERR(0, 4540, __pyx_L1_error)
18141  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_ham_grad_p", 0))) __PYX_ERR(0, 4541, __pyx_L1_error)
18142  __pyx_r = __pyx_pf_22ctransportCoefficients_88TwophaseNavierStokes_ST_LS_SO_3D_Evaluate(__pyx_self, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_g, __pyx_v_phi, __pyx_v_n, __pyx_v_kappa, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mom_w_acc, __pyx_v_dmom_w_acc_w, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_dmass_adv_w, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_dmom_u_adv_w, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_dmom_v_adv_w, __pyx_v_mom_w_adv, __pyx_v_dmom_w_adv_u, __pyx_v_dmom_w_adv_v, __pyx_v_dmom_w_adv_w, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_uw_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_vw_diff_ten, __pyx_v_mom_wu_diff_ten, __pyx_v_mom_wv_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p, __pyx_v_mom_w_ham, __pyx_v_dmom_w_ham_grad_p);
18143 
18144  /* function exit code */
18145  goto __pyx_L0;
18146  __pyx_L1_error:;
18147  __pyx_r = NULL;
18148  __pyx_L0:;
18149  __Pyx_RefNannyFinishContext();
18150  return __pyx_r;
18151 }
18152 
18153 static PyObject *__pyx_pf_22ctransportCoefficients_88TwophaseNavierStokes_ST_LS_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps_rho, double __pyx_v_eps_mu, double __pyx_v_sigma, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p) {
18154  PyObject *__pyx_r = NULL;
18155  __Pyx_RefNannyDeclarations
18156  PyObject *__pyx_t_1 = NULL;
18157  int __pyx_t_2;
18158  int __pyx_lineno = 0;
18159  const char *__pyx_filename = NULL;
18160  int __pyx_clineno = 0;
18161  __Pyx_RefNannySetupContext("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 0);
18162 
18163  /* "ctransportCoefficients.pyx":4542
18164  * np.ndarray mom_w_ham,
18165  * np.ndarray dmom_w_ham_grad_p):
18166  * cTwophaseNavierStokes_ST_LS_SO_3D_Evaluate(p.size, # <<<<<<<<<<<<<<
18167  * eps_rho,
18168  * eps_mu,
18169  */
18170  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4542, __pyx_L1_error)
18171  __Pyx_GOTREF(__pyx_t_1);
18172  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4542, __pyx_L1_error)
18173  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
18174 
18175  /* "ctransportCoefficients.pyx":4598
18176  * <double*> dmom_v_ham_grad_p.data,
18177  * <double*> mom_w_ham.data,
18178  * <double*> dmom_w_ham_grad_p.data) # <<<<<<<<<<<<<<
18179  * def TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(const double eps_rho,
18180  * const double eps_mu,
18181  */
18182  TwophaseNavierStokes_ST_LS_SO_3D_Evaluate(__pyx_t_2, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((double *)__pyx_v_g->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_n->data), ((double *)__pyx_v_kappa->data), ((double *)__pyx_v_p->data), ((double *)__pyx_v_grad_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_w->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_v_acc_v->data), ((double *)__pyx_v_mom_w_acc->data), ((double *)__pyx_v_dmom_w_acc_w->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_u->data), ((double *)__pyx_v_dmass_adv_v->data), ((double *)__pyx_v_dmass_adv_w->data), ((double *)__pyx_v_mom_u_adv->data), ((double *)__pyx_v_dmom_u_adv_u->data), ((double *)__pyx_v_dmom_u_adv_v->data), ((double *)__pyx_v_dmom_u_adv_w->data), ((double *)__pyx_v_mom_v_adv->data), ((double *)__pyx_v_dmom_v_adv_u->data), ((double *)__pyx_v_dmom_v_adv_v->data), ((double *)__pyx_v_dmom_v_adv_w->data), ((double *)__pyx_v_mom_w_adv->data), ((double *)__pyx_v_dmom_w_adv_u->data), ((double *)__pyx_v_dmom_w_adv_v->data), ((double *)__pyx_v_dmom_w_adv_w->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_w_diff_ten->data), ((double *)__pyx_v_mom_uv_diff_ten->data), ((double *)__pyx_v_mom_uw_diff_ten->data), ((double *)__pyx_v_mom_vu_diff_ten->data), ((double *)__pyx_v_mom_vw_diff_ten->data), ((double *)__pyx_v_mom_wu_diff_ten->data), ((double *)__pyx_v_mom_wv_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_mom_w_source->data), ((double *)__pyx_v_mom_u_ham->data), ((double *)__pyx_v_dmom_u_ham_grad_p->data), ((double *)__pyx_v_mom_v_ham->data), ((double *)__pyx_v_dmom_v_ham_grad_p->data), ((double *)__pyx_v_mom_w_ham->data), ((double *)__pyx_v_dmom_w_ham_grad_p->data));
18183 
18184  /* "ctransportCoefficients.pyx":4486
18185  * <double*> mom_v_ham.data,
18186  * <double*> dmom_v_ham_grad_p.data)
18187  * def TwophaseNavierStokes_ST_LS_SO_3D_Evaluate(const double eps_rho, # <<<<<<<<<<<<<<
18188  * const double eps_mu,
18189  * const double sigma,
18190  */
18191 
18192  /* function exit code */
18193  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
18194  goto __pyx_L0;
18195  __pyx_L1_error:;
18196  __Pyx_XDECREF(__pyx_t_1);
18197  __Pyx_AddTraceback("ctransportCoefficients.TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
18198  __pyx_r = NULL;
18199  __pyx_L0:;
18200  __Pyx_XGIVEREF(__pyx_r);
18201  __Pyx_RefNannyFinishContext();
18202  return __pyx_r;
18203 }
18204 
18205 /* "ctransportCoefficients.pyx":4599
18206  * <double*> mom_w_ham.data,
18207  * <double*> dmom_w_ham_grad_p.data)
18208  * def TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(const double eps_rho, # <<<<<<<<<<<<<<
18209  * const double eps_mu,
18210  * const double sigma,
18211  */
18212 
18213 /* Python wrapper */
18214 static PyObject *__pyx_pw_22ctransportCoefficients_91TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
18215 static PyMethodDef __pyx_mdef_22ctransportCoefficients_91TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd = {"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_91TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd, METH_VARARGS|METH_KEYWORDS, 0};
18216 static PyObject *__pyx_pw_22ctransportCoefficients_91TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
18217  double __pyx_v_eps_rho;
18218  double __pyx_v_eps_mu;
18219  double __pyx_v_sigma;
18220  double __pyx_v_rho_0;
18221  double __pyx_v_nu_0;
18222  double __pyx_v_rho_1;
18223  double __pyx_v_nu_1;
18224  PyArrayObject *__pyx_v_g = 0;
18225  PyArrayObject *__pyx_v_phi = 0;
18226  PyArrayObject *__pyx_v_n = 0;
18227  PyArrayObject *__pyx_v_kappa = 0;
18228  PyArrayObject *__pyx_v_p = 0;
18229  PyArrayObject *__pyx_v_grad_p = 0;
18230  PyArrayObject *__pyx_v_u = 0;
18231  PyArrayObject *__pyx_v_v = 0;
18232  PyArrayObject *__pyx_v_w = 0;
18233  PyArrayObject *__pyx_v_mom_u_acc = 0;
18234  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
18235  PyArrayObject *__pyx_v_mom_v_acc = 0;
18236  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
18237  PyArrayObject *__pyx_v_mom_w_acc = 0;
18238  PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
18239  PyArrayObject *__pyx_v_mass_adv = 0;
18240  PyArrayObject *__pyx_v_dmass_adv_u = 0;
18241  PyArrayObject *__pyx_v_dmass_adv_v = 0;
18242  PyArrayObject *__pyx_v_dmass_adv_w = 0;
18243  PyArrayObject *__pyx_v_mom_u_adv = 0;
18244  PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
18245  PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
18246  PyArrayObject *__pyx_v_dmom_u_adv_w = 0;
18247  PyArrayObject *__pyx_v_mom_v_adv = 0;
18248  PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
18249  PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
18250  PyArrayObject *__pyx_v_dmom_v_adv_w = 0;
18251  PyArrayObject *__pyx_v_mom_w_adv = 0;
18252  PyArrayObject *__pyx_v_dmom_w_adv_u = 0;
18253  PyArrayObject *__pyx_v_dmom_w_adv_v = 0;
18254  PyArrayObject *__pyx_v_dmom_w_adv_w = 0;
18255  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
18256  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
18257  PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
18258  PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
18259  PyArrayObject *__pyx_v_mom_uw_diff_ten = 0;
18260  PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
18261  PyArrayObject *__pyx_v_mom_vw_diff_ten = 0;
18262  PyArrayObject *__pyx_v_mom_wu_diff_ten = 0;
18263  PyArrayObject *__pyx_v_mom_wv_diff_ten = 0;
18264  PyArrayObject *__pyx_v_mom_u_source = 0;
18265  PyArrayObject *__pyx_v_mom_v_source = 0;
18266  PyArrayObject *__pyx_v_mom_w_source = 0;
18267  PyArrayObject *__pyx_v_mom_u_ham = 0;
18268  PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
18269  PyArrayObject *__pyx_v_mom_v_ham = 0;
18270  PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
18271  PyArrayObject *__pyx_v_mom_w_ham = 0;
18272  PyArrayObject *__pyx_v_dmom_w_ham_grad_p = 0;
18273  int __pyx_lineno = 0;
18274  const char *__pyx_filename = NULL;
18275  int __pyx_clineno = 0;
18276  PyObject *__pyx_r = 0;
18277  __Pyx_RefNannyDeclarations
18278  __Pyx_RefNannySetupContext("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd (wrapper)", 0);
18279  {
18280  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps_rho,&__pyx_n_s_eps_mu,&__pyx_n_s_sigma,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_n,&__pyx_n_s_kappa,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_w_acc_w,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_dmass_adv_w,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_dmom_u_adv_w,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_dmom_v_adv_w,&__pyx_n_s_mom_w_adv,&__pyx_n_s_dmom_w_adv_u,&__pyx_n_s_dmom_w_adv_v,&__pyx_n_s_dmom_w_adv_w,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_uw_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_vw_diff_ten,&__pyx_n_s_mom_wu_diff_ten,&__pyx_n_s_mom_wv_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,&__pyx_n_s_mom_w_ham,&__pyx_n_s_dmom_w_ham_grad_p,0};
18281  PyObject* values[56] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
18282  if (unlikely(__pyx_kwds)) {
18283  Py_ssize_t kw_args;
18284  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
18285  switch (pos_args) {
18286  case 56: values[55] = PyTuple_GET_ITEM(__pyx_args, 55);
18287  CYTHON_FALLTHROUGH;
18288  case 55: values[54] = PyTuple_GET_ITEM(__pyx_args, 54);
18289  CYTHON_FALLTHROUGH;
18290  case 54: values[53] = PyTuple_GET_ITEM(__pyx_args, 53);
18291  CYTHON_FALLTHROUGH;
18292  case 53: values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
18293  CYTHON_FALLTHROUGH;
18294  case 52: values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
18295  CYTHON_FALLTHROUGH;
18296  case 51: values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
18297  CYTHON_FALLTHROUGH;
18298  case 50: values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
18299  CYTHON_FALLTHROUGH;
18300  case 49: values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
18301  CYTHON_FALLTHROUGH;
18302  case 48: values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
18303  CYTHON_FALLTHROUGH;
18304  case 47: values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
18305  CYTHON_FALLTHROUGH;
18306  case 46: values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
18307  CYTHON_FALLTHROUGH;
18308  case 45: values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
18309  CYTHON_FALLTHROUGH;
18310  case 44: values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
18311  CYTHON_FALLTHROUGH;
18312  case 43: values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
18313  CYTHON_FALLTHROUGH;
18314  case 42: values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
18315  CYTHON_FALLTHROUGH;
18316  case 41: values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
18317  CYTHON_FALLTHROUGH;
18318  case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
18319  CYTHON_FALLTHROUGH;
18320  case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
18321  CYTHON_FALLTHROUGH;
18322  case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
18323  CYTHON_FALLTHROUGH;
18324  case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
18325  CYTHON_FALLTHROUGH;
18326  case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
18327  CYTHON_FALLTHROUGH;
18328  case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
18329  CYTHON_FALLTHROUGH;
18330  case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
18331  CYTHON_FALLTHROUGH;
18332  case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
18333  CYTHON_FALLTHROUGH;
18334  case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
18335  CYTHON_FALLTHROUGH;
18336  case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
18337  CYTHON_FALLTHROUGH;
18338  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
18339  CYTHON_FALLTHROUGH;
18340  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
18341  CYTHON_FALLTHROUGH;
18342  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
18343  CYTHON_FALLTHROUGH;
18344  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
18345  CYTHON_FALLTHROUGH;
18346  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
18347  CYTHON_FALLTHROUGH;
18348  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
18349  CYTHON_FALLTHROUGH;
18350  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
18351  CYTHON_FALLTHROUGH;
18352  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
18353  CYTHON_FALLTHROUGH;
18354  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
18355  CYTHON_FALLTHROUGH;
18356  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
18357  CYTHON_FALLTHROUGH;
18358  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
18359  CYTHON_FALLTHROUGH;
18360  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
18361  CYTHON_FALLTHROUGH;
18362  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
18363  CYTHON_FALLTHROUGH;
18364  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
18365  CYTHON_FALLTHROUGH;
18366  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
18367  CYTHON_FALLTHROUGH;
18368  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
18369  CYTHON_FALLTHROUGH;
18370  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
18371  CYTHON_FALLTHROUGH;
18372  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
18373  CYTHON_FALLTHROUGH;
18374  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
18375  CYTHON_FALLTHROUGH;
18376  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
18377  CYTHON_FALLTHROUGH;
18378  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
18379  CYTHON_FALLTHROUGH;
18380  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
18381  CYTHON_FALLTHROUGH;
18382  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
18383  CYTHON_FALLTHROUGH;
18384  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
18385  CYTHON_FALLTHROUGH;
18386  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
18387  CYTHON_FALLTHROUGH;
18388  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
18389  CYTHON_FALLTHROUGH;
18390  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
18391  CYTHON_FALLTHROUGH;
18392  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
18393  CYTHON_FALLTHROUGH;
18394  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
18395  CYTHON_FALLTHROUGH;
18396  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
18397  CYTHON_FALLTHROUGH;
18398  case 0: break;
18399  default: goto __pyx_L5_argtuple_error;
18400  }
18401  kw_args = PyDict_Size(__pyx_kwds);
18402  switch (pos_args) {
18403  case 0:
18404  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_rho)) != 0)) kw_args--;
18405  else goto __pyx_L5_argtuple_error;
18406  CYTHON_FALLTHROUGH;
18407  case 1:
18408  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_mu)) != 0)) kw_args--;
18409  else {
18410  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 1); __PYX_ERR(0, 4599, __pyx_L3_error)
18411  }
18412  CYTHON_FALLTHROUGH;
18413  case 2:
18414  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
18415  else {
18416  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 2); __PYX_ERR(0, 4599, __pyx_L3_error)
18417  }
18418  CYTHON_FALLTHROUGH;
18419  case 3:
18420  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
18421  else {
18422  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 3); __PYX_ERR(0, 4599, __pyx_L3_error)
18423  }
18424  CYTHON_FALLTHROUGH;
18425  case 4:
18426  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
18427  else {
18428  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 4); __PYX_ERR(0, 4599, __pyx_L3_error)
18429  }
18430  CYTHON_FALLTHROUGH;
18431  case 5:
18432  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
18433  else {
18434  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 5); __PYX_ERR(0, 4599, __pyx_L3_error)
18435  }
18436  CYTHON_FALLTHROUGH;
18437  case 6:
18438  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
18439  else {
18440  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 6); __PYX_ERR(0, 4599, __pyx_L3_error)
18441  }
18442  CYTHON_FALLTHROUGH;
18443  case 7:
18444  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
18445  else {
18446  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 7); __PYX_ERR(0, 4599, __pyx_L3_error)
18447  }
18448  CYTHON_FALLTHROUGH;
18449  case 8:
18450  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
18451  else {
18452  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 8); __PYX_ERR(0, 4599, __pyx_L3_error)
18453  }
18454  CYTHON_FALLTHROUGH;
18455  case 9:
18456  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
18457  else {
18458  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 9); __PYX_ERR(0, 4599, __pyx_L3_error)
18459  }
18460  CYTHON_FALLTHROUGH;
18461  case 10:
18462  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kappa)) != 0)) kw_args--;
18463  else {
18464  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 10); __PYX_ERR(0, 4599, __pyx_L3_error)
18465  }
18466  CYTHON_FALLTHROUGH;
18467  case 11:
18468  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
18469  else {
18470  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 11); __PYX_ERR(0, 4599, __pyx_L3_error)
18471  }
18472  CYTHON_FALLTHROUGH;
18473  case 12:
18474  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
18475  else {
18476  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 12); __PYX_ERR(0, 4599, __pyx_L3_error)
18477  }
18478  CYTHON_FALLTHROUGH;
18479  case 13:
18480  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
18481  else {
18482  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 13); __PYX_ERR(0, 4599, __pyx_L3_error)
18483  }
18484  CYTHON_FALLTHROUGH;
18485  case 14:
18486  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
18487  else {
18488  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 14); __PYX_ERR(0, 4599, __pyx_L3_error)
18489  }
18490  CYTHON_FALLTHROUGH;
18491  case 15:
18492  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
18493  else {
18494  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 15); __PYX_ERR(0, 4599, __pyx_L3_error)
18495  }
18496  CYTHON_FALLTHROUGH;
18497  case 16:
18498  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
18499  else {
18500  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 16); __PYX_ERR(0, 4599, __pyx_L3_error)
18501  }
18502  CYTHON_FALLTHROUGH;
18503  case 17:
18504  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
18505  else {
18506  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 17); __PYX_ERR(0, 4599, __pyx_L3_error)
18507  }
18508  CYTHON_FALLTHROUGH;
18509  case 18:
18510  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
18511  else {
18512  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 18); __PYX_ERR(0, 4599, __pyx_L3_error)
18513  }
18514  CYTHON_FALLTHROUGH;
18515  case 19:
18516  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
18517  else {
18518  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 19); __PYX_ERR(0, 4599, __pyx_L3_error)
18519  }
18520  CYTHON_FALLTHROUGH;
18521  case 20:
18522  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
18523  else {
18524  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 20); __PYX_ERR(0, 4599, __pyx_L3_error)
18525  }
18526  CYTHON_FALLTHROUGH;
18527  case 21:
18528  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
18529  else {
18530  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 21); __PYX_ERR(0, 4599, __pyx_L3_error)
18531  }
18532  CYTHON_FALLTHROUGH;
18533  case 22:
18534  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
18535  else {
18536  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 22); __PYX_ERR(0, 4599, __pyx_L3_error)
18537  }
18538  CYTHON_FALLTHROUGH;
18539  case 23:
18540  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
18541  else {
18542  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 23); __PYX_ERR(0, 4599, __pyx_L3_error)
18543  }
18544  CYTHON_FALLTHROUGH;
18545  case 24:
18546  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
18547  else {
18548  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 24); __PYX_ERR(0, 4599, __pyx_L3_error)
18549  }
18550  CYTHON_FALLTHROUGH;
18551  case 25:
18552  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_w)) != 0)) kw_args--;
18553  else {
18554  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 25); __PYX_ERR(0, 4599, __pyx_L3_error)
18555  }
18556  CYTHON_FALLTHROUGH;
18557  case 26:
18558  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
18559  else {
18560  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 26); __PYX_ERR(0, 4599, __pyx_L3_error)
18561  }
18562  CYTHON_FALLTHROUGH;
18563  case 27:
18564  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
18565  else {
18566  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 27); __PYX_ERR(0, 4599, __pyx_L3_error)
18567  }
18568  CYTHON_FALLTHROUGH;
18569  case 28:
18570  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
18571  else {
18572  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 28); __PYX_ERR(0, 4599, __pyx_L3_error)
18573  }
18574  CYTHON_FALLTHROUGH;
18575  case 29:
18576  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_w)) != 0)) kw_args--;
18577  else {
18578  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 29); __PYX_ERR(0, 4599, __pyx_L3_error)
18579  }
18580  CYTHON_FALLTHROUGH;
18581  case 30:
18582  if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
18583  else {
18584  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 30); __PYX_ERR(0, 4599, __pyx_L3_error)
18585  }
18586  CYTHON_FALLTHROUGH;
18587  case 31:
18588  if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
18589  else {
18590  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 31); __PYX_ERR(0, 4599, __pyx_L3_error)
18591  }
18592  CYTHON_FALLTHROUGH;
18593  case 32:
18594  if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
18595  else {
18596  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 32); __PYX_ERR(0, 4599, __pyx_L3_error)
18597  }
18598  CYTHON_FALLTHROUGH;
18599  case 33:
18600  if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_w)) != 0)) kw_args--;
18601  else {
18602  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 33); __PYX_ERR(0, 4599, __pyx_L3_error)
18603  }
18604  CYTHON_FALLTHROUGH;
18605  case 34:
18606  if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_adv)) != 0)) kw_args--;
18607  else {
18608  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 34); __PYX_ERR(0, 4599, __pyx_L3_error)
18609  }
18610  CYTHON_FALLTHROUGH;
18611  case 35:
18612  if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_u)) != 0)) kw_args--;
18613  else {
18614  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 35); __PYX_ERR(0, 4599, __pyx_L3_error)
18615  }
18616  CYTHON_FALLTHROUGH;
18617  case 36:
18618  if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_v)) != 0)) kw_args--;
18619  else {
18620  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 36); __PYX_ERR(0, 4599, __pyx_L3_error)
18621  }
18622  CYTHON_FALLTHROUGH;
18623  case 37:
18624  if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_w)) != 0)) kw_args--;
18625  else {
18626  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 37); __PYX_ERR(0, 4599, __pyx_L3_error)
18627  }
18628  CYTHON_FALLTHROUGH;
18629  case 38:
18630  if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
18631  else {
18632  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 38); __PYX_ERR(0, 4599, __pyx_L3_error)
18633  }
18634  CYTHON_FALLTHROUGH;
18635  case 39:
18636  if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
18637  else {
18638  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 39); __PYX_ERR(0, 4599, __pyx_L3_error)
18639  }
18640  CYTHON_FALLTHROUGH;
18641  case 40:
18642  if (likely((values[40] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
18643  else {
18644  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 40); __PYX_ERR(0, 4599, __pyx_L3_error)
18645  }
18646  CYTHON_FALLTHROUGH;
18647  case 41:
18648  if (likely((values[41] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
18649  else {
18650  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 41); __PYX_ERR(0, 4599, __pyx_L3_error)
18651  }
18652  CYTHON_FALLTHROUGH;
18653  case 42:
18654  if (likely((values[42] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uw_diff_ten)) != 0)) kw_args--;
18655  else {
18656  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 42); __PYX_ERR(0, 4599, __pyx_L3_error)
18657  }
18658  CYTHON_FALLTHROUGH;
18659  case 43:
18660  if (likely((values[43] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
18661  else {
18662  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 43); __PYX_ERR(0, 4599, __pyx_L3_error)
18663  }
18664  CYTHON_FALLTHROUGH;
18665  case 44:
18666  if (likely((values[44] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vw_diff_ten)) != 0)) kw_args--;
18667  else {
18668  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 44); __PYX_ERR(0, 4599, __pyx_L3_error)
18669  }
18670  CYTHON_FALLTHROUGH;
18671  case 45:
18672  if (likely((values[45] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wu_diff_ten)) != 0)) kw_args--;
18673  else {
18674  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 45); __PYX_ERR(0, 4599, __pyx_L3_error)
18675  }
18676  CYTHON_FALLTHROUGH;
18677  case 46:
18678  if (likely((values[46] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wv_diff_ten)) != 0)) kw_args--;
18679  else {
18680  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 46); __PYX_ERR(0, 4599, __pyx_L3_error)
18681  }
18682  CYTHON_FALLTHROUGH;
18683  case 47:
18684  if (likely((values[47] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
18685  else {
18686  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 47); __PYX_ERR(0, 4599, __pyx_L3_error)
18687  }
18688  CYTHON_FALLTHROUGH;
18689  case 48:
18690  if (likely((values[48] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
18691  else {
18692  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 48); __PYX_ERR(0, 4599, __pyx_L3_error)
18693  }
18694  CYTHON_FALLTHROUGH;
18695  case 49:
18696  if (likely((values[49] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
18697  else {
18698  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 49); __PYX_ERR(0, 4599, __pyx_L3_error)
18699  }
18700  CYTHON_FALLTHROUGH;
18701  case 50:
18702  if (likely((values[50] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
18703  else {
18704  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 50); __PYX_ERR(0, 4599, __pyx_L3_error)
18705  }
18706  CYTHON_FALLTHROUGH;
18707  case 51:
18708  if (likely((values[51] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
18709  else {
18710  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 51); __PYX_ERR(0, 4599, __pyx_L3_error)
18711  }
18712  CYTHON_FALLTHROUGH;
18713  case 52:
18714  if (likely((values[52] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
18715  else {
18716  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 52); __PYX_ERR(0, 4599, __pyx_L3_error)
18717  }
18718  CYTHON_FALLTHROUGH;
18719  case 53:
18720  if (likely((values[53] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
18721  else {
18722  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 53); __PYX_ERR(0, 4599, __pyx_L3_error)
18723  }
18724  CYTHON_FALLTHROUGH;
18725  case 54:
18726  if (likely((values[54] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_ham)) != 0)) kw_args--;
18727  else {
18728  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 54); __PYX_ERR(0, 4599, __pyx_L3_error)
18729  }
18730  CYTHON_FALLTHROUGH;
18731  case 55:
18732  if (likely((values[55] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_ham_grad_p)) != 0)) kw_args--;
18733  else {
18734  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 55); __PYX_ERR(0, 4599, __pyx_L3_error)
18735  }
18736  }
18737  if (unlikely(kw_args > 0)) {
18738  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd") < 0)) __PYX_ERR(0, 4599, __pyx_L3_error)
18739  }
18740  } else if (PyTuple_GET_SIZE(__pyx_args) != 56) {
18741  goto __pyx_L5_argtuple_error;
18742  } else {
18743  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
18744  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
18745  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
18746  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
18747  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
18748  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
18749  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
18750  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
18751  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
18752  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
18753  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
18754  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
18755  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
18756  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
18757  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
18758  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
18759  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
18760  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
18761  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
18762  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
18763  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
18764  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
18765  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
18766  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
18767  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
18768  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
18769  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
18770  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
18771  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
18772  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
18773  values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
18774  values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
18775  values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
18776  values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
18777  values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
18778  values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
18779  values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
18780  values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
18781  values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
18782  values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
18783  values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
18784  values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
18785  values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
18786  values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
18787  values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
18788  values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
18789  values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
18790  values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
18791  values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
18792  values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
18793  values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
18794  values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
18795  values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
18796  values[53] = PyTuple_GET_ITEM(__pyx_args, 53);
18797  values[54] = PyTuple_GET_ITEM(__pyx_args, 54);
18798  values[55] = PyTuple_GET_ITEM(__pyx_args, 55);
18799  }
18800  __pyx_v_eps_rho = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_eps_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4599, __pyx_L3_error)
18801  __pyx_v_eps_mu = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_eps_mu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4600, __pyx_L3_error)
18802  __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_sigma == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4601, __pyx_L3_error)
18803  __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_rho_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4602, __pyx_L3_error)
18804  __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_nu_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4603, __pyx_L3_error)
18805  __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_rho_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4604, __pyx_L3_error)
18806  __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_nu_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4605, __pyx_L3_error)
18807  __pyx_v_g = ((PyArrayObject *)values[7]);
18808  __pyx_v_phi = ((PyArrayObject *)values[8]);
18809  __pyx_v_n = ((PyArrayObject *)values[9]);
18810  __pyx_v_kappa = ((PyArrayObject *)values[10]);
18811  __pyx_v_p = ((PyArrayObject *)values[11]);
18812  __pyx_v_grad_p = ((PyArrayObject *)values[12]);
18813  __pyx_v_u = ((PyArrayObject *)values[13]);
18814  __pyx_v_v = ((PyArrayObject *)values[14]);
18815  __pyx_v_w = ((PyArrayObject *)values[15]);
18816  __pyx_v_mom_u_acc = ((PyArrayObject *)values[16]);
18817  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[17]);
18818  __pyx_v_mom_v_acc = ((PyArrayObject *)values[18]);
18819  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[19]);
18820  __pyx_v_mom_w_acc = ((PyArrayObject *)values[20]);
18821  __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[21]);
18822  __pyx_v_mass_adv = ((PyArrayObject *)values[22]);
18823  __pyx_v_dmass_adv_u = ((PyArrayObject *)values[23]);
18824  __pyx_v_dmass_adv_v = ((PyArrayObject *)values[24]);
18825  __pyx_v_dmass_adv_w = ((PyArrayObject *)values[25]);
18826  __pyx_v_mom_u_adv = ((PyArrayObject *)values[26]);
18827  __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[27]);
18828  __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[28]);
18829  __pyx_v_dmom_u_adv_w = ((PyArrayObject *)values[29]);
18830  __pyx_v_mom_v_adv = ((PyArrayObject *)values[30]);
18831  __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[31]);
18832  __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[32]);
18833  __pyx_v_dmom_v_adv_w = ((PyArrayObject *)values[33]);
18834  __pyx_v_mom_w_adv = ((PyArrayObject *)values[34]);
18835  __pyx_v_dmom_w_adv_u = ((PyArrayObject *)values[35]);
18836  __pyx_v_dmom_w_adv_v = ((PyArrayObject *)values[36]);
18837  __pyx_v_dmom_w_adv_w = ((PyArrayObject *)values[37]);
18838  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[38]);
18839  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[39]);
18840  __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[40]);
18841  __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[41]);
18842  __pyx_v_mom_uw_diff_ten = ((PyArrayObject *)values[42]);
18843  __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[43]);
18844  __pyx_v_mom_vw_diff_ten = ((PyArrayObject *)values[44]);
18845  __pyx_v_mom_wu_diff_ten = ((PyArrayObject *)values[45]);
18846  __pyx_v_mom_wv_diff_ten = ((PyArrayObject *)values[46]);
18847  __pyx_v_mom_u_source = ((PyArrayObject *)values[47]);
18848  __pyx_v_mom_v_source = ((PyArrayObject *)values[48]);
18849  __pyx_v_mom_w_source = ((PyArrayObject *)values[49]);
18850  __pyx_v_mom_u_ham = ((PyArrayObject *)values[50]);
18851  __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[51]);
18852  __pyx_v_mom_v_ham = ((PyArrayObject *)values[52]);
18853  __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[53]);
18854  __pyx_v_mom_w_ham = ((PyArrayObject *)values[54]);
18855  __pyx_v_dmom_w_ham_grad_p = ((PyArrayObject *)values[55]);
18856  }
18857  goto __pyx_L4_argument_unpacking_done;
18858  __pyx_L5_argtuple_error:;
18859  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4599, __pyx_L3_error)
18860  __pyx_L3_error:;
18861  __Pyx_AddTraceback("ctransportCoefficients.TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
18862  __Pyx_RefNannyFinishContext();
18863  return NULL;
18864  __pyx_L4_argument_unpacking_done:;
18865  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 4606, __pyx_L1_error)
18866  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 4607, __pyx_L1_error)
18867  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1, "n", 0))) __PYX_ERR(0, 4608, __pyx_L1_error)
18868  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kappa), __pyx_ptype_5numpy_ndarray, 1, "kappa", 0))) __PYX_ERR(0, 4609, __pyx_L1_error)
18869  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 4610, __pyx_L1_error)
18870  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1, "grad_p", 0))) __PYX_ERR(0, 4611, __pyx_L1_error)
18871  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 4612, __pyx_L1_error)
18872  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 4613, __pyx_L1_error)
18873  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1, "w", 0))) __PYX_ERR(0, 4614, __pyx_L1_error)
18874  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 4615, __pyx_L1_error)
18875  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 4616, __pyx_L1_error)
18876  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 4617, __pyx_L1_error)
18877  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 4618, __pyx_L1_error)
18878  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_w_acc", 0))) __PYX_ERR(0, 4619, __pyx_L1_error)
18879  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_acc_w", 0))) __PYX_ERR(0, 4620, __pyx_L1_error)
18880  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 4621, __pyx_L1_error)
18881  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_u", 0))) __PYX_ERR(0, 4622, __pyx_L1_error)
18882  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_v", 0))) __PYX_ERR(0, 4623, __pyx_L1_error)
18883  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_w", 0))) __PYX_ERR(0, 4624, __pyx_L1_error)
18884  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_u_adv", 0))) __PYX_ERR(0, 4625, __pyx_L1_error)
18885  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_u", 0))) __PYX_ERR(0, 4626, __pyx_L1_error)
18886  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_v", 0))) __PYX_ERR(0, 4627, __pyx_L1_error)
18887  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_w", 0))) __PYX_ERR(0, 4628, __pyx_L1_error)
18888  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_v_adv", 0))) __PYX_ERR(0, 4629, __pyx_L1_error)
18889  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_u", 0))) __PYX_ERR(0, 4630, __pyx_L1_error)
18890  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_v", 0))) __PYX_ERR(0, 4631, __pyx_L1_error)
18891  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_w", 0))) __PYX_ERR(0, 4632, __pyx_L1_error)
18892  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_w_adv", 0))) __PYX_ERR(0, 4633, __pyx_L1_error)
18893  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_u", 0))) __PYX_ERR(0, 4634, __pyx_L1_error)
18894  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_v", 0))) __PYX_ERR(0, 4635, __pyx_L1_error)
18895  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_w", 0))) __PYX_ERR(0, 4636, __pyx_L1_error)
18896  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 4637, __pyx_L1_error)
18897  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 4638, __pyx_L1_error)
18898  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_w_diff_ten", 0))) __PYX_ERR(0, 4639, __pyx_L1_error)
18899  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uv_diff_ten", 0))) __PYX_ERR(0, 4640, __pyx_L1_error)
18900  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uw_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uw_diff_ten", 0))) __PYX_ERR(0, 4641, __pyx_L1_error)
18901  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vu_diff_ten", 0))) __PYX_ERR(0, 4642, __pyx_L1_error)
18902  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vw_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vw_diff_ten", 0))) __PYX_ERR(0, 4643, __pyx_L1_error)
18903  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_wu_diff_ten", 0))) __PYX_ERR(0, 4644, __pyx_L1_error)
18904  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_wv_diff_ten", 0))) __PYX_ERR(0, 4645, __pyx_L1_error)
18905  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 4646, __pyx_L1_error)
18906  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 4647, __pyx_L1_error)
18907  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1, "mom_w_source", 0))) __PYX_ERR(0, 4648, __pyx_L1_error)
18908  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_u_ham", 0))) __PYX_ERR(0, 4649, __pyx_L1_error)
18909  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 4650, __pyx_L1_error)
18910  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_v_ham", 0))) __PYX_ERR(0, 4651, __pyx_L1_error)
18911  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 4652, __pyx_L1_error)
18912  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_w_ham", 0))) __PYX_ERR(0, 4653, __pyx_L1_error)
18913  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_ham_grad_p", 0))) __PYX_ERR(0, 4654, __pyx_L1_error)
18914  __pyx_r = __pyx_pf_22ctransportCoefficients_90TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(__pyx_self, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_g, __pyx_v_phi, __pyx_v_n, __pyx_v_kappa, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mom_w_acc, __pyx_v_dmom_w_acc_w, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_dmass_adv_w, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_dmom_u_adv_w, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_dmom_v_adv_w, __pyx_v_mom_w_adv, __pyx_v_dmom_w_adv_u, __pyx_v_dmom_w_adv_v, __pyx_v_dmom_w_adv_w, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_uw_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_vw_diff_ten, __pyx_v_mom_wu_diff_ten, __pyx_v_mom_wv_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p, __pyx_v_mom_w_ham, __pyx_v_dmom_w_ham_grad_p);
18915 
18916  /* function exit code */
18917  goto __pyx_L0;
18918  __pyx_L1_error:;
18919  __pyx_r = NULL;
18920  __pyx_L0:;
18921  __Pyx_RefNannyFinishContext();
18922  return __pyx_r;
18923 }
18924 
18925 static PyObject *__pyx_pf_22ctransportCoefficients_90TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps_rho, double __pyx_v_eps_mu, double __pyx_v_sigma, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p) {
18926  PyObject *__pyx_r = NULL;
18927  __Pyx_RefNannyDeclarations
18928  PyObject *__pyx_t_1 = NULL;
18929  int __pyx_t_2;
18930  int __pyx_lineno = 0;
18931  const char *__pyx_filename = NULL;
18932  int __pyx_clineno = 0;
18933  __Pyx_RefNannySetupContext("TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 0);
18934 
18935  /* "ctransportCoefficients.pyx":4655
18936  * np.ndarray mom_w_ham,
18937  * np.ndarray dmom_w_ham_grad_p):
18938  * cTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(p.size, # <<<<<<<<<<<<<<
18939  * eps_rho,
18940  * eps_mu,
18941  */
18942  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4655, __pyx_L1_error)
18943  __Pyx_GOTREF(__pyx_t_1);
18944  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4655, __pyx_L1_error)
18945  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
18946 
18947  /* "ctransportCoefficients.pyx":4711
18948  * <double*> dmom_v_ham_grad_p.data,
18949  * <double*> mom_w_ham.data,
18950  * <double*> dmom_w_ham_grad_p.data) # <<<<<<<<<<<<<<
18951  * def ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate(const double boundaryPenaltyCoef,
18952  * const double volumePenaltyCoef,
18953  */
18954  TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(__pyx_t_2, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((double *)__pyx_v_g->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_n->data), ((double *)__pyx_v_kappa->data), ((double *)__pyx_v_p->data), ((double *)__pyx_v_grad_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_w->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_v_acc_v->data), ((double *)__pyx_v_mom_w_acc->data), ((double *)__pyx_v_dmom_w_acc_w->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_u->data), ((double *)__pyx_v_dmass_adv_v->data), ((double *)__pyx_v_dmass_adv_w->data), ((double *)__pyx_v_mom_u_adv->data), ((double *)__pyx_v_dmom_u_adv_u->data), ((double *)__pyx_v_dmom_u_adv_v->data), ((double *)__pyx_v_dmom_u_adv_w->data), ((double *)__pyx_v_mom_v_adv->data), ((double *)__pyx_v_dmom_v_adv_u->data), ((double *)__pyx_v_dmom_v_adv_v->data), ((double *)__pyx_v_dmom_v_adv_w->data), ((double *)__pyx_v_mom_w_adv->data), ((double *)__pyx_v_dmom_w_adv_u->data), ((double *)__pyx_v_dmom_w_adv_v->data), ((double *)__pyx_v_dmom_w_adv_w->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_w_diff_ten->data), ((double *)__pyx_v_mom_uv_diff_ten->data), ((double *)__pyx_v_mom_uw_diff_ten->data), ((double *)__pyx_v_mom_vu_diff_ten->data), ((double *)__pyx_v_mom_vw_diff_ten->data), ((double *)__pyx_v_mom_wu_diff_ten->data), ((double *)__pyx_v_mom_wv_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_mom_w_source->data), ((double *)__pyx_v_mom_u_ham->data), ((double *)__pyx_v_dmom_u_ham_grad_p->data), ((double *)__pyx_v_mom_v_ham->data), ((double *)__pyx_v_dmom_v_ham_grad_p->data), ((double *)__pyx_v_mom_w_ham->data), ((double *)__pyx_v_dmom_w_ham_grad_p->data));
18955 
18956  /* "ctransportCoefficients.pyx":4599
18957  * <double*> mom_w_ham.data,
18958  * <double*> dmom_w_ham_grad_p.data)
18959  * def TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(const double eps_rho, # <<<<<<<<<<<<<<
18960  * const double eps_mu,
18961  * const double sigma,
18962  */
18963 
18964  /* function exit code */
18965  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
18966  goto __pyx_L0;
18967  __pyx_L1_error:;
18968  __Pyx_XDECREF(__pyx_t_1);
18969  __Pyx_AddTraceback("ctransportCoefficients.TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
18970  __pyx_r = NULL;
18971  __pyx_L0:;
18972  __Pyx_XGIVEREF(__pyx_r);
18973  __Pyx_RefNannyFinishContext();
18974  return __pyx_r;
18975 }
18976 
18977 /* "ctransportCoefficients.pyx":4712
18978  * <double*> mom_w_ham.data,
18979  * <double*> dmom_w_ham_grad_p.data)
18980  * def ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate(const double boundaryPenaltyCoef, # <<<<<<<<<<<<<<
18981  * const double volumePenaltyCoef,
18982  * const double eps_rho,
18983  */
18984 
18985 /* Python wrapper */
18986 static PyObject *__pyx_pw_22ctransportCoefficients_93ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
18987 static PyMethodDef __pyx_mdef_22ctransportCoefficients_93ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate = {"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_93ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
18988 static PyObject *__pyx_pw_22ctransportCoefficients_93ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
18989  double __pyx_v_boundaryPenaltyCoef;
18990  double __pyx_v_volumePenaltyCoef;
18991  double __pyx_v_eps_rho;
18992  double __pyx_v_eps_mu;
18993  double __pyx_v_sigma;
18994  double __pyx_v_rho_0;
18995  double __pyx_v_nu_0;
18996  double __pyx_v_rho_1;
18997  double __pyx_v_nu_1;
18998  double __pyx_v_rho_s;
18999  double __pyx_v_nu_s;
19000  PyArrayObject *__pyx_v_g = 0;
19001  PyArrayObject *__pyx_v_phi = 0;
19002  PyArrayObject *__pyx_v_n = 0;
19003  PyArrayObject *__pyx_v_kappa = 0;
19004  PyArrayObject *__pyx_v_phi_s = 0;
19005  PyArrayObject *__pyx_v_n_s = 0;
19006  PyArrayObject *__pyx_v_p = 0;
19007  PyArrayObject *__pyx_v_grad_p = 0;
19008  PyArrayObject *__pyx_v_u = 0;
19009  PyArrayObject *__pyx_v_v = 0;
19010  PyArrayObject *__pyx_v_w = 0;
19011  PyArrayObject *__pyx_v_mom_u_acc = 0;
19012  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
19013  PyArrayObject *__pyx_v_mom_v_acc = 0;
19014  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
19015  PyArrayObject *__pyx_v_mom_w_acc = 0;
19016  PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
19017  PyArrayObject *__pyx_v_mass_adv = 0;
19018  PyArrayObject *__pyx_v_dmass_adv_u = 0;
19019  PyArrayObject *__pyx_v_dmass_adv_v = 0;
19020  PyArrayObject *__pyx_v_dmass_adv_w = 0;
19021  PyArrayObject *__pyx_v_mom_u_adv = 0;
19022  PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
19023  PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
19024  PyArrayObject *__pyx_v_dmom_u_adv_w = 0;
19025  PyArrayObject *__pyx_v_mom_v_adv = 0;
19026  PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
19027  PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
19028  PyArrayObject *__pyx_v_dmom_v_adv_w = 0;
19029  PyArrayObject *__pyx_v_mom_w_adv = 0;
19030  PyArrayObject *__pyx_v_dmom_w_adv_u = 0;
19031  PyArrayObject *__pyx_v_dmom_w_adv_v = 0;
19032  PyArrayObject *__pyx_v_dmom_w_adv_w = 0;
19033  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
19034  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
19035  PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
19036  PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
19037  PyArrayObject *__pyx_v_mom_uw_diff_ten = 0;
19038  PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
19039  PyArrayObject *__pyx_v_mom_vw_diff_ten = 0;
19040  PyArrayObject *__pyx_v_mom_wu_diff_ten = 0;
19041  PyArrayObject *__pyx_v_mom_wv_diff_ten = 0;
19042  PyArrayObject *__pyx_v_mom_u_source = 0;
19043  PyArrayObject *__pyx_v_dmom_u_source_u = 0;
19044  PyArrayObject *__pyx_v_dmom_u_source_v = 0;
19045  PyArrayObject *__pyx_v_dmom_u_source_w = 0;
19046  PyArrayObject *__pyx_v_mom_v_source = 0;
19047  PyArrayObject *__pyx_v_dmom_v_source_u = 0;
19048  PyArrayObject *__pyx_v_dmom_v_source_v = 0;
19049  PyArrayObject *__pyx_v_dmom_v_source_w = 0;
19050  PyArrayObject *__pyx_v_mom_w_source = 0;
19051  PyArrayObject *__pyx_v_dmom_w_source_u = 0;
19052  PyArrayObject *__pyx_v_dmom_w_source_v = 0;
19053  PyArrayObject *__pyx_v_dmom_w_source_w = 0;
19054  PyArrayObject *__pyx_v_mom_u_ham = 0;
19055  PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
19056  PyArrayObject *__pyx_v_mom_v_ham = 0;
19057  PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
19058  PyArrayObject *__pyx_v_mom_w_ham = 0;
19059  PyArrayObject *__pyx_v_dmom_w_ham_grad_p = 0;
19060  int __pyx_lineno = 0;
19061  const char *__pyx_filename = NULL;
19062  int __pyx_clineno = 0;
19063  PyObject *__pyx_r = 0;
19064  __Pyx_RefNannyDeclarations
19065  __Pyx_RefNannySetupContext("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate (wrapper)", 0);
19066  {
19067  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_boundaryPenaltyCoef,&__pyx_n_s_volumePenaltyCoef,&__pyx_n_s_eps_rho,&__pyx_n_s_eps_mu,&__pyx_n_s_sigma,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_rho_s,&__pyx_n_s_nu_s,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_n,&__pyx_n_s_kappa,&__pyx_n_s_phi_s,&__pyx_n_s_n_s,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_w_acc_w,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_dmass_adv_w,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_dmom_u_adv_w,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_dmom_v_adv_w,&__pyx_n_s_mom_w_adv,&__pyx_n_s_dmom_w_adv_u,&__pyx_n_s_dmom_w_adv_v,&__pyx_n_s_dmom_w_adv_w,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_uw_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_vw_diff_ten,&__pyx_n_s_mom_wu_diff_ten,&__pyx_n_s_mom_wv_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_dmom_u_source_u,&__pyx_n_s_dmom_u_source_v,&__pyx_n_s_dmom_u_source_w,&__pyx_n_s_mom_v_source,&__pyx_n_s_dmom_v_source_u,&__pyx_n_s_dmom_v_source_v,&__pyx_n_s_dmom_v_source_w,&__pyx_n_s_mom_w_source,&__pyx_n_s_dmom_w_source_u,&__pyx_n_s_dmom_w_source_v,&__pyx_n_s_dmom_w_source_w,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,&__pyx_n_s_mom_w_ham,&__pyx_n_s_dmom_w_ham_grad_p,0};
19068  PyObject* values[71] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
19069  if (unlikely(__pyx_kwds)) {
19070  Py_ssize_t kw_args;
19071  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
19072  switch (pos_args) {
19073  case 71: values[70] = PyTuple_GET_ITEM(__pyx_args, 70);
19074  CYTHON_FALLTHROUGH;
19075  case 70: values[69] = PyTuple_GET_ITEM(__pyx_args, 69);
19076  CYTHON_FALLTHROUGH;
19077  case 69: values[68] = PyTuple_GET_ITEM(__pyx_args, 68);
19078  CYTHON_FALLTHROUGH;
19079  case 68: values[67] = PyTuple_GET_ITEM(__pyx_args, 67);
19080  CYTHON_FALLTHROUGH;
19081  case 67: values[66] = PyTuple_GET_ITEM(__pyx_args, 66);
19082  CYTHON_FALLTHROUGH;
19083  case 66: values[65] = PyTuple_GET_ITEM(__pyx_args, 65);
19084  CYTHON_FALLTHROUGH;
19085  case 65: values[64] = PyTuple_GET_ITEM(__pyx_args, 64);
19086  CYTHON_FALLTHROUGH;
19087  case 64: values[63] = PyTuple_GET_ITEM(__pyx_args, 63);
19088  CYTHON_FALLTHROUGH;
19089  case 63: values[62] = PyTuple_GET_ITEM(__pyx_args, 62);
19090  CYTHON_FALLTHROUGH;
19091  case 62: values[61] = PyTuple_GET_ITEM(__pyx_args, 61);
19092  CYTHON_FALLTHROUGH;
19093  case 61: values[60] = PyTuple_GET_ITEM(__pyx_args, 60);
19094  CYTHON_FALLTHROUGH;
19095  case 60: values[59] = PyTuple_GET_ITEM(__pyx_args, 59);
19096  CYTHON_FALLTHROUGH;
19097  case 59: values[58] = PyTuple_GET_ITEM(__pyx_args, 58);
19098  CYTHON_FALLTHROUGH;
19099  case 58: values[57] = PyTuple_GET_ITEM(__pyx_args, 57);
19100  CYTHON_FALLTHROUGH;
19101  case 57: values[56] = PyTuple_GET_ITEM(__pyx_args, 56);
19102  CYTHON_FALLTHROUGH;
19103  case 56: values[55] = PyTuple_GET_ITEM(__pyx_args, 55);
19104  CYTHON_FALLTHROUGH;
19105  case 55: values[54] = PyTuple_GET_ITEM(__pyx_args, 54);
19106  CYTHON_FALLTHROUGH;
19107  case 54: values[53] = PyTuple_GET_ITEM(__pyx_args, 53);
19108  CYTHON_FALLTHROUGH;
19109  case 53: values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
19110  CYTHON_FALLTHROUGH;
19111  case 52: values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
19112  CYTHON_FALLTHROUGH;
19113  case 51: values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
19114  CYTHON_FALLTHROUGH;
19115  case 50: values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
19116  CYTHON_FALLTHROUGH;
19117  case 49: values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
19118  CYTHON_FALLTHROUGH;
19119  case 48: values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
19120  CYTHON_FALLTHROUGH;
19121  case 47: values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
19122  CYTHON_FALLTHROUGH;
19123  case 46: values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
19124  CYTHON_FALLTHROUGH;
19125  case 45: values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
19126  CYTHON_FALLTHROUGH;
19127  case 44: values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
19128  CYTHON_FALLTHROUGH;
19129  case 43: values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
19130  CYTHON_FALLTHROUGH;
19131  case 42: values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
19132  CYTHON_FALLTHROUGH;
19133  case 41: values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
19134  CYTHON_FALLTHROUGH;
19135  case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
19136  CYTHON_FALLTHROUGH;
19137  case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
19138  CYTHON_FALLTHROUGH;
19139  case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
19140  CYTHON_FALLTHROUGH;
19141  case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
19142  CYTHON_FALLTHROUGH;
19143  case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
19144  CYTHON_FALLTHROUGH;
19145  case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
19146  CYTHON_FALLTHROUGH;
19147  case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
19148  CYTHON_FALLTHROUGH;
19149  case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
19150  CYTHON_FALLTHROUGH;
19151  case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
19152  CYTHON_FALLTHROUGH;
19153  case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
19154  CYTHON_FALLTHROUGH;
19155  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
19156  CYTHON_FALLTHROUGH;
19157  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
19158  CYTHON_FALLTHROUGH;
19159  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
19160  CYTHON_FALLTHROUGH;
19161  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
19162  CYTHON_FALLTHROUGH;
19163  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
19164  CYTHON_FALLTHROUGH;
19165  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
19166  CYTHON_FALLTHROUGH;
19167  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
19168  CYTHON_FALLTHROUGH;
19169  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
19170  CYTHON_FALLTHROUGH;
19171  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
19172  CYTHON_FALLTHROUGH;
19173  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
19174  CYTHON_FALLTHROUGH;
19175  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
19176  CYTHON_FALLTHROUGH;
19177  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
19178  CYTHON_FALLTHROUGH;
19179  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
19180  CYTHON_FALLTHROUGH;
19181  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
19182  CYTHON_FALLTHROUGH;
19183  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
19184  CYTHON_FALLTHROUGH;
19185  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
19186  CYTHON_FALLTHROUGH;
19187  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
19188  CYTHON_FALLTHROUGH;
19189  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
19190  CYTHON_FALLTHROUGH;
19191  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
19192  CYTHON_FALLTHROUGH;
19193  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
19194  CYTHON_FALLTHROUGH;
19195  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
19196  CYTHON_FALLTHROUGH;
19197  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
19198  CYTHON_FALLTHROUGH;
19199  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
19200  CYTHON_FALLTHROUGH;
19201  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
19202  CYTHON_FALLTHROUGH;
19203  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
19204  CYTHON_FALLTHROUGH;
19205  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
19206  CYTHON_FALLTHROUGH;
19207  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
19208  CYTHON_FALLTHROUGH;
19209  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
19210  CYTHON_FALLTHROUGH;
19211  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
19212  CYTHON_FALLTHROUGH;
19213  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
19214  CYTHON_FALLTHROUGH;
19215  case 0: break;
19216  default: goto __pyx_L5_argtuple_error;
19217  }
19218  kw_args = PyDict_Size(__pyx_kwds);
19219  switch (pos_args) {
19220  case 0:
19221  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_boundaryPenaltyCoef)) != 0)) kw_args--;
19222  else goto __pyx_L5_argtuple_error;
19223  CYTHON_FALLTHROUGH;
19224  case 1:
19225  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_volumePenaltyCoef)) != 0)) kw_args--;
19226  else {
19227  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 1); __PYX_ERR(0, 4712, __pyx_L3_error)
19228  }
19229  CYTHON_FALLTHROUGH;
19230  case 2:
19231  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_rho)) != 0)) kw_args--;
19232  else {
19233  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 2); __PYX_ERR(0, 4712, __pyx_L3_error)
19234  }
19235  CYTHON_FALLTHROUGH;
19236  case 3:
19237  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_mu)) != 0)) kw_args--;
19238  else {
19239  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 3); __PYX_ERR(0, 4712, __pyx_L3_error)
19240  }
19241  CYTHON_FALLTHROUGH;
19242  case 4:
19243  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
19244  else {
19245  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 4); __PYX_ERR(0, 4712, __pyx_L3_error)
19246  }
19247  CYTHON_FALLTHROUGH;
19248  case 5:
19249  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
19250  else {
19251  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 5); __PYX_ERR(0, 4712, __pyx_L3_error)
19252  }
19253  CYTHON_FALLTHROUGH;
19254  case 6:
19255  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
19256  else {
19257  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 6); __PYX_ERR(0, 4712, __pyx_L3_error)
19258  }
19259  CYTHON_FALLTHROUGH;
19260  case 7:
19261  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
19262  else {
19263  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 7); __PYX_ERR(0, 4712, __pyx_L3_error)
19264  }
19265  CYTHON_FALLTHROUGH;
19266  case 8:
19267  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
19268  else {
19269  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 8); __PYX_ERR(0, 4712, __pyx_L3_error)
19270  }
19271  CYTHON_FALLTHROUGH;
19272  case 9:
19273  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_s)) != 0)) kw_args--;
19274  else {
19275  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 9); __PYX_ERR(0, 4712, __pyx_L3_error)
19276  }
19277  CYTHON_FALLTHROUGH;
19278  case 10:
19279  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_s)) != 0)) kw_args--;
19280  else {
19281  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 10); __PYX_ERR(0, 4712, __pyx_L3_error)
19282  }
19283  CYTHON_FALLTHROUGH;
19284  case 11:
19285  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
19286  else {
19287  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 11); __PYX_ERR(0, 4712, __pyx_L3_error)
19288  }
19289  CYTHON_FALLTHROUGH;
19290  case 12:
19291  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
19292  else {
19293  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 12); __PYX_ERR(0, 4712, __pyx_L3_error)
19294  }
19295  CYTHON_FALLTHROUGH;
19296  case 13:
19297  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
19298  else {
19299  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 13); __PYX_ERR(0, 4712, __pyx_L3_error)
19300  }
19301  CYTHON_FALLTHROUGH;
19302  case 14:
19303  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kappa)) != 0)) kw_args--;
19304  else {
19305  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 14); __PYX_ERR(0, 4712, __pyx_L3_error)
19306  }
19307  CYTHON_FALLTHROUGH;
19308  case 15:
19309  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_s)) != 0)) kw_args--;
19310  else {
19311  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 15); __PYX_ERR(0, 4712, __pyx_L3_error)
19312  }
19313  CYTHON_FALLTHROUGH;
19314  case 16:
19315  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n_s)) != 0)) kw_args--;
19316  else {
19317  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 16); __PYX_ERR(0, 4712, __pyx_L3_error)
19318  }
19319  CYTHON_FALLTHROUGH;
19320  case 17:
19321  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
19322  else {
19323  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 17); __PYX_ERR(0, 4712, __pyx_L3_error)
19324  }
19325  CYTHON_FALLTHROUGH;
19326  case 18:
19327  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
19328  else {
19329  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 18); __PYX_ERR(0, 4712, __pyx_L3_error)
19330  }
19331  CYTHON_FALLTHROUGH;
19332  case 19:
19333  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
19334  else {
19335  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 19); __PYX_ERR(0, 4712, __pyx_L3_error)
19336  }
19337  CYTHON_FALLTHROUGH;
19338  case 20:
19339  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
19340  else {
19341  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 20); __PYX_ERR(0, 4712, __pyx_L3_error)
19342  }
19343  CYTHON_FALLTHROUGH;
19344  case 21:
19345  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
19346  else {
19347  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 21); __PYX_ERR(0, 4712, __pyx_L3_error)
19348  }
19349  CYTHON_FALLTHROUGH;
19350  case 22:
19351  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
19352  else {
19353  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 22); __PYX_ERR(0, 4712, __pyx_L3_error)
19354  }
19355  CYTHON_FALLTHROUGH;
19356  case 23:
19357  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
19358  else {
19359  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 23); __PYX_ERR(0, 4712, __pyx_L3_error)
19360  }
19361  CYTHON_FALLTHROUGH;
19362  case 24:
19363  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
19364  else {
19365  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 24); __PYX_ERR(0, 4712, __pyx_L3_error)
19366  }
19367  CYTHON_FALLTHROUGH;
19368  case 25:
19369  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
19370  else {
19371  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 25); __PYX_ERR(0, 4712, __pyx_L3_error)
19372  }
19373  CYTHON_FALLTHROUGH;
19374  case 26:
19375  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
19376  else {
19377  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 26); __PYX_ERR(0, 4712, __pyx_L3_error)
19378  }
19379  CYTHON_FALLTHROUGH;
19380  case 27:
19381  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
19382  else {
19383  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 27); __PYX_ERR(0, 4712, __pyx_L3_error)
19384  }
19385  CYTHON_FALLTHROUGH;
19386  case 28:
19387  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
19388  else {
19389  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 28); __PYX_ERR(0, 4712, __pyx_L3_error)
19390  }
19391  CYTHON_FALLTHROUGH;
19392  case 29:
19393  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
19394  else {
19395  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 29); __PYX_ERR(0, 4712, __pyx_L3_error)
19396  }
19397  CYTHON_FALLTHROUGH;
19398  case 30:
19399  if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
19400  else {
19401  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 30); __PYX_ERR(0, 4712, __pyx_L3_error)
19402  }
19403  CYTHON_FALLTHROUGH;
19404  case 31:
19405  if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_w)) != 0)) kw_args--;
19406  else {
19407  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 31); __PYX_ERR(0, 4712, __pyx_L3_error)
19408  }
19409  CYTHON_FALLTHROUGH;
19410  case 32:
19411  if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
19412  else {
19413  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 32); __PYX_ERR(0, 4712, __pyx_L3_error)
19414  }
19415  CYTHON_FALLTHROUGH;
19416  case 33:
19417  if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
19418  else {
19419  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 33); __PYX_ERR(0, 4712, __pyx_L3_error)
19420  }
19421  CYTHON_FALLTHROUGH;
19422  case 34:
19423  if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
19424  else {
19425  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 34); __PYX_ERR(0, 4712, __pyx_L3_error)
19426  }
19427  CYTHON_FALLTHROUGH;
19428  case 35:
19429  if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_w)) != 0)) kw_args--;
19430  else {
19431  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 35); __PYX_ERR(0, 4712, __pyx_L3_error)
19432  }
19433  CYTHON_FALLTHROUGH;
19434  case 36:
19435  if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
19436  else {
19437  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 36); __PYX_ERR(0, 4712, __pyx_L3_error)
19438  }
19439  CYTHON_FALLTHROUGH;
19440  case 37:
19441  if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
19442  else {
19443  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 37); __PYX_ERR(0, 4712, __pyx_L3_error)
19444  }
19445  CYTHON_FALLTHROUGH;
19446  case 38:
19447  if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
19448  else {
19449  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 38); __PYX_ERR(0, 4712, __pyx_L3_error)
19450  }
19451  CYTHON_FALLTHROUGH;
19452  case 39:
19453  if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_w)) != 0)) kw_args--;
19454  else {
19455  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 39); __PYX_ERR(0, 4712, __pyx_L3_error)
19456  }
19457  CYTHON_FALLTHROUGH;
19458  case 40:
19459  if (likely((values[40] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_adv)) != 0)) kw_args--;
19460  else {
19461  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 40); __PYX_ERR(0, 4712, __pyx_L3_error)
19462  }
19463  CYTHON_FALLTHROUGH;
19464  case 41:
19465  if (likely((values[41] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_u)) != 0)) kw_args--;
19466  else {
19467  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 41); __PYX_ERR(0, 4712, __pyx_L3_error)
19468  }
19469  CYTHON_FALLTHROUGH;
19470  case 42:
19471  if (likely((values[42] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_v)) != 0)) kw_args--;
19472  else {
19473  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 42); __PYX_ERR(0, 4712, __pyx_L3_error)
19474  }
19475  CYTHON_FALLTHROUGH;
19476  case 43:
19477  if (likely((values[43] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_w)) != 0)) kw_args--;
19478  else {
19479  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 43); __PYX_ERR(0, 4712, __pyx_L3_error)
19480  }
19481  CYTHON_FALLTHROUGH;
19482  case 44:
19483  if (likely((values[44] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
19484  else {
19485  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 44); __PYX_ERR(0, 4712, __pyx_L3_error)
19486  }
19487  CYTHON_FALLTHROUGH;
19488  case 45:
19489  if (likely((values[45] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
19490  else {
19491  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 45); __PYX_ERR(0, 4712, __pyx_L3_error)
19492  }
19493  CYTHON_FALLTHROUGH;
19494  case 46:
19495  if (likely((values[46] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
19496  else {
19497  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 46); __PYX_ERR(0, 4712, __pyx_L3_error)
19498  }
19499  CYTHON_FALLTHROUGH;
19500  case 47:
19501  if (likely((values[47] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
19502  else {
19503  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 47); __PYX_ERR(0, 4712, __pyx_L3_error)
19504  }
19505  CYTHON_FALLTHROUGH;
19506  case 48:
19507  if (likely((values[48] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uw_diff_ten)) != 0)) kw_args--;
19508  else {
19509  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 48); __PYX_ERR(0, 4712, __pyx_L3_error)
19510  }
19511  CYTHON_FALLTHROUGH;
19512  case 49:
19513  if (likely((values[49] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
19514  else {
19515  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 49); __PYX_ERR(0, 4712, __pyx_L3_error)
19516  }
19517  CYTHON_FALLTHROUGH;
19518  case 50:
19519  if (likely((values[50] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vw_diff_ten)) != 0)) kw_args--;
19520  else {
19521  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 50); __PYX_ERR(0, 4712, __pyx_L3_error)
19522  }
19523  CYTHON_FALLTHROUGH;
19524  case 51:
19525  if (likely((values[51] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wu_diff_ten)) != 0)) kw_args--;
19526  else {
19527  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 51); __PYX_ERR(0, 4712, __pyx_L3_error)
19528  }
19529  CYTHON_FALLTHROUGH;
19530  case 52:
19531  if (likely((values[52] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wv_diff_ten)) != 0)) kw_args--;
19532  else {
19533  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 52); __PYX_ERR(0, 4712, __pyx_L3_error)
19534  }
19535  CYTHON_FALLTHROUGH;
19536  case 53:
19537  if (likely((values[53] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
19538  else {
19539  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 53); __PYX_ERR(0, 4712, __pyx_L3_error)
19540  }
19541  CYTHON_FALLTHROUGH;
19542  case 54:
19543  if (likely((values[54] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_u)) != 0)) kw_args--;
19544  else {
19545  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 54); __PYX_ERR(0, 4712, __pyx_L3_error)
19546  }
19547  CYTHON_FALLTHROUGH;
19548  case 55:
19549  if (likely((values[55] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_v)) != 0)) kw_args--;
19550  else {
19551  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 55); __PYX_ERR(0, 4712, __pyx_L3_error)
19552  }
19553  CYTHON_FALLTHROUGH;
19554  case 56:
19555  if (likely((values[56] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_w)) != 0)) kw_args--;
19556  else {
19557  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 56); __PYX_ERR(0, 4712, __pyx_L3_error)
19558  }
19559  CYTHON_FALLTHROUGH;
19560  case 57:
19561  if (likely((values[57] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
19562  else {
19563  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 57); __PYX_ERR(0, 4712, __pyx_L3_error)
19564  }
19565  CYTHON_FALLTHROUGH;
19566  case 58:
19567  if (likely((values[58] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_u)) != 0)) kw_args--;
19568  else {
19569  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 58); __PYX_ERR(0, 4712, __pyx_L3_error)
19570  }
19571  CYTHON_FALLTHROUGH;
19572  case 59:
19573  if (likely((values[59] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_v)) != 0)) kw_args--;
19574  else {
19575  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 59); __PYX_ERR(0, 4712, __pyx_L3_error)
19576  }
19577  CYTHON_FALLTHROUGH;
19578  case 60:
19579  if (likely((values[60] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_w)) != 0)) kw_args--;
19580  else {
19581  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 60); __PYX_ERR(0, 4712, __pyx_L3_error)
19582  }
19583  CYTHON_FALLTHROUGH;
19584  case 61:
19585  if (likely((values[61] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
19586  else {
19587  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 61); __PYX_ERR(0, 4712, __pyx_L3_error)
19588  }
19589  CYTHON_FALLTHROUGH;
19590  case 62:
19591  if (likely((values[62] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_source_u)) != 0)) kw_args--;
19592  else {
19593  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 62); __PYX_ERR(0, 4712, __pyx_L3_error)
19594  }
19595  CYTHON_FALLTHROUGH;
19596  case 63:
19597  if (likely((values[63] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_source_v)) != 0)) kw_args--;
19598  else {
19599  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 63); __PYX_ERR(0, 4712, __pyx_L3_error)
19600  }
19601  CYTHON_FALLTHROUGH;
19602  case 64:
19603  if (likely((values[64] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_source_w)) != 0)) kw_args--;
19604  else {
19605  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 64); __PYX_ERR(0, 4712, __pyx_L3_error)
19606  }
19607  CYTHON_FALLTHROUGH;
19608  case 65:
19609  if (likely((values[65] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
19610  else {
19611  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 65); __PYX_ERR(0, 4712, __pyx_L3_error)
19612  }
19613  CYTHON_FALLTHROUGH;
19614  case 66:
19615  if (likely((values[66] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
19616  else {
19617  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 66); __PYX_ERR(0, 4712, __pyx_L3_error)
19618  }
19619  CYTHON_FALLTHROUGH;
19620  case 67:
19621  if (likely((values[67] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
19622  else {
19623  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 67); __PYX_ERR(0, 4712, __pyx_L3_error)
19624  }
19625  CYTHON_FALLTHROUGH;
19626  case 68:
19627  if (likely((values[68] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
19628  else {
19629  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 68); __PYX_ERR(0, 4712, __pyx_L3_error)
19630  }
19631  CYTHON_FALLTHROUGH;
19632  case 69:
19633  if (likely((values[69] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_ham)) != 0)) kw_args--;
19634  else {
19635  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 69); __PYX_ERR(0, 4712, __pyx_L3_error)
19636  }
19637  CYTHON_FALLTHROUGH;
19638  case 70:
19639  if (likely((values[70] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_ham_grad_p)) != 0)) kw_args--;
19640  else {
19641  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 70); __PYX_ERR(0, 4712, __pyx_L3_error)
19642  }
19643  }
19644  if (unlikely(kw_args > 0)) {
19645  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate") < 0)) __PYX_ERR(0, 4712, __pyx_L3_error)
19646  }
19647  } else if (PyTuple_GET_SIZE(__pyx_args) != 71) {
19648  goto __pyx_L5_argtuple_error;
19649  } else {
19650  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
19651  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
19652  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
19653  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
19654  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
19655  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
19656  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
19657  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
19658  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
19659  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
19660  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
19661  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
19662  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
19663  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
19664  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
19665  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
19666  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
19667  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
19668  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
19669  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
19670  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
19671  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
19672  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
19673  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
19674  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
19675  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
19676  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
19677  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
19678  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
19679  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
19680  values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
19681  values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
19682  values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
19683  values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
19684  values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
19685  values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
19686  values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
19687  values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
19688  values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
19689  values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
19690  values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
19691  values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
19692  values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
19693  values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
19694  values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
19695  values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
19696  values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
19697  values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
19698  values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
19699  values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
19700  values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
19701  values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
19702  values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
19703  values[53] = PyTuple_GET_ITEM(__pyx_args, 53);
19704  values[54] = PyTuple_GET_ITEM(__pyx_args, 54);
19705  values[55] = PyTuple_GET_ITEM(__pyx_args, 55);
19706  values[56] = PyTuple_GET_ITEM(__pyx_args, 56);
19707  values[57] = PyTuple_GET_ITEM(__pyx_args, 57);
19708  values[58] = PyTuple_GET_ITEM(__pyx_args, 58);
19709  values[59] = PyTuple_GET_ITEM(__pyx_args, 59);
19710  values[60] = PyTuple_GET_ITEM(__pyx_args, 60);
19711  values[61] = PyTuple_GET_ITEM(__pyx_args, 61);
19712  values[62] = PyTuple_GET_ITEM(__pyx_args, 62);
19713  values[63] = PyTuple_GET_ITEM(__pyx_args, 63);
19714  values[64] = PyTuple_GET_ITEM(__pyx_args, 64);
19715  values[65] = PyTuple_GET_ITEM(__pyx_args, 65);
19716  values[66] = PyTuple_GET_ITEM(__pyx_args, 66);
19717  values[67] = PyTuple_GET_ITEM(__pyx_args, 67);
19718  values[68] = PyTuple_GET_ITEM(__pyx_args, 68);
19719  values[69] = PyTuple_GET_ITEM(__pyx_args, 69);
19720  values[70] = PyTuple_GET_ITEM(__pyx_args, 70);
19721  }
19722  __pyx_v_boundaryPenaltyCoef = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_boundaryPenaltyCoef == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4712, __pyx_L3_error)
19723  __pyx_v_volumePenaltyCoef = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_volumePenaltyCoef == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4713, __pyx_L3_error)
19724  __pyx_v_eps_rho = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_eps_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4714, __pyx_L3_error)
19725  __pyx_v_eps_mu = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_eps_mu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4715, __pyx_L3_error)
19726  __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_sigma == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4716, __pyx_L3_error)
19727  __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_rho_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4717, __pyx_L3_error)
19728  __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_nu_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4718, __pyx_L3_error)
19729  __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[7]); if (unlikely((__pyx_v_rho_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4719, __pyx_L3_error)
19730  __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[8]); if (unlikely((__pyx_v_nu_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4720, __pyx_L3_error)
19731  __pyx_v_rho_s = __pyx_PyFloat_AsDouble(values[9]); if (unlikely((__pyx_v_rho_s == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4721, __pyx_L3_error)
19732  __pyx_v_nu_s = __pyx_PyFloat_AsDouble(values[10]); if (unlikely((__pyx_v_nu_s == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4722, __pyx_L3_error)
19733  __pyx_v_g = ((PyArrayObject *)values[11]);
19734  __pyx_v_phi = ((PyArrayObject *)values[12]);
19735  __pyx_v_n = ((PyArrayObject *)values[13]);
19736  __pyx_v_kappa = ((PyArrayObject *)values[14]);
19737  __pyx_v_phi_s = ((PyArrayObject *)values[15]);
19738  __pyx_v_n_s = ((PyArrayObject *)values[16]);
19739  __pyx_v_p = ((PyArrayObject *)values[17]);
19740  __pyx_v_grad_p = ((PyArrayObject *)values[18]);
19741  __pyx_v_u = ((PyArrayObject *)values[19]);
19742  __pyx_v_v = ((PyArrayObject *)values[20]);
19743  __pyx_v_w = ((PyArrayObject *)values[21]);
19744  __pyx_v_mom_u_acc = ((PyArrayObject *)values[22]);
19745  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[23]);
19746  __pyx_v_mom_v_acc = ((PyArrayObject *)values[24]);
19747  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[25]);
19748  __pyx_v_mom_w_acc = ((PyArrayObject *)values[26]);
19749  __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[27]);
19750  __pyx_v_mass_adv = ((PyArrayObject *)values[28]);
19751  __pyx_v_dmass_adv_u = ((PyArrayObject *)values[29]);
19752  __pyx_v_dmass_adv_v = ((PyArrayObject *)values[30]);
19753  __pyx_v_dmass_adv_w = ((PyArrayObject *)values[31]);
19754  __pyx_v_mom_u_adv = ((PyArrayObject *)values[32]);
19755  __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[33]);
19756  __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[34]);
19757  __pyx_v_dmom_u_adv_w = ((PyArrayObject *)values[35]);
19758  __pyx_v_mom_v_adv = ((PyArrayObject *)values[36]);
19759  __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[37]);
19760  __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[38]);
19761  __pyx_v_dmom_v_adv_w = ((PyArrayObject *)values[39]);
19762  __pyx_v_mom_w_adv = ((PyArrayObject *)values[40]);
19763  __pyx_v_dmom_w_adv_u = ((PyArrayObject *)values[41]);
19764  __pyx_v_dmom_w_adv_v = ((PyArrayObject *)values[42]);
19765  __pyx_v_dmom_w_adv_w = ((PyArrayObject *)values[43]);
19766  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[44]);
19767  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[45]);
19768  __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[46]);
19769  __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[47]);
19770  __pyx_v_mom_uw_diff_ten = ((PyArrayObject *)values[48]);
19771  __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[49]);
19772  __pyx_v_mom_vw_diff_ten = ((PyArrayObject *)values[50]);
19773  __pyx_v_mom_wu_diff_ten = ((PyArrayObject *)values[51]);
19774  __pyx_v_mom_wv_diff_ten = ((PyArrayObject *)values[52]);
19775  __pyx_v_mom_u_source = ((PyArrayObject *)values[53]);
19776  __pyx_v_dmom_u_source_u = ((PyArrayObject *)values[54]);
19777  __pyx_v_dmom_u_source_v = ((PyArrayObject *)values[55]);
19778  __pyx_v_dmom_u_source_w = ((PyArrayObject *)values[56]);
19779  __pyx_v_mom_v_source = ((PyArrayObject *)values[57]);
19780  __pyx_v_dmom_v_source_u = ((PyArrayObject *)values[58]);
19781  __pyx_v_dmom_v_source_v = ((PyArrayObject *)values[59]);
19782  __pyx_v_dmom_v_source_w = ((PyArrayObject *)values[60]);
19783  __pyx_v_mom_w_source = ((PyArrayObject *)values[61]);
19784  __pyx_v_dmom_w_source_u = ((PyArrayObject *)values[62]);
19785  __pyx_v_dmom_w_source_v = ((PyArrayObject *)values[63]);
19786  __pyx_v_dmom_w_source_w = ((PyArrayObject *)values[64]);
19787  __pyx_v_mom_u_ham = ((PyArrayObject *)values[65]);
19788  __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[66]);
19789  __pyx_v_mom_v_ham = ((PyArrayObject *)values[67]);
19790  __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[68]);
19791  __pyx_v_mom_w_ham = ((PyArrayObject *)values[69]);
19792  __pyx_v_dmom_w_ham_grad_p = ((PyArrayObject *)values[70]);
19793  }
19794  goto __pyx_L4_argument_unpacking_done;
19795  __pyx_L5_argtuple_error:;
19796  __Pyx_RaiseArgtupleInvalid("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4712, __pyx_L3_error)
19797  __pyx_L3_error:;
19798  __Pyx_AddTraceback("ctransportCoefficients.ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
19799  __Pyx_RefNannyFinishContext();
19800  return NULL;
19801  __pyx_L4_argument_unpacking_done:;
19802  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 4723, __pyx_L1_error)
19803  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 4724, __pyx_L1_error)
19804  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1, "n", 0))) __PYX_ERR(0, 4725, __pyx_L1_error)
19805  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kappa), __pyx_ptype_5numpy_ndarray, 1, "kappa", 0))) __PYX_ERR(0, 4726, __pyx_L1_error)
19806  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_s), __pyx_ptype_5numpy_ndarray, 1, "phi_s", 0))) __PYX_ERR(0, 4727, __pyx_L1_error)
19807  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n_s), __pyx_ptype_5numpy_ndarray, 1, "n_s", 0))) __PYX_ERR(0, 4728, __pyx_L1_error)
19808  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 4729, __pyx_L1_error)
19809  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1, "grad_p", 0))) __PYX_ERR(0, 4730, __pyx_L1_error)
19810  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 4731, __pyx_L1_error)
19811  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 4732, __pyx_L1_error)
19812  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1, "w", 0))) __PYX_ERR(0, 4733, __pyx_L1_error)
19813  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 4734, __pyx_L1_error)
19814  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 4735, __pyx_L1_error)
19815  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 4736, __pyx_L1_error)
19816  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 4737, __pyx_L1_error)
19817  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_w_acc", 0))) __PYX_ERR(0, 4738, __pyx_L1_error)
19818  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_acc_w", 0))) __PYX_ERR(0, 4739, __pyx_L1_error)
19819  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 4740, __pyx_L1_error)
19820  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_u", 0))) __PYX_ERR(0, 4741, __pyx_L1_error)
19821  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_v", 0))) __PYX_ERR(0, 4742, __pyx_L1_error)
19822  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_w", 0))) __PYX_ERR(0, 4743, __pyx_L1_error)
19823  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_u_adv", 0))) __PYX_ERR(0, 4744, __pyx_L1_error)
19824  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_u", 0))) __PYX_ERR(0, 4745, __pyx_L1_error)
19825  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_v", 0))) __PYX_ERR(0, 4746, __pyx_L1_error)
19826  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_w", 0))) __PYX_ERR(0, 4747, __pyx_L1_error)
19827  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_v_adv", 0))) __PYX_ERR(0, 4748, __pyx_L1_error)
19828  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_u", 0))) __PYX_ERR(0, 4749, __pyx_L1_error)
19829  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_v", 0))) __PYX_ERR(0, 4750, __pyx_L1_error)
19830  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_w", 0))) __PYX_ERR(0, 4751, __pyx_L1_error)
19831  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_w_adv", 0))) __PYX_ERR(0, 4752, __pyx_L1_error)
19832  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_u", 0))) __PYX_ERR(0, 4753, __pyx_L1_error)
19833  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_v", 0))) __PYX_ERR(0, 4754, __pyx_L1_error)
19834  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_w", 0))) __PYX_ERR(0, 4755, __pyx_L1_error)
19835  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 4756, __pyx_L1_error)
19836  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 4757, __pyx_L1_error)
19837  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_w_diff_ten", 0))) __PYX_ERR(0, 4758, __pyx_L1_error)
19838  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uv_diff_ten", 0))) __PYX_ERR(0, 4759, __pyx_L1_error)
19839  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uw_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uw_diff_ten", 0))) __PYX_ERR(0, 4760, __pyx_L1_error)
19840  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vu_diff_ten", 0))) __PYX_ERR(0, 4761, __pyx_L1_error)
19841  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vw_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vw_diff_ten", 0))) __PYX_ERR(0, 4762, __pyx_L1_error)
19842  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_wu_diff_ten", 0))) __PYX_ERR(0, 4763, __pyx_L1_error)
19843  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_wv_diff_ten", 0))) __PYX_ERR(0, 4764, __pyx_L1_error)
19844  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 4765, __pyx_L1_error)
19845  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_source_u", 0))) __PYX_ERR(0, 4766, __pyx_L1_error)
19846  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_source_v", 0))) __PYX_ERR(0, 4767, __pyx_L1_error)
19847  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_source_w", 0))) __PYX_ERR(0, 4768, __pyx_L1_error)
19848  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 4769, __pyx_L1_error)
19849  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_source_u", 0))) __PYX_ERR(0, 4770, __pyx_L1_error)
19850  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_source_v", 0))) __PYX_ERR(0, 4771, __pyx_L1_error)
19851  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_source_w", 0))) __PYX_ERR(0, 4772, __pyx_L1_error)
19852  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1, "mom_w_source", 0))) __PYX_ERR(0, 4773, __pyx_L1_error)
19853  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_source_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_source_u", 0))) __PYX_ERR(0, 4774, __pyx_L1_error)
19854  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_source_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_source_v", 0))) __PYX_ERR(0, 4775, __pyx_L1_error)
19855  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_source_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_source_w", 0))) __PYX_ERR(0, 4776, __pyx_L1_error)
19856  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_u_ham", 0))) __PYX_ERR(0, 4777, __pyx_L1_error)
19857  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 4778, __pyx_L1_error)
19858  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_v_ham", 0))) __PYX_ERR(0, 4779, __pyx_L1_error)
19859  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 4780, __pyx_L1_error)
19860  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_w_ham", 0))) __PYX_ERR(0, 4781, __pyx_L1_error)
19861  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_ham_grad_p", 0))) __PYX_ERR(0, 4782, __pyx_L1_error)
19862  __pyx_r = __pyx_pf_22ctransportCoefficients_92ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate(__pyx_self, __pyx_v_boundaryPenaltyCoef, __pyx_v_volumePenaltyCoef, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_rho_s, __pyx_v_nu_s, __pyx_v_g, __pyx_v_phi, __pyx_v_n, __pyx_v_kappa, __pyx_v_phi_s, __pyx_v_n_s, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mom_w_acc, __pyx_v_dmom_w_acc_w, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_dmass_adv_w, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_dmom_u_adv_w, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_dmom_v_adv_w, __pyx_v_mom_w_adv, __pyx_v_dmom_w_adv_u, __pyx_v_dmom_w_adv_v, __pyx_v_dmom_w_adv_w, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_uw_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_vw_diff_ten, __pyx_v_mom_wu_diff_ten, __pyx_v_mom_wv_diff_ten, __pyx_v_mom_u_source, __pyx_v_dmom_u_source_u, __pyx_v_dmom_u_source_v, __pyx_v_dmom_u_source_w, __pyx_v_mom_v_source, __pyx_v_dmom_v_source_u, __pyx_v_dmom_v_source_v, __pyx_v_dmom_v_source_w, __pyx_v_mom_w_source, __pyx_v_dmom_w_source_u, __pyx_v_dmom_w_source_v, __pyx_v_dmom_w_source_w, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p, __pyx_v_mom_w_ham, __pyx_v_dmom_w_ham_grad_p);
19863 
19864  /* function exit code */
19865  goto __pyx_L0;
19866  __pyx_L1_error:;
19867  __pyx_r = NULL;
19868  __pyx_L0:;
19869  __Pyx_RefNannyFinishContext();
19870  return __pyx_r;
19871 }
19872 
19873 static PyObject *__pyx_pf_22ctransportCoefficients_92ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_boundaryPenaltyCoef, double __pyx_v_volumePenaltyCoef, double __pyx_v_eps_rho, double __pyx_v_eps_mu, double __pyx_v_sigma, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, double __pyx_v_rho_s, double __pyx_v_nu_s, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_phi_s, PyArrayObject *__pyx_v_n_s, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_u_source_w, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_dmom_v_source_w, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_dmom_w_source_u, PyArrayObject *__pyx_v_dmom_w_source_v, PyArrayObject *__pyx_v_dmom_w_source_w, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p) {
19874  PyObject *__pyx_r = NULL;
19875  __Pyx_RefNannyDeclarations
19876  PyObject *__pyx_t_1 = NULL;
19877  int __pyx_t_2;
19878  int __pyx_lineno = 0;
19879  const char *__pyx_filename = NULL;
19880  int __pyx_clineno = 0;
19881  __Pyx_RefNannySetupContext("ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 0);
19882 
19883  /* "ctransportCoefficients.pyx":4783
19884  * np.ndarray mom_w_ham,
19885  * np.ndarray dmom_w_ham_grad_p):
19886  * cThreephaseNavierStokes_ST_LS_SO_3D_Evaluate(p.size, # <<<<<<<<<<<<<<
19887  * boundaryPenaltyCoef,
19888  * volumePenaltyCoef,
19889  */
19890  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4783, __pyx_L1_error)
19891  __Pyx_GOTREF(__pyx_t_1);
19892  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4783, __pyx_L1_error)
19893  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
19894 
19895  /* "ctransportCoefficients.pyx":4854
19896  * <double*> dmom_v_ham_grad_p.data,
19897  * <double*> mom_w_ham.data,
19898  * <double*> dmom_w_ham_grad_p.data) # <<<<<<<<<<<<<<
19899  * def TwophaseNavierStokes_LS_SO_3D_Evaluate(const double eps,
19900  * const double rho_0,
19901  */
19902  ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate(__pyx_t_2, __pyx_v_boundaryPenaltyCoef, __pyx_v_volumePenaltyCoef, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_rho_s, __pyx_v_nu_s, ((double *)__pyx_v_g->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_n->data), ((double *)__pyx_v_kappa->data), ((double *)__pyx_v_phi_s->data), ((double *)__pyx_v_n_s->data), ((double *)__pyx_v_p->data), ((double *)__pyx_v_grad_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_w->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_v_acc_v->data), ((double *)__pyx_v_mom_w_acc->data), ((double *)__pyx_v_dmom_w_acc_w->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_u->data), ((double *)__pyx_v_dmass_adv_v->data), ((double *)__pyx_v_dmass_adv_w->data), ((double *)__pyx_v_mom_u_adv->data), ((double *)__pyx_v_dmom_u_adv_u->data), ((double *)__pyx_v_dmom_u_adv_v->data), ((double *)__pyx_v_dmom_u_adv_w->data), ((double *)__pyx_v_mom_v_adv->data), ((double *)__pyx_v_dmom_v_adv_u->data), ((double *)__pyx_v_dmom_v_adv_v->data), ((double *)__pyx_v_dmom_v_adv_w->data), ((double *)__pyx_v_mom_w_adv->data), ((double *)__pyx_v_dmom_w_adv_u->data), ((double *)__pyx_v_dmom_w_adv_v->data), ((double *)__pyx_v_dmom_w_adv_w->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_w_diff_ten->data), ((double *)__pyx_v_mom_uv_diff_ten->data), ((double *)__pyx_v_mom_uw_diff_ten->data), ((double *)__pyx_v_mom_vu_diff_ten->data), ((double *)__pyx_v_mom_vw_diff_ten->data), ((double *)__pyx_v_mom_wu_diff_ten->data), ((double *)__pyx_v_mom_wv_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_dmom_u_source_u->data), ((double *)__pyx_v_dmom_u_source_v->data), ((double *)__pyx_v_dmom_u_source_w->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_dmom_v_source_u->data), ((double *)__pyx_v_dmom_v_source_v->data), ((double *)__pyx_v_dmom_v_source_w->data), ((double *)__pyx_v_mom_w_source->data), ((double *)__pyx_v_dmom_w_source_u->data), ((double *)__pyx_v_dmom_w_source_v->data), ((double *)__pyx_v_dmom_w_source_w->data), ((double *)__pyx_v_mom_u_ham->data), ((double *)__pyx_v_dmom_u_ham_grad_p->data), ((double *)__pyx_v_mom_v_ham->data), ((double *)__pyx_v_dmom_v_ham_grad_p->data), ((double *)__pyx_v_mom_w_ham->data), ((double *)__pyx_v_dmom_w_ham_grad_p->data));
19903 
19904  /* "ctransportCoefficients.pyx":4712
19905  * <double*> mom_w_ham.data,
19906  * <double*> dmom_w_ham_grad_p.data)
19907  * def ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate(const double boundaryPenaltyCoef, # <<<<<<<<<<<<<<
19908  * const double volumePenaltyCoef,
19909  * const double eps_rho,
19910  */
19911 
19912  /* function exit code */
19913  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
19914  goto __pyx_L0;
19915  __pyx_L1_error:;
19916  __Pyx_XDECREF(__pyx_t_1);
19917  __Pyx_AddTraceback("ctransportCoefficients.ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
19918  __pyx_r = NULL;
19919  __pyx_L0:;
19920  __Pyx_XGIVEREF(__pyx_r);
19921  __Pyx_RefNannyFinishContext();
19922  return __pyx_r;
19923 }
19924 
19925 /* "ctransportCoefficients.pyx":4855
19926  * <double*> mom_w_ham.data,
19927  * <double*> dmom_w_ham_grad_p.data)
19928  * def TwophaseNavierStokes_LS_SO_3D_Evaluate(const double eps, # <<<<<<<<<<<<<<
19929  * const double rho_0,
19930  * const double nu_0,
19931  */
19932 
19933 /* Python wrapper */
19934 static PyObject *__pyx_pw_22ctransportCoefficients_95TwophaseNavierStokes_LS_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
19935 static PyMethodDef __pyx_mdef_22ctransportCoefficients_95TwophaseNavierStokes_LS_SO_3D_Evaluate = {"TwophaseNavierStokes_LS_SO_3D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_95TwophaseNavierStokes_LS_SO_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
19936 static PyObject *__pyx_pw_22ctransportCoefficients_95TwophaseNavierStokes_LS_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
19937  double __pyx_v_eps;
19938  double __pyx_v_rho_0;
19939  double __pyx_v_nu_0;
19940  double __pyx_v_rho_1;
19941  double __pyx_v_nu_1;
19942  PyArrayObject *__pyx_v_g = 0;
19943  PyArrayObject *__pyx_v_phi = 0;
19944  PyArrayObject *__pyx_v_p = 0;
19945  PyArrayObject *__pyx_v_grad_p = 0;
19946  PyArrayObject *__pyx_v_u = 0;
19947  PyArrayObject *__pyx_v_v = 0;
19948  PyArrayObject *__pyx_v_w = 0;
19949  PyArrayObject *__pyx_v_mom_u_acc = 0;
19950  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
19951  PyArrayObject *__pyx_v_mom_v_acc = 0;
19952  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
19953  PyArrayObject *__pyx_v_mom_w_acc = 0;
19954  PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
19955  PyArrayObject *__pyx_v_mass_adv = 0;
19956  PyArrayObject *__pyx_v_dmass_adv_u = 0;
19957  PyArrayObject *__pyx_v_dmass_adv_v = 0;
19958  PyArrayObject *__pyx_v_dmass_adv_w = 0;
19959  PyArrayObject *__pyx_v_mom_u_adv = 0;
19960  PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
19961  PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
19962  PyArrayObject *__pyx_v_dmom_u_adv_w = 0;
19963  PyArrayObject *__pyx_v_mom_v_adv = 0;
19964  PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
19965  PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
19966  PyArrayObject *__pyx_v_dmom_v_adv_w = 0;
19967  PyArrayObject *__pyx_v_mom_w_adv = 0;
19968  PyArrayObject *__pyx_v_dmom_w_adv_u = 0;
19969  PyArrayObject *__pyx_v_dmom_w_adv_v = 0;
19970  PyArrayObject *__pyx_v_dmom_w_adv_w = 0;
19971  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
19972  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
19973  PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
19974  PyArrayObject *__pyx_v_mom_u_source = 0;
19975  PyArrayObject *__pyx_v_mom_v_source = 0;
19976  PyArrayObject *__pyx_v_mom_w_source = 0;
19977  PyArrayObject *__pyx_v_mom_u_ham = 0;
19978  PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
19979  PyArrayObject *__pyx_v_mom_v_ham = 0;
19980  PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
19981  PyArrayObject *__pyx_v_mom_w_ham = 0;
19982  PyArrayObject *__pyx_v_dmom_w_ham_grad_p = 0;
19983  int __pyx_lineno = 0;
19984  const char *__pyx_filename = NULL;
19985  int __pyx_clineno = 0;
19986  PyObject *__pyx_r = 0;
19987  __Pyx_RefNannyDeclarations
19988  __Pyx_RefNannySetupContext("TwophaseNavierStokes_LS_SO_3D_Evaluate (wrapper)", 0);
19989  {
19990  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_w_acc_w,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_dmass_adv_w,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_dmom_u_adv_w,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_dmom_v_adv_w,&__pyx_n_s_mom_w_adv,&__pyx_n_s_dmom_w_adv_u,&__pyx_n_s_dmom_w_adv_v,&__pyx_n_s_dmom_w_adv_w,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,&__pyx_n_s_mom_w_ham,&__pyx_n_s_dmom_w_ham_grad_p,0};
19991  PyObject* values[46] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
19992  if (unlikely(__pyx_kwds)) {
19993  Py_ssize_t kw_args;
19994  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
19995  switch (pos_args) {
19996  case 46: values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
19997  CYTHON_FALLTHROUGH;
19998  case 45: values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
19999  CYTHON_FALLTHROUGH;
20000  case 44: values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
20001  CYTHON_FALLTHROUGH;
20002  case 43: values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
20003  CYTHON_FALLTHROUGH;
20004  case 42: values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
20005  CYTHON_FALLTHROUGH;
20006  case 41: values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
20007  CYTHON_FALLTHROUGH;
20008  case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
20009  CYTHON_FALLTHROUGH;
20010  case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
20011  CYTHON_FALLTHROUGH;
20012  case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
20013  CYTHON_FALLTHROUGH;
20014  case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
20015  CYTHON_FALLTHROUGH;
20016  case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
20017  CYTHON_FALLTHROUGH;
20018  case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
20019  CYTHON_FALLTHROUGH;
20020  case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
20021  CYTHON_FALLTHROUGH;
20022  case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
20023  CYTHON_FALLTHROUGH;
20024  case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
20025  CYTHON_FALLTHROUGH;
20026  case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
20027  CYTHON_FALLTHROUGH;
20028  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
20029  CYTHON_FALLTHROUGH;
20030  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
20031  CYTHON_FALLTHROUGH;
20032  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
20033  CYTHON_FALLTHROUGH;
20034  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
20035  CYTHON_FALLTHROUGH;
20036  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
20037  CYTHON_FALLTHROUGH;
20038  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
20039  CYTHON_FALLTHROUGH;
20040  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
20041  CYTHON_FALLTHROUGH;
20042  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
20043  CYTHON_FALLTHROUGH;
20044  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
20045  CYTHON_FALLTHROUGH;
20046  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
20047  CYTHON_FALLTHROUGH;
20048  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
20049  CYTHON_FALLTHROUGH;
20050  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
20051  CYTHON_FALLTHROUGH;
20052  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
20053  CYTHON_FALLTHROUGH;
20054  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
20055  CYTHON_FALLTHROUGH;
20056  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
20057  CYTHON_FALLTHROUGH;
20058  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
20059  CYTHON_FALLTHROUGH;
20060  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
20061  CYTHON_FALLTHROUGH;
20062  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
20063  CYTHON_FALLTHROUGH;
20064  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
20065  CYTHON_FALLTHROUGH;
20066  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
20067  CYTHON_FALLTHROUGH;
20068  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
20069  CYTHON_FALLTHROUGH;
20070  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
20071  CYTHON_FALLTHROUGH;
20072  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
20073  CYTHON_FALLTHROUGH;
20074  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
20075  CYTHON_FALLTHROUGH;
20076  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
20077  CYTHON_FALLTHROUGH;
20078  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
20079  CYTHON_FALLTHROUGH;
20080  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
20081  CYTHON_FALLTHROUGH;
20082  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
20083  CYTHON_FALLTHROUGH;
20084  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
20085  CYTHON_FALLTHROUGH;
20086  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
20087  CYTHON_FALLTHROUGH;
20088  case 0: break;
20089  default: goto __pyx_L5_argtuple_error;
20090  }
20091  kw_args = PyDict_Size(__pyx_kwds);
20092  switch (pos_args) {
20093  case 0:
20094  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
20095  else goto __pyx_L5_argtuple_error;
20096  CYTHON_FALLTHROUGH;
20097  case 1:
20098  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
20099  else {
20100  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 1); __PYX_ERR(0, 4855, __pyx_L3_error)
20101  }
20102  CYTHON_FALLTHROUGH;
20103  case 2:
20104  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
20105  else {
20106  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 2); __PYX_ERR(0, 4855, __pyx_L3_error)
20107  }
20108  CYTHON_FALLTHROUGH;
20109  case 3:
20110  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
20111  else {
20112  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 3); __PYX_ERR(0, 4855, __pyx_L3_error)
20113  }
20114  CYTHON_FALLTHROUGH;
20115  case 4:
20116  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
20117  else {
20118  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 4); __PYX_ERR(0, 4855, __pyx_L3_error)
20119  }
20120  CYTHON_FALLTHROUGH;
20121  case 5:
20122  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
20123  else {
20124  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 5); __PYX_ERR(0, 4855, __pyx_L3_error)
20125  }
20126  CYTHON_FALLTHROUGH;
20127  case 6:
20128  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
20129  else {
20130  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 6); __PYX_ERR(0, 4855, __pyx_L3_error)
20131  }
20132  CYTHON_FALLTHROUGH;
20133  case 7:
20134  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
20135  else {
20136  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 7); __PYX_ERR(0, 4855, __pyx_L3_error)
20137  }
20138  CYTHON_FALLTHROUGH;
20139  case 8:
20140  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
20141  else {
20142  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 8); __PYX_ERR(0, 4855, __pyx_L3_error)
20143  }
20144  CYTHON_FALLTHROUGH;
20145  case 9:
20146  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
20147  else {
20148  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 9); __PYX_ERR(0, 4855, __pyx_L3_error)
20149  }
20150  CYTHON_FALLTHROUGH;
20151  case 10:
20152  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
20153  else {
20154  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 10); __PYX_ERR(0, 4855, __pyx_L3_error)
20155  }
20156  CYTHON_FALLTHROUGH;
20157  case 11:
20158  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
20159  else {
20160  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 11); __PYX_ERR(0, 4855, __pyx_L3_error)
20161  }
20162  CYTHON_FALLTHROUGH;
20163  case 12:
20164  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
20165  else {
20166  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 12); __PYX_ERR(0, 4855, __pyx_L3_error)
20167  }
20168  CYTHON_FALLTHROUGH;
20169  case 13:
20170  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
20171  else {
20172  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 13); __PYX_ERR(0, 4855, __pyx_L3_error)
20173  }
20174  CYTHON_FALLTHROUGH;
20175  case 14:
20176  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
20177  else {
20178  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 14); __PYX_ERR(0, 4855, __pyx_L3_error)
20179  }
20180  CYTHON_FALLTHROUGH;
20181  case 15:
20182  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
20183  else {
20184  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 15); __PYX_ERR(0, 4855, __pyx_L3_error)
20185  }
20186  CYTHON_FALLTHROUGH;
20187  case 16:
20188  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
20189  else {
20190  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 16); __PYX_ERR(0, 4855, __pyx_L3_error)
20191  }
20192  CYTHON_FALLTHROUGH;
20193  case 17:
20194  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
20195  else {
20196  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 17); __PYX_ERR(0, 4855, __pyx_L3_error)
20197  }
20198  CYTHON_FALLTHROUGH;
20199  case 18:
20200  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
20201  else {
20202  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 18); __PYX_ERR(0, 4855, __pyx_L3_error)
20203  }
20204  CYTHON_FALLTHROUGH;
20205  case 19:
20206  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
20207  else {
20208  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 19); __PYX_ERR(0, 4855, __pyx_L3_error)
20209  }
20210  CYTHON_FALLTHROUGH;
20211  case 20:
20212  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
20213  else {
20214  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 20); __PYX_ERR(0, 4855, __pyx_L3_error)
20215  }
20216  CYTHON_FALLTHROUGH;
20217  case 21:
20218  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_w)) != 0)) kw_args--;
20219  else {
20220  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 21); __PYX_ERR(0, 4855, __pyx_L3_error)
20221  }
20222  CYTHON_FALLTHROUGH;
20223  case 22:
20224  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
20225  else {
20226  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 22); __PYX_ERR(0, 4855, __pyx_L3_error)
20227  }
20228  CYTHON_FALLTHROUGH;
20229  case 23:
20230  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
20231  else {
20232  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 23); __PYX_ERR(0, 4855, __pyx_L3_error)
20233  }
20234  CYTHON_FALLTHROUGH;
20235  case 24:
20236  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
20237  else {
20238  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 24); __PYX_ERR(0, 4855, __pyx_L3_error)
20239  }
20240  CYTHON_FALLTHROUGH;
20241  case 25:
20242  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_w)) != 0)) kw_args--;
20243  else {
20244  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 25); __PYX_ERR(0, 4855, __pyx_L3_error)
20245  }
20246  CYTHON_FALLTHROUGH;
20247  case 26:
20248  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
20249  else {
20250  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 26); __PYX_ERR(0, 4855, __pyx_L3_error)
20251  }
20252  CYTHON_FALLTHROUGH;
20253  case 27:
20254  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
20255  else {
20256  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 27); __PYX_ERR(0, 4855, __pyx_L3_error)
20257  }
20258  CYTHON_FALLTHROUGH;
20259  case 28:
20260  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
20261  else {
20262  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 28); __PYX_ERR(0, 4855, __pyx_L3_error)
20263  }
20264  CYTHON_FALLTHROUGH;
20265  case 29:
20266  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_w)) != 0)) kw_args--;
20267  else {
20268  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 29); __PYX_ERR(0, 4855, __pyx_L3_error)
20269  }
20270  CYTHON_FALLTHROUGH;
20271  case 30:
20272  if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_adv)) != 0)) kw_args--;
20273  else {
20274  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 30); __PYX_ERR(0, 4855, __pyx_L3_error)
20275  }
20276  CYTHON_FALLTHROUGH;
20277  case 31:
20278  if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_u)) != 0)) kw_args--;
20279  else {
20280  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 31); __PYX_ERR(0, 4855, __pyx_L3_error)
20281  }
20282  CYTHON_FALLTHROUGH;
20283  case 32:
20284  if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_v)) != 0)) kw_args--;
20285  else {
20286  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 32); __PYX_ERR(0, 4855, __pyx_L3_error)
20287  }
20288  CYTHON_FALLTHROUGH;
20289  case 33:
20290  if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_w)) != 0)) kw_args--;
20291  else {
20292  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 33); __PYX_ERR(0, 4855, __pyx_L3_error)
20293  }
20294  CYTHON_FALLTHROUGH;
20295  case 34:
20296  if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
20297  else {
20298  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 34); __PYX_ERR(0, 4855, __pyx_L3_error)
20299  }
20300  CYTHON_FALLTHROUGH;
20301  case 35:
20302  if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
20303  else {
20304  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 35); __PYX_ERR(0, 4855, __pyx_L3_error)
20305  }
20306  CYTHON_FALLTHROUGH;
20307  case 36:
20308  if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
20309  else {
20310  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 36); __PYX_ERR(0, 4855, __pyx_L3_error)
20311  }
20312  CYTHON_FALLTHROUGH;
20313  case 37:
20314  if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
20315  else {
20316  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 37); __PYX_ERR(0, 4855, __pyx_L3_error)
20317  }
20318  CYTHON_FALLTHROUGH;
20319  case 38:
20320  if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
20321  else {
20322  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 38); __PYX_ERR(0, 4855, __pyx_L3_error)
20323  }
20324  CYTHON_FALLTHROUGH;
20325  case 39:
20326  if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
20327  else {
20328  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 39); __PYX_ERR(0, 4855, __pyx_L3_error)
20329  }
20330  CYTHON_FALLTHROUGH;
20331  case 40:
20332  if (likely((values[40] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
20333  else {
20334  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 40); __PYX_ERR(0, 4855, __pyx_L3_error)
20335  }
20336  CYTHON_FALLTHROUGH;
20337  case 41:
20338  if (likely((values[41] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
20339  else {
20340  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 41); __PYX_ERR(0, 4855, __pyx_L3_error)
20341  }
20342  CYTHON_FALLTHROUGH;
20343  case 42:
20344  if (likely((values[42] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
20345  else {
20346  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 42); __PYX_ERR(0, 4855, __pyx_L3_error)
20347  }
20348  CYTHON_FALLTHROUGH;
20349  case 43:
20350  if (likely((values[43] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
20351  else {
20352  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 43); __PYX_ERR(0, 4855, __pyx_L3_error)
20353  }
20354  CYTHON_FALLTHROUGH;
20355  case 44:
20356  if (likely((values[44] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_ham)) != 0)) kw_args--;
20357  else {
20358  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 44); __PYX_ERR(0, 4855, __pyx_L3_error)
20359  }
20360  CYTHON_FALLTHROUGH;
20361  case 45:
20362  if (likely((values[45] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_ham_grad_p)) != 0)) kw_args--;
20363  else {
20364  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 45); __PYX_ERR(0, 4855, __pyx_L3_error)
20365  }
20366  }
20367  if (unlikely(kw_args > 0)) {
20368  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "TwophaseNavierStokes_LS_SO_3D_Evaluate") < 0)) __PYX_ERR(0, 4855, __pyx_L3_error)
20369  }
20370  } else if (PyTuple_GET_SIZE(__pyx_args) != 46) {
20371  goto __pyx_L5_argtuple_error;
20372  } else {
20373  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
20374  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
20375  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
20376  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
20377  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
20378  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
20379  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
20380  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
20381  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
20382  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
20383  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
20384  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
20385  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
20386  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
20387  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
20388  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
20389  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
20390  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
20391  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
20392  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
20393  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
20394  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
20395  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
20396  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
20397  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
20398  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
20399  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
20400  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
20401  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
20402  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
20403  values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
20404  values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
20405  values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
20406  values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
20407  values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
20408  values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
20409  values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
20410  values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
20411  values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
20412  values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
20413  values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
20414  values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
20415  values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
20416  values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
20417  values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
20418  values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
20419  }
20420  __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4855, __pyx_L3_error)
20421  __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_rho_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4856, __pyx_L3_error)
20422  __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_nu_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4857, __pyx_L3_error)
20423  __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_rho_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4858, __pyx_L3_error)
20424  __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_nu_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4859, __pyx_L3_error)
20425  __pyx_v_g = ((PyArrayObject *)values[5]);
20426  __pyx_v_phi = ((PyArrayObject *)values[6]);
20427  __pyx_v_p = ((PyArrayObject *)values[7]);
20428  __pyx_v_grad_p = ((PyArrayObject *)values[8]);
20429  __pyx_v_u = ((PyArrayObject *)values[9]);
20430  __pyx_v_v = ((PyArrayObject *)values[10]);
20431  __pyx_v_w = ((PyArrayObject *)values[11]);
20432  __pyx_v_mom_u_acc = ((PyArrayObject *)values[12]);
20433  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[13]);
20434  __pyx_v_mom_v_acc = ((PyArrayObject *)values[14]);
20435  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[15]);
20436  __pyx_v_mom_w_acc = ((PyArrayObject *)values[16]);
20437  __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[17]);
20438  __pyx_v_mass_adv = ((PyArrayObject *)values[18]);
20439  __pyx_v_dmass_adv_u = ((PyArrayObject *)values[19]);
20440  __pyx_v_dmass_adv_v = ((PyArrayObject *)values[20]);
20441  __pyx_v_dmass_adv_w = ((PyArrayObject *)values[21]);
20442  __pyx_v_mom_u_adv = ((PyArrayObject *)values[22]);
20443  __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[23]);
20444  __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[24]);
20445  __pyx_v_dmom_u_adv_w = ((PyArrayObject *)values[25]);
20446  __pyx_v_mom_v_adv = ((PyArrayObject *)values[26]);
20447  __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[27]);
20448  __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[28]);
20449  __pyx_v_dmom_v_adv_w = ((PyArrayObject *)values[29]);
20450  __pyx_v_mom_w_adv = ((PyArrayObject *)values[30]);
20451  __pyx_v_dmom_w_adv_u = ((PyArrayObject *)values[31]);
20452  __pyx_v_dmom_w_adv_v = ((PyArrayObject *)values[32]);
20453  __pyx_v_dmom_w_adv_w = ((PyArrayObject *)values[33]);
20454  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[34]);
20455  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[35]);
20456  __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[36]);
20457  __pyx_v_mom_u_source = ((PyArrayObject *)values[37]);
20458  __pyx_v_mom_v_source = ((PyArrayObject *)values[38]);
20459  __pyx_v_mom_w_source = ((PyArrayObject *)values[39]);
20460  __pyx_v_mom_u_ham = ((PyArrayObject *)values[40]);
20461  __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[41]);
20462  __pyx_v_mom_v_ham = ((PyArrayObject *)values[42]);
20463  __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[43]);
20464  __pyx_v_mom_w_ham = ((PyArrayObject *)values[44]);
20465  __pyx_v_dmom_w_ham_grad_p = ((PyArrayObject *)values[45]);
20466  }
20467  goto __pyx_L4_argument_unpacking_done;
20468  __pyx_L5_argtuple_error:;
20469  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4855, __pyx_L3_error)
20470  __pyx_L3_error:;
20471  __Pyx_AddTraceback("ctransportCoefficients.TwophaseNavierStokes_LS_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
20472  __Pyx_RefNannyFinishContext();
20473  return NULL;
20474  __pyx_L4_argument_unpacking_done:;
20475  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 4860, __pyx_L1_error)
20476  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 4861, __pyx_L1_error)
20477  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 4862, __pyx_L1_error)
20478  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1, "grad_p", 0))) __PYX_ERR(0, 4863, __pyx_L1_error)
20479  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 4864, __pyx_L1_error)
20480  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 4865, __pyx_L1_error)
20481  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1, "w", 0))) __PYX_ERR(0, 4866, __pyx_L1_error)
20482  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 4867, __pyx_L1_error)
20483  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 4868, __pyx_L1_error)
20484  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 4869, __pyx_L1_error)
20485  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 4870, __pyx_L1_error)
20486  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_w_acc", 0))) __PYX_ERR(0, 4871, __pyx_L1_error)
20487  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_acc_w", 0))) __PYX_ERR(0, 4872, __pyx_L1_error)
20488  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 4873, __pyx_L1_error)
20489  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_u", 0))) __PYX_ERR(0, 4874, __pyx_L1_error)
20490  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_v", 0))) __PYX_ERR(0, 4875, __pyx_L1_error)
20491  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_w", 0))) __PYX_ERR(0, 4876, __pyx_L1_error)
20492  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_u_adv", 0))) __PYX_ERR(0, 4877, __pyx_L1_error)
20493  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_u", 0))) __PYX_ERR(0, 4878, __pyx_L1_error)
20494  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_v", 0))) __PYX_ERR(0, 4879, __pyx_L1_error)
20495  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_w", 0))) __PYX_ERR(0, 4880, __pyx_L1_error)
20496  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_v_adv", 0))) __PYX_ERR(0, 4881, __pyx_L1_error)
20497  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_u", 0))) __PYX_ERR(0, 4882, __pyx_L1_error)
20498  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_v", 0))) __PYX_ERR(0, 4883, __pyx_L1_error)
20499  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_w", 0))) __PYX_ERR(0, 4884, __pyx_L1_error)
20500  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_w_adv", 0))) __PYX_ERR(0, 4885, __pyx_L1_error)
20501  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_u", 0))) __PYX_ERR(0, 4886, __pyx_L1_error)
20502  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_v", 0))) __PYX_ERR(0, 4887, __pyx_L1_error)
20503  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_w", 0))) __PYX_ERR(0, 4888, __pyx_L1_error)
20504  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 4889, __pyx_L1_error)
20505  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 4890, __pyx_L1_error)
20506  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_w_diff_ten", 0))) __PYX_ERR(0, 4891, __pyx_L1_error)
20507  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 4892, __pyx_L1_error)
20508  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 4893, __pyx_L1_error)
20509  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1, "mom_w_source", 0))) __PYX_ERR(0, 4894, __pyx_L1_error)
20510  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_u_ham", 0))) __PYX_ERR(0, 4895, __pyx_L1_error)
20511  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 4896, __pyx_L1_error)
20512  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_v_ham", 0))) __PYX_ERR(0, 4897, __pyx_L1_error)
20513  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 4898, __pyx_L1_error)
20514  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_w_ham", 0))) __PYX_ERR(0, 4899, __pyx_L1_error)
20515  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_ham_grad_p", 0))) __PYX_ERR(0, 4900, __pyx_L1_error)
20516  __pyx_r = __pyx_pf_22ctransportCoefficients_94TwophaseNavierStokes_LS_SO_3D_Evaluate(__pyx_self, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_g, __pyx_v_phi, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mom_w_acc, __pyx_v_dmom_w_acc_w, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_dmass_adv_w, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_dmom_u_adv_w, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_dmom_v_adv_w, __pyx_v_mom_w_adv, __pyx_v_dmom_w_adv_u, __pyx_v_dmom_w_adv_v, __pyx_v_dmom_w_adv_w, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p, __pyx_v_mom_w_ham, __pyx_v_dmom_w_ham_grad_p);
20517 
20518  /* function exit code */
20519  goto __pyx_L0;
20520  __pyx_L1_error:;
20521  __pyx_r = NULL;
20522  __pyx_L0:;
20523  __Pyx_RefNannyFinishContext();
20524  return __pyx_r;
20525 }
20526 
20527 static PyObject *__pyx_pf_22ctransportCoefficients_94TwophaseNavierStokes_LS_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p) {
20528  PyObject *__pyx_r = NULL;
20529  __Pyx_RefNannyDeclarations
20530  PyObject *__pyx_t_1 = NULL;
20531  int __pyx_t_2;
20532  int __pyx_lineno = 0;
20533  const char *__pyx_filename = NULL;
20534  int __pyx_clineno = 0;
20535  __Pyx_RefNannySetupContext("TwophaseNavierStokes_LS_SO_3D_Evaluate", 0);
20536 
20537  /* "ctransportCoefficients.pyx":4901
20538  * np.ndarray mom_w_ham,
20539  * np.ndarray dmom_w_ham_grad_p):
20540  * cTwophaseNavierStokes_LS_SO_3D_Evaluate(p.size, # <<<<<<<<<<<<<<
20541  * eps,
20542  * rho_0,
20543  */
20544  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4901, __pyx_L1_error)
20545  __Pyx_GOTREF(__pyx_t_1);
20546  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4901, __pyx_L1_error)
20547  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20548 
20549  /* "ctransportCoefficients.pyx":4947
20550  * <double*> dmom_v_ham_grad_p.data,
20551  * <double*> mom_w_ham.data,
20552  * <double*> dmom_w_ham_grad_p.data) # <<<<<<<<<<<<<<
20553  * def TwophaseStokes_LS_SO_2D_Evaluate(const double eps,
20554  * const double rho_0,
20555  */
20556  TwophaseNavierStokes_LS_SO_3D_Evaluate(__pyx_t_2, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((double *)__pyx_v_g->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_p->data), ((double *)__pyx_v_grad_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_w->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_v_acc_v->data), ((double *)__pyx_v_mom_w_acc->data), ((double *)__pyx_v_dmom_w_acc_w->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_u->data), ((double *)__pyx_v_dmass_adv_v->data), ((double *)__pyx_v_dmass_adv_w->data), ((double *)__pyx_v_mom_u_adv->data), ((double *)__pyx_v_dmom_u_adv_u->data), ((double *)__pyx_v_dmom_u_adv_v->data), ((double *)__pyx_v_dmom_u_adv_w->data), ((double *)__pyx_v_mom_v_adv->data), ((double *)__pyx_v_dmom_v_adv_u->data), ((double *)__pyx_v_dmom_v_adv_v->data), ((double *)__pyx_v_dmom_v_adv_w->data), ((double *)__pyx_v_mom_w_adv->data), ((double *)__pyx_v_dmom_w_adv_u->data), ((double *)__pyx_v_dmom_w_adv_v->data), ((double *)__pyx_v_dmom_w_adv_w->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_w_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_mom_w_source->data), ((double *)__pyx_v_mom_u_ham->data), ((double *)__pyx_v_dmom_u_ham_grad_p->data), ((double *)__pyx_v_mom_v_ham->data), ((double *)__pyx_v_dmom_v_ham_grad_p->data), ((double *)__pyx_v_mom_w_ham->data), ((double *)__pyx_v_dmom_w_ham_grad_p->data));
20557 
20558  /* "ctransportCoefficients.pyx":4855
20559  * <double*> mom_w_ham.data,
20560  * <double*> dmom_w_ham_grad_p.data)
20561  * def TwophaseNavierStokes_LS_SO_3D_Evaluate(const double eps, # <<<<<<<<<<<<<<
20562  * const double rho_0,
20563  * const double nu_0,
20564  */
20565 
20566  /* function exit code */
20567  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
20568  goto __pyx_L0;
20569  __pyx_L1_error:;
20570  __Pyx_XDECREF(__pyx_t_1);
20571  __Pyx_AddTraceback("ctransportCoefficients.TwophaseNavierStokes_LS_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
20572  __pyx_r = NULL;
20573  __pyx_L0:;
20574  __Pyx_XGIVEREF(__pyx_r);
20575  __Pyx_RefNannyFinishContext();
20576  return __pyx_r;
20577 }
20578 
20579 /* "ctransportCoefficients.pyx":4948
20580  * <double*> mom_w_ham.data,
20581  * <double*> dmom_w_ham_grad_p.data)
20582  * def TwophaseStokes_LS_SO_2D_Evaluate(const double eps, # <<<<<<<<<<<<<<
20583  * const double rho_0,
20584  * const double nu_0,
20585  */
20586 
20587 /* Python wrapper */
20588 static PyObject *__pyx_pw_22ctransportCoefficients_97TwophaseStokes_LS_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
20589 static PyMethodDef __pyx_mdef_22ctransportCoefficients_97TwophaseStokes_LS_SO_2D_Evaluate = {"TwophaseStokes_LS_SO_2D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_97TwophaseStokes_LS_SO_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
20590 static PyObject *__pyx_pw_22ctransportCoefficients_97TwophaseStokes_LS_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
20591  double __pyx_v_eps;
20592  double __pyx_v_rho_0;
20593  double __pyx_v_nu_0;
20594  double __pyx_v_rho_1;
20595  double __pyx_v_nu_1;
20596  PyArrayObject *__pyx_v_g = 0;
20597  PyArrayObject *__pyx_v_phi = 0;
20598  PyArrayObject *__pyx_v_p = 0;
20599  PyArrayObject *__pyx_v_grad_p = 0;
20600  PyArrayObject *__pyx_v_u = 0;
20601  PyArrayObject *__pyx_v_v = 0;
20602  PyArrayObject *__pyx_v_mom_u_acc = 0;
20603  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
20604  PyArrayObject *__pyx_v_mom_v_acc = 0;
20605  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
20606  PyArrayObject *__pyx_v_mass_adv = 0;
20607  PyArrayObject *__pyx_v_dmass_adv_u = 0;
20608  PyArrayObject *__pyx_v_dmass_adv_v = 0;
20609  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
20610  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
20611  PyArrayObject *__pyx_v_mom_u_source = 0;
20612  PyArrayObject *__pyx_v_mom_v_source = 0;
20613  PyArrayObject *__pyx_v_mom_u_ham = 0;
20614  PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
20615  PyArrayObject *__pyx_v_mom_v_ham = 0;
20616  PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
20617  int __pyx_lineno = 0;
20618  const char *__pyx_filename = NULL;
20619  int __pyx_clineno = 0;
20620  PyObject *__pyx_r = 0;
20621  __Pyx_RefNannyDeclarations
20622  __Pyx_RefNannySetupContext("TwophaseStokes_LS_SO_2D_Evaluate (wrapper)", 0);
20623  {
20624  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,0};
20625  PyObject* values[26] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
20626  if (unlikely(__pyx_kwds)) {
20627  Py_ssize_t kw_args;
20628  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
20629  switch (pos_args) {
20630  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
20631  CYTHON_FALLTHROUGH;
20632  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
20633  CYTHON_FALLTHROUGH;
20634  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
20635  CYTHON_FALLTHROUGH;
20636  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
20637  CYTHON_FALLTHROUGH;
20638  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
20639  CYTHON_FALLTHROUGH;
20640  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
20641  CYTHON_FALLTHROUGH;
20642  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
20643  CYTHON_FALLTHROUGH;
20644  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
20645  CYTHON_FALLTHROUGH;
20646  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
20647  CYTHON_FALLTHROUGH;
20648  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
20649  CYTHON_FALLTHROUGH;
20650  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
20651  CYTHON_FALLTHROUGH;
20652  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
20653  CYTHON_FALLTHROUGH;
20654  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
20655  CYTHON_FALLTHROUGH;
20656  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
20657  CYTHON_FALLTHROUGH;
20658  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
20659  CYTHON_FALLTHROUGH;
20660  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
20661  CYTHON_FALLTHROUGH;
20662  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
20663  CYTHON_FALLTHROUGH;
20664  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
20665  CYTHON_FALLTHROUGH;
20666  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
20667  CYTHON_FALLTHROUGH;
20668  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
20669  CYTHON_FALLTHROUGH;
20670  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
20671  CYTHON_FALLTHROUGH;
20672  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
20673  CYTHON_FALLTHROUGH;
20674  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
20675  CYTHON_FALLTHROUGH;
20676  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
20677  CYTHON_FALLTHROUGH;
20678  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
20679  CYTHON_FALLTHROUGH;
20680  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
20681  CYTHON_FALLTHROUGH;
20682  case 0: break;
20683  default: goto __pyx_L5_argtuple_error;
20684  }
20685  kw_args = PyDict_Size(__pyx_kwds);
20686  switch (pos_args) {
20687  case 0:
20688  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
20689  else goto __pyx_L5_argtuple_error;
20690  CYTHON_FALLTHROUGH;
20691  case 1:
20692  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
20693  else {
20694  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 1); __PYX_ERR(0, 4948, __pyx_L3_error)
20695  }
20696  CYTHON_FALLTHROUGH;
20697  case 2:
20698  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
20699  else {
20700  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 2); __PYX_ERR(0, 4948, __pyx_L3_error)
20701  }
20702  CYTHON_FALLTHROUGH;
20703  case 3:
20704  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
20705  else {
20706  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 3); __PYX_ERR(0, 4948, __pyx_L3_error)
20707  }
20708  CYTHON_FALLTHROUGH;
20709  case 4:
20710  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
20711  else {
20712  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 4); __PYX_ERR(0, 4948, __pyx_L3_error)
20713  }
20714  CYTHON_FALLTHROUGH;
20715  case 5:
20716  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
20717  else {
20718  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 5); __PYX_ERR(0, 4948, __pyx_L3_error)
20719  }
20720  CYTHON_FALLTHROUGH;
20721  case 6:
20722  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
20723  else {
20724  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 6); __PYX_ERR(0, 4948, __pyx_L3_error)
20725  }
20726  CYTHON_FALLTHROUGH;
20727  case 7:
20728  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
20729  else {
20730  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 7); __PYX_ERR(0, 4948, __pyx_L3_error)
20731  }
20732  CYTHON_FALLTHROUGH;
20733  case 8:
20734  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
20735  else {
20736  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 8); __PYX_ERR(0, 4948, __pyx_L3_error)
20737  }
20738  CYTHON_FALLTHROUGH;
20739  case 9:
20740  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
20741  else {
20742  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 9); __PYX_ERR(0, 4948, __pyx_L3_error)
20743  }
20744  CYTHON_FALLTHROUGH;
20745  case 10:
20746  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
20747  else {
20748  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 10); __PYX_ERR(0, 4948, __pyx_L3_error)
20749  }
20750  CYTHON_FALLTHROUGH;
20751  case 11:
20752  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
20753  else {
20754  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 11); __PYX_ERR(0, 4948, __pyx_L3_error)
20755  }
20756  CYTHON_FALLTHROUGH;
20757  case 12:
20758  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
20759  else {
20760  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 12); __PYX_ERR(0, 4948, __pyx_L3_error)
20761  }
20762  CYTHON_FALLTHROUGH;
20763  case 13:
20764  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
20765  else {
20766  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 13); __PYX_ERR(0, 4948, __pyx_L3_error)
20767  }
20768  CYTHON_FALLTHROUGH;
20769  case 14:
20770  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
20771  else {
20772  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 14); __PYX_ERR(0, 4948, __pyx_L3_error)
20773  }
20774  CYTHON_FALLTHROUGH;
20775  case 15:
20776  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
20777  else {
20778  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 15); __PYX_ERR(0, 4948, __pyx_L3_error)
20779  }
20780  CYTHON_FALLTHROUGH;
20781  case 16:
20782  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
20783  else {
20784  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 16); __PYX_ERR(0, 4948, __pyx_L3_error)
20785  }
20786  CYTHON_FALLTHROUGH;
20787  case 17:
20788  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
20789  else {
20790  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 17); __PYX_ERR(0, 4948, __pyx_L3_error)
20791  }
20792  CYTHON_FALLTHROUGH;
20793  case 18:
20794  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
20795  else {
20796  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 18); __PYX_ERR(0, 4948, __pyx_L3_error)
20797  }
20798  CYTHON_FALLTHROUGH;
20799  case 19:
20800  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
20801  else {
20802  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 19); __PYX_ERR(0, 4948, __pyx_L3_error)
20803  }
20804  CYTHON_FALLTHROUGH;
20805  case 20:
20806  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
20807  else {
20808  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 20); __PYX_ERR(0, 4948, __pyx_L3_error)
20809  }
20810  CYTHON_FALLTHROUGH;
20811  case 21:
20812  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
20813  else {
20814  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 21); __PYX_ERR(0, 4948, __pyx_L3_error)
20815  }
20816  CYTHON_FALLTHROUGH;
20817  case 22:
20818  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
20819  else {
20820  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 22); __PYX_ERR(0, 4948, __pyx_L3_error)
20821  }
20822  CYTHON_FALLTHROUGH;
20823  case 23:
20824  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
20825  else {
20826  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 23); __PYX_ERR(0, 4948, __pyx_L3_error)
20827  }
20828  CYTHON_FALLTHROUGH;
20829  case 24:
20830  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
20831  else {
20832  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 24); __PYX_ERR(0, 4948, __pyx_L3_error)
20833  }
20834  CYTHON_FALLTHROUGH;
20835  case 25:
20836  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
20837  else {
20838  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 25); __PYX_ERR(0, 4948, __pyx_L3_error)
20839  }
20840  }
20841  if (unlikely(kw_args > 0)) {
20842  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "TwophaseStokes_LS_SO_2D_Evaluate") < 0)) __PYX_ERR(0, 4948, __pyx_L3_error)
20843  }
20844  } else if (PyTuple_GET_SIZE(__pyx_args) != 26) {
20845  goto __pyx_L5_argtuple_error;
20846  } else {
20847  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
20848  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
20849  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
20850  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
20851  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
20852  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
20853  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
20854  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
20855  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
20856  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
20857  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
20858  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
20859  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
20860  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
20861  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
20862  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
20863  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
20864  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
20865  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
20866  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
20867  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
20868  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
20869  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
20870  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
20871  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
20872  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
20873  }
20874  __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4948, __pyx_L3_error)
20875  __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_rho_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4949, __pyx_L3_error)
20876  __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_nu_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4950, __pyx_L3_error)
20877  __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_rho_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4951, __pyx_L3_error)
20878  __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_nu_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4952, __pyx_L3_error)
20879  __pyx_v_g = ((PyArrayObject *)values[5]);
20880  __pyx_v_phi = ((PyArrayObject *)values[6]);
20881  __pyx_v_p = ((PyArrayObject *)values[7]);
20882  __pyx_v_grad_p = ((PyArrayObject *)values[8]);
20883  __pyx_v_u = ((PyArrayObject *)values[9]);
20884  __pyx_v_v = ((PyArrayObject *)values[10]);
20885  __pyx_v_mom_u_acc = ((PyArrayObject *)values[11]);
20886  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[12]);
20887  __pyx_v_mom_v_acc = ((PyArrayObject *)values[13]);
20888  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[14]);
20889  __pyx_v_mass_adv = ((PyArrayObject *)values[15]);
20890  __pyx_v_dmass_adv_u = ((PyArrayObject *)values[16]);
20891  __pyx_v_dmass_adv_v = ((PyArrayObject *)values[17]);
20892  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[18]);
20893  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[19]);
20894  __pyx_v_mom_u_source = ((PyArrayObject *)values[20]);
20895  __pyx_v_mom_v_source = ((PyArrayObject *)values[21]);
20896  __pyx_v_mom_u_ham = ((PyArrayObject *)values[22]);
20897  __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[23]);
20898  __pyx_v_mom_v_ham = ((PyArrayObject *)values[24]);
20899  __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[25]);
20900  }
20901  goto __pyx_L4_argument_unpacking_done;
20902  __pyx_L5_argtuple_error:;
20903  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4948, __pyx_L3_error)
20904  __pyx_L3_error:;
20905  __Pyx_AddTraceback("ctransportCoefficients.TwophaseStokes_LS_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
20906  __Pyx_RefNannyFinishContext();
20907  return NULL;
20908  __pyx_L4_argument_unpacking_done:;
20909  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 4953, __pyx_L1_error)
20910  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 4954, __pyx_L1_error)
20911  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 4955, __pyx_L1_error)
20912  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1, "grad_p", 0))) __PYX_ERR(0, 4956, __pyx_L1_error)
20913  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 4957, __pyx_L1_error)
20914  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 4958, __pyx_L1_error)
20915  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 4959, __pyx_L1_error)
20916  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 4960, __pyx_L1_error)
20917  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 4961, __pyx_L1_error)
20918  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 4962, __pyx_L1_error)
20919  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 4963, __pyx_L1_error)
20920  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_u", 0))) __PYX_ERR(0, 4964, __pyx_L1_error)
20921  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_v", 0))) __PYX_ERR(0, 4965, __pyx_L1_error)
20922  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 4966, __pyx_L1_error)
20923  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 4967, __pyx_L1_error)
20924  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 4968, __pyx_L1_error)
20925  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 4969, __pyx_L1_error)
20926  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_u_ham", 0))) __PYX_ERR(0, 4970, __pyx_L1_error)
20927  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 4971, __pyx_L1_error)
20928  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_v_ham", 0))) __PYX_ERR(0, 4972, __pyx_L1_error)
20929  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 4973, __pyx_L1_error)
20930  __pyx_r = __pyx_pf_22ctransportCoefficients_96TwophaseStokes_LS_SO_2D_Evaluate(__pyx_self, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_g, __pyx_v_phi, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p);
20931 
20932  /* function exit code */
20933  goto __pyx_L0;
20934  __pyx_L1_error:;
20935  __pyx_r = NULL;
20936  __pyx_L0:;
20937  __Pyx_RefNannyFinishContext();
20938  return __pyx_r;
20939 }
20940 
20941 static PyObject *__pyx_pf_22ctransportCoefficients_96TwophaseStokes_LS_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p) {
20942  PyObject *__pyx_r = NULL;
20943  __Pyx_RefNannyDeclarations
20944  PyObject *__pyx_t_1 = NULL;
20945  int __pyx_t_2;
20946  int __pyx_lineno = 0;
20947  const char *__pyx_filename = NULL;
20948  int __pyx_clineno = 0;
20949  __Pyx_RefNannySetupContext("TwophaseStokes_LS_SO_2D_Evaluate", 0);
20950 
20951  /* "ctransportCoefficients.pyx":4974
20952  * np.ndarray mom_v_ham,
20953  * np.ndarray dmom_v_ham_grad_p):
20954  * cTwophaseStokes_LS_SO_2D_Evaluate(p.size, # <<<<<<<<<<<<<<
20955  * eps,
20956  * rho_0,
20957  */
20958  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4974, __pyx_L1_error)
20959  __Pyx_GOTREF(__pyx_t_1);
20960  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4974, __pyx_L1_error)
20961  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20962 
20963  /* "ctransportCoefficients.pyx":5000
20964  * <double*> dmom_u_ham_grad_p.data,
20965  * <double*> mom_v_ham.data,
20966  * <double*> dmom_v_ham_grad_p.data) # <<<<<<<<<<<<<<
20967  * def TwophaseStokes_LS_SO_3D_Evaluate(const double eps,
20968  * const double rho_0,
20969  */
20970  TwophaseStokes_LS_SO_2D_Evaluate(__pyx_t_2, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((double *)__pyx_v_g->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_p->data), ((double *)__pyx_v_grad_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_v_acc_v->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_u->data), ((double *)__pyx_v_dmass_adv_v->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_mom_u_ham->data), ((double *)__pyx_v_dmom_u_ham_grad_p->data), ((double *)__pyx_v_mom_v_ham->data), ((double *)__pyx_v_dmom_v_ham_grad_p->data));
20971 
20972  /* "ctransportCoefficients.pyx":4948
20973  * <double*> mom_w_ham.data,
20974  * <double*> dmom_w_ham_grad_p.data)
20975  * def TwophaseStokes_LS_SO_2D_Evaluate(const double eps, # <<<<<<<<<<<<<<
20976  * const double rho_0,
20977  * const double nu_0,
20978  */
20979 
20980  /* function exit code */
20981  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
20982  goto __pyx_L0;
20983  __pyx_L1_error:;
20984  __Pyx_XDECREF(__pyx_t_1);
20985  __Pyx_AddTraceback("ctransportCoefficients.TwophaseStokes_LS_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
20986  __pyx_r = NULL;
20987  __pyx_L0:;
20988  __Pyx_XGIVEREF(__pyx_r);
20989  __Pyx_RefNannyFinishContext();
20990  return __pyx_r;
20991 }
20992 
20993 /* "ctransportCoefficients.pyx":5001
20994  * <double*> mom_v_ham.data,
20995  * <double*> dmom_v_ham_grad_p.data)
20996  * def TwophaseStokes_LS_SO_3D_Evaluate(const double eps, # <<<<<<<<<<<<<<
20997  * const double rho_0,
20998  * const double nu_0,
20999  */
21000 
21001 /* Python wrapper */
21002 static PyObject *__pyx_pw_22ctransportCoefficients_99TwophaseStokes_LS_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
21003 static PyMethodDef __pyx_mdef_22ctransportCoefficients_99TwophaseStokes_LS_SO_3D_Evaluate = {"TwophaseStokes_LS_SO_3D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_99TwophaseStokes_LS_SO_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
21004 static PyObject *__pyx_pw_22ctransportCoefficients_99TwophaseStokes_LS_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
21005  double __pyx_v_eps;
21006  double __pyx_v_rho_0;
21007  double __pyx_v_nu_0;
21008  double __pyx_v_rho_1;
21009  double __pyx_v_nu_1;
21010  PyArrayObject *__pyx_v_g = 0;
21011  PyArrayObject *__pyx_v_phi = 0;
21012  PyArrayObject *__pyx_v_p = 0;
21013  PyArrayObject *__pyx_v_grad_p = 0;
21014  PyArrayObject *__pyx_v_u = 0;
21015  PyArrayObject *__pyx_v_v = 0;
21016  PyArrayObject *__pyx_v_w = 0;
21017  PyArrayObject *__pyx_v_mom_u_acc = 0;
21018  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
21019  PyArrayObject *__pyx_v_mom_v_acc = 0;
21020  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
21021  PyArrayObject *__pyx_v_mom_w_acc = 0;
21022  PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
21023  PyArrayObject *__pyx_v_mass_adv = 0;
21024  PyArrayObject *__pyx_v_dmass_adv_u = 0;
21025  PyArrayObject *__pyx_v_dmass_adv_v = 0;
21026  PyArrayObject *__pyx_v_dmass_adv_w = 0;
21027  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
21028  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
21029  PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
21030  PyArrayObject *__pyx_v_mom_u_source = 0;
21031  PyArrayObject *__pyx_v_mom_v_source = 0;
21032  PyArrayObject *__pyx_v_mom_w_source = 0;
21033  PyArrayObject *__pyx_v_mom_u_ham = 0;
21034  PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
21035  PyArrayObject *__pyx_v_mom_v_ham = 0;
21036  PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
21037  PyArrayObject *__pyx_v_mom_w_ham = 0;
21038  PyArrayObject *__pyx_v_dmom_w_ham_grad_p = 0;
21039  int __pyx_lineno = 0;
21040  const char *__pyx_filename = NULL;
21041  int __pyx_clineno = 0;
21042  PyObject *__pyx_r = 0;
21043  __Pyx_RefNannyDeclarations
21044  __Pyx_RefNannySetupContext("TwophaseStokes_LS_SO_3D_Evaluate (wrapper)", 0);
21045  {
21046  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_w_acc_w,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_dmass_adv_w,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,&__pyx_n_s_mom_w_ham,&__pyx_n_s_dmom_w_ham_grad_p,0};
21047  PyObject* values[34] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
21048  if (unlikely(__pyx_kwds)) {
21049  Py_ssize_t kw_args;
21050  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
21051  switch (pos_args) {
21052  case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
21053  CYTHON_FALLTHROUGH;
21054  case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
21055  CYTHON_FALLTHROUGH;
21056  case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
21057  CYTHON_FALLTHROUGH;
21058  case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
21059  CYTHON_FALLTHROUGH;
21060  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
21061  CYTHON_FALLTHROUGH;
21062  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
21063  CYTHON_FALLTHROUGH;
21064  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
21065  CYTHON_FALLTHROUGH;
21066  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
21067  CYTHON_FALLTHROUGH;
21068  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
21069  CYTHON_FALLTHROUGH;
21070  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
21071  CYTHON_FALLTHROUGH;
21072  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
21073  CYTHON_FALLTHROUGH;
21074  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
21075  CYTHON_FALLTHROUGH;
21076  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
21077  CYTHON_FALLTHROUGH;
21078  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
21079  CYTHON_FALLTHROUGH;
21080  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
21081  CYTHON_FALLTHROUGH;
21082  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
21083  CYTHON_FALLTHROUGH;
21084  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
21085  CYTHON_FALLTHROUGH;
21086  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
21087  CYTHON_FALLTHROUGH;
21088  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
21089  CYTHON_FALLTHROUGH;
21090  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
21091  CYTHON_FALLTHROUGH;
21092  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
21093  CYTHON_FALLTHROUGH;
21094  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
21095  CYTHON_FALLTHROUGH;
21096  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
21097  CYTHON_FALLTHROUGH;
21098  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
21099  CYTHON_FALLTHROUGH;
21100  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
21101  CYTHON_FALLTHROUGH;
21102  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
21103  CYTHON_FALLTHROUGH;
21104  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
21105  CYTHON_FALLTHROUGH;
21106  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
21107  CYTHON_FALLTHROUGH;
21108  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
21109  CYTHON_FALLTHROUGH;
21110  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
21111  CYTHON_FALLTHROUGH;
21112  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
21113  CYTHON_FALLTHROUGH;
21114  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
21115  CYTHON_FALLTHROUGH;
21116  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
21117  CYTHON_FALLTHROUGH;
21118  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
21119  CYTHON_FALLTHROUGH;
21120  case 0: break;
21121  default: goto __pyx_L5_argtuple_error;
21122  }
21123  kw_args = PyDict_Size(__pyx_kwds);
21124  switch (pos_args) {
21125  case 0:
21126  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
21127  else goto __pyx_L5_argtuple_error;
21128  CYTHON_FALLTHROUGH;
21129  case 1:
21130  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
21131  else {
21132  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 1); __PYX_ERR(0, 5001, __pyx_L3_error)
21133  }
21134  CYTHON_FALLTHROUGH;
21135  case 2:
21136  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
21137  else {
21138  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 2); __PYX_ERR(0, 5001, __pyx_L3_error)
21139  }
21140  CYTHON_FALLTHROUGH;
21141  case 3:
21142  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
21143  else {
21144  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 3); __PYX_ERR(0, 5001, __pyx_L3_error)
21145  }
21146  CYTHON_FALLTHROUGH;
21147  case 4:
21148  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
21149  else {
21150  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 4); __PYX_ERR(0, 5001, __pyx_L3_error)
21151  }
21152  CYTHON_FALLTHROUGH;
21153  case 5:
21154  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
21155  else {
21156  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 5); __PYX_ERR(0, 5001, __pyx_L3_error)
21157  }
21158  CYTHON_FALLTHROUGH;
21159  case 6:
21160  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
21161  else {
21162  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 6); __PYX_ERR(0, 5001, __pyx_L3_error)
21163  }
21164  CYTHON_FALLTHROUGH;
21165  case 7:
21166  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
21167  else {
21168  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 7); __PYX_ERR(0, 5001, __pyx_L3_error)
21169  }
21170  CYTHON_FALLTHROUGH;
21171  case 8:
21172  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
21173  else {
21174  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 8); __PYX_ERR(0, 5001, __pyx_L3_error)
21175  }
21176  CYTHON_FALLTHROUGH;
21177  case 9:
21178  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
21179  else {
21180  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 9); __PYX_ERR(0, 5001, __pyx_L3_error)
21181  }
21182  CYTHON_FALLTHROUGH;
21183  case 10:
21184  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
21185  else {
21186  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 10); __PYX_ERR(0, 5001, __pyx_L3_error)
21187  }
21188  CYTHON_FALLTHROUGH;
21189  case 11:
21190  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
21191  else {
21192  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 11); __PYX_ERR(0, 5001, __pyx_L3_error)
21193  }
21194  CYTHON_FALLTHROUGH;
21195  case 12:
21196  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
21197  else {
21198  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 12); __PYX_ERR(0, 5001, __pyx_L3_error)
21199  }
21200  CYTHON_FALLTHROUGH;
21201  case 13:
21202  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
21203  else {
21204  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 13); __PYX_ERR(0, 5001, __pyx_L3_error)
21205  }
21206  CYTHON_FALLTHROUGH;
21207  case 14:
21208  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
21209  else {
21210  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 14); __PYX_ERR(0, 5001, __pyx_L3_error)
21211  }
21212  CYTHON_FALLTHROUGH;
21213  case 15:
21214  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
21215  else {
21216  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 15); __PYX_ERR(0, 5001, __pyx_L3_error)
21217  }
21218  CYTHON_FALLTHROUGH;
21219  case 16:
21220  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
21221  else {
21222  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 16); __PYX_ERR(0, 5001, __pyx_L3_error)
21223  }
21224  CYTHON_FALLTHROUGH;
21225  case 17:
21226  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
21227  else {
21228  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 17); __PYX_ERR(0, 5001, __pyx_L3_error)
21229  }
21230  CYTHON_FALLTHROUGH;
21231  case 18:
21232  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
21233  else {
21234  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 18); __PYX_ERR(0, 5001, __pyx_L3_error)
21235  }
21236  CYTHON_FALLTHROUGH;
21237  case 19:
21238  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
21239  else {
21240  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 19); __PYX_ERR(0, 5001, __pyx_L3_error)
21241  }
21242  CYTHON_FALLTHROUGH;
21243  case 20:
21244  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
21245  else {
21246  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 20); __PYX_ERR(0, 5001, __pyx_L3_error)
21247  }
21248  CYTHON_FALLTHROUGH;
21249  case 21:
21250  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_w)) != 0)) kw_args--;
21251  else {
21252  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 21); __PYX_ERR(0, 5001, __pyx_L3_error)
21253  }
21254  CYTHON_FALLTHROUGH;
21255  case 22:
21256  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
21257  else {
21258  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 22); __PYX_ERR(0, 5001, __pyx_L3_error)
21259  }
21260  CYTHON_FALLTHROUGH;
21261  case 23:
21262  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
21263  else {
21264  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 23); __PYX_ERR(0, 5001, __pyx_L3_error)
21265  }
21266  CYTHON_FALLTHROUGH;
21267  case 24:
21268  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
21269  else {
21270  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 24); __PYX_ERR(0, 5001, __pyx_L3_error)
21271  }
21272  CYTHON_FALLTHROUGH;
21273  case 25:
21274  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
21275  else {
21276  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 25); __PYX_ERR(0, 5001, __pyx_L3_error)
21277  }
21278  CYTHON_FALLTHROUGH;
21279  case 26:
21280  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
21281  else {
21282  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 26); __PYX_ERR(0, 5001, __pyx_L3_error)
21283  }
21284  CYTHON_FALLTHROUGH;
21285  case 27:
21286  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
21287  else {
21288  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 27); __PYX_ERR(0, 5001, __pyx_L3_error)
21289  }
21290  CYTHON_FALLTHROUGH;
21291  case 28:
21292  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
21293  else {
21294  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 28); __PYX_ERR(0, 5001, __pyx_L3_error)
21295  }
21296  CYTHON_FALLTHROUGH;
21297  case 29:
21298  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
21299  else {
21300  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 29); __PYX_ERR(0, 5001, __pyx_L3_error)
21301  }
21302  CYTHON_FALLTHROUGH;
21303  case 30:
21304  if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
21305  else {
21306  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 30); __PYX_ERR(0, 5001, __pyx_L3_error)
21307  }
21308  CYTHON_FALLTHROUGH;
21309  case 31:
21310  if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
21311  else {
21312  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 31); __PYX_ERR(0, 5001, __pyx_L3_error)
21313  }
21314  CYTHON_FALLTHROUGH;
21315  case 32:
21316  if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_ham)) != 0)) kw_args--;
21317  else {
21318  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 32); __PYX_ERR(0, 5001, __pyx_L3_error)
21319  }
21320  CYTHON_FALLTHROUGH;
21321  case 33:
21322  if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_ham_grad_p)) != 0)) kw_args--;
21323  else {
21324  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 33); __PYX_ERR(0, 5001, __pyx_L3_error)
21325  }
21326  }
21327  if (unlikely(kw_args > 0)) {
21328  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "TwophaseStokes_LS_SO_3D_Evaluate") < 0)) __PYX_ERR(0, 5001, __pyx_L3_error)
21329  }
21330  } else if (PyTuple_GET_SIZE(__pyx_args) != 34) {
21331  goto __pyx_L5_argtuple_error;
21332  } else {
21333  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
21334  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
21335  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
21336  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
21337  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
21338  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
21339  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
21340  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
21341  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
21342  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
21343  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
21344  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
21345  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
21346  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
21347  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
21348  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
21349  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
21350  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
21351  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
21352  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
21353  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
21354  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
21355  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
21356  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
21357  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
21358  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
21359  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
21360  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
21361  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
21362  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
21363  values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
21364  values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
21365  values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
21366  values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
21367  }
21368  __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5001, __pyx_L3_error)
21369  __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_rho_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5002, __pyx_L3_error)
21370  __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_nu_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5003, __pyx_L3_error)
21371  __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_rho_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5004, __pyx_L3_error)
21372  __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_nu_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5005, __pyx_L3_error)
21373  __pyx_v_g = ((PyArrayObject *)values[5]);
21374  __pyx_v_phi = ((PyArrayObject *)values[6]);
21375  __pyx_v_p = ((PyArrayObject *)values[7]);
21376  __pyx_v_grad_p = ((PyArrayObject *)values[8]);
21377  __pyx_v_u = ((PyArrayObject *)values[9]);
21378  __pyx_v_v = ((PyArrayObject *)values[10]);
21379  __pyx_v_w = ((PyArrayObject *)values[11]);
21380  __pyx_v_mom_u_acc = ((PyArrayObject *)values[12]);
21381  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[13]);
21382  __pyx_v_mom_v_acc = ((PyArrayObject *)values[14]);
21383  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[15]);
21384  __pyx_v_mom_w_acc = ((PyArrayObject *)values[16]);
21385  __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[17]);
21386  __pyx_v_mass_adv = ((PyArrayObject *)values[18]);
21387  __pyx_v_dmass_adv_u = ((PyArrayObject *)values[19]);
21388  __pyx_v_dmass_adv_v = ((PyArrayObject *)values[20]);
21389  __pyx_v_dmass_adv_w = ((PyArrayObject *)values[21]);
21390  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[22]);
21391  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[23]);
21392  __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[24]);
21393  __pyx_v_mom_u_source = ((PyArrayObject *)values[25]);
21394  __pyx_v_mom_v_source = ((PyArrayObject *)values[26]);
21395  __pyx_v_mom_w_source = ((PyArrayObject *)values[27]);
21396  __pyx_v_mom_u_ham = ((PyArrayObject *)values[28]);
21397  __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[29]);
21398  __pyx_v_mom_v_ham = ((PyArrayObject *)values[30]);
21399  __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[31]);
21400  __pyx_v_mom_w_ham = ((PyArrayObject *)values[32]);
21401  __pyx_v_dmom_w_ham_grad_p = ((PyArrayObject *)values[33]);
21402  }
21403  goto __pyx_L4_argument_unpacking_done;
21404  __pyx_L5_argtuple_error:;
21405  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5001, __pyx_L3_error)
21406  __pyx_L3_error:;
21407  __Pyx_AddTraceback("ctransportCoefficients.TwophaseStokes_LS_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
21408  __Pyx_RefNannyFinishContext();
21409  return NULL;
21410  __pyx_L4_argument_unpacking_done:;
21411  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 5006, __pyx_L1_error)
21412  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 5007, __pyx_L1_error)
21413  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 5008, __pyx_L1_error)
21414  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1, "grad_p", 0))) __PYX_ERR(0, 5009, __pyx_L1_error)
21415  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 5010, __pyx_L1_error)
21416  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 5011, __pyx_L1_error)
21417  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1, "w", 0))) __PYX_ERR(0, 5012, __pyx_L1_error)
21418  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 5013, __pyx_L1_error)
21419  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 5014, __pyx_L1_error)
21420  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 5015, __pyx_L1_error)
21421  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 5016, __pyx_L1_error)
21422  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_w_acc", 0))) __PYX_ERR(0, 5017, __pyx_L1_error)
21423  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_acc_w", 0))) __PYX_ERR(0, 5018, __pyx_L1_error)
21424  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 5019, __pyx_L1_error)
21425  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_u", 0))) __PYX_ERR(0, 5020, __pyx_L1_error)
21426  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_v", 0))) __PYX_ERR(0, 5021, __pyx_L1_error)
21427  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_w", 0))) __PYX_ERR(0, 5022, __pyx_L1_error)
21428  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 5023, __pyx_L1_error)
21429  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 5024, __pyx_L1_error)
21430  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_w_diff_ten", 0))) __PYX_ERR(0, 5025, __pyx_L1_error)
21431  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 5026, __pyx_L1_error)
21432  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 5027, __pyx_L1_error)
21433  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1, "mom_w_source", 0))) __PYX_ERR(0, 5028, __pyx_L1_error)
21434  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_u_ham", 0))) __PYX_ERR(0, 5029, __pyx_L1_error)
21435  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 5030, __pyx_L1_error)
21436  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_v_ham", 0))) __PYX_ERR(0, 5031, __pyx_L1_error)
21437  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 5032, __pyx_L1_error)
21438  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_w_ham", 0))) __PYX_ERR(0, 5033, __pyx_L1_error)
21439  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_ham_grad_p", 0))) __PYX_ERR(0, 5034, __pyx_L1_error)
21440  __pyx_r = __pyx_pf_22ctransportCoefficients_98TwophaseStokes_LS_SO_3D_Evaluate(__pyx_self, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_g, __pyx_v_phi, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mom_w_acc, __pyx_v_dmom_w_acc_w, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_dmass_adv_w, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p, __pyx_v_mom_w_ham, __pyx_v_dmom_w_ham_grad_p);
21441 
21442  /* function exit code */
21443  goto __pyx_L0;
21444  __pyx_L1_error:;
21445  __pyx_r = NULL;
21446  __pyx_L0:;
21447  __Pyx_RefNannyFinishContext();
21448  return __pyx_r;
21449 }
21450 
21451 static PyObject *__pyx_pf_22ctransportCoefficients_98TwophaseStokes_LS_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p) {
21452  PyObject *__pyx_r = NULL;
21453  __Pyx_RefNannyDeclarations
21454  PyObject *__pyx_t_1 = NULL;
21455  int __pyx_t_2;
21456  int __pyx_lineno = 0;
21457  const char *__pyx_filename = NULL;
21458  int __pyx_clineno = 0;
21459  __Pyx_RefNannySetupContext("TwophaseStokes_LS_SO_3D_Evaluate", 0);
21460 
21461  /* "ctransportCoefficients.pyx":5035
21462  * np.ndarray mom_w_ham,
21463  * np.ndarray dmom_w_ham_grad_p):
21464  * cTwophaseStokes_LS_SO_3D_Evaluate(p.size, # <<<<<<<<<<<<<<
21465  * eps,
21466  * rho_0,
21467  */
21468  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5035, __pyx_L1_error)
21469  __Pyx_GOTREF(__pyx_t_1);
21470  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5035, __pyx_L1_error)
21471  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
21472 
21473  /* "ctransportCoefficients.pyx":5069
21474  * <double*> dmom_v_ham_grad_p.data,
21475  * <double*> mom_w_ham.data,
21476  * <double*> dmom_w_ham_grad_p.data) # <<<<<<<<<<<<<<
21477  * def TwophaseNavierStokes_VOF_SO_2D_Evaluate(const double eps,
21478  * const double rho_0,
21479  */
21480  TwophaseStokes_LS_SO_3D_Evaluate(__pyx_t_2, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((double *)__pyx_v_g->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_p->data), ((double *)__pyx_v_grad_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_w->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_v_acc_v->data), ((double *)__pyx_v_mom_w_acc->data), ((double *)__pyx_v_dmom_w_acc_w->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_u->data), ((double *)__pyx_v_dmass_adv_v->data), ((double *)__pyx_v_dmass_adv_w->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_w_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_mom_w_source->data), ((double *)__pyx_v_mom_u_ham->data), ((double *)__pyx_v_dmom_u_ham_grad_p->data), ((double *)__pyx_v_mom_v_ham->data), ((double *)__pyx_v_dmom_v_ham_grad_p->data), ((double *)__pyx_v_mom_w_ham->data), ((double *)__pyx_v_dmom_w_ham_grad_p->data));
21481 
21482  /* "ctransportCoefficients.pyx":5001
21483  * <double*> mom_v_ham.data,
21484  * <double*> dmom_v_ham_grad_p.data)
21485  * def TwophaseStokes_LS_SO_3D_Evaluate(const double eps, # <<<<<<<<<<<<<<
21486  * const double rho_0,
21487  * const double nu_0,
21488  */
21489 
21490  /* function exit code */
21491  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
21492  goto __pyx_L0;
21493  __pyx_L1_error:;
21494  __Pyx_XDECREF(__pyx_t_1);
21495  __Pyx_AddTraceback("ctransportCoefficients.TwophaseStokes_LS_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
21496  __pyx_r = NULL;
21497  __pyx_L0:;
21498  __Pyx_XGIVEREF(__pyx_r);
21499  __Pyx_RefNannyFinishContext();
21500  return __pyx_r;
21501 }
21502 
21503 /* "ctransportCoefficients.pyx":5070
21504  * <double*> mom_w_ham.data,
21505  * <double*> dmom_w_ham_grad_p.data)
21506  * def TwophaseNavierStokes_VOF_SO_2D_Evaluate(const double eps, # <<<<<<<<<<<<<<
21507  * const double rho_0,
21508  * const double nu_0,
21509  */
21510 
21511 /* Python wrapper */
21512 static PyObject *__pyx_pw_22ctransportCoefficients_101TwophaseNavierStokes_VOF_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
21513 static PyMethodDef __pyx_mdef_22ctransportCoefficients_101TwophaseNavierStokes_VOF_SO_2D_Evaluate = {"TwophaseNavierStokes_VOF_SO_2D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_101TwophaseNavierStokes_VOF_SO_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
21514 static PyObject *__pyx_pw_22ctransportCoefficients_101TwophaseNavierStokes_VOF_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
21515  double __pyx_v_eps;
21516  double __pyx_v_rho_0;
21517  double __pyx_v_nu_0;
21518  double __pyx_v_rho_1;
21519  double __pyx_v_nu_1;
21520  PyArrayObject *__pyx_v_g = 0;
21521  PyArrayObject *__pyx_v_vof = 0;
21522  PyArrayObject *__pyx_v_p = 0;
21523  PyArrayObject *__pyx_v_grad_p = 0;
21524  PyArrayObject *__pyx_v_u = 0;
21525  PyArrayObject *__pyx_v_v = 0;
21526  PyArrayObject *__pyx_v_mom_u_acc = 0;
21527  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
21528  PyArrayObject *__pyx_v_mom_v_acc = 0;
21529  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
21530  PyArrayObject *__pyx_v_mass_adv = 0;
21531  PyArrayObject *__pyx_v_dmass_adv_u = 0;
21532  PyArrayObject *__pyx_v_dmass_adv_v = 0;
21533  PyArrayObject *__pyx_v_mom_u_adv = 0;
21534  PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
21535  PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
21536  PyArrayObject *__pyx_v_mom_v_adv = 0;
21537  PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
21538  PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
21539  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
21540  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
21541  PyArrayObject *__pyx_v_mom_u_source = 0;
21542  PyArrayObject *__pyx_v_mom_v_source = 0;
21543  PyArrayObject *__pyx_v_mom_u_ham = 0;
21544  PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
21545  PyArrayObject *__pyx_v_mom_v_ham = 0;
21546  PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
21547  int __pyx_lineno = 0;
21548  const char *__pyx_filename = NULL;
21549  int __pyx_clineno = 0;
21550  PyObject *__pyx_r = 0;
21551  __Pyx_RefNannyDeclarations
21552  __Pyx_RefNannySetupContext("TwophaseNavierStokes_VOF_SO_2D_Evaluate (wrapper)", 0);
21553  {
21554  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_g,&__pyx_n_s_vof,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,0};
21555  PyObject* values[32] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
21556  if (unlikely(__pyx_kwds)) {
21557  Py_ssize_t kw_args;
21558  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
21559  switch (pos_args) {
21560  case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
21561  CYTHON_FALLTHROUGH;
21562  case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
21563  CYTHON_FALLTHROUGH;
21564  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
21565  CYTHON_FALLTHROUGH;
21566  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
21567  CYTHON_FALLTHROUGH;
21568  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
21569  CYTHON_FALLTHROUGH;
21570  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
21571  CYTHON_FALLTHROUGH;
21572  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
21573  CYTHON_FALLTHROUGH;
21574  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
21575  CYTHON_FALLTHROUGH;
21576  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
21577  CYTHON_FALLTHROUGH;
21578  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
21579  CYTHON_FALLTHROUGH;
21580  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
21581  CYTHON_FALLTHROUGH;
21582  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
21583  CYTHON_FALLTHROUGH;
21584  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
21585  CYTHON_FALLTHROUGH;
21586  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
21587  CYTHON_FALLTHROUGH;
21588  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
21589  CYTHON_FALLTHROUGH;
21590  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
21591  CYTHON_FALLTHROUGH;
21592  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
21593  CYTHON_FALLTHROUGH;
21594  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
21595  CYTHON_FALLTHROUGH;
21596  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
21597  CYTHON_FALLTHROUGH;
21598  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
21599  CYTHON_FALLTHROUGH;
21600  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
21601  CYTHON_FALLTHROUGH;
21602  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
21603  CYTHON_FALLTHROUGH;
21604  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
21605  CYTHON_FALLTHROUGH;
21606  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
21607  CYTHON_FALLTHROUGH;
21608  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
21609  CYTHON_FALLTHROUGH;
21610  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
21611  CYTHON_FALLTHROUGH;
21612  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
21613  CYTHON_FALLTHROUGH;
21614  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
21615  CYTHON_FALLTHROUGH;
21616  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
21617  CYTHON_FALLTHROUGH;
21618  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
21619  CYTHON_FALLTHROUGH;
21620  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
21621  CYTHON_FALLTHROUGH;
21622  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
21623  CYTHON_FALLTHROUGH;
21624  case 0: break;
21625  default: goto __pyx_L5_argtuple_error;
21626  }
21627  kw_args = PyDict_Size(__pyx_kwds);
21628  switch (pos_args) {
21629  case 0:
21630  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
21631  else goto __pyx_L5_argtuple_error;
21632  CYTHON_FALLTHROUGH;
21633  case 1:
21634  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
21635  else {
21636  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 1); __PYX_ERR(0, 5070, __pyx_L3_error)
21637  }
21638  CYTHON_FALLTHROUGH;
21639  case 2:
21640  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
21641  else {
21642  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 2); __PYX_ERR(0, 5070, __pyx_L3_error)
21643  }
21644  CYTHON_FALLTHROUGH;
21645  case 3:
21646  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
21647  else {
21648  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 3); __PYX_ERR(0, 5070, __pyx_L3_error)
21649  }
21650  CYTHON_FALLTHROUGH;
21651  case 4:
21652  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
21653  else {
21654  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 4); __PYX_ERR(0, 5070, __pyx_L3_error)
21655  }
21656  CYTHON_FALLTHROUGH;
21657  case 5:
21658  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
21659  else {
21660  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 5); __PYX_ERR(0, 5070, __pyx_L3_error)
21661  }
21662  CYTHON_FALLTHROUGH;
21663  case 6:
21664  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vof)) != 0)) kw_args--;
21665  else {
21666  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 6); __PYX_ERR(0, 5070, __pyx_L3_error)
21667  }
21668  CYTHON_FALLTHROUGH;
21669  case 7:
21670  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
21671  else {
21672  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 7); __PYX_ERR(0, 5070, __pyx_L3_error)
21673  }
21674  CYTHON_FALLTHROUGH;
21675  case 8:
21676  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
21677  else {
21678  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 8); __PYX_ERR(0, 5070, __pyx_L3_error)
21679  }
21680  CYTHON_FALLTHROUGH;
21681  case 9:
21682  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
21683  else {
21684  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 9); __PYX_ERR(0, 5070, __pyx_L3_error)
21685  }
21686  CYTHON_FALLTHROUGH;
21687  case 10:
21688  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
21689  else {
21690  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 10); __PYX_ERR(0, 5070, __pyx_L3_error)
21691  }
21692  CYTHON_FALLTHROUGH;
21693  case 11:
21694  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
21695  else {
21696  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 11); __PYX_ERR(0, 5070, __pyx_L3_error)
21697  }
21698  CYTHON_FALLTHROUGH;
21699  case 12:
21700  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
21701  else {
21702  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 12); __PYX_ERR(0, 5070, __pyx_L3_error)
21703  }
21704  CYTHON_FALLTHROUGH;
21705  case 13:
21706  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
21707  else {
21708  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 13); __PYX_ERR(0, 5070, __pyx_L3_error)
21709  }
21710  CYTHON_FALLTHROUGH;
21711  case 14:
21712  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
21713  else {
21714  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 14); __PYX_ERR(0, 5070, __pyx_L3_error)
21715  }
21716  CYTHON_FALLTHROUGH;
21717  case 15:
21718  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
21719  else {
21720  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 15); __PYX_ERR(0, 5070, __pyx_L3_error)
21721  }
21722  CYTHON_FALLTHROUGH;
21723  case 16:
21724  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
21725  else {
21726  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 16); __PYX_ERR(0, 5070, __pyx_L3_error)
21727  }
21728  CYTHON_FALLTHROUGH;
21729  case 17:
21730  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
21731  else {
21732  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 17); __PYX_ERR(0, 5070, __pyx_L3_error)
21733  }
21734  CYTHON_FALLTHROUGH;
21735  case 18:
21736  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
21737  else {
21738  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 18); __PYX_ERR(0, 5070, __pyx_L3_error)
21739  }
21740  CYTHON_FALLTHROUGH;
21741  case 19:
21742  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
21743  else {
21744  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 19); __PYX_ERR(0, 5070, __pyx_L3_error)
21745  }
21746  CYTHON_FALLTHROUGH;
21747  case 20:
21748  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
21749  else {
21750  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 20); __PYX_ERR(0, 5070, __pyx_L3_error)
21751  }
21752  CYTHON_FALLTHROUGH;
21753  case 21:
21754  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
21755  else {
21756  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 21); __PYX_ERR(0, 5070, __pyx_L3_error)
21757  }
21758  CYTHON_FALLTHROUGH;
21759  case 22:
21760  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
21761  else {
21762  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 22); __PYX_ERR(0, 5070, __pyx_L3_error)
21763  }
21764  CYTHON_FALLTHROUGH;
21765  case 23:
21766  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
21767  else {
21768  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 23); __PYX_ERR(0, 5070, __pyx_L3_error)
21769  }
21770  CYTHON_FALLTHROUGH;
21771  case 24:
21772  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
21773  else {
21774  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 24); __PYX_ERR(0, 5070, __pyx_L3_error)
21775  }
21776  CYTHON_FALLTHROUGH;
21777  case 25:
21778  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
21779  else {
21780  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 25); __PYX_ERR(0, 5070, __pyx_L3_error)
21781  }
21782  CYTHON_FALLTHROUGH;
21783  case 26:
21784  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
21785  else {
21786  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 26); __PYX_ERR(0, 5070, __pyx_L3_error)
21787  }
21788  CYTHON_FALLTHROUGH;
21789  case 27:
21790  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
21791  else {
21792  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 27); __PYX_ERR(0, 5070, __pyx_L3_error)
21793  }
21794  CYTHON_FALLTHROUGH;
21795  case 28:
21796  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
21797  else {
21798  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 28); __PYX_ERR(0, 5070, __pyx_L3_error)
21799  }
21800  CYTHON_FALLTHROUGH;
21801  case 29:
21802  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
21803  else {
21804  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 29); __PYX_ERR(0, 5070, __pyx_L3_error)
21805  }
21806  CYTHON_FALLTHROUGH;
21807  case 30:
21808  if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
21809  else {
21810  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 30); __PYX_ERR(0, 5070, __pyx_L3_error)
21811  }
21812  CYTHON_FALLTHROUGH;
21813  case 31:
21814  if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
21815  else {
21816  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 31); __PYX_ERR(0, 5070, __pyx_L3_error)
21817  }
21818  }
21819  if (unlikely(kw_args > 0)) {
21820  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "TwophaseNavierStokes_VOF_SO_2D_Evaluate") < 0)) __PYX_ERR(0, 5070, __pyx_L3_error)
21821  }
21822  } else if (PyTuple_GET_SIZE(__pyx_args) != 32) {
21823  goto __pyx_L5_argtuple_error;
21824  } else {
21825  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
21826  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
21827  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
21828  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
21829  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
21830  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
21831  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
21832  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
21833  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
21834  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
21835  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
21836  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
21837  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
21838  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
21839  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
21840  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
21841  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
21842  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
21843  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
21844  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
21845  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
21846  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
21847  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
21848  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
21849  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
21850  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
21851  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
21852  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
21853  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
21854  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
21855  values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
21856  values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
21857  }
21858  __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5070, __pyx_L3_error)
21859  __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_rho_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5071, __pyx_L3_error)
21860  __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_nu_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5072, __pyx_L3_error)
21861  __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_rho_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5073, __pyx_L3_error)
21862  __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_nu_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5074, __pyx_L3_error)
21863  __pyx_v_g = ((PyArrayObject *)values[5]);
21864  __pyx_v_vof = ((PyArrayObject *)values[6]);
21865  __pyx_v_p = ((PyArrayObject *)values[7]);
21866  __pyx_v_grad_p = ((PyArrayObject *)values[8]);
21867  __pyx_v_u = ((PyArrayObject *)values[9]);
21868  __pyx_v_v = ((PyArrayObject *)values[10]);
21869  __pyx_v_mom_u_acc = ((PyArrayObject *)values[11]);
21870  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[12]);
21871  __pyx_v_mom_v_acc = ((PyArrayObject *)values[13]);
21872  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[14]);
21873  __pyx_v_mass_adv = ((PyArrayObject *)values[15]);
21874  __pyx_v_dmass_adv_u = ((PyArrayObject *)values[16]);
21875  __pyx_v_dmass_adv_v = ((PyArrayObject *)values[17]);
21876  __pyx_v_mom_u_adv = ((PyArrayObject *)values[18]);
21877  __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[19]);
21878  __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[20]);
21879  __pyx_v_mom_v_adv = ((PyArrayObject *)values[21]);
21880  __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[22]);
21881  __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[23]);
21882  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[24]);
21883  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[25]);
21884  __pyx_v_mom_u_source = ((PyArrayObject *)values[26]);
21885  __pyx_v_mom_v_source = ((PyArrayObject *)values[27]);
21886  __pyx_v_mom_u_ham = ((PyArrayObject *)values[28]);
21887  __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[29]);
21888  __pyx_v_mom_v_ham = ((PyArrayObject *)values[30]);
21889  __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[31]);
21890  }
21891  goto __pyx_L4_argument_unpacking_done;
21892  __pyx_L5_argtuple_error:;
21893  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5070, __pyx_L3_error)
21894  __pyx_L3_error:;
21895  __Pyx_AddTraceback("ctransportCoefficients.TwophaseNavierStokes_VOF_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
21896  __Pyx_RefNannyFinishContext();
21897  return NULL;
21898  __pyx_L4_argument_unpacking_done:;
21899  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 5075, __pyx_L1_error)
21900  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vof), __pyx_ptype_5numpy_ndarray, 1, "vof", 0))) __PYX_ERR(0, 5076, __pyx_L1_error)
21901  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 5077, __pyx_L1_error)
21902  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1, "grad_p", 0))) __PYX_ERR(0, 5078, __pyx_L1_error)
21903  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 5079, __pyx_L1_error)
21904  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 5080, __pyx_L1_error)
21905  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 5081, __pyx_L1_error)
21906  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 5082, __pyx_L1_error)
21907  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 5083, __pyx_L1_error)
21908  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 5084, __pyx_L1_error)
21909  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 5085, __pyx_L1_error)
21910  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_u", 0))) __PYX_ERR(0, 5086, __pyx_L1_error)
21911  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_v", 0))) __PYX_ERR(0, 5087, __pyx_L1_error)
21912  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_u_adv", 0))) __PYX_ERR(0, 5088, __pyx_L1_error)
21913  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_u", 0))) __PYX_ERR(0, 5089, __pyx_L1_error)
21914  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_v", 0))) __PYX_ERR(0, 5090, __pyx_L1_error)
21915  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_v_adv", 0))) __PYX_ERR(0, 5091, __pyx_L1_error)
21916  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_u", 0))) __PYX_ERR(0, 5092, __pyx_L1_error)
21917  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_v", 0))) __PYX_ERR(0, 5093, __pyx_L1_error)
21918  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 5094, __pyx_L1_error)
21919  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 5095, __pyx_L1_error)
21920  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 5096, __pyx_L1_error)
21921  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 5097, __pyx_L1_error)
21922  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_u_ham", 0))) __PYX_ERR(0, 5098, __pyx_L1_error)
21923  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 5099, __pyx_L1_error)
21924  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_v_ham", 0))) __PYX_ERR(0, 5100, __pyx_L1_error)
21925  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 5101, __pyx_L1_error)
21926  __pyx_r = __pyx_pf_22ctransportCoefficients_100TwophaseNavierStokes_VOF_SO_2D_Evaluate(__pyx_self, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_g, __pyx_v_vof, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p);
21927 
21928  /* function exit code */
21929  goto __pyx_L0;
21930  __pyx_L1_error:;
21931  __pyx_r = NULL;
21932  __pyx_L0:;
21933  __Pyx_RefNannyFinishContext();
21934  return __pyx_r;
21935 }
21936 
21937 static PyObject *__pyx_pf_22ctransportCoefficients_100TwophaseNavierStokes_VOF_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_vof, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p) {
21938  PyObject *__pyx_r = NULL;
21939  __Pyx_RefNannyDeclarations
21940  PyObject *__pyx_t_1 = NULL;
21941  int __pyx_t_2;
21942  int __pyx_lineno = 0;
21943  const char *__pyx_filename = NULL;
21944  int __pyx_clineno = 0;
21945  __Pyx_RefNannySetupContext("TwophaseNavierStokes_VOF_SO_2D_Evaluate", 0);
21946 
21947  /* "ctransportCoefficients.pyx":5102
21948  * np.ndarray mom_v_ham,
21949  * np.ndarray dmom_v_ham_grad_p):
21950  * cTwophaseNavierStokes_VOF_SO_2D_Evaluate(p.size, # <<<<<<<<<<<<<<
21951  * eps,
21952  * rho_0,
21953  */
21954  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5102, __pyx_L1_error)
21955  __Pyx_GOTREF(__pyx_t_1);
21956  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5102, __pyx_L1_error)
21957  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
21958 
21959  /* "ctransportCoefficients.pyx":5134
21960  * <double*> dmom_u_ham_grad_p.data,
21961  * <double*> mom_v_ham.data,
21962  * <double*> dmom_v_ham_grad_p.data) # <<<<<<<<<<<<<<
21963  * def TwophaseNavierStokes_VOF_SO_3D_Evaluate(const double eps,
21964  * const double rho_0,
21965  */
21966  TwophaseNavierStokes_VOF_SO_2D_Evaluate(__pyx_t_2, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((double *)__pyx_v_g->data), ((double *)__pyx_v_vof->data), ((double *)__pyx_v_p->data), ((double *)__pyx_v_grad_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_v_acc_v->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_u->data), ((double *)__pyx_v_dmass_adv_v->data), ((double *)__pyx_v_mom_u_adv->data), ((double *)__pyx_v_dmom_u_adv_u->data), ((double *)__pyx_v_dmom_u_adv_v->data), ((double *)__pyx_v_mom_v_adv->data), ((double *)__pyx_v_dmom_v_adv_u->data), ((double *)__pyx_v_dmom_v_adv_v->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_mom_u_ham->data), ((double *)__pyx_v_dmom_u_ham_grad_p->data), ((double *)__pyx_v_mom_v_ham->data), ((double *)__pyx_v_dmom_v_ham_grad_p->data));
21967 
21968  /* "ctransportCoefficients.pyx":5070
21969  * <double*> mom_w_ham.data,
21970  * <double*> dmom_w_ham_grad_p.data)
21971  * def TwophaseNavierStokes_VOF_SO_2D_Evaluate(const double eps, # <<<<<<<<<<<<<<
21972  * const double rho_0,
21973  * const double nu_0,
21974  */
21975 
21976  /* function exit code */
21977  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
21978  goto __pyx_L0;
21979  __pyx_L1_error:;
21980  __Pyx_XDECREF(__pyx_t_1);
21981  __Pyx_AddTraceback("ctransportCoefficients.TwophaseNavierStokes_VOF_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
21982  __pyx_r = NULL;
21983  __pyx_L0:;
21984  __Pyx_XGIVEREF(__pyx_r);
21985  __Pyx_RefNannyFinishContext();
21986  return __pyx_r;
21987 }
21988 
21989 /* "ctransportCoefficients.pyx":5135
21990  * <double*> mom_v_ham.data,
21991  * <double*> dmom_v_ham_grad_p.data)
21992  * def TwophaseNavierStokes_VOF_SO_3D_Evaluate(const double eps, # <<<<<<<<<<<<<<
21993  * const double rho_0,
21994  * const double nu_0,
21995  */
21996 
21997 /* Python wrapper */
21998 static PyObject *__pyx_pw_22ctransportCoefficients_103TwophaseNavierStokes_VOF_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
21999 static PyMethodDef __pyx_mdef_22ctransportCoefficients_103TwophaseNavierStokes_VOF_SO_3D_Evaluate = {"TwophaseNavierStokes_VOF_SO_3D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_103TwophaseNavierStokes_VOF_SO_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
22000 static PyObject *__pyx_pw_22ctransportCoefficients_103TwophaseNavierStokes_VOF_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
22001  double __pyx_v_eps;
22002  double __pyx_v_rho_0;
22003  double __pyx_v_nu_0;
22004  double __pyx_v_rho_1;
22005  double __pyx_v_nu_1;
22006  PyArrayObject *__pyx_v_g = 0;
22007  PyArrayObject *__pyx_v_vof = 0;
22008  PyArrayObject *__pyx_v_p = 0;
22009  PyArrayObject *__pyx_v_grad_p = 0;
22010  PyArrayObject *__pyx_v_u = 0;
22011  PyArrayObject *__pyx_v_v = 0;
22012  PyArrayObject *__pyx_v_w = 0;
22013  PyArrayObject *__pyx_v_mom_u_acc = 0;
22014  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
22015  PyArrayObject *__pyx_v_mom_v_acc = 0;
22016  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
22017  PyArrayObject *__pyx_v_mom_w_acc = 0;
22018  PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
22019  PyArrayObject *__pyx_v_mass_adv = 0;
22020  PyArrayObject *__pyx_v_dmass_adv_u = 0;
22021  PyArrayObject *__pyx_v_dmass_adv_v = 0;
22022  PyArrayObject *__pyx_v_dmass_adv_w = 0;
22023  PyArrayObject *__pyx_v_mom_u_adv = 0;
22024  PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
22025  PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
22026  PyArrayObject *__pyx_v_dmom_u_adv_w = 0;
22027  PyArrayObject *__pyx_v_mom_v_adv = 0;
22028  PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
22029  PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
22030  PyArrayObject *__pyx_v_dmom_v_adv_w = 0;
22031  PyArrayObject *__pyx_v_mom_w_adv = 0;
22032  PyArrayObject *__pyx_v_dmom_w_adv_u = 0;
22033  PyArrayObject *__pyx_v_dmom_w_adv_v = 0;
22034  PyArrayObject *__pyx_v_dmom_w_adv_w = 0;
22035  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
22036  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
22037  PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
22038  PyArrayObject *__pyx_v_mom_u_source = 0;
22039  PyArrayObject *__pyx_v_mom_v_source = 0;
22040  PyArrayObject *__pyx_v_mom_w_source = 0;
22041  PyArrayObject *__pyx_v_mom_u_ham = 0;
22042  PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
22043  PyArrayObject *__pyx_v_mom_v_ham = 0;
22044  PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
22045  PyArrayObject *__pyx_v_mom_w_ham = 0;
22046  PyArrayObject *__pyx_v_dmom_w_ham_grad_p = 0;
22047  int __pyx_lineno = 0;
22048  const char *__pyx_filename = NULL;
22049  int __pyx_clineno = 0;
22050  PyObject *__pyx_r = 0;
22051  __Pyx_RefNannyDeclarations
22052  __Pyx_RefNannySetupContext("TwophaseNavierStokes_VOF_SO_3D_Evaluate (wrapper)", 0);
22053  {
22054  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_g,&__pyx_n_s_vof,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_w_acc_w,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_dmass_adv_w,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_dmom_u_adv_w,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_dmom_v_adv_w,&__pyx_n_s_mom_w_adv,&__pyx_n_s_dmom_w_adv_u,&__pyx_n_s_dmom_w_adv_v,&__pyx_n_s_dmom_w_adv_w,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,&__pyx_n_s_mom_w_ham,&__pyx_n_s_dmom_w_ham_grad_p,0};
22055  PyObject* values[46] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
22056  if (unlikely(__pyx_kwds)) {
22057  Py_ssize_t kw_args;
22058  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
22059  switch (pos_args) {
22060  case 46: values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
22061  CYTHON_FALLTHROUGH;
22062  case 45: values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
22063  CYTHON_FALLTHROUGH;
22064  case 44: values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
22065  CYTHON_FALLTHROUGH;
22066  case 43: values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
22067  CYTHON_FALLTHROUGH;
22068  case 42: values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
22069  CYTHON_FALLTHROUGH;
22070  case 41: values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
22071  CYTHON_FALLTHROUGH;
22072  case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
22073  CYTHON_FALLTHROUGH;
22074  case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
22075  CYTHON_FALLTHROUGH;
22076  case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
22077  CYTHON_FALLTHROUGH;
22078  case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
22079  CYTHON_FALLTHROUGH;
22080  case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
22081  CYTHON_FALLTHROUGH;
22082  case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
22083  CYTHON_FALLTHROUGH;
22084  case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
22085  CYTHON_FALLTHROUGH;
22086  case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
22087  CYTHON_FALLTHROUGH;
22088  case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
22089  CYTHON_FALLTHROUGH;
22090  case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
22091  CYTHON_FALLTHROUGH;
22092  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
22093  CYTHON_FALLTHROUGH;
22094  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
22095  CYTHON_FALLTHROUGH;
22096  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
22097  CYTHON_FALLTHROUGH;
22098  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
22099  CYTHON_FALLTHROUGH;
22100  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
22101  CYTHON_FALLTHROUGH;
22102  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
22103  CYTHON_FALLTHROUGH;
22104  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
22105  CYTHON_FALLTHROUGH;
22106  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
22107  CYTHON_FALLTHROUGH;
22108  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
22109  CYTHON_FALLTHROUGH;
22110  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
22111  CYTHON_FALLTHROUGH;
22112  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
22113  CYTHON_FALLTHROUGH;
22114  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
22115  CYTHON_FALLTHROUGH;
22116  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
22117  CYTHON_FALLTHROUGH;
22118  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
22119  CYTHON_FALLTHROUGH;
22120  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
22121  CYTHON_FALLTHROUGH;
22122  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
22123  CYTHON_FALLTHROUGH;
22124  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
22125  CYTHON_FALLTHROUGH;
22126  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
22127  CYTHON_FALLTHROUGH;
22128  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
22129  CYTHON_FALLTHROUGH;
22130  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
22131  CYTHON_FALLTHROUGH;
22132  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
22133  CYTHON_FALLTHROUGH;
22134  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
22135  CYTHON_FALLTHROUGH;
22136  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
22137  CYTHON_FALLTHROUGH;
22138  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
22139  CYTHON_FALLTHROUGH;
22140  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
22141  CYTHON_FALLTHROUGH;
22142  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
22143  CYTHON_FALLTHROUGH;
22144  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
22145  CYTHON_FALLTHROUGH;
22146  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22147  CYTHON_FALLTHROUGH;
22148  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22149  CYTHON_FALLTHROUGH;
22150  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22151  CYTHON_FALLTHROUGH;
22152  case 0: break;
22153  default: goto __pyx_L5_argtuple_error;
22154  }
22155  kw_args = PyDict_Size(__pyx_kwds);
22156  switch (pos_args) {
22157  case 0:
22158  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
22159  else goto __pyx_L5_argtuple_error;
22160  CYTHON_FALLTHROUGH;
22161  case 1:
22162  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
22163  else {
22164  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 1); __PYX_ERR(0, 5135, __pyx_L3_error)
22165  }
22166  CYTHON_FALLTHROUGH;
22167  case 2:
22168  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
22169  else {
22170  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 2); __PYX_ERR(0, 5135, __pyx_L3_error)
22171  }
22172  CYTHON_FALLTHROUGH;
22173  case 3:
22174  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
22175  else {
22176  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 3); __PYX_ERR(0, 5135, __pyx_L3_error)
22177  }
22178  CYTHON_FALLTHROUGH;
22179  case 4:
22180  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
22181  else {
22182  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 4); __PYX_ERR(0, 5135, __pyx_L3_error)
22183  }
22184  CYTHON_FALLTHROUGH;
22185  case 5:
22186  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
22187  else {
22188  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 5); __PYX_ERR(0, 5135, __pyx_L3_error)
22189  }
22190  CYTHON_FALLTHROUGH;
22191  case 6:
22192  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vof)) != 0)) kw_args--;
22193  else {
22194  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 6); __PYX_ERR(0, 5135, __pyx_L3_error)
22195  }
22196  CYTHON_FALLTHROUGH;
22197  case 7:
22198  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
22199  else {
22200  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 7); __PYX_ERR(0, 5135, __pyx_L3_error)
22201  }
22202  CYTHON_FALLTHROUGH;
22203  case 8:
22204  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
22205  else {
22206  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 8); __PYX_ERR(0, 5135, __pyx_L3_error)
22207  }
22208  CYTHON_FALLTHROUGH;
22209  case 9:
22210  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
22211  else {
22212  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 9); __PYX_ERR(0, 5135, __pyx_L3_error)
22213  }
22214  CYTHON_FALLTHROUGH;
22215  case 10:
22216  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
22217  else {
22218  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 10); __PYX_ERR(0, 5135, __pyx_L3_error)
22219  }
22220  CYTHON_FALLTHROUGH;
22221  case 11:
22222  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
22223  else {
22224  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 11); __PYX_ERR(0, 5135, __pyx_L3_error)
22225  }
22226  CYTHON_FALLTHROUGH;
22227  case 12:
22228  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
22229  else {
22230  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 12); __PYX_ERR(0, 5135, __pyx_L3_error)
22231  }
22232  CYTHON_FALLTHROUGH;
22233  case 13:
22234  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
22235  else {
22236  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 13); __PYX_ERR(0, 5135, __pyx_L3_error)
22237  }
22238  CYTHON_FALLTHROUGH;
22239  case 14:
22240  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
22241  else {
22242  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 14); __PYX_ERR(0, 5135, __pyx_L3_error)
22243  }
22244  CYTHON_FALLTHROUGH;
22245  case 15:
22246  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
22247  else {
22248  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 15); __PYX_ERR(0, 5135, __pyx_L3_error)
22249  }
22250  CYTHON_FALLTHROUGH;
22251  case 16:
22252  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
22253  else {
22254  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 16); __PYX_ERR(0, 5135, __pyx_L3_error)
22255  }
22256  CYTHON_FALLTHROUGH;
22257  case 17:
22258  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
22259  else {
22260  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 17); __PYX_ERR(0, 5135, __pyx_L3_error)
22261  }
22262  CYTHON_FALLTHROUGH;
22263  case 18:
22264  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
22265  else {
22266  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 18); __PYX_ERR(0, 5135, __pyx_L3_error)
22267  }
22268  CYTHON_FALLTHROUGH;
22269  case 19:
22270  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
22271  else {
22272  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 19); __PYX_ERR(0, 5135, __pyx_L3_error)
22273  }
22274  CYTHON_FALLTHROUGH;
22275  case 20:
22276  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
22277  else {
22278  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 20); __PYX_ERR(0, 5135, __pyx_L3_error)
22279  }
22280  CYTHON_FALLTHROUGH;
22281  case 21:
22282  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_w)) != 0)) kw_args--;
22283  else {
22284  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 21); __PYX_ERR(0, 5135, __pyx_L3_error)
22285  }
22286  CYTHON_FALLTHROUGH;
22287  case 22:
22288  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
22289  else {
22290  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 22); __PYX_ERR(0, 5135, __pyx_L3_error)
22291  }
22292  CYTHON_FALLTHROUGH;
22293  case 23:
22294  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
22295  else {
22296  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 23); __PYX_ERR(0, 5135, __pyx_L3_error)
22297  }
22298  CYTHON_FALLTHROUGH;
22299  case 24:
22300  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
22301  else {
22302  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 24); __PYX_ERR(0, 5135, __pyx_L3_error)
22303  }
22304  CYTHON_FALLTHROUGH;
22305  case 25:
22306  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_w)) != 0)) kw_args--;
22307  else {
22308  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 25); __PYX_ERR(0, 5135, __pyx_L3_error)
22309  }
22310  CYTHON_FALLTHROUGH;
22311  case 26:
22312  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
22313  else {
22314  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 26); __PYX_ERR(0, 5135, __pyx_L3_error)
22315  }
22316  CYTHON_FALLTHROUGH;
22317  case 27:
22318  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
22319  else {
22320  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 27); __PYX_ERR(0, 5135, __pyx_L3_error)
22321  }
22322  CYTHON_FALLTHROUGH;
22323  case 28:
22324  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
22325  else {
22326  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 28); __PYX_ERR(0, 5135, __pyx_L3_error)
22327  }
22328  CYTHON_FALLTHROUGH;
22329  case 29:
22330  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_w)) != 0)) kw_args--;
22331  else {
22332  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 29); __PYX_ERR(0, 5135, __pyx_L3_error)
22333  }
22334  CYTHON_FALLTHROUGH;
22335  case 30:
22336  if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_adv)) != 0)) kw_args--;
22337  else {
22338  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 30); __PYX_ERR(0, 5135, __pyx_L3_error)
22339  }
22340  CYTHON_FALLTHROUGH;
22341  case 31:
22342  if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_u)) != 0)) kw_args--;
22343  else {
22344  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 31); __PYX_ERR(0, 5135, __pyx_L3_error)
22345  }
22346  CYTHON_FALLTHROUGH;
22347  case 32:
22348  if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_v)) != 0)) kw_args--;
22349  else {
22350  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 32); __PYX_ERR(0, 5135, __pyx_L3_error)
22351  }
22352  CYTHON_FALLTHROUGH;
22353  case 33:
22354  if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_w)) != 0)) kw_args--;
22355  else {
22356  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 33); __PYX_ERR(0, 5135, __pyx_L3_error)
22357  }
22358  CYTHON_FALLTHROUGH;
22359  case 34:
22360  if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
22361  else {
22362  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 34); __PYX_ERR(0, 5135, __pyx_L3_error)
22363  }
22364  CYTHON_FALLTHROUGH;
22365  case 35:
22366  if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
22367  else {
22368  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 35); __PYX_ERR(0, 5135, __pyx_L3_error)
22369  }
22370  CYTHON_FALLTHROUGH;
22371  case 36:
22372  if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
22373  else {
22374  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 36); __PYX_ERR(0, 5135, __pyx_L3_error)
22375  }
22376  CYTHON_FALLTHROUGH;
22377  case 37:
22378  if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
22379  else {
22380  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 37); __PYX_ERR(0, 5135, __pyx_L3_error)
22381  }
22382  CYTHON_FALLTHROUGH;
22383  case 38:
22384  if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
22385  else {
22386  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 38); __PYX_ERR(0, 5135, __pyx_L3_error)
22387  }
22388  CYTHON_FALLTHROUGH;
22389  case 39:
22390  if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
22391  else {
22392  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 39); __PYX_ERR(0, 5135, __pyx_L3_error)
22393  }
22394  CYTHON_FALLTHROUGH;
22395  case 40:
22396  if (likely((values[40] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
22397  else {
22398  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 40); __PYX_ERR(0, 5135, __pyx_L3_error)
22399  }
22400  CYTHON_FALLTHROUGH;
22401  case 41:
22402  if (likely((values[41] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
22403  else {
22404  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 41); __PYX_ERR(0, 5135, __pyx_L3_error)
22405  }
22406  CYTHON_FALLTHROUGH;
22407  case 42:
22408  if (likely((values[42] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
22409  else {
22410  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 42); __PYX_ERR(0, 5135, __pyx_L3_error)
22411  }
22412  CYTHON_FALLTHROUGH;
22413  case 43:
22414  if (likely((values[43] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
22415  else {
22416  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 43); __PYX_ERR(0, 5135, __pyx_L3_error)
22417  }
22418  CYTHON_FALLTHROUGH;
22419  case 44:
22420  if (likely((values[44] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_ham)) != 0)) kw_args--;
22421  else {
22422  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 44); __PYX_ERR(0, 5135, __pyx_L3_error)
22423  }
22424  CYTHON_FALLTHROUGH;
22425  case 45:
22426  if (likely((values[45] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_ham_grad_p)) != 0)) kw_args--;
22427  else {
22428  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 45); __PYX_ERR(0, 5135, __pyx_L3_error)
22429  }
22430  }
22431  if (unlikely(kw_args > 0)) {
22432  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "TwophaseNavierStokes_VOF_SO_3D_Evaluate") < 0)) __PYX_ERR(0, 5135, __pyx_L3_error)
22433  }
22434  } else if (PyTuple_GET_SIZE(__pyx_args) != 46) {
22435  goto __pyx_L5_argtuple_error;
22436  } else {
22437  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22438  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22439  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22440  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
22441  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
22442  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
22443  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
22444  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
22445  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
22446  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
22447  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
22448  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
22449  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
22450  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
22451  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
22452  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
22453  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
22454  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
22455  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
22456  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
22457  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
22458  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
22459  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
22460  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
22461  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
22462  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
22463  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
22464  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
22465  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
22466  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
22467  values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
22468  values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
22469  values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
22470  values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
22471  values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
22472  values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
22473  values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
22474  values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
22475  values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
22476  values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
22477  values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
22478  values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
22479  values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
22480  values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
22481  values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
22482  values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
22483  }
22484  __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5135, __pyx_L3_error)
22485  __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_rho_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5136, __pyx_L3_error)
22486  __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_nu_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5137, __pyx_L3_error)
22487  __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_rho_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5138, __pyx_L3_error)
22488  __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_nu_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5139, __pyx_L3_error)
22489  __pyx_v_g = ((PyArrayObject *)values[5]);
22490  __pyx_v_vof = ((PyArrayObject *)values[6]);
22491  __pyx_v_p = ((PyArrayObject *)values[7]);
22492  __pyx_v_grad_p = ((PyArrayObject *)values[8]);
22493  __pyx_v_u = ((PyArrayObject *)values[9]);
22494  __pyx_v_v = ((PyArrayObject *)values[10]);
22495  __pyx_v_w = ((PyArrayObject *)values[11]);
22496  __pyx_v_mom_u_acc = ((PyArrayObject *)values[12]);
22497  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[13]);
22498  __pyx_v_mom_v_acc = ((PyArrayObject *)values[14]);
22499  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[15]);
22500  __pyx_v_mom_w_acc = ((PyArrayObject *)values[16]);
22501  __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[17]);
22502  __pyx_v_mass_adv = ((PyArrayObject *)values[18]);
22503  __pyx_v_dmass_adv_u = ((PyArrayObject *)values[19]);
22504  __pyx_v_dmass_adv_v = ((PyArrayObject *)values[20]);
22505  __pyx_v_dmass_adv_w = ((PyArrayObject *)values[21]);
22506  __pyx_v_mom_u_adv = ((PyArrayObject *)values[22]);
22507  __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[23]);
22508  __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[24]);
22509  __pyx_v_dmom_u_adv_w = ((PyArrayObject *)values[25]);
22510  __pyx_v_mom_v_adv = ((PyArrayObject *)values[26]);
22511  __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[27]);
22512  __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[28]);
22513  __pyx_v_dmom_v_adv_w = ((PyArrayObject *)values[29]);
22514  __pyx_v_mom_w_adv = ((PyArrayObject *)values[30]);
22515  __pyx_v_dmom_w_adv_u = ((PyArrayObject *)values[31]);
22516  __pyx_v_dmom_w_adv_v = ((PyArrayObject *)values[32]);
22517  __pyx_v_dmom_w_adv_w = ((PyArrayObject *)values[33]);
22518  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[34]);
22519  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[35]);
22520  __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[36]);
22521  __pyx_v_mom_u_source = ((PyArrayObject *)values[37]);
22522  __pyx_v_mom_v_source = ((PyArrayObject *)values[38]);
22523  __pyx_v_mom_w_source = ((PyArrayObject *)values[39]);
22524  __pyx_v_mom_u_ham = ((PyArrayObject *)values[40]);
22525  __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[41]);
22526  __pyx_v_mom_v_ham = ((PyArrayObject *)values[42]);
22527  __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[43]);
22528  __pyx_v_mom_w_ham = ((PyArrayObject *)values[44]);
22529  __pyx_v_dmom_w_ham_grad_p = ((PyArrayObject *)values[45]);
22530  }
22531  goto __pyx_L4_argument_unpacking_done;
22532  __pyx_L5_argtuple_error:;
22533  __Pyx_RaiseArgtupleInvalid("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5135, __pyx_L3_error)
22534  __pyx_L3_error:;
22535  __Pyx_AddTraceback("ctransportCoefficients.TwophaseNavierStokes_VOF_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
22536  __Pyx_RefNannyFinishContext();
22537  return NULL;
22538  __pyx_L4_argument_unpacking_done:;
22539  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 5140, __pyx_L1_error)
22540  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vof), __pyx_ptype_5numpy_ndarray, 1, "vof", 0))) __PYX_ERR(0, 5141, __pyx_L1_error)
22541  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 5142, __pyx_L1_error)
22542  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1, "grad_p", 0))) __PYX_ERR(0, 5143, __pyx_L1_error)
22543  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 5144, __pyx_L1_error)
22544  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 5145, __pyx_L1_error)
22545  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1, "w", 0))) __PYX_ERR(0, 5146, __pyx_L1_error)
22546  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 5147, __pyx_L1_error)
22547  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 5148, __pyx_L1_error)
22548  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 5149, __pyx_L1_error)
22549  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 5150, __pyx_L1_error)
22550  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_w_acc", 0))) __PYX_ERR(0, 5151, __pyx_L1_error)
22551  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_acc_w", 0))) __PYX_ERR(0, 5152, __pyx_L1_error)
22552  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 5153, __pyx_L1_error)
22553  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_u", 0))) __PYX_ERR(0, 5154, __pyx_L1_error)
22554  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_v", 0))) __PYX_ERR(0, 5155, __pyx_L1_error)
22555  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_w", 0))) __PYX_ERR(0, 5156, __pyx_L1_error)
22556  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_u_adv", 0))) __PYX_ERR(0, 5157, __pyx_L1_error)
22557  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_u", 0))) __PYX_ERR(0, 5158, __pyx_L1_error)
22558  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_v", 0))) __PYX_ERR(0, 5159, __pyx_L1_error)
22559  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_w", 0))) __PYX_ERR(0, 5160, __pyx_L1_error)
22560  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_v_adv", 0))) __PYX_ERR(0, 5161, __pyx_L1_error)
22561  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_u", 0))) __PYX_ERR(0, 5162, __pyx_L1_error)
22562  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_v", 0))) __PYX_ERR(0, 5163, __pyx_L1_error)
22563  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_w", 0))) __PYX_ERR(0, 5164, __pyx_L1_error)
22564  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_w_adv", 0))) __PYX_ERR(0, 5165, __pyx_L1_error)
22565  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_u", 0))) __PYX_ERR(0, 5166, __pyx_L1_error)
22566  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_v", 0))) __PYX_ERR(0, 5167, __pyx_L1_error)
22567  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_w", 0))) __PYX_ERR(0, 5168, __pyx_L1_error)
22568  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 5169, __pyx_L1_error)
22569  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 5170, __pyx_L1_error)
22570  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_w_diff_ten", 0))) __PYX_ERR(0, 5171, __pyx_L1_error)
22571  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 5172, __pyx_L1_error)
22572  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 5173, __pyx_L1_error)
22573  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1, "mom_w_source", 0))) __PYX_ERR(0, 5174, __pyx_L1_error)
22574  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_u_ham", 0))) __PYX_ERR(0, 5175, __pyx_L1_error)
22575  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 5176, __pyx_L1_error)
22576  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_v_ham", 0))) __PYX_ERR(0, 5177, __pyx_L1_error)
22577  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 5178, __pyx_L1_error)
22578  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_w_ham", 0))) __PYX_ERR(0, 5179, __pyx_L1_error)
22579  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_ham_grad_p", 0))) __PYX_ERR(0, 5180, __pyx_L1_error)
22580  __pyx_r = __pyx_pf_22ctransportCoefficients_102TwophaseNavierStokes_VOF_SO_3D_Evaluate(__pyx_self, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_g, __pyx_v_vof, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mom_w_acc, __pyx_v_dmom_w_acc_w, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_dmass_adv_w, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_dmom_u_adv_w, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_dmom_v_adv_w, __pyx_v_mom_w_adv, __pyx_v_dmom_w_adv_u, __pyx_v_dmom_w_adv_v, __pyx_v_dmom_w_adv_w, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p, __pyx_v_mom_w_ham, __pyx_v_dmom_w_ham_grad_p);
22581 
22582  /* function exit code */
22583  goto __pyx_L0;
22584  __pyx_L1_error:;
22585  __pyx_r = NULL;
22586  __pyx_L0:;
22587  __Pyx_RefNannyFinishContext();
22588  return __pyx_r;
22589 }
22590 
22591 static PyObject *__pyx_pf_22ctransportCoefficients_102TwophaseNavierStokes_VOF_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_vof, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p) {
22592  PyObject *__pyx_r = NULL;
22593  __Pyx_RefNannyDeclarations
22594  PyObject *__pyx_t_1 = NULL;
22595  int __pyx_t_2;
22596  int __pyx_lineno = 0;
22597  const char *__pyx_filename = NULL;
22598  int __pyx_clineno = 0;
22599  __Pyx_RefNannySetupContext("TwophaseNavierStokes_VOF_SO_3D_Evaluate", 0);
22600 
22601  /* "ctransportCoefficients.pyx":5181
22602  * np.ndarray mom_w_ham,
22603  * np.ndarray dmom_w_ham_grad_p):
22604  * cTwophaseNavierStokes_VOF_SO_3D_Evaluate(p.size, # <<<<<<<<<<<<<<
22605  * eps,
22606  * rho_0,
22607  */
22608  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5181, __pyx_L1_error)
22609  __Pyx_GOTREF(__pyx_t_1);
22610  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5181, __pyx_L1_error)
22611  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
22612 
22613  /* "ctransportCoefficients.pyx":5227
22614  * <double*> dmom_v_ham_grad_p.data,
22615  * <double*> mom_w_ham.data,
22616  * <double*> dmom_w_ham_grad_p.data) # <<<<<<<<<<<<<<
22617  * def TwophaseStokes_VOF_SO_2D_Evaluate(const double eps,
22618  * const double rho_0,
22619  */
22620  TwophaseNavierStokes_VOF_SO_3D_Evaluate(__pyx_t_2, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((double *)__pyx_v_g->data), ((double *)__pyx_v_vof->data), ((double *)__pyx_v_p->data), ((double *)__pyx_v_grad_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_w->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_v_acc_v->data), ((double *)__pyx_v_mom_w_acc->data), ((double *)__pyx_v_dmom_w_acc_w->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_u->data), ((double *)__pyx_v_dmass_adv_v->data), ((double *)__pyx_v_dmass_adv_w->data), ((double *)__pyx_v_mom_u_adv->data), ((double *)__pyx_v_dmom_u_adv_u->data), ((double *)__pyx_v_dmom_u_adv_v->data), ((double *)__pyx_v_dmom_u_adv_w->data), ((double *)__pyx_v_mom_v_adv->data), ((double *)__pyx_v_dmom_v_adv_u->data), ((double *)__pyx_v_dmom_v_adv_v->data), ((double *)__pyx_v_dmom_v_adv_w->data), ((double *)__pyx_v_mom_w_adv->data), ((double *)__pyx_v_dmom_w_adv_u->data), ((double *)__pyx_v_dmom_w_adv_v->data), ((double *)__pyx_v_dmom_w_adv_w->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_w_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_mom_w_source->data), ((double *)__pyx_v_mom_u_ham->data), ((double *)__pyx_v_dmom_u_ham_grad_p->data), ((double *)__pyx_v_mom_v_ham->data), ((double *)__pyx_v_dmom_v_ham_grad_p->data), ((double *)__pyx_v_mom_w_ham->data), ((double *)__pyx_v_dmom_w_ham_grad_p->data));
22621 
22622  /* "ctransportCoefficients.pyx":5135
22623  * <double*> mom_v_ham.data,
22624  * <double*> dmom_v_ham_grad_p.data)
22625  * def TwophaseNavierStokes_VOF_SO_3D_Evaluate(const double eps, # <<<<<<<<<<<<<<
22626  * const double rho_0,
22627  * const double nu_0,
22628  */
22629 
22630  /* function exit code */
22631  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
22632  goto __pyx_L0;
22633  __pyx_L1_error:;
22634  __Pyx_XDECREF(__pyx_t_1);
22635  __Pyx_AddTraceback("ctransportCoefficients.TwophaseNavierStokes_VOF_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
22636  __pyx_r = NULL;
22637  __pyx_L0:;
22638  __Pyx_XGIVEREF(__pyx_r);
22639  __Pyx_RefNannyFinishContext();
22640  return __pyx_r;
22641 }
22642 
22643 /* "ctransportCoefficients.pyx":5228
22644  * <double*> mom_w_ham.data,
22645  * <double*> dmom_w_ham_grad_p.data)
22646  * def TwophaseStokes_VOF_SO_2D_Evaluate(const double eps, # <<<<<<<<<<<<<<
22647  * const double rho_0,
22648  * const double nu_0,
22649  */
22650 
22651 /* Python wrapper */
22652 static PyObject *__pyx_pw_22ctransportCoefficients_105TwophaseStokes_VOF_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
22653 static PyMethodDef __pyx_mdef_22ctransportCoefficients_105TwophaseStokes_VOF_SO_2D_Evaluate = {"TwophaseStokes_VOF_SO_2D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_105TwophaseStokes_VOF_SO_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
22654 static PyObject *__pyx_pw_22ctransportCoefficients_105TwophaseStokes_VOF_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
22655  double __pyx_v_eps;
22656  double __pyx_v_rho_0;
22657  double __pyx_v_nu_0;
22658  double __pyx_v_rho_1;
22659  double __pyx_v_nu_1;
22660  PyArrayObject *__pyx_v_g = 0;
22661  PyArrayObject *__pyx_v_vof = 0;
22662  PyArrayObject *__pyx_v_p = 0;
22663  PyArrayObject *__pyx_v_grad_p = 0;
22664  PyArrayObject *__pyx_v_u = 0;
22665  PyArrayObject *__pyx_v_v = 0;
22666  PyArrayObject *__pyx_v_mom_u_acc = 0;
22667  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
22668  PyArrayObject *__pyx_v_mom_v_acc = 0;
22669  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
22670  PyArrayObject *__pyx_v_mass_adv = 0;
22671  PyArrayObject *__pyx_v_dmass_adv_u = 0;
22672  PyArrayObject *__pyx_v_dmass_adv_v = 0;
22673  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
22674  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
22675  PyArrayObject *__pyx_v_mom_u_source = 0;
22676  PyArrayObject *__pyx_v_mom_v_source = 0;
22677  PyArrayObject *__pyx_v_mom_u_ham = 0;
22678  PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
22679  PyArrayObject *__pyx_v_mom_v_ham = 0;
22680  PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
22681  int __pyx_lineno = 0;
22682  const char *__pyx_filename = NULL;
22683  int __pyx_clineno = 0;
22684  PyObject *__pyx_r = 0;
22685  __Pyx_RefNannyDeclarations
22686  __Pyx_RefNannySetupContext("TwophaseStokes_VOF_SO_2D_Evaluate (wrapper)", 0);
22687  {
22688  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_g,&__pyx_n_s_vof,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,0};
22689  PyObject* values[26] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
22690  if (unlikely(__pyx_kwds)) {
22691  Py_ssize_t kw_args;
22692  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
22693  switch (pos_args) {
22694  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
22695  CYTHON_FALLTHROUGH;
22696  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
22697  CYTHON_FALLTHROUGH;
22698  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
22699  CYTHON_FALLTHROUGH;
22700  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
22701  CYTHON_FALLTHROUGH;
22702  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
22703  CYTHON_FALLTHROUGH;
22704  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
22705  CYTHON_FALLTHROUGH;
22706  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
22707  CYTHON_FALLTHROUGH;
22708  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
22709  CYTHON_FALLTHROUGH;
22710  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
22711  CYTHON_FALLTHROUGH;
22712  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
22713  CYTHON_FALLTHROUGH;
22714  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
22715  CYTHON_FALLTHROUGH;
22716  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
22717  CYTHON_FALLTHROUGH;
22718  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
22719  CYTHON_FALLTHROUGH;
22720  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
22721  CYTHON_FALLTHROUGH;
22722  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
22723  CYTHON_FALLTHROUGH;
22724  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
22725  CYTHON_FALLTHROUGH;
22726  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
22727  CYTHON_FALLTHROUGH;
22728  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
22729  CYTHON_FALLTHROUGH;
22730  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
22731  CYTHON_FALLTHROUGH;
22732  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
22733  CYTHON_FALLTHROUGH;
22734  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
22735  CYTHON_FALLTHROUGH;
22736  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
22737  CYTHON_FALLTHROUGH;
22738  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
22739  CYTHON_FALLTHROUGH;
22740  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22741  CYTHON_FALLTHROUGH;
22742  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22743  CYTHON_FALLTHROUGH;
22744  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22745  CYTHON_FALLTHROUGH;
22746  case 0: break;
22747  default: goto __pyx_L5_argtuple_error;
22748  }
22749  kw_args = PyDict_Size(__pyx_kwds);
22750  switch (pos_args) {
22751  case 0:
22752  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
22753  else goto __pyx_L5_argtuple_error;
22754  CYTHON_FALLTHROUGH;
22755  case 1:
22756  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
22757  else {
22758  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 1); __PYX_ERR(0, 5228, __pyx_L3_error)
22759  }
22760  CYTHON_FALLTHROUGH;
22761  case 2:
22762  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
22763  else {
22764  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 2); __PYX_ERR(0, 5228, __pyx_L3_error)
22765  }
22766  CYTHON_FALLTHROUGH;
22767  case 3:
22768  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
22769  else {
22770  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 3); __PYX_ERR(0, 5228, __pyx_L3_error)
22771  }
22772  CYTHON_FALLTHROUGH;
22773  case 4:
22774  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
22775  else {
22776  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 4); __PYX_ERR(0, 5228, __pyx_L3_error)
22777  }
22778  CYTHON_FALLTHROUGH;
22779  case 5:
22780  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
22781  else {
22782  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 5); __PYX_ERR(0, 5228, __pyx_L3_error)
22783  }
22784  CYTHON_FALLTHROUGH;
22785  case 6:
22786  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vof)) != 0)) kw_args--;
22787  else {
22788  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 6); __PYX_ERR(0, 5228, __pyx_L3_error)
22789  }
22790  CYTHON_FALLTHROUGH;
22791  case 7:
22792  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
22793  else {
22794  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 7); __PYX_ERR(0, 5228, __pyx_L3_error)
22795  }
22796  CYTHON_FALLTHROUGH;
22797  case 8:
22798  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
22799  else {
22800  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 8); __PYX_ERR(0, 5228, __pyx_L3_error)
22801  }
22802  CYTHON_FALLTHROUGH;
22803  case 9:
22804  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
22805  else {
22806  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 9); __PYX_ERR(0, 5228, __pyx_L3_error)
22807  }
22808  CYTHON_FALLTHROUGH;
22809  case 10:
22810  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
22811  else {
22812  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 10); __PYX_ERR(0, 5228, __pyx_L3_error)
22813  }
22814  CYTHON_FALLTHROUGH;
22815  case 11:
22816  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
22817  else {
22818  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 11); __PYX_ERR(0, 5228, __pyx_L3_error)
22819  }
22820  CYTHON_FALLTHROUGH;
22821  case 12:
22822  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
22823  else {
22824  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 12); __PYX_ERR(0, 5228, __pyx_L3_error)
22825  }
22826  CYTHON_FALLTHROUGH;
22827  case 13:
22828  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
22829  else {
22830  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 13); __PYX_ERR(0, 5228, __pyx_L3_error)
22831  }
22832  CYTHON_FALLTHROUGH;
22833  case 14:
22834  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
22835  else {
22836  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 14); __PYX_ERR(0, 5228, __pyx_L3_error)
22837  }
22838  CYTHON_FALLTHROUGH;
22839  case 15:
22840  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
22841  else {
22842  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 15); __PYX_ERR(0, 5228, __pyx_L3_error)
22843  }
22844  CYTHON_FALLTHROUGH;
22845  case 16:
22846  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
22847  else {
22848  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 16); __PYX_ERR(0, 5228, __pyx_L3_error)
22849  }
22850  CYTHON_FALLTHROUGH;
22851  case 17:
22852  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
22853  else {
22854  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 17); __PYX_ERR(0, 5228, __pyx_L3_error)
22855  }
22856  CYTHON_FALLTHROUGH;
22857  case 18:
22858  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
22859  else {
22860  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 18); __PYX_ERR(0, 5228, __pyx_L3_error)
22861  }
22862  CYTHON_FALLTHROUGH;
22863  case 19:
22864  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
22865  else {
22866  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 19); __PYX_ERR(0, 5228, __pyx_L3_error)
22867  }
22868  CYTHON_FALLTHROUGH;
22869  case 20:
22870  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
22871  else {
22872  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 20); __PYX_ERR(0, 5228, __pyx_L3_error)
22873  }
22874  CYTHON_FALLTHROUGH;
22875  case 21:
22876  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
22877  else {
22878  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 21); __PYX_ERR(0, 5228, __pyx_L3_error)
22879  }
22880  CYTHON_FALLTHROUGH;
22881  case 22:
22882  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
22883  else {
22884  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 22); __PYX_ERR(0, 5228, __pyx_L3_error)
22885  }
22886  CYTHON_FALLTHROUGH;
22887  case 23:
22888  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
22889  else {
22890  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 23); __PYX_ERR(0, 5228, __pyx_L3_error)
22891  }
22892  CYTHON_FALLTHROUGH;
22893  case 24:
22894  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
22895  else {
22896  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 24); __PYX_ERR(0, 5228, __pyx_L3_error)
22897  }
22898  CYTHON_FALLTHROUGH;
22899  case 25:
22900  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
22901  else {
22902  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 25); __PYX_ERR(0, 5228, __pyx_L3_error)
22903  }
22904  }
22905  if (unlikely(kw_args > 0)) {
22906  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "TwophaseStokes_VOF_SO_2D_Evaluate") < 0)) __PYX_ERR(0, 5228, __pyx_L3_error)
22907  }
22908  } else if (PyTuple_GET_SIZE(__pyx_args) != 26) {
22909  goto __pyx_L5_argtuple_error;
22910  } else {
22911  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22912  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22913  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22914  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
22915  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
22916  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
22917  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
22918  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
22919  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
22920  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
22921  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
22922  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
22923  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
22924  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
22925  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
22926  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
22927  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
22928  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
22929  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
22930  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
22931  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
22932  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
22933  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
22934  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
22935  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
22936  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
22937  }
22938  __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5228, __pyx_L3_error)
22939  __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_rho_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5229, __pyx_L3_error)
22940  __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_nu_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5230, __pyx_L3_error)
22941  __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_rho_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5231, __pyx_L3_error)
22942  __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_nu_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5232, __pyx_L3_error)
22943  __pyx_v_g = ((PyArrayObject *)values[5]);
22944  __pyx_v_vof = ((PyArrayObject *)values[6]);
22945  __pyx_v_p = ((PyArrayObject *)values[7]);
22946  __pyx_v_grad_p = ((PyArrayObject *)values[8]);
22947  __pyx_v_u = ((PyArrayObject *)values[9]);
22948  __pyx_v_v = ((PyArrayObject *)values[10]);
22949  __pyx_v_mom_u_acc = ((PyArrayObject *)values[11]);
22950  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[12]);
22951  __pyx_v_mom_v_acc = ((PyArrayObject *)values[13]);
22952  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[14]);
22953  __pyx_v_mass_adv = ((PyArrayObject *)values[15]);
22954  __pyx_v_dmass_adv_u = ((PyArrayObject *)values[16]);
22955  __pyx_v_dmass_adv_v = ((PyArrayObject *)values[17]);
22956  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[18]);
22957  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[19]);
22958  __pyx_v_mom_u_source = ((PyArrayObject *)values[20]);
22959  __pyx_v_mom_v_source = ((PyArrayObject *)values[21]);
22960  __pyx_v_mom_u_ham = ((PyArrayObject *)values[22]);
22961  __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[23]);
22962  __pyx_v_mom_v_ham = ((PyArrayObject *)values[24]);
22963  __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[25]);
22964  }
22965  goto __pyx_L4_argument_unpacking_done;
22966  __pyx_L5_argtuple_error:;
22967  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5228, __pyx_L3_error)
22968  __pyx_L3_error:;
22969  __Pyx_AddTraceback("ctransportCoefficients.TwophaseStokes_VOF_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
22970  __Pyx_RefNannyFinishContext();
22971  return NULL;
22972  __pyx_L4_argument_unpacking_done:;
22973  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 5233, __pyx_L1_error)
22974  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vof), __pyx_ptype_5numpy_ndarray, 1, "vof", 0))) __PYX_ERR(0, 5234, __pyx_L1_error)
22975  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 5235, __pyx_L1_error)
22976  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1, "grad_p", 0))) __PYX_ERR(0, 5236, __pyx_L1_error)
22977  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 5237, __pyx_L1_error)
22978  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 5238, __pyx_L1_error)
22979  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 5239, __pyx_L1_error)
22980  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 5240, __pyx_L1_error)
22981  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 5241, __pyx_L1_error)
22982  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 5242, __pyx_L1_error)
22983  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 5243, __pyx_L1_error)
22984  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_u", 0))) __PYX_ERR(0, 5244, __pyx_L1_error)
22985  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_v", 0))) __PYX_ERR(0, 5245, __pyx_L1_error)
22986  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 5246, __pyx_L1_error)
22987  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 5247, __pyx_L1_error)
22988  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 5248, __pyx_L1_error)
22989  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 5249, __pyx_L1_error)
22990  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_u_ham", 0))) __PYX_ERR(0, 5250, __pyx_L1_error)
22991  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 5251, __pyx_L1_error)
22992  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_v_ham", 0))) __PYX_ERR(0, 5252, __pyx_L1_error)
22993  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 5253, __pyx_L1_error)
22994  __pyx_r = __pyx_pf_22ctransportCoefficients_104TwophaseStokes_VOF_SO_2D_Evaluate(__pyx_self, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_g, __pyx_v_vof, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p);
22995 
22996  /* function exit code */
22997  goto __pyx_L0;
22998  __pyx_L1_error:;
22999  __pyx_r = NULL;
23000  __pyx_L0:;
23001  __Pyx_RefNannyFinishContext();
23002  return __pyx_r;
23003 }
23004 
23005 static PyObject *__pyx_pf_22ctransportCoefficients_104TwophaseStokes_VOF_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_vof, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p) {
23006  PyObject *__pyx_r = NULL;
23007  __Pyx_RefNannyDeclarations
23008  PyObject *__pyx_t_1 = NULL;
23009  int __pyx_t_2;
23010  int __pyx_lineno = 0;
23011  const char *__pyx_filename = NULL;
23012  int __pyx_clineno = 0;
23013  __Pyx_RefNannySetupContext("TwophaseStokes_VOF_SO_2D_Evaluate", 0);
23014 
23015  /* "ctransportCoefficients.pyx":5254
23016  * np.ndarray mom_v_ham,
23017  * np.ndarray dmom_v_ham_grad_p):
23018  * cTwophaseStokes_VOF_SO_2D_Evaluate(p.size, # <<<<<<<<<<<<<<
23019  * eps,
23020  * rho_0,
23021  */
23022  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5254, __pyx_L1_error)
23023  __Pyx_GOTREF(__pyx_t_1);
23024  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5254, __pyx_L1_error)
23025  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
23026 
23027  /* "ctransportCoefficients.pyx":5280
23028  * <double*> dmom_u_ham_grad_p.data,
23029  * <double*> mom_v_ham.data,
23030  * <double*> dmom_v_ham_grad_p.data) # <<<<<<<<<<<<<<
23031  * def TwophaseStokes_VOF_SO_3D_Evaluate(const double eps,
23032  * const double rho_0,
23033  */
23034  TwophaseStokes_VOF_SO_2D_Evaluate(__pyx_t_2, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((double *)__pyx_v_g->data), ((double *)__pyx_v_vof->data), ((double *)__pyx_v_p->data), ((double *)__pyx_v_grad_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_v_acc_v->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_u->data), ((double *)__pyx_v_dmass_adv_v->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_mom_u_ham->data), ((double *)__pyx_v_dmom_u_ham_grad_p->data), ((double *)__pyx_v_mom_v_ham->data), ((double *)__pyx_v_dmom_v_ham_grad_p->data));
23035 
23036  /* "ctransportCoefficients.pyx":5228
23037  * <double*> mom_w_ham.data,
23038  * <double*> dmom_w_ham_grad_p.data)
23039  * def TwophaseStokes_VOF_SO_2D_Evaluate(const double eps, # <<<<<<<<<<<<<<
23040  * const double rho_0,
23041  * const double nu_0,
23042  */
23043 
23044  /* function exit code */
23045  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
23046  goto __pyx_L0;
23047  __pyx_L1_error:;
23048  __Pyx_XDECREF(__pyx_t_1);
23049  __Pyx_AddTraceback("ctransportCoefficients.TwophaseStokes_VOF_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
23050  __pyx_r = NULL;
23051  __pyx_L0:;
23052  __Pyx_XGIVEREF(__pyx_r);
23053  __Pyx_RefNannyFinishContext();
23054  return __pyx_r;
23055 }
23056 
23057 /* "ctransportCoefficients.pyx":5281
23058  * <double*> mom_v_ham.data,
23059  * <double*> dmom_v_ham_grad_p.data)
23060  * def TwophaseStokes_VOF_SO_3D_Evaluate(const double eps, # <<<<<<<<<<<<<<
23061  * const double rho_0,
23062  * const double nu_0,
23063  */
23064 
23065 /* Python wrapper */
23066 static PyObject *__pyx_pw_22ctransportCoefficients_107TwophaseStokes_VOF_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
23067 static PyMethodDef __pyx_mdef_22ctransportCoefficients_107TwophaseStokes_VOF_SO_3D_Evaluate = {"TwophaseStokes_VOF_SO_3D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_107TwophaseStokes_VOF_SO_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
23068 static PyObject *__pyx_pw_22ctransportCoefficients_107TwophaseStokes_VOF_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
23069  double __pyx_v_eps;
23070  double __pyx_v_rho_0;
23071  double __pyx_v_nu_0;
23072  double __pyx_v_rho_1;
23073  double __pyx_v_nu_1;
23074  PyArrayObject *__pyx_v_g = 0;
23075  PyArrayObject *__pyx_v_vof = 0;
23076  PyArrayObject *__pyx_v_p = 0;
23077  PyArrayObject *__pyx_v_grad_p = 0;
23078  PyArrayObject *__pyx_v_u = 0;
23079  PyArrayObject *__pyx_v_v = 0;
23080  PyArrayObject *__pyx_v_w = 0;
23081  PyArrayObject *__pyx_v_mom_u_acc = 0;
23082  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
23083  PyArrayObject *__pyx_v_mom_v_acc = 0;
23084  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
23085  PyArrayObject *__pyx_v_mom_w_acc = 0;
23086  PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
23087  PyArrayObject *__pyx_v_mass_adv = 0;
23088  PyArrayObject *__pyx_v_dmass_adv_u = 0;
23089  PyArrayObject *__pyx_v_dmass_adv_v = 0;
23090  PyArrayObject *__pyx_v_dmass_adv_w = 0;
23091  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
23092  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
23093  PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
23094  PyArrayObject *__pyx_v_mom_u_source = 0;
23095  PyArrayObject *__pyx_v_mom_v_source = 0;
23096  PyArrayObject *__pyx_v_mom_w_source = 0;
23097  PyArrayObject *__pyx_v_mom_u_ham = 0;
23098  PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
23099  PyArrayObject *__pyx_v_mom_v_ham = 0;
23100  PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
23101  PyArrayObject *__pyx_v_mom_w_ham = 0;
23102  PyArrayObject *__pyx_v_dmom_w_ham_grad_p = 0;
23103  int __pyx_lineno = 0;
23104  const char *__pyx_filename = NULL;
23105  int __pyx_clineno = 0;
23106  PyObject *__pyx_r = 0;
23107  __Pyx_RefNannyDeclarations
23108  __Pyx_RefNannySetupContext("TwophaseStokes_VOF_SO_3D_Evaluate (wrapper)", 0);
23109  {
23110  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_g,&__pyx_n_s_vof,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_w_acc_w,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_dmass_adv_w,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,&__pyx_n_s_mom_w_ham,&__pyx_n_s_dmom_w_ham_grad_p,0};
23111  PyObject* values[34] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
23112  if (unlikely(__pyx_kwds)) {
23113  Py_ssize_t kw_args;
23114  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
23115  switch (pos_args) {
23116  case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
23117  CYTHON_FALLTHROUGH;
23118  case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
23119  CYTHON_FALLTHROUGH;
23120  case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
23121  CYTHON_FALLTHROUGH;
23122  case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
23123  CYTHON_FALLTHROUGH;
23124  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
23125  CYTHON_FALLTHROUGH;
23126  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
23127  CYTHON_FALLTHROUGH;
23128  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
23129  CYTHON_FALLTHROUGH;
23130  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
23131  CYTHON_FALLTHROUGH;
23132  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
23133  CYTHON_FALLTHROUGH;
23134  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
23135  CYTHON_FALLTHROUGH;
23136  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
23137  CYTHON_FALLTHROUGH;
23138  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
23139  CYTHON_FALLTHROUGH;
23140  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
23141  CYTHON_FALLTHROUGH;
23142  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
23143  CYTHON_FALLTHROUGH;
23144  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
23145  CYTHON_FALLTHROUGH;
23146  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
23147  CYTHON_FALLTHROUGH;
23148  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
23149  CYTHON_FALLTHROUGH;
23150  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
23151  CYTHON_FALLTHROUGH;
23152  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
23153  CYTHON_FALLTHROUGH;
23154  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
23155  CYTHON_FALLTHROUGH;
23156  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
23157  CYTHON_FALLTHROUGH;
23158  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
23159  CYTHON_FALLTHROUGH;
23160  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
23161  CYTHON_FALLTHROUGH;
23162  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
23163  CYTHON_FALLTHROUGH;
23164  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
23165  CYTHON_FALLTHROUGH;
23166  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
23167  CYTHON_FALLTHROUGH;
23168  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
23169  CYTHON_FALLTHROUGH;
23170  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
23171  CYTHON_FALLTHROUGH;
23172  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
23173  CYTHON_FALLTHROUGH;
23174  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
23175  CYTHON_FALLTHROUGH;
23176  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
23177  CYTHON_FALLTHROUGH;
23178  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23179  CYTHON_FALLTHROUGH;
23180  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23181  CYTHON_FALLTHROUGH;
23182  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23183  CYTHON_FALLTHROUGH;
23184  case 0: break;
23185  default: goto __pyx_L5_argtuple_error;
23186  }
23187  kw_args = PyDict_Size(__pyx_kwds);
23188  switch (pos_args) {
23189  case 0:
23190  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
23191  else goto __pyx_L5_argtuple_error;
23192  CYTHON_FALLTHROUGH;
23193  case 1:
23194  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
23195  else {
23196  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 1); __PYX_ERR(0, 5281, __pyx_L3_error)
23197  }
23198  CYTHON_FALLTHROUGH;
23199  case 2:
23200  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
23201  else {
23202  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 2); __PYX_ERR(0, 5281, __pyx_L3_error)
23203  }
23204  CYTHON_FALLTHROUGH;
23205  case 3:
23206  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
23207  else {
23208  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 3); __PYX_ERR(0, 5281, __pyx_L3_error)
23209  }
23210  CYTHON_FALLTHROUGH;
23211  case 4:
23212  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
23213  else {
23214  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 4); __PYX_ERR(0, 5281, __pyx_L3_error)
23215  }
23216  CYTHON_FALLTHROUGH;
23217  case 5:
23218  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
23219  else {
23220  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 5); __PYX_ERR(0, 5281, __pyx_L3_error)
23221  }
23222  CYTHON_FALLTHROUGH;
23223  case 6:
23224  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vof)) != 0)) kw_args--;
23225  else {
23226  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 6); __PYX_ERR(0, 5281, __pyx_L3_error)
23227  }
23228  CYTHON_FALLTHROUGH;
23229  case 7:
23230  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
23231  else {
23232  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 7); __PYX_ERR(0, 5281, __pyx_L3_error)
23233  }
23234  CYTHON_FALLTHROUGH;
23235  case 8:
23236  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
23237  else {
23238  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 8); __PYX_ERR(0, 5281, __pyx_L3_error)
23239  }
23240  CYTHON_FALLTHROUGH;
23241  case 9:
23242  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
23243  else {
23244  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 9); __PYX_ERR(0, 5281, __pyx_L3_error)
23245  }
23246  CYTHON_FALLTHROUGH;
23247  case 10:
23248  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
23249  else {
23250  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 10); __PYX_ERR(0, 5281, __pyx_L3_error)
23251  }
23252  CYTHON_FALLTHROUGH;
23253  case 11:
23254  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
23255  else {
23256  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 11); __PYX_ERR(0, 5281, __pyx_L3_error)
23257  }
23258  CYTHON_FALLTHROUGH;
23259  case 12:
23260  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
23261  else {
23262  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 12); __PYX_ERR(0, 5281, __pyx_L3_error)
23263  }
23264  CYTHON_FALLTHROUGH;
23265  case 13:
23266  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
23267  else {
23268  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 13); __PYX_ERR(0, 5281, __pyx_L3_error)
23269  }
23270  CYTHON_FALLTHROUGH;
23271  case 14:
23272  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
23273  else {
23274  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 14); __PYX_ERR(0, 5281, __pyx_L3_error)
23275  }
23276  CYTHON_FALLTHROUGH;
23277  case 15:
23278  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
23279  else {
23280  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 15); __PYX_ERR(0, 5281, __pyx_L3_error)
23281  }
23282  CYTHON_FALLTHROUGH;
23283  case 16:
23284  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
23285  else {
23286  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 16); __PYX_ERR(0, 5281, __pyx_L3_error)
23287  }
23288  CYTHON_FALLTHROUGH;
23289  case 17:
23290  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
23291  else {
23292  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 17); __PYX_ERR(0, 5281, __pyx_L3_error)
23293  }
23294  CYTHON_FALLTHROUGH;
23295  case 18:
23296  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
23297  else {
23298  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 18); __PYX_ERR(0, 5281, __pyx_L3_error)
23299  }
23300  CYTHON_FALLTHROUGH;
23301  case 19:
23302  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
23303  else {
23304  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 19); __PYX_ERR(0, 5281, __pyx_L3_error)
23305  }
23306  CYTHON_FALLTHROUGH;
23307  case 20:
23308  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
23309  else {
23310  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 20); __PYX_ERR(0, 5281, __pyx_L3_error)
23311  }
23312  CYTHON_FALLTHROUGH;
23313  case 21:
23314  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_w)) != 0)) kw_args--;
23315  else {
23316  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 21); __PYX_ERR(0, 5281, __pyx_L3_error)
23317  }
23318  CYTHON_FALLTHROUGH;
23319  case 22:
23320  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
23321  else {
23322  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 22); __PYX_ERR(0, 5281, __pyx_L3_error)
23323  }
23324  CYTHON_FALLTHROUGH;
23325  case 23:
23326  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
23327  else {
23328  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 23); __PYX_ERR(0, 5281, __pyx_L3_error)
23329  }
23330  CYTHON_FALLTHROUGH;
23331  case 24:
23332  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
23333  else {
23334  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 24); __PYX_ERR(0, 5281, __pyx_L3_error)
23335  }
23336  CYTHON_FALLTHROUGH;
23337  case 25:
23338  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
23339  else {
23340  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 25); __PYX_ERR(0, 5281, __pyx_L3_error)
23341  }
23342  CYTHON_FALLTHROUGH;
23343  case 26:
23344  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
23345  else {
23346  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 26); __PYX_ERR(0, 5281, __pyx_L3_error)
23347  }
23348  CYTHON_FALLTHROUGH;
23349  case 27:
23350  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
23351  else {
23352  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 27); __PYX_ERR(0, 5281, __pyx_L3_error)
23353  }
23354  CYTHON_FALLTHROUGH;
23355  case 28:
23356  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
23357  else {
23358  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 28); __PYX_ERR(0, 5281, __pyx_L3_error)
23359  }
23360  CYTHON_FALLTHROUGH;
23361  case 29:
23362  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
23363  else {
23364  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 29); __PYX_ERR(0, 5281, __pyx_L3_error)
23365  }
23366  CYTHON_FALLTHROUGH;
23367  case 30:
23368  if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
23369  else {
23370  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 30); __PYX_ERR(0, 5281, __pyx_L3_error)
23371  }
23372  CYTHON_FALLTHROUGH;
23373  case 31:
23374  if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
23375  else {
23376  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 31); __PYX_ERR(0, 5281, __pyx_L3_error)
23377  }
23378  CYTHON_FALLTHROUGH;
23379  case 32:
23380  if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_ham)) != 0)) kw_args--;
23381  else {
23382  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 32); __PYX_ERR(0, 5281, __pyx_L3_error)
23383  }
23384  CYTHON_FALLTHROUGH;
23385  case 33:
23386  if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_ham_grad_p)) != 0)) kw_args--;
23387  else {
23388  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 33); __PYX_ERR(0, 5281, __pyx_L3_error)
23389  }
23390  }
23391  if (unlikely(kw_args > 0)) {
23392  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "TwophaseStokes_VOF_SO_3D_Evaluate") < 0)) __PYX_ERR(0, 5281, __pyx_L3_error)
23393  }
23394  } else if (PyTuple_GET_SIZE(__pyx_args) != 34) {
23395  goto __pyx_L5_argtuple_error;
23396  } else {
23397  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23398  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23399  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23400  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
23401  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
23402  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
23403  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
23404  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
23405  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
23406  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
23407  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
23408  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
23409  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
23410  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
23411  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
23412  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
23413  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
23414  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
23415  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
23416  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
23417  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
23418  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
23419  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
23420  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
23421  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
23422  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
23423  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
23424  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
23425  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
23426  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
23427  values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
23428  values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
23429  values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
23430  values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
23431  }
23432  __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5281, __pyx_L3_error)
23433  __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_rho_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5282, __pyx_L3_error)
23434  __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_nu_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5283, __pyx_L3_error)
23435  __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_rho_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5284, __pyx_L3_error)
23436  __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_nu_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5285, __pyx_L3_error)
23437  __pyx_v_g = ((PyArrayObject *)values[5]);
23438  __pyx_v_vof = ((PyArrayObject *)values[6]);
23439  __pyx_v_p = ((PyArrayObject *)values[7]);
23440  __pyx_v_grad_p = ((PyArrayObject *)values[8]);
23441  __pyx_v_u = ((PyArrayObject *)values[9]);
23442  __pyx_v_v = ((PyArrayObject *)values[10]);
23443  __pyx_v_w = ((PyArrayObject *)values[11]);
23444  __pyx_v_mom_u_acc = ((PyArrayObject *)values[12]);
23445  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[13]);
23446  __pyx_v_mom_v_acc = ((PyArrayObject *)values[14]);
23447  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[15]);
23448  __pyx_v_mom_w_acc = ((PyArrayObject *)values[16]);
23449  __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[17]);
23450  __pyx_v_mass_adv = ((PyArrayObject *)values[18]);
23451  __pyx_v_dmass_adv_u = ((PyArrayObject *)values[19]);
23452  __pyx_v_dmass_adv_v = ((PyArrayObject *)values[20]);
23453  __pyx_v_dmass_adv_w = ((PyArrayObject *)values[21]);
23454  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[22]);
23455  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[23]);
23456  __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[24]);
23457  __pyx_v_mom_u_source = ((PyArrayObject *)values[25]);
23458  __pyx_v_mom_v_source = ((PyArrayObject *)values[26]);
23459  __pyx_v_mom_w_source = ((PyArrayObject *)values[27]);
23460  __pyx_v_mom_u_ham = ((PyArrayObject *)values[28]);
23461  __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[29]);
23462  __pyx_v_mom_v_ham = ((PyArrayObject *)values[30]);
23463  __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[31]);
23464  __pyx_v_mom_w_ham = ((PyArrayObject *)values[32]);
23465  __pyx_v_dmom_w_ham_grad_p = ((PyArrayObject *)values[33]);
23466  }
23467  goto __pyx_L4_argument_unpacking_done;
23468  __pyx_L5_argtuple_error:;
23469  __Pyx_RaiseArgtupleInvalid("TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5281, __pyx_L3_error)
23470  __pyx_L3_error:;
23471  __Pyx_AddTraceback("ctransportCoefficients.TwophaseStokes_VOF_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
23472  __Pyx_RefNannyFinishContext();
23473  return NULL;
23474  __pyx_L4_argument_unpacking_done:;
23475  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 5286, __pyx_L1_error)
23476  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vof), __pyx_ptype_5numpy_ndarray, 1, "vof", 0))) __PYX_ERR(0, 5287, __pyx_L1_error)
23477  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 5288, __pyx_L1_error)
23478  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1, "grad_p", 0))) __PYX_ERR(0, 5289, __pyx_L1_error)
23479  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 5290, __pyx_L1_error)
23480  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 5291, __pyx_L1_error)
23481  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1, "w", 0))) __PYX_ERR(0, 5292, __pyx_L1_error)
23482  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 5293, __pyx_L1_error)
23483  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 5294, __pyx_L1_error)
23484  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 5295, __pyx_L1_error)
23485  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 5296, __pyx_L1_error)
23486  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_w_acc", 0))) __PYX_ERR(0, 5297, __pyx_L1_error)
23487  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_acc_w", 0))) __PYX_ERR(0, 5298, __pyx_L1_error)
23488  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 5299, __pyx_L1_error)
23489  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_u", 0))) __PYX_ERR(0, 5300, __pyx_L1_error)
23490  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_v", 0))) __PYX_ERR(0, 5301, __pyx_L1_error)
23491  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_w", 0))) __PYX_ERR(0, 5302, __pyx_L1_error)
23492  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 5303, __pyx_L1_error)
23493  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 5304, __pyx_L1_error)
23494  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_w_diff_ten", 0))) __PYX_ERR(0, 5305, __pyx_L1_error)
23495  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 5306, __pyx_L1_error)
23496  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 5307, __pyx_L1_error)
23497  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1, "mom_w_source", 0))) __PYX_ERR(0, 5308, __pyx_L1_error)
23498  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_u_ham", 0))) __PYX_ERR(0, 5309, __pyx_L1_error)
23499  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 5310, __pyx_L1_error)
23500  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_v_ham", 0))) __PYX_ERR(0, 5311, __pyx_L1_error)
23501  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 5312, __pyx_L1_error)
23502  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_w_ham", 0))) __PYX_ERR(0, 5313, __pyx_L1_error)
23503  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_ham_grad_p", 0))) __PYX_ERR(0, 5314, __pyx_L1_error)
23504  __pyx_r = __pyx_pf_22ctransportCoefficients_106TwophaseStokes_VOF_SO_3D_Evaluate(__pyx_self, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_g, __pyx_v_vof, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mom_w_acc, __pyx_v_dmom_w_acc_w, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_dmass_adv_w, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p, __pyx_v_mom_w_ham, __pyx_v_dmom_w_ham_grad_p);
23505 
23506  /* function exit code */
23507  goto __pyx_L0;
23508  __pyx_L1_error:;
23509  __pyx_r = NULL;
23510  __pyx_L0:;
23511  __Pyx_RefNannyFinishContext();
23512  return __pyx_r;
23513 }
23514 
23515 static PyObject *__pyx_pf_22ctransportCoefficients_106TwophaseStokes_VOF_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_vof, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p) {
23516  PyObject *__pyx_r = NULL;
23517  __Pyx_RefNannyDeclarations
23518  PyObject *__pyx_t_1 = NULL;
23519  int __pyx_t_2;
23520  int __pyx_lineno = 0;
23521  const char *__pyx_filename = NULL;
23522  int __pyx_clineno = 0;
23523  __Pyx_RefNannySetupContext("TwophaseStokes_VOF_SO_3D_Evaluate", 0);
23524 
23525  /* "ctransportCoefficients.pyx":5315
23526  * np.ndarray mom_w_ham,
23527  * np.ndarray dmom_w_ham_grad_p):
23528  * cTwophaseStokes_VOF_SO_3D_Evaluate(p.size, # <<<<<<<<<<<<<<
23529  * eps,
23530  * rho_0,
23531  */
23532  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5315, __pyx_L1_error)
23533  __Pyx_GOTREF(__pyx_t_1);
23534  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5315, __pyx_L1_error)
23535  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
23536 
23537  /* "ctransportCoefficients.pyx":5349
23538  * <double*> dmom_v_ham_grad_p.data,
23539  * <double*> mom_w_ham.data,
23540  * <double*> dmom_w_ham_grad_p.data) # <<<<<<<<<<<<<<
23541  * def unitSquareVortexEvaluate(double t,
23542  * np.ndarray x,
23543  */
23544  TwophaseStokes_VOF_SO_3D_Evaluate(__pyx_t_2, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((double *)__pyx_v_g->data), ((double *)__pyx_v_vof->data), ((double *)__pyx_v_p->data), ((double *)__pyx_v_grad_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_w->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_v_acc_v->data), ((double *)__pyx_v_mom_w_acc->data), ((double *)__pyx_v_dmom_w_acc_w->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_u->data), ((double *)__pyx_v_dmass_adv_v->data), ((double *)__pyx_v_dmass_adv_w->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_w_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_mom_w_source->data), ((double *)__pyx_v_mom_u_ham->data), ((double *)__pyx_v_dmom_u_ham_grad_p->data), ((double *)__pyx_v_mom_v_ham->data), ((double *)__pyx_v_dmom_v_ham_grad_p->data), ((double *)__pyx_v_mom_w_ham->data), ((double *)__pyx_v_dmom_w_ham_grad_p->data));
23545 
23546  /* "ctransportCoefficients.pyx":5281
23547  * <double*> mom_v_ham.data,
23548  * <double*> dmom_v_ham_grad_p.data)
23549  * def TwophaseStokes_VOF_SO_3D_Evaluate(const double eps, # <<<<<<<<<<<<<<
23550  * const double rho_0,
23551  * const double nu_0,
23552  */
23553 
23554  /* function exit code */
23555  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
23556  goto __pyx_L0;
23557  __pyx_L1_error:;
23558  __Pyx_XDECREF(__pyx_t_1);
23559  __Pyx_AddTraceback("ctransportCoefficients.TwophaseStokes_VOF_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
23560  __pyx_r = NULL;
23561  __pyx_L0:;
23562  __Pyx_XGIVEREF(__pyx_r);
23563  __Pyx_RefNannyFinishContext();
23564  return __pyx_r;
23565 }
23566 
23567 /* "ctransportCoefficients.pyx":5350
23568  * <double*> mom_w_ham.data,
23569  * <double*> dmom_w_ham_grad_p.data)
23570  * def unitSquareVortexEvaluate(double t, # <<<<<<<<<<<<<<
23571  * np.ndarray x,
23572  * np.ndarray u,
23573  */
23574 
23575 /* Python wrapper */
23576 static PyObject *__pyx_pw_22ctransportCoefficients_109unitSquareVortexEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
23577 static PyMethodDef __pyx_mdef_22ctransportCoefficients_109unitSquareVortexEvaluate = {"unitSquareVortexEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_109unitSquareVortexEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
23578 static PyObject *__pyx_pw_22ctransportCoefficients_109unitSquareVortexEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
23579  double __pyx_v_t;
23580  PyArrayObject *__pyx_v_x = 0;
23581  PyArrayObject *__pyx_v_u = 0;
23582  PyArrayObject *__pyx_v_m = 0;
23583  PyArrayObject *__pyx_v_dm = 0;
23584  PyArrayObject *__pyx_v_f = 0;
23585  PyArrayObject *__pyx_v_df = 0;
23586  int __pyx_lineno = 0;
23587  const char *__pyx_filename = NULL;
23588  int __pyx_clineno = 0;
23589  PyObject *__pyx_r = 0;
23590  __Pyx_RefNannyDeclarations
23591  __Pyx_RefNannySetupContext("unitSquareVortexEvaluate (wrapper)", 0);
23592  {
23593  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_t,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,0};
23594  PyObject* values[7] = {0,0,0,0,0,0,0};
23595  if (unlikely(__pyx_kwds)) {
23596  Py_ssize_t kw_args;
23597  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
23598  switch (pos_args) {
23599  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
23600  CYTHON_FALLTHROUGH;
23601  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
23602  CYTHON_FALLTHROUGH;
23603  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
23604  CYTHON_FALLTHROUGH;
23605  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
23606  CYTHON_FALLTHROUGH;
23607  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23608  CYTHON_FALLTHROUGH;
23609  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23610  CYTHON_FALLTHROUGH;
23611  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23612  CYTHON_FALLTHROUGH;
23613  case 0: break;
23614  default: goto __pyx_L5_argtuple_error;
23615  }
23616  kw_args = PyDict_Size(__pyx_kwds);
23617  switch (pos_args) {
23618  case 0:
23619  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
23620  else goto __pyx_L5_argtuple_error;
23621  CYTHON_FALLTHROUGH;
23622  case 1:
23623  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
23624  else {
23625  __Pyx_RaiseArgtupleInvalid("unitSquareVortexEvaluate", 1, 7, 7, 1); __PYX_ERR(0, 5350, __pyx_L3_error)
23626  }
23627  CYTHON_FALLTHROUGH;
23628  case 2:
23629  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
23630  else {
23631  __Pyx_RaiseArgtupleInvalid("unitSquareVortexEvaluate", 1, 7, 7, 2); __PYX_ERR(0, 5350, __pyx_L3_error)
23632  }
23633  CYTHON_FALLTHROUGH;
23634  case 3:
23635  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
23636  else {
23637  __Pyx_RaiseArgtupleInvalid("unitSquareVortexEvaluate", 1, 7, 7, 3); __PYX_ERR(0, 5350, __pyx_L3_error)
23638  }
23639  CYTHON_FALLTHROUGH;
23640  case 4:
23641  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
23642  else {
23643  __Pyx_RaiseArgtupleInvalid("unitSquareVortexEvaluate", 1, 7, 7, 4); __PYX_ERR(0, 5350, __pyx_L3_error)
23644  }
23645  CYTHON_FALLTHROUGH;
23646  case 5:
23647  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
23648  else {
23649  __Pyx_RaiseArgtupleInvalid("unitSquareVortexEvaluate", 1, 7, 7, 5); __PYX_ERR(0, 5350, __pyx_L3_error)
23650  }
23651  CYTHON_FALLTHROUGH;
23652  case 6:
23653  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
23654  else {
23655  __Pyx_RaiseArgtupleInvalid("unitSquareVortexEvaluate", 1, 7, 7, 6); __PYX_ERR(0, 5350, __pyx_L3_error)
23656  }
23657  }
23658  if (unlikely(kw_args > 0)) {
23659  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "unitSquareVortexEvaluate") < 0)) __PYX_ERR(0, 5350, __pyx_L3_error)
23660  }
23661  } else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
23662  goto __pyx_L5_argtuple_error;
23663  } else {
23664  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23665  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23666  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23667  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
23668  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
23669  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
23670  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
23671  }
23672  __pyx_v_t = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_t == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5350, __pyx_L3_error)
23673  __pyx_v_x = ((PyArrayObject *)values[1]);
23674  __pyx_v_u = ((PyArrayObject *)values[2]);
23675  __pyx_v_m = ((PyArrayObject *)values[3]);
23676  __pyx_v_dm = ((PyArrayObject *)values[4]);
23677  __pyx_v_f = ((PyArrayObject *)values[5]);
23678  __pyx_v_df = ((PyArrayObject *)values[6]);
23679  }
23680  goto __pyx_L4_argument_unpacking_done;
23681  __pyx_L5_argtuple_error:;
23682  __Pyx_RaiseArgtupleInvalid("unitSquareVortexEvaluate", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5350, __pyx_L3_error)
23683  __pyx_L3_error:;
23684  __Pyx_AddTraceback("ctransportCoefficients.unitSquareVortexEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
23685  __Pyx_RefNannyFinishContext();
23686  return NULL;
23687  __pyx_L4_argument_unpacking_done:;
23688  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1, "x", 0))) __PYX_ERR(0, 5351, __pyx_L1_error)
23689  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 5352, __pyx_L1_error)
23690  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 5353, __pyx_L1_error)
23691  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 5354, __pyx_L1_error)
23692  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 5355, __pyx_L1_error)
23693  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 5356, __pyx_L1_error)
23694  __pyx_r = __pyx_pf_22ctransportCoefficients_108unitSquareVortexEvaluate(__pyx_self, __pyx_v_t, __pyx_v_x, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df);
23695 
23696  /* function exit code */
23697  goto __pyx_L0;
23698  __pyx_L1_error:;
23699  __pyx_r = NULL;
23700  __pyx_L0:;
23701  __Pyx_RefNannyFinishContext();
23702  return __pyx_r;
23703 }
23704 
23705 static PyObject *__pyx_pf_22ctransportCoefficients_108unitSquareVortexEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df) {
23706  PyObject *__pyx_r = NULL;
23707  __Pyx_RefNannyDeclarations
23708  PyObject *__pyx_t_1 = NULL;
23709  int __pyx_t_2;
23710  int __pyx_lineno = 0;
23711  const char *__pyx_filename = NULL;
23712  int __pyx_clineno = 0;
23713  __Pyx_RefNannySetupContext("unitSquareVortexEvaluate", 0);
23714 
23715  /* "ctransportCoefficients.pyx":5357
23716  * np.ndarray f,
23717  * np.ndarray df):
23718  * cunitSquareVortexEvaluate(u.size, # <<<<<<<<<<<<<<
23719  * f.shape[f.ndim-1],
23720  * t,
23721  */
23722  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5357, __pyx_L1_error)
23723  __Pyx_GOTREF(__pyx_t_1);
23724  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5357, __pyx_L1_error)
23725  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
23726 
23727  /* "ctransportCoefficients.pyx":5365
23728  * <double*> dm.data,
23729  * <double*> f.data,
23730  * <double*> df.data) # <<<<<<<<<<<<<<
23731  * def constantVelocityLevelSetEvaluate(np.ndarray b,
23732  * np.ndarray x,
23733  */
23734  unitSquareVortexEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_t, ((double *)__pyx_v_x->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data));
23735 
23736  /* "ctransportCoefficients.pyx":5350
23737  * <double*> mom_w_ham.data,
23738  * <double*> dmom_w_ham_grad_p.data)
23739  * def unitSquareVortexEvaluate(double t, # <<<<<<<<<<<<<<
23740  * np.ndarray x,
23741  * np.ndarray u,
23742  */
23743 
23744  /* function exit code */
23745  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
23746  goto __pyx_L0;
23747  __pyx_L1_error:;
23748  __Pyx_XDECREF(__pyx_t_1);
23749  __Pyx_AddTraceback("ctransportCoefficients.unitSquareVortexEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
23750  __pyx_r = NULL;
23751  __pyx_L0:;
23752  __Pyx_XGIVEREF(__pyx_r);
23753  __Pyx_RefNannyFinishContext();
23754  return __pyx_r;
23755 }
23756 
23757 /* "ctransportCoefficients.pyx":5366
23758  * <double*> f.data,
23759  * <double*> df.data)
23760  * def constantVelocityLevelSetEvaluate(np.ndarray b, # <<<<<<<<<<<<<<
23761  * np.ndarray x,
23762  * np.ndarray u,
23763  */
23764 
23765 /* Python wrapper */
23766 static PyObject *__pyx_pw_22ctransportCoefficients_111constantVelocityLevelSetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
23767 static PyMethodDef __pyx_mdef_22ctransportCoefficients_111constantVelocityLevelSetEvaluate = {"constantVelocityLevelSetEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_111constantVelocityLevelSetEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
23768 static PyObject *__pyx_pw_22ctransportCoefficients_111constantVelocityLevelSetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
23769  PyArrayObject *__pyx_v_b = 0;
23770  PyArrayObject *__pyx_v_x = 0;
23771  PyArrayObject *__pyx_v_u = 0;
23772  PyArrayObject *__pyx_v_gradu = 0;
23773  PyArrayObject *__pyx_v_m = 0;
23774  PyArrayObject *__pyx_v_dm = 0;
23775  PyArrayObject *__pyx_v_f = 0;
23776  PyArrayObject *__pyx_v_df = 0;
23777  PyArrayObject *__pyx_v_H = 0;
23778  PyArrayObject *__pyx_v_dH = 0;
23779  int __pyx_lineno = 0;
23780  const char *__pyx_filename = NULL;
23781  int __pyx_clineno = 0;
23782  PyObject *__pyx_r = 0;
23783  __Pyx_RefNannyDeclarations
23784  __Pyx_RefNannySetupContext("constantVelocityLevelSetEvaluate (wrapper)", 0);
23785  {
23786  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_b,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_gradu,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_H,&__pyx_n_s_dH,0};
23787  PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
23788  if (unlikely(__pyx_kwds)) {
23789  Py_ssize_t kw_args;
23790  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
23791  switch (pos_args) {
23792  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
23793  CYTHON_FALLTHROUGH;
23794  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
23795  CYTHON_FALLTHROUGH;
23796  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
23797  CYTHON_FALLTHROUGH;
23798  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
23799  CYTHON_FALLTHROUGH;
23800  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
23801  CYTHON_FALLTHROUGH;
23802  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
23803  CYTHON_FALLTHROUGH;
23804  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
23805  CYTHON_FALLTHROUGH;
23806  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23807  CYTHON_FALLTHROUGH;
23808  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23809  CYTHON_FALLTHROUGH;
23810  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23811  CYTHON_FALLTHROUGH;
23812  case 0: break;
23813  default: goto __pyx_L5_argtuple_error;
23814  }
23815  kw_args = PyDict_Size(__pyx_kwds);
23816  switch (pos_args) {
23817  case 0:
23818  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--;
23819  else goto __pyx_L5_argtuple_error;
23820  CYTHON_FALLTHROUGH;
23821  case 1:
23822  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
23823  else {
23824  __Pyx_RaiseArgtupleInvalid("constantVelocityLevelSetEvaluate", 1, 10, 10, 1); __PYX_ERR(0, 5366, __pyx_L3_error)
23825  }
23826  CYTHON_FALLTHROUGH;
23827  case 2:
23828  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
23829  else {
23830  __Pyx_RaiseArgtupleInvalid("constantVelocityLevelSetEvaluate", 1, 10, 10, 2); __PYX_ERR(0, 5366, __pyx_L3_error)
23831  }
23832  CYTHON_FALLTHROUGH;
23833  case 3:
23834  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
23835  else {
23836  __Pyx_RaiseArgtupleInvalid("constantVelocityLevelSetEvaluate", 1, 10, 10, 3); __PYX_ERR(0, 5366, __pyx_L3_error)
23837  }
23838  CYTHON_FALLTHROUGH;
23839  case 4:
23840  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
23841  else {
23842  __Pyx_RaiseArgtupleInvalid("constantVelocityLevelSetEvaluate", 1, 10, 10, 4); __PYX_ERR(0, 5366, __pyx_L3_error)
23843  }
23844  CYTHON_FALLTHROUGH;
23845  case 5:
23846  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
23847  else {
23848  __Pyx_RaiseArgtupleInvalid("constantVelocityLevelSetEvaluate", 1, 10, 10, 5); __PYX_ERR(0, 5366, __pyx_L3_error)
23849  }
23850  CYTHON_FALLTHROUGH;
23851  case 6:
23852  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
23853  else {
23854  __Pyx_RaiseArgtupleInvalid("constantVelocityLevelSetEvaluate", 1, 10, 10, 6); __PYX_ERR(0, 5366, __pyx_L3_error)
23855  }
23856  CYTHON_FALLTHROUGH;
23857  case 7:
23858  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
23859  else {
23860  __Pyx_RaiseArgtupleInvalid("constantVelocityLevelSetEvaluate", 1, 10, 10, 7); __PYX_ERR(0, 5366, __pyx_L3_error)
23861  }
23862  CYTHON_FALLTHROUGH;
23863  case 8:
23864  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
23865  else {
23866  __Pyx_RaiseArgtupleInvalid("constantVelocityLevelSetEvaluate", 1, 10, 10, 8); __PYX_ERR(0, 5366, __pyx_L3_error)
23867  }
23868  CYTHON_FALLTHROUGH;
23869  case 9:
23870  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
23871  else {
23872  __Pyx_RaiseArgtupleInvalid("constantVelocityLevelSetEvaluate", 1, 10, 10, 9); __PYX_ERR(0, 5366, __pyx_L3_error)
23873  }
23874  }
23875  if (unlikely(kw_args > 0)) {
23876  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "constantVelocityLevelSetEvaluate") < 0)) __PYX_ERR(0, 5366, __pyx_L3_error)
23877  }
23878  } else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
23879  goto __pyx_L5_argtuple_error;
23880  } else {
23881  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23882  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23883  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23884  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
23885  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
23886  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
23887  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
23888  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
23889  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
23890  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
23891  }
23892  __pyx_v_b = ((PyArrayObject *)values[0]);
23893  __pyx_v_x = ((PyArrayObject *)values[1]);
23894  __pyx_v_u = ((PyArrayObject *)values[2]);
23895  __pyx_v_gradu = ((PyArrayObject *)values[3]);
23896  __pyx_v_m = ((PyArrayObject *)values[4]);
23897  __pyx_v_dm = ((PyArrayObject *)values[5]);
23898  __pyx_v_f = ((PyArrayObject *)values[6]);
23899  __pyx_v_df = ((PyArrayObject *)values[7]);
23900  __pyx_v_H = ((PyArrayObject *)values[8]);
23901  __pyx_v_dH = ((PyArrayObject *)values[9]);
23902  }
23903  goto __pyx_L4_argument_unpacking_done;
23904  __pyx_L5_argtuple_error:;
23905  __Pyx_RaiseArgtupleInvalid("constantVelocityLevelSetEvaluate", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5366, __pyx_L3_error)
23906  __pyx_L3_error:;
23907  __Pyx_AddTraceback("ctransportCoefficients.constantVelocityLevelSetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
23908  __Pyx_RefNannyFinishContext();
23909  return NULL;
23910  __pyx_L4_argument_unpacking_done:;
23911  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_b), __pyx_ptype_5numpy_ndarray, 1, "b", 0))) __PYX_ERR(0, 5366, __pyx_L1_error)
23912  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1, "x", 0))) __PYX_ERR(0, 5367, __pyx_L1_error)
23913  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 5368, __pyx_L1_error)
23914  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1, "gradu", 0))) __PYX_ERR(0, 5369, __pyx_L1_error)
23915  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 5370, __pyx_L1_error)
23916  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 5371, __pyx_L1_error)
23917  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 5372, __pyx_L1_error)
23918  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 5373, __pyx_L1_error)
23919  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1, "H", 0))) __PYX_ERR(0, 5374, __pyx_L1_error)
23920  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1, "dH", 0))) __PYX_ERR(0, 5375, __pyx_L1_error)
23921  __pyx_r = __pyx_pf_22ctransportCoefficients_110constantVelocityLevelSetEvaluate(__pyx_self, __pyx_v_b, __pyx_v_x, __pyx_v_u, __pyx_v_gradu, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_H, __pyx_v_dH);
23922 
23923  /* function exit code */
23924  goto __pyx_L0;
23925  __pyx_L1_error:;
23926  __pyx_r = NULL;
23927  __pyx_L0:;
23928  __Pyx_RefNannyFinishContext();
23929  return __pyx_r;
23930 }
23931 
23932 static PyObject *__pyx_pf_22ctransportCoefficients_110constantVelocityLevelSetEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_b, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH) {
23933  PyObject *__pyx_r = NULL;
23934  __Pyx_RefNannyDeclarations
23935  PyObject *__pyx_t_1 = NULL;
23936  int __pyx_t_2;
23937  int __pyx_lineno = 0;
23938  const char *__pyx_filename = NULL;
23939  int __pyx_clineno = 0;
23940  __Pyx_RefNannySetupContext("constantVelocityLevelSetEvaluate", 0);
23941 
23942  /* "ctransportCoefficients.pyx":5376
23943  * np.ndarray H,
23944  * np.ndarray dH):
23945  * cconstantVelocityLevelSetEvaluate(u.size, # <<<<<<<<<<<<<<
23946  * f.shape[f.ndim-1],
23947  * <double*> b.data,
23948  */
23949  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5376, __pyx_L1_error)
23950  __Pyx_GOTREF(__pyx_t_1);
23951  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5376, __pyx_L1_error)
23952  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
23953 
23954  /* "ctransportCoefficients.pyx":5387
23955  * <double*> df.data,
23956  * <double*> H.data,
23957  * <double*> dH.data) # <<<<<<<<<<<<<<
23958  * def constantNormalVelocityLevelSetEvaluate(double b,
23959  * np.ndarray x,
23960  */
23961  constantVelocityLevelSetEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), ((double *)__pyx_v_b->data), ((double *)__pyx_v_x->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_gradu->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_H->data), ((double *)__pyx_v_dH->data));
23962 
23963  /* "ctransportCoefficients.pyx":5366
23964  * <double*> f.data,
23965  * <double*> df.data)
23966  * def constantVelocityLevelSetEvaluate(np.ndarray b, # <<<<<<<<<<<<<<
23967  * np.ndarray x,
23968  * np.ndarray u,
23969  */
23970 
23971  /* function exit code */
23972  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
23973  goto __pyx_L0;
23974  __pyx_L1_error:;
23975  __Pyx_XDECREF(__pyx_t_1);
23976  __Pyx_AddTraceback("ctransportCoefficients.constantVelocityLevelSetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
23977  __pyx_r = NULL;
23978  __pyx_L0:;
23979  __Pyx_XGIVEREF(__pyx_r);
23980  __Pyx_RefNannyFinishContext();
23981  return __pyx_r;
23982 }
23983 
23984 /* "ctransportCoefficients.pyx":5388
23985  * <double*> H.data,
23986  * <double*> dH.data)
23987  * def constantNormalVelocityLevelSetEvaluate(double b, # <<<<<<<<<<<<<<
23988  * np.ndarray x,
23989  * np.ndarray u,
23990  */
23991 
23992 /* Python wrapper */
23993 static PyObject *__pyx_pw_22ctransportCoefficients_113constantNormalVelocityLevelSetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
23994 static PyMethodDef __pyx_mdef_22ctransportCoefficients_113constantNormalVelocityLevelSetEvaluate = {"constantNormalVelocityLevelSetEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_113constantNormalVelocityLevelSetEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
23995 static PyObject *__pyx_pw_22ctransportCoefficients_113constantNormalVelocityLevelSetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
23996  double __pyx_v_b;
23997  PyArrayObject *__pyx_v_x = 0;
23998  PyArrayObject *__pyx_v_u = 0;
23999  PyArrayObject *__pyx_v_gradu = 0;
24000  PyArrayObject *__pyx_v_m = 0;
24001  PyArrayObject *__pyx_v_dm = 0;
24002  PyArrayObject *__pyx_v_f = 0;
24003  PyArrayObject *__pyx_v_df = 0;
24004  PyArrayObject *__pyx_v_H = 0;
24005  PyArrayObject *__pyx_v_dH = 0;
24006  int __pyx_lineno = 0;
24007  const char *__pyx_filename = NULL;
24008  int __pyx_clineno = 0;
24009  PyObject *__pyx_r = 0;
24010  __Pyx_RefNannyDeclarations
24011  __Pyx_RefNannySetupContext("constantNormalVelocityLevelSetEvaluate (wrapper)", 0);
24012  {
24013  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_b,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_gradu,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_H,&__pyx_n_s_dH,0};
24014  PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
24015  if (unlikely(__pyx_kwds)) {
24016  Py_ssize_t kw_args;
24017  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
24018  switch (pos_args) {
24019  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
24020  CYTHON_FALLTHROUGH;
24021  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
24022  CYTHON_FALLTHROUGH;
24023  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
24024  CYTHON_FALLTHROUGH;
24025  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
24026  CYTHON_FALLTHROUGH;
24027  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
24028  CYTHON_FALLTHROUGH;
24029  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
24030  CYTHON_FALLTHROUGH;
24031  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24032  CYTHON_FALLTHROUGH;
24033  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24034  CYTHON_FALLTHROUGH;
24035  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24036  CYTHON_FALLTHROUGH;
24037  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24038  CYTHON_FALLTHROUGH;
24039  case 0: break;
24040  default: goto __pyx_L5_argtuple_error;
24041  }
24042  kw_args = PyDict_Size(__pyx_kwds);
24043  switch (pos_args) {
24044  case 0:
24045  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--;
24046  else goto __pyx_L5_argtuple_error;
24047  CYTHON_FALLTHROUGH;
24048  case 1:
24049  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
24050  else {
24051  __Pyx_RaiseArgtupleInvalid("constantNormalVelocityLevelSetEvaluate", 1, 10, 10, 1); __PYX_ERR(0, 5388, __pyx_L3_error)
24052  }
24053  CYTHON_FALLTHROUGH;
24054  case 2:
24055  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
24056  else {
24057  __Pyx_RaiseArgtupleInvalid("constantNormalVelocityLevelSetEvaluate", 1, 10, 10, 2); __PYX_ERR(0, 5388, __pyx_L3_error)
24058  }
24059  CYTHON_FALLTHROUGH;
24060  case 3:
24061  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
24062  else {
24063  __Pyx_RaiseArgtupleInvalid("constantNormalVelocityLevelSetEvaluate", 1, 10, 10, 3); __PYX_ERR(0, 5388, __pyx_L3_error)
24064  }
24065  CYTHON_FALLTHROUGH;
24066  case 4:
24067  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
24068  else {
24069  __Pyx_RaiseArgtupleInvalid("constantNormalVelocityLevelSetEvaluate", 1, 10, 10, 4); __PYX_ERR(0, 5388, __pyx_L3_error)
24070  }
24071  CYTHON_FALLTHROUGH;
24072  case 5:
24073  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
24074  else {
24075  __Pyx_RaiseArgtupleInvalid("constantNormalVelocityLevelSetEvaluate", 1, 10, 10, 5); __PYX_ERR(0, 5388, __pyx_L3_error)
24076  }
24077  CYTHON_FALLTHROUGH;
24078  case 6:
24079  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
24080  else {
24081  __Pyx_RaiseArgtupleInvalid("constantNormalVelocityLevelSetEvaluate", 1, 10, 10, 6); __PYX_ERR(0, 5388, __pyx_L3_error)
24082  }
24083  CYTHON_FALLTHROUGH;
24084  case 7:
24085  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
24086  else {
24087  __Pyx_RaiseArgtupleInvalid("constantNormalVelocityLevelSetEvaluate", 1, 10, 10, 7); __PYX_ERR(0, 5388, __pyx_L3_error)
24088  }
24089  CYTHON_FALLTHROUGH;
24090  case 8:
24091  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
24092  else {
24093  __Pyx_RaiseArgtupleInvalid("constantNormalVelocityLevelSetEvaluate", 1, 10, 10, 8); __PYX_ERR(0, 5388, __pyx_L3_error)
24094  }
24095  CYTHON_FALLTHROUGH;
24096  case 9:
24097  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
24098  else {
24099  __Pyx_RaiseArgtupleInvalid("constantNormalVelocityLevelSetEvaluate", 1, 10, 10, 9); __PYX_ERR(0, 5388, __pyx_L3_error)
24100  }
24101  }
24102  if (unlikely(kw_args > 0)) {
24103  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "constantNormalVelocityLevelSetEvaluate") < 0)) __PYX_ERR(0, 5388, __pyx_L3_error)
24104  }
24105  } else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
24106  goto __pyx_L5_argtuple_error;
24107  } else {
24108  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24109  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24110  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24111  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24112  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
24113  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
24114  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
24115  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
24116  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
24117  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
24118  }
24119  __pyx_v_b = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_b == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5388, __pyx_L3_error)
24120  __pyx_v_x = ((PyArrayObject *)values[1]);
24121  __pyx_v_u = ((PyArrayObject *)values[2]);
24122  __pyx_v_gradu = ((PyArrayObject *)values[3]);
24123  __pyx_v_m = ((PyArrayObject *)values[4]);
24124  __pyx_v_dm = ((PyArrayObject *)values[5]);
24125  __pyx_v_f = ((PyArrayObject *)values[6]);
24126  __pyx_v_df = ((PyArrayObject *)values[7]);
24127  __pyx_v_H = ((PyArrayObject *)values[8]);
24128  __pyx_v_dH = ((PyArrayObject *)values[9]);
24129  }
24130  goto __pyx_L4_argument_unpacking_done;
24131  __pyx_L5_argtuple_error:;
24132  __Pyx_RaiseArgtupleInvalid("constantNormalVelocityLevelSetEvaluate", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5388, __pyx_L3_error)
24133  __pyx_L3_error:;
24134  __Pyx_AddTraceback("ctransportCoefficients.constantNormalVelocityLevelSetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
24135  __Pyx_RefNannyFinishContext();
24136  return NULL;
24137  __pyx_L4_argument_unpacking_done:;
24138  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1, "x", 0))) __PYX_ERR(0, 5389, __pyx_L1_error)
24139  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 5390, __pyx_L1_error)
24140  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1, "gradu", 0))) __PYX_ERR(0, 5391, __pyx_L1_error)
24141  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 5392, __pyx_L1_error)
24142  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 5393, __pyx_L1_error)
24143  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 5394, __pyx_L1_error)
24144  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 5395, __pyx_L1_error)
24145  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1, "H", 0))) __PYX_ERR(0, 5396, __pyx_L1_error)
24146  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1, "dH", 0))) __PYX_ERR(0, 5397, __pyx_L1_error)
24147  __pyx_r = __pyx_pf_22ctransportCoefficients_112constantNormalVelocityLevelSetEvaluate(__pyx_self, __pyx_v_b, __pyx_v_x, __pyx_v_u, __pyx_v_gradu, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_H, __pyx_v_dH);
24148 
24149  /* function exit code */
24150  goto __pyx_L0;
24151  __pyx_L1_error:;
24152  __pyx_r = NULL;
24153  __pyx_L0:;
24154  __Pyx_RefNannyFinishContext();
24155  return __pyx_r;
24156 }
24157 
24158 static PyObject *__pyx_pf_22ctransportCoefficients_112constantNormalVelocityLevelSetEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_b, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH) {
24159  PyObject *__pyx_r = NULL;
24160  __Pyx_RefNannyDeclarations
24161  PyObject *__pyx_t_1 = NULL;
24162  int __pyx_t_2;
24163  int __pyx_lineno = 0;
24164  const char *__pyx_filename = NULL;
24165  int __pyx_clineno = 0;
24166  __Pyx_RefNannySetupContext("constantNormalVelocityLevelSetEvaluate", 0);
24167 
24168  /* "ctransportCoefficients.pyx":5398
24169  * np.ndarray H,
24170  * np.ndarray dH):
24171  * cconstantNormalVelocityLevelSetEvaluate(u.size, # <<<<<<<<<<<<<<
24172  * f.shape[f.ndim-1],
24173  * b,
24174  */
24175  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5398, __pyx_L1_error)
24176  __Pyx_GOTREF(__pyx_t_1);
24177  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5398, __pyx_L1_error)
24178  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24179 
24180  /* "ctransportCoefficients.pyx":5409
24181  * <double*> df.data,
24182  * <double*> H.data,
24183  * <double*> dH.data) # <<<<<<<<<<<<<<
24184  * def unitSquareVortexLevelSetEvaluate(double t,
24185  * np.ndarray x,
24186  */
24187  constantNormalVelocityLevelSetEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_b, ((double *)__pyx_v_x->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_gradu->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_H->data), ((double *)__pyx_v_dH->data));
24188 
24189  /* "ctransportCoefficients.pyx":5388
24190  * <double*> H.data,
24191  * <double*> dH.data)
24192  * def constantNormalVelocityLevelSetEvaluate(double b, # <<<<<<<<<<<<<<
24193  * np.ndarray x,
24194  * np.ndarray u,
24195  */
24196 
24197  /* function exit code */
24198  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
24199  goto __pyx_L0;
24200  __pyx_L1_error:;
24201  __Pyx_XDECREF(__pyx_t_1);
24202  __Pyx_AddTraceback("ctransportCoefficients.constantNormalVelocityLevelSetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
24203  __pyx_r = NULL;
24204  __pyx_L0:;
24205  __Pyx_XGIVEREF(__pyx_r);
24206  __Pyx_RefNannyFinishContext();
24207  return __pyx_r;
24208 }
24209 
24210 /* "ctransportCoefficients.pyx":5410
24211  * <double*> H.data,
24212  * <double*> dH.data)
24213  * def unitSquareVortexLevelSetEvaluate(double t, # <<<<<<<<<<<<<<
24214  * np.ndarray x,
24215  * np.ndarray u,
24216  */
24217 
24218 /* Python wrapper */
24219 static PyObject *__pyx_pw_22ctransportCoefficients_115unitSquareVortexLevelSetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
24220 static PyMethodDef __pyx_mdef_22ctransportCoefficients_115unitSquareVortexLevelSetEvaluate = {"unitSquareVortexLevelSetEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_115unitSquareVortexLevelSetEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
24221 static PyObject *__pyx_pw_22ctransportCoefficients_115unitSquareVortexLevelSetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
24222  double __pyx_v_t;
24223  PyArrayObject *__pyx_v_x = 0;
24224  PyArrayObject *__pyx_v_u = 0;
24225  PyArrayObject *__pyx_v_gradu = 0;
24226  PyArrayObject *__pyx_v_m = 0;
24227  PyArrayObject *__pyx_v_dm = 0;
24228  PyArrayObject *__pyx_v_f = 0;
24229  PyArrayObject *__pyx_v_df = 0;
24230  PyArrayObject *__pyx_v_H = 0;
24231  PyArrayObject *__pyx_v_dH = 0;
24232  int __pyx_lineno = 0;
24233  const char *__pyx_filename = NULL;
24234  int __pyx_clineno = 0;
24235  PyObject *__pyx_r = 0;
24236  __Pyx_RefNannyDeclarations
24237  __Pyx_RefNannySetupContext("unitSquareVortexLevelSetEvaluate (wrapper)", 0);
24238  {
24239  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_t,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_gradu,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_H,&__pyx_n_s_dH,0};
24240  PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
24241  if (unlikely(__pyx_kwds)) {
24242  Py_ssize_t kw_args;
24243  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
24244  switch (pos_args) {
24245  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
24246  CYTHON_FALLTHROUGH;
24247  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
24248  CYTHON_FALLTHROUGH;
24249  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
24250  CYTHON_FALLTHROUGH;
24251  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
24252  CYTHON_FALLTHROUGH;
24253  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
24254  CYTHON_FALLTHROUGH;
24255  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
24256  CYTHON_FALLTHROUGH;
24257  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24258  CYTHON_FALLTHROUGH;
24259  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24260  CYTHON_FALLTHROUGH;
24261  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24262  CYTHON_FALLTHROUGH;
24263  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24264  CYTHON_FALLTHROUGH;
24265  case 0: break;
24266  default: goto __pyx_L5_argtuple_error;
24267  }
24268  kw_args = PyDict_Size(__pyx_kwds);
24269  switch (pos_args) {
24270  case 0:
24271  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
24272  else goto __pyx_L5_argtuple_error;
24273  CYTHON_FALLTHROUGH;
24274  case 1:
24275  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
24276  else {
24277  __Pyx_RaiseArgtupleInvalid("unitSquareVortexLevelSetEvaluate", 1, 10, 10, 1); __PYX_ERR(0, 5410, __pyx_L3_error)
24278  }
24279  CYTHON_FALLTHROUGH;
24280  case 2:
24281  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
24282  else {
24283  __Pyx_RaiseArgtupleInvalid("unitSquareVortexLevelSetEvaluate", 1, 10, 10, 2); __PYX_ERR(0, 5410, __pyx_L3_error)
24284  }
24285  CYTHON_FALLTHROUGH;
24286  case 3:
24287  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
24288  else {
24289  __Pyx_RaiseArgtupleInvalid("unitSquareVortexLevelSetEvaluate", 1, 10, 10, 3); __PYX_ERR(0, 5410, __pyx_L3_error)
24290  }
24291  CYTHON_FALLTHROUGH;
24292  case 4:
24293  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
24294  else {
24295  __Pyx_RaiseArgtupleInvalid("unitSquareVortexLevelSetEvaluate", 1, 10, 10, 4); __PYX_ERR(0, 5410, __pyx_L3_error)
24296  }
24297  CYTHON_FALLTHROUGH;
24298  case 5:
24299  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
24300  else {
24301  __Pyx_RaiseArgtupleInvalid("unitSquareVortexLevelSetEvaluate", 1, 10, 10, 5); __PYX_ERR(0, 5410, __pyx_L3_error)
24302  }
24303  CYTHON_FALLTHROUGH;
24304  case 6:
24305  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
24306  else {
24307  __Pyx_RaiseArgtupleInvalid("unitSquareVortexLevelSetEvaluate", 1, 10, 10, 6); __PYX_ERR(0, 5410, __pyx_L3_error)
24308  }
24309  CYTHON_FALLTHROUGH;
24310  case 7:
24311  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
24312  else {
24313  __Pyx_RaiseArgtupleInvalid("unitSquareVortexLevelSetEvaluate", 1, 10, 10, 7); __PYX_ERR(0, 5410, __pyx_L3_error)
24314  }
24315  CYTHON_FALLTHROUGH;
24316  case 8:
24317  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
24318  else {
24319  __Pyx_RaiseArgtupleInvalid("unitSquareVortexLevelSetEvaluate", 1, 10, 10, 8); __PYX_ERR(0, 5410, __pyx_L3_error)
24320  }
24321  CYTHON_FALLTHROUGH;
24322  case 9:
24323  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
24324  else {
24325  __Pyx_RaiseArgtupleInvalid("unitSquareVortexLevelSetEvaluate", 1, 10, 10, 9); __PYX_ERR(0, 5410, __pyx_L3_error)
24326  }
24327  }
24328  if (unlikely(kw_args > 0)) {
24329  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "unitSquareVortexLevelSetEvaluate") < 0)) __PYX_ERR(0, 5410, __pyx_L3_error)
24330  }
24331  } else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
24332  goto __pyx_L5_argtuple_error;
24333  } else {
24334  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24335  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24336  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24337  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24338  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
24339  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
24340  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
24341  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
24342  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
24343  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
24344  }
24345  __pyx_v_t = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_t == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5410, __pyx_L3_error)
24346  __pyx_v_x = ((PyArrayObject *)values[1]);
24347  __pyx_v_u = ((PyArrayObject *)values[2]);
24348  __pyx_v_gradu = ((PyArrayObject *)values[3]);
24349  __pyx_v_m = ((PyArrayObject *)values[4]);
24350  __pyx_v_dm = ((PyArrayObject *)values[5]);
24351  __pyx_v_f = ((PyArrayObject *)values[6]);
24352  __pyx_v_df = ((PyArrayObject *)values[7]);
24353  __pyx_v_H = ((PyArrayObject *)values[8]);
24354  __pyx_v_dH = ((PyArrayObject *)values[9]);
24355  }
24356  goto __pyx_L4_argument_unpacking_done;
24357  __pyx_L5_argtuple_error:;
24358  __Pyx_RaiseArgtupleInvalid("unitSquareVortexLevelSetEvaluate", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5410, __pyx_L3_error)
24359  __pyx_L3_error:;
24360  __Pyx_AddTraceback("ctransportCoefficients.unitSquareVortexLevelSetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
24361  __Pyx_RefNannyFinishContext();
24362  return NULL;
24363  __pyx_L4_argument_unpacking_done:;
24364  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1, "x", 0))) __PYX_ERR(0, 5411, __pyx_L1_error)
24365  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 5412, __pyx_L1_error)
24366  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1, "gradu", 0))) __PYX_ERR(0, 5413, __pyx_L1_error)
24367  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 5414, __pyx_L1_error)
24368  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 5415, __pyx_L1_error)
24369  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 5416, __pyx_L1_error)
24370  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 5417, __pyx_L1_error)
24371  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1, "H", 0))) __PYX_ERR(0, 5418, __pyx_L1_error)
24372  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1, "dH", 0))) __PYX_ERR(0, 5419, __pyx_L1_error)
24373  __pyx_r = __pyx_pf_22ctransportCoefficients_114unitSquareVortexLevelSetEvaluate(__pyx_self, __pyx_v_t, __pyx_v_x, __pyx_v_u, __pyx_v_gradu, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_H, __pyx_v_dH);
24374 
24375  /* function exit code */
24376  goto __pyx_L0;
24377  __pyx_L1_error:;
24378  __pyx_r = NULL;
24379  __pyx_L0:;
24380  __Pyx_RefNannyFinishContext();
24381  return __pyx_r;
24382 }
24383 
24384 static PyObject *__pyx_pf_22ctransportCoefficients_114unitSquareVortexLevelSetEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH) {
24385  PyObject *__pyx_r = NULL;
24386  __Pyx_RefNannyDeclarations
24387  PyObject *__pyx_t_1 = NULL;
24388  int __pyx_t_2;
24389  int __pyx_lineno = 0;
24390  const char *__pyx_filename = NULL;
24391  int __pyx_clineno = 0;
24392  __Pyx_RefNannySetupContext("unitSquareVortexLevelSetEvaluate", 0);
24393 
24394  /* "ctransportCoefficients.pyx":5420
24395  * np.ndarray H,
24396  * np.ndarray dH):
24397  * cunitSquareVortexLevelSetEvaluate(u.size, # <<<<<<<<<<<<<<
24398  * f.shape[f.ndim-1],
24399  * t,
24400  */
24401  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5420, __pyx_L1_error)
24402  __Pyx_GOTREF(__pyx_t_1);
24403  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5420, __pyx_L1_error)
24404  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24405 
24406  /* "ctransportCoefficients.pyx":5431
24407  * <double*> df.data,
24408  * <double*> H.data,
24409  * <double*> dH.data) # <<<<<<<<<<<<<<
24410  * def unitSquareRotationLevelSetEvaluate(double t,
24411  * np.ndarray x,
24412  */
24413  unitSquareVortexLevelSetEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_t, ((double *)__pyx_v_x->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_gradu->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_H->data), ((double *)__pyx_v_dH->data));
24414 
24415  /* "ctransportCoefficients.pyx":5410
24416  * <double*> H.data,
24417  * <double*> dH.data)
24418  * def unitSquareVortexLevelSetEvaluate(double t, # <<<<<<<<<<<<<<
24419  * np.ndarray x,
24420  * np.ndarray u,
24421  */
24422 
24423  /* function exit code */
24424  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
24425  goto __pyx_L0;
24426  __pyx_L1_error:;
24427  __Pyx_XDECREF(__pyx_t_1);
24428  __Pyx_AddTraceback("ctransportCoefficients.unitSquareVortexLevelSetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
24429  __pyx_r = NULL;
24430  __pyx_L0:;
24431  __Pyx_XGIVEREF(__pyx_r);
24432  __Pyx_RefNannyFinishContext();
24433  return __pyx_r;
24434 }
24435 
24436 /* "ctransportCoefficients.pyx":5432
24437  * <double*> H.data,
24438  * <double*> dH.data)
24439  * def unitSquareRotationLevelSetEvaluate(double t, # <<<<<<<<<<<<<<
24440  * np.ndarray x,
24441  * np.ndarray u,
24442  */
24443 
24444 /* Python wrapper */
24445 static PyObject *__pyx_pw_22ctransportCoefficients_117unitSquareRotationLevelSetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
24446 static PyMethodDef __pyx_mdef_22ctransportCoefficients_117unitSquareRotationLevelSetEvaluate = {"unitSquareRotationLevelSetEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_117unitSquareRotationLevelSetEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
24447 static PyObject *__pyx_pw_22ctransportCoefficients_117unitSquareRotationLevelSetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
24448  double __pyx_v_t;
24449  PyArrayObject *__pyx_v_x = 0;
24450  PyArrayObject *__pyx_v_u = 0;
24451  PyArrayObject *__pyx_v_gradu = 0;
24452  PyArrayObject *__pyx_v_m = 0;
24453  PyArrayObject *__pyx_v_dm = 0;
24454  PyArrayObject *__pyx_v_f = 0;
24455  PyArrayObject *__pyx_v_df = 0;
24456  PyArrayObject *__pyx_v_H = 0;
24457  PyArrayObject *__pyx_v_dH = 0;
24458  int __pyx_lineno = 0;
24459  const char *__pyx_filename = NULL;
24460  int __pyx_clineno = 0;
24461  PyObject *__pyx_r = 0;
24462  __Pyx_RefNannyDeclarations
24463  __Pyx_RefNannySetupContext("unitSquareRotationLevelSetEvaluate (wrapper)", 0);
24464  {
24465  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_t,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_gradu,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_H,&__pyx_n_s_dH,0};
24466  PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
24467  if (unlikely(__pyx_kwds)) {
24468  Py_ssize_t kw_args;
24469  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
24470  switch (pos_args) {
24471  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
24472  CYTHON_FALLTHROUGH;
24473  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
24474  CYTHON_FALLTHROUGH;
24475  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
24476  CYTHON_FALLTHROUGH;
24477  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
24478  CYTHON_FALLTHROUGH;
24479  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
24480  CYTHON_FALLTHROUGH;
24481  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
24482  CYTHON_FALLTHROUGH;
24483  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24484  CYTHON_FALLTHROUGH;
24485  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24486  CYTHON_FALLTHROUGH;
24487  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24488  CYTHON_FALLTHROUGH;
24489  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24490  CYTHON_FALLTHROUGH;
24491  case 0: break;
24492  default: goto __pyx_L5_argtuple_error;
24493  }
24494  kw_args = PyDict_Size(__pyx_kwds);
24495  switch (pos_args) {
24496  case 0:
24497  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
24498  else goto __pyx_L5_argtuple_error;
24499  CYTHON_FALLTHROUGH;
24500  case 1:
24501  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
24502  else {
24503  __Pyx_RaiseArgtupleInvalid("unitSquareRotationLevelSetEvaluate", 1, 10, 10, 1); __PYX_ERR(0, 5432, __pyx_L3_error)
24504  }
24505  CYTHON_FALLTHROUGH;
24506  case 2:
24507  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
24508  else {
24509  __Pyx_RaiseArgtupleInvalid("unitSquareRotationLevelSetEvaluate", 1, 10, 10, 2); __PYX_ERR(0, 5432, __pyx_L3_error)
24510  }
24511  CYTHON_FALLTHROUGH;
24512  case 3:
24513  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
24514  else {
24515  __Pyx_RaiseArgtupleInvalid("unitSquareRotationLevelSetEvaluate", 1, 10, 10, 3); __PYX_ERR(0, 5432, __pyx_L3_error)
24516  }
24517  CYTHON_FALLTHROUGH;
24518  case 4:
24519  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
24520  else {
24521  __Pyx_RaiseArgtupleInvalid("unitSquareRotationLevelSetEvaluate", 1, 10, 10, 4); __PYX_ERR(0, 5432, __pyx_L3_error)
24522  }
24523  CYTHON_FALLTHROUGH;
24524  case 5:
24525  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
24526  else {
24527  __Pyx_RaiseArgtupleInvalid("unitSquareRotationLevelSetEvaluate", 1, 10, 10, 5); __PYX_ERR(0, 5432, __pyx_L3_error)
24528  }
24529  CYTHON_FALLTHROUGH;
24530  case 6:
24531  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
24532  else {
24533  __Pyx_RaiseArgtupleInvalid("unitSquareRotationLevelSetEvaluate", 1, 10, 10, 6); __PYX_ERR(0, 5432, __pyx_L3_error)
24534  }
24535  CYTHON_FALLTHROUGH;
24536  case 7:
24537  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
24538  else {
24539  __Pyx_RaiseArgtupleInvalid("unitSquareRotationLevelSetEvaluate", 1, 10, 10, 7); __PYX_ERR(0, 5432, __pyx_L3_error)
24540  }
24541  CYTHON_FALLTHROUGH;
24542  case 8:
24543  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
24544  else {
24545  __Pyx_RaiseArgtupleInvalid("unitSquareRotationLevelSetEvaluate", 1, 10, 10, 8); __PYX_ERR(0, 5432, __pyx_L3_error)
24546  }
24547  CYTHON_FALLTHROUGH;
24548  case 9:
24549  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
24550  else {
24551  __Pyx_RaiseArgtupleInvalid("unitSquareRotationLevelSetEvaluate", 1, 10, 10, 9); __PYX_ERR(0, 5432, __pyx_L3_error)
24552  }
24553  }
24554  if (unlikely(kw_args > 0)) {
24555  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "unitSquareRotationLevelSetEvaluate") < 0)) __PYX_ERR(0, 5432, __pyx_L3_error)
24556  }
24557  } else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
24558  goto __pyx_L5_argtuple_error;
24559  } else {
24560  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24561  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24562  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24563  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24564  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
24565  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
24566  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
24567  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
24568  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
24569  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
24570  }
24571  __pyx_v_t = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_t == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5432, __pyx_L3_error)
24572  __pyx_v_x = ((PyArrayObject *)values[1]);
24573  __pyx_v_u = ((PyArrayObject *)values[2]);
24574  __pyx_v_gradu = ((PyArrayObject *)values[3]);
24575  __pyx_v_m = ((PyArrayObject *)values[4]);
24576  __pyx_v_dm = ((PyArrayObject *)values[5]);
24577  __pyx_v_f = ((PyArrayObject *)values[6]);
24578  __pyx_v_df = ((PyArrayObject *)values[7]);
24579  __pyx_v_H = ((PyArrayObject *)values[8]);
24580  __pyx_v_dH = ((PyArrayObject *)values[9]);
24581  }
24582  goto __pyx_L4_argument_unpacking_done;
24583  __pyx_L5_argtuple_error:;
24584  __Pyx_RaiseArgtupleInvalid("unitSquareRotationLevelSetEvaluate", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5432, __pyx_L3_error)
24585  __pyx_L3_error:;
24586  __Pyx_AddTraceback("ctransportCoefficients.unitSquareRotationLevelSetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
24587  __Pyx_RefNannyFinishContext();
24588  return NULL;
24589  __pyx_L4_argument_unpacking_done:;
24590  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1, "x", 0))) __PYX_ERR(0, 5433, __pyx_L1_error)
24591  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 5434, __pyx_L1_error)
24592  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1, "gradu", 0))) __PYX_ERR(0, 5435, __pyx_L1_error)
24593  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 5436, __pyx_L1_error)
24594  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 5437, __pyx_L1_error)
24595  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 5438, __pyx_L1_error)
24596  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 5439, __pyx_L1_error)
24597  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1, "H", 0))) __PYX_ERR(0, 5440, __pyx_L1_error)
24598  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1, "dH", 0))) __PYX_ERR(0, 5441, __pyx_L1_error)
24599  __pyx_r = __pyx_pf_22ctransportCoefficients_116unitSquareRotationLevelSetEvaluate(__pyx_self, __pyx_v_t, __pyx_v_x, __pyx_v_u, __pyx_v_gradu, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_H, __pyx_v_dH);
24600 
24601  /* function exit code */
24602  goto __pyx_L0;
24603  __pyx_L1_error:;
24604  __pyx_r = NULL;
24605  __pyx_L0:;
24606  __Pyx_RefNannyFinishContext();
24607  return __pyx_r;
24608 }
24609 
24610 static PyObject *__pyx_pf_22ctransportCoefficients_116unitSquareRotationLevelSetEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH) {
24611  PyObject *__pyx_r = NULL;
24612  __Pyx_RefNannyDeclarations
24613  PyObject *__pyx_t_1 = NULL;
24614  int __pyx_t_2;
24615  int __pyx_lineno = 0;
24616  const char *__pyx_filename = NULL;
24617  int __pyx_clineno = 0;
24618  __Pyx_RefNannySetupContext("unitSquareRotationLevelSetEvaluate", 0);
24619 
24620  /* "ctransportCoefficients.pyx":5442
24621  * np.ndarray H,
24622  * np.ndarray dH):
24623  * cunitSquareRotationLevelSetEvaluate(u.size, # <<<<<<<<<<<<<<
24624  * f.shape[f.ndim-1],
24625  * t,
24626  */
24627  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5442, __pyx_L1_error)
24628  __Pyx_GOTREF(__pyx_t_1);
24629  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5442, __pyx_L1_error)
24630  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24631 
24632  /* "ctransportCoefficients.pyx":5453
24633  * <double*> df.data,
24634  * <double*> H.data,
24635  * <double*> dH.data) # <<<<<<<<<<<<<<
24636  * def HJBurgersEvaluate(const double offset,
24637  * np.ndarray u,
24638  */
24639  unitSquareRotationLevelSetEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_t, ((double *)__pyx_v_x->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_gradu->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_H->data), ((double *)__pyx_v_dH->data));
24640 
24641  /* "ctransportCoefficients.pyx":5432
24642  * <double*> H.data,
24643  * <double*> dH.data)
24644  * def unitSquareRotationLevelSetEvaluate(double t, # <<<<<<<<<<<<<<
24645  * np.ndarray x,
24646  * np.ndarray u,
24647  */
24648 
24649  /* function exit code */
24650  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
24651  goto __pyx_L0;
24652  __pyx_L1_error:;
24653  __Pyx_XDECREF(__pyx_t_1);
24654  __Pyx_AddTraceback("ctransportCoefficients.unitSquareRotationLevelSetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
24655  __pyx_r = NULL;
24656  __pyx_L0:;
24657  __Pyx_XGIVEREF(__pyx_r);
24658  __Pyx_RefNannyFinishContext();
24659  return __pyx_r;
24660 }
24661 
24662 /* "ctransportCoefficients.pyx":5454
24663  * <double*> H.data,
24664  * <double*> dH.data)
24665  * def HJBurgersEvaluate(const double offset, # <<<<<<<<<<<<<<
24666  * np.ndarray u,
24667  * np.ndarray gradu,
24668  */
24669 
24670 /* Python wrapper */
24671 static PyObject *__pyx_pw_22ctransportCoefficients_119HJBurgersEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
24672 static PyMethodDef __pyx_mdef_22ctransportCoefficients_119HJBurgersEvaluate = {"HJBurgersEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_119HJBurgersEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
24673 static PyObject *__pyx_pw_22ctransportCoefficients_119HJBurgersEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
24674  double __pyx_v_offset;
24675  PyArrayObject *__pyx_v_u = 0;
24676  PyArrayObject *__pyx_v_gradu = 0;
24677  PyArrayObject *__pyx_v_m = 0;
24678  PyArrayObject *__pyx_v_dm = 0;
24679  PyArrayObject *__pyx_v_H = 0;
24680  PyArrayObject *__pyx_v_dH = 0;
24681  int __pyx_lineno = 0;
24682  const char *__pyx_filename = NULL;
24683  int __pyx_clineno = 0;
24684  PyObject *__pyx_r = 0;
24685  __Pyx_RefNannyDeclarations
24686  __Pyx_RefNannySetupContext("HJBurgersEvaluate (wrapper)", 0);
24687  {
24688  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_offset,&__pyx_n_s_u,&__pyx_n_s_gradu,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_H,&__pyx_n_s_dH,0};
24689  PyObject* values[7] = {0,0,0,0,0,0,0};
24690  if (unlikely(__pyx_kwds)) {
24691  Py_ssize_t kw_args;
24692  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
24693  switch (pos_args) {
24694  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
24695  CYTHON_FALLTHROUGH;
24696  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
24697  CYTHON_FALLTHROUGH;
24698  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
24699  CYTHON_FALLTHROUGH;
24700  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24701  CYTHON_FALLTHROUGH;
24702  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24703  CYTHON_FALLTHROUGH;
24704  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24705  CYTHON_FALLTHROUGH;
24706  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24707  CYTHON_FALLTHROUGH;
24708  case 0: break;
24709  default: goto __pyx_L5_argtuple_error;
24710  }
24711  kw_args = PyDict_Size(__pyx_kwds);
24712  switch (pos_args) {
24713  case 0:
24714  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset)) != 0)) kw_args--;
24715  else goto __pyx_L5_argtuple_error;
24716  CYTHON_FALLTHROUGH;
24717  case 1:
24718  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
24719  else {
24720  __Pyx_RaiseArgtupleInvalid("HJBurgersEvaluate", 1, 7, 7, 1); __PYX_ERR(0, 5454, __pyx_L3_error)
24721  }
24722  CYTHON_FALLTHROUGH;
24723  case 2:
24724  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
24725  else {
24726  __Pyx_RaiseArgtupleInvalid("HJBurgersEvaluate", 1, 7, 7, 2); __PYX_ERR(0, 5454, __pyx_L3_error)
24727  }
24728  CYTHON_FALLTHROUGH;
24729  case 3:
24730  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
24731  else {
24732  __Pyx_RaiseArgtupleInvalid("HJBurgersEvaluate", 1, 7, 7, 3); __PYX_ERR(0, 5454, __pyx_L3_error)
24733  }
24734  CYTHON_FALLTHROUGH;
24735  case 4:
24736  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
24737  else {
24738  __Pyx_RaiseArgtupleInvalid("HJBurgersEvaluate", 1, 7, 7, 4); __PYX_ERR(0, 5454, __pyx_L3_error)
24739  }
24740  CYTHON_FALLTHROUGH;
24741  case 5:
24742  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
24743  else {
24744  __Pyx_RaiseArgtupleInvalid("HJBurgersEvaluate", 1, 7, 7, 5); __PYX_ERR(0, 5454, __pyx_L3_error)
24745  }
24746  CYTHON_FALLTHROUGH;
24747  case 6:
24748  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
24749  else {
24750  __Pyx_RaiseArgtupleInvalid("HJBurgersEvaluate", 1, 7, 7, 6); __PYX_ERR(0, 5454, __pyx_L3_error)
24751  }
24752  }
24753  if (unlikely(kw_args > 0)) {
24754  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "HJBurgersEvaluate") < 0)) __PYX_ERR(0, 5454, __pyx_L3_error)
24755  }
24756  } else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
24757  goto __pyx_L5_argtuple_error;
24758  } else {
24759  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24760  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24761  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24762  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24763  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
24764  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
24765  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
24766  }
24767  __pyx_v_offset = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_offset == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5454, __pyx_L3_error)
24768  __pyx_v_u = ((PyArrayObject *)values[1]);
24769  __pyx_v_gradu = ((PyArrayObject *)values[2]);
24770  __pyx_v_m = ((PyArrayObject *)values[3]);
24771  __pyx_v_dm = ((PyArrayObject *)values[4]);
24772  __pyx_v_H = ((PyArrayObject *)values[5]);
24773  __pyx_v_dH = ((PyArrayObject *)values[6]);
24774  }
24775  goto __pyx_L4_argument_unpacking_done;
24776  __pyx_L5_argtuple_error:;
24777  __Pyx_RaiseArgtupleInvalid("HJBurgersEvaluate", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5454, __pyx_L3_error)
24778  __pyx_L3_error:;
24779  __Pyx_AddTraceback("ctransportCoefficients.HJBurgersEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
24780  __Pyx_RefNannyFinishContext();
24781  return NULL;
24782  __pyx_L4_argument_unpacking_done:;
24783  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 5455, __pyx_L1_error)
24784  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1, "gradu", 0))) __PYX_ERR(0, 5456, __pyx_L1_error)
24785  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 5457, __pyx_L1_error)
24786  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 5458, __pyx_L1_error)
24787  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1, "H", 0))) __PYX_ERR(0, 5459, __pyx_L1_error)
24788  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1, "dH", 0))) __PYX_ERR(0, 5460, __pyx_L1_error)
24789  __pyx_r = __pyx_pf_22ctransportCoefficients_118HJBurgersEvaluate(__pyx_self, __pyx_v_offset, __pyx_v_u, __pyx_v_gradu, __pyx_v_m, __pyx_v_dm, __pyx_v_H, __pyx_v_dH);
24790 
24791  /* function exit code */
24792  goto __pyx_L0;
24793  __pyx_L1_error:;
24794  __pyx_r = NULL;
24795  __pyx_L0:;
24796  __Pyx_RefNannyFinishContext();
24797  return __pyx_r;
24798 }
24799 
24800 static PyObject *__pyx_pf_22ctransportCoefficients_118HJBurgersEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_offset, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH) {
24801  PyObject *__pyx_r = NULL;
24802  __Pyx_RefNannyDeclarations
24803  PyObject *__pyx_t_1 = NULL;
24804  int __pyx_t_2;
24805  long __pyx_t_3;
24806  int __pyx_t_4;
24807  int __pyx_lineno = 0;
24808  const char *__pyx_filename = NULL;
24809  int __pyx_clineno = 0;
24810  __Pyx_RefNannySetupContext("HJBurgersEvaluate", 0);
24811 
24812  /* "ctransportCoefficients.pyx":5461
24813  * np.ndarray H,
24814  * np.ndarray dH):
24815  * cHJBurgersEvaluate(u.size, # <<<<<<<<<<<<<<
24816  * dH[dH.ndim-1],
24817  * offset,
24818  */
24819  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5461, __pyx_L1_error)
24820  __Pyx_GOTREF(__pyx_t_1);
24821  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5461, __pyx_L1_error)
24822  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24823 
24824  /* "ctransportCoefficients.pyx":5462
24825  * np.ndarray dH):
24826  * cHJBurgersEvaluate(u.size,
24827  * dH[dH.ndim-1], # <<<<<<<<<<<<<<
24828  * offset,
24829  * <double*> u.data,
24830  */
24831  __pyx_t_3 = (__pyx_v_dH->nd - 1);
24832  __pyx_t_1 = __Pyx_GetItemInt(((PyObject *)__pyx_v_dH), __pyx_t_3, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5462, __pyx_L1_error)
24833  __Pyx_GOTREF(__pyx_t_1);
24834  __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5462, __pyx_L1_error)
24835  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24836 
24837  /* "ctransportCoefficients.pyx":5461
24838  * np.ndarray H,
24839  * np.ndarray dH):
24840  * cHJBurgersEvaluate(u.size, # <<<<<<<<<<<<<<
24841  * dH[dH.ndim-1],
24842  * offset,
24843  */
24844  HJBurgersEvaluate(__pyx_t_2, __pyx_t_4, __pyx_v_offset, ((double *)__pyx_v_u->data), ((double *)__pyx_v_gradu->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_H->data), ((double *)__pyx_v_dH->data));
24845 
24846  /* "ctransportCoefficients.pyx":5454
24847  * <double*> H.data,
24848  * <double*> dH.data)
24849  * def HJBurgersEvaluate(const double offset, # <<<<<<<<<<<<<<
24850  * np.ndarray u,
24851  * np.ndarray gradu,
24852  */
24853 
24854  /* function exit code */
24855  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
24856  goto __pyx_L0;
24857  __pyx_L1_error:;
24858  __Pyx_XDECREF(__pyx_t_1);
24859  __Pyx_AddTraceback("ctransportCoefficients.HJBurgersEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
24860  __pyx_r = NULL;
24861  __pyx_L0:;
24862  __Pyx_XGIVEREF(__pyx_r);
24863  __Pyx_RefNannyFinishContext();
24864  return __pyx_r;
24865 }
24866 
24867 /* "ctransportCoefficients.pyx":5470
24868  * <double*> H.data,
24869  * <double*> dH.data)
24870  * def conservativeHeadRichardsMualemVanGenuchtenHomEvaluate(const double rho, # <<<<<<<<<<<<<<
24871  * const double beta,
24872  * np.ndarray gravity,
24873  */
24874 
24875 /* Python wrapper */
24876 static PyObject *__pyx_pw_22ctransportCoefficients_121conservativeHeadRichardsMualemVanGenuchtenHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
24877 static PyMethodDef __pyx_mdef_22ctransportCoefficients_121conservativeHeadRichardsMualemVanGenuchtenHomEvaluate = {"conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_121conservativeHeadRichardsMualemVanGenuchtenHomEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
24878 static PyObject *__pyx_pw_22ctransportCoefficients_121conservativeHeadRichardsMualemVanGenuchtenHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
24879  double __pyx_v_rho;
24880  double __pyx_v_beta;
24881  PyArrayObject *__pyx_v_gravity = 0;
24882  PyArrayObject *__pyx_v_x = 0;
24883  double __pyx_v_alpha;
24884  double __pyx_v_n;
24885  double __pyx_v_m;
24886  double __pyx_v_thetaR;
24887  double __pyx_v_thetaSR;
24888  double __pyx_v_KWs;
24889  PyArrayObject *__pyx_v_u = 0;
24890  PyArrayObject *__pyx_v_mass = 0;
24891  PyArrayObject *__pyx_v_dmass = 0;
24892  PyArrayObject *__pyx_v_f = 0;
24893  PyArrayObject *__pyx_v_df = 0;
24894  PyArrayObject *__pyx_v_a = 0;
24895  PyArrayObject *__pyx_v_da = 0;
24896  PyArrayObject *__pyx_v_phi = 0;
24897  PyArrayObject *__pyx_v_dphi = 0;
24898  int __pyx_lineno = 0;
24899  const char *__pyx_filename = NULL;
24900  int __pyx_clineno = 0;
24901  PyObject *__pyx_r = 0;
24902  __Pyx_RefNannyDeclarations
24903  __Pyx_RefNannySetupContext("conservativeHeadRichardsMualemVanGenuchtenHomEvaluate (wrapper)", 0);
24904  {
24905  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_beta,&__pyx_n_s_gravity,&__pyx_n_s_x,&__pyx_n_s_alpha,&__pyx_n_s_n,&__pyx_n_s_m,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_phi,&__pyx_n_s_dphi,0};
24906  PyObject* values[19] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
24907  if (unlikely(__pyx_kwds)) {
24908  Py_ssize_t kw_args;
24909  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
24910  switch (pos_args) {
24911  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
24912  CYTHON_FALLTHROUGH;
24913  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
24914  CYTHON_FALLTHROUGH;
24915  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
24916  CYTHON_FALLTHROUGH;
24917  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
24918  CYTHON_FALLTHROUGH;
24919  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
24920  CYTHON_FALLTHROUGH;
24921  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
24922  CYTHON_FALLTHROUGH;
24923  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
24924  CYTHON_FALLTHROUGH;
24925  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
24926  CYTHON_FALLTHROUGH;
24927  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
24928  CYTHON_FALLTHROUGH;
24929  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
24930  CYTHON_FALLTHROUGH;
24931  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
24932  CYTHON_FALLTHROUGH;
24933  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
24934  CYTHON_FALLTHROUGH;
24935  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
24936  CYTHON_FALLTHROUGH;
24937  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
24938  CYTHON_FALLTHROUGH;
24939  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
24940  CYTHON_FALLTHROUGH;
24941  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24942  CYTHON_FALLTHROUGH;
24943  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24944  CYTHON_FALLTHROUGH;
24945  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24946  CYTHON_FALLTHROUGH;
24947  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24948  CYTHON_FALLTHROUGH;
24949  case 0: break;
24950  default: goto __pyx_L5_argtuple_error;
24951  }
24952  kw_args = PyDict_Size(__pyx_kwds);
24953  switch (pos_args) {
24954  case 0:
24955  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
24956  else goto __pyx_L5_argtuple_error;
24957  CYTHON_FALLTHROUGH;
24958  case 1:
24959  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_beta)) != 0)) kw_args--;
24960  else {
24961  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 1); __PYX_ERR(0, 5470, __pyx_L3_error)
24962  }
24963  CYTHON_FALLTHROUGH;
24964  case 2:
24965  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
24966  else {
24967  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 2); __PYX_ERR(0, 5470, __pyx_L3_error)
24968  }
24969  CYTHON_FALLTHROUGH;
24970  case 3:
24971  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
24972  else {
24973  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 3); __PYX_ERR(0, 5470, __pyx_L3_error)
24974  }
24975  CYTHON_FALLTHROUGH;
24976  case 4:
24977  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
24978  else {
24979  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 4); __PYX_ERR(0, 5470, __pyx_L3_error)
24980  }
24981  CYTHON_FALLTHROUGH;
24982  case 5:
24983  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
24984  else {
24985  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 5); __PYX_ERR(0, 5470, __pyx_L3_error)
24986  }
24987  CYTHON_FALLTHROUGH;
24988  case 6:
24989  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
24990  else {
24991  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 6); __PYX_ERR(0, 5470, __pyx_L3_error)
24992  }
24993  CYTHON_FALLTHROUGH;
24994  case 7:
24995  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
24996  else {
24997  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 7); __PYX_ERR(0, 5470, __pyx_L3_error)
24998  }
24999  CYTHON_FALLTHROUGH;
25000  case 8:
25001  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
25002  else {
25003  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 8); __PYX_ERR(0, 5470, __pyx_L3_error)
25004  }
25005  CYTHON_FALLTHROUGH;
25006  case 9:
25007  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
25008  else {
25009  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 9); __PYX_ERR(0, 5470, __pyx_L3_error)
25010  }
25011  CYTHON_FALLTHROUGH;
25012  case 10:
25013  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
25014  else {
25015  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 10); __PYX_ERR(0, 5470, __pyx_L3_error)
25016  }
25017  CYTHON_FALLTHROUGH;
25018  case 11:
25019  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
25020  else {
25021  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 11); __PYX_ERR(0, 5470, __pyx_L3_error)
25022  }
25023  CYTHON_FALLTHROUGH;
25024  case 12:
25025  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
25026  else {
25027  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 12); __PYX_ERR(0, 5470, __pyx_L3_error)
25028  }
25029  CYTHON_FALLTHROUGH;
25030  case 13:
25031  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
25032  else {
25033  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 13); __PYX_ERR(0, 5470, __pyx_L3_error)
25034  }
25035  CYTHON_FALLTHROUGH;
25036  case 14:
25037  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
25038  else {
25039  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 14); __PYX_ERR(0, 5470, __pyx_L3_error)
25040  }
25041  CYTHON_FALLTHROUGH;
25042  case 15:
25043  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
25044  else {
25045  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 15); __PYX_ERR(0, 5470, __pyx_L3_error)
25046  }
25047  CYTHON_FALLTHROUGH;
25048  case 16:
25049  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
25050  else {
25051  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 16); __PYX_ERR(0, 5470, __pyx_L3_error)
25052  }
25053  CYTHON_FALLTHROUGH;
25054  case 17:
25055  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
25056  else {
25057  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 17); __PYX_ERR(0, 5470, __pyx_L3_error)
25058  }
25059  CYTHON_FALLTHROUGH;
25060  case 18:
25061  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
25062  else {
25063  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 18); __PYX_ERR(0, 5470, __pyx_L3_error)
25064  }
25065  }
25066  if (unlikely(kw_args > 0)) {
25067  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "conservativeHeadRichardsMualemVanGenuchtenHomEvaluate") < 0)) __PYX_ERR(0, 5470, __pyx_L3_error)
25068  }
25069  } else if (PyTuple_GET_SIZE(__pyx_args) != 19) {
25070  goto __pyx_L5_argtuple_error;
25071  } else {
25072  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25073  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25074  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
25075  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
25076  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
25077  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
25078  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
25079  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
25080  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
25081  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
25082  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
25083  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
25084  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
25085  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
25086  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
25087  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
25088  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
25089  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
25090  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
25091  }
25092  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5470, __pyx_L3_error)
25093  __pyx_v_beta = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_beta == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5471, __pyx_L3_error)
25094  __pyx_v_gravity = ((PyArrayObject *)values[2]);
25095  __pyx_v_x = ((PyArrayObject *)values[3]);
25096  __pyx_v_alpha = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_alpha == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5474, __pyx_L3_error)
25097  __pyx_v_n = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_n == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5475, __pyx_L3_error)
25098  __pyx_v_m = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_m == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5476, __pyx_L3_error)
25099  __pyx_v_thetaR = __pyx_PyFloat_AsDouble(values[7]); if (unlikely((__pyx_v_thetaR == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5477, __pyx_L3_error)
25100  __pyx_v_thetaSR = __pyx_PyFloat_AsDouble(values[8]); if (unlikely((__pyx_v_thetaSR == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5478, __pyx_L3_error)
25101  __pyx_v_KWs = __pyx_PyFloat_AsDouble(values[9]); if (unlikely((__pyx_v_KWs == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5479, __pyx_L3_error)
25102  __pyx_v_u = ((PyArrayObject *)values[10]);
25103  __pyx_v_mass = ((PyArrayObject *)values[11]);
25104  __pyx_v_dmass = ((PyArrayObject *)values[12]);
25105  __pyx_v_f = ((PyArrayObject *)values[13]);
25106  __pyx_v_df = ((PyArrayObject *)values[14]);
25107  __pyx_v_a = ((PyArrayObject *)values[15]);
25108  __pyx_v_da = ((PyArrayObject *)values[16]);
25109  __pyx_v_phi = ((PyArrayObject *)values[17]);
25110  __pyx_v_dphi = ((PyArrayObject *)values[18]);
25111  }
25112  goto __pyx_L4_argument_unpacking_done;
25113  __pyx_L5_argtuple_error:;
25114  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5470, __pyx_L3_error)
25115  __pyx_L3_error:;
25116  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
25117  __Pyx_RefNannyFinishContext();
25118  return NULL;
25119  __pyx_L4_argument_unpacking_done:;
25120  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1, "gravity", 0))) __PYX_ERR(0, 5472, __pyx_L1_error)
25121  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1, "x", 0))) __PYX_ERR(0, 5473, __pyx_L1_error)
25122  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 5480, __pyx_L1_error)
25123  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1, "mass", 0))) __PYX_ERR(0, 5481, __pyx_L1_error)
25124  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1, "dmass", 0))) __PYX_ERR(0, 5482, __pyx_L1_error)
25125  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 5483, __pyx_L1_error)
25126  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 5484, __pyx_L1_error)
25127  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 5485, __pyx_L1_error)
25128  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 5486, __pyx_L1_error)
25129  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 5487, __pyx_L1_error)
25130  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1, "dphi", 0))) __PYX_ERR(0, 5488, __pyx_L1_error)
25131  __pyx_r = __pyx_pf_22ctransportCoefficients_120conservativeHeadRichardsMualemVanGenuchtenHomEvaluate(__pyx_self, __pyx_v_rho, __pyx_v_beta, __pyx_v_gravity, __pyx_v_x, __pyx_v_alpha, __pyx_v_n, __pyx_v_m, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da, __pyx_v_phi, __pyx_v_dphi);
25132 
25133  /* function exit code */
25134  goto __pyx_L0;
25135  __pyx_L1_error:;
25136  __pyx_r = NULL;
25137  __pyx_L0:;
25138  __Pyx_RefNannyFinishContext();
25139  return __pyx_r;
25140 }
25141 
25142 static PyObject *__pyx_pf_22ctransportCoefficients_120conservativeHeadRichardsMualemVanGenuchtenHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_x, double __pyx_v_alpha, double __pyx_v_n, double __pyx_v_m, double __pyx_v_thetaR, double __pyx_v_thetaSR, double __pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi) {
25143  PyObject *__pyx_r = NULL;
25144  __Pyx_RefNannyDeclarations
25145  PyObject *__pyx_t_1 = NULL;
25146  int __pyx_t_2;
25147  int __pyx_lineno = 0;
25148  const char *__pyx_filename = NULL;
25149  int __pyx_clineno = 0;
25150  __Pyx_RefNannySetupContext("conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 0);
25151 
25152  /* "ctransportCoefficients.pyx":5489
25153  * np.ndarray phi,
25154  * np.ndarray dphi):
25155  * cconservativeHeadRichardsMualemVanGenuchtenHomEvaluate(u.size, # <<<<<<<<<<<<<<
25156  * f.shape[f.ndim-1],
25157  * rho,
25158  */
25159  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5489, __pyx_L1_error)
25160  __Pyx_GOTREF(__pyx_t_1);
25161  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5489, __pyx_L1_error)
25162  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
25163 
25164  /* "ctransportCoefficients.pyx":5509
25165  * <double*> da.data,
25166  * <double*> phi.data,
25167  * <double*> dphi.data) # <<<<<<<<<<<<<<
25168  * def conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate(const double rho,
25169  * np.ndarray gravity,
25170  */
25171  conservativeHeadRichardsMualemVanGenuchtenHomEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_rho, __pyx_v_beta, ((double *)__pyx_v_gravity->data), ((double *)__pyx_v_x->data), __pyx_v_alpha, __pyx_v_n, __pyx_v_m, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, ((double *)__pyx_v_u->data), ((double *)__pyx_v_mass->data), ((double *)__pyx_v_dmass->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_dphi->data));
25172 
25173  /* "ctransportCoefficients.pyx":5470
25174  * <double*> H.data,
25175  * <double*> dH.data)
25176  * def conservativeHeadRichardsMualemVanGenuchtenHomEvaluate(const double rho, # <<<<<<<<<<<<<<
25177  * const double beta,
25178  * np.ndarray gravity,
25179  */
25180 
25181  /* function exit code */
25182  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
25183  goto __pyx_L0;
25184  __pyx_L1_error:;
25185  __Pyx_XDECREF(__pyx_t_1);
25186  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
25187  __pyx_r = NULL;
25188  __pyx_L0:;
25189  __Pyx_XGIVEREF(__pyx_r);
25190  __Pyx_RefNannyFinishContext();
25191  return __pyx_r;
25192 }
25193 
25194 /* "ctransportCoefficients.pyx":5510
25195  * <double*> phi.data,
25196  * <double*> dphi.data)
25197  * def conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate(const double rho, # <<<<<<<<<<<<<<
25198  * np.ndarray gravity,
25199  * const double alpha,
25200  */
25201 
25202 /* Python wrapper */
25203 static PyObject *__pyx_pw_22ctransportCoefficients_123conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
25204 static PyMethodDef __pyx_mdef_22ctransportCoefficients_123conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate = {"conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_123conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
25205 static PyObject *__pyx_pw_22ctransportCoefficients_123conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
25206  double __pyx_v_rho;
25207  PyArrayObject *__pyx_v_gravity = 0;
25208  double __pyx_v_alpha;
25209  double __pyx_v_n;
25210  double __pyx_v_m;
25211  double __pyx_v_thetaR;
25212  double __pyx_v_thetaSR;
25213  double __pyx_v_KWs;
25214  PyArrayObject *__pyx_v_dV = 0;
25215  PyArrayObject *__pyx_v_u = 0;
25216  PyArrayObject *__pyx_v_mass = 0;
25217  PyArrayObject *__pyx_v_dmass = 0;
25218  PyArrayObject *__pyx_v_f = 0;
25219  PyArrayObject *__pyx_v_df = 0;
25220  PyArrayObject *__pyx_v_a = 0;
25221  PyArrayObject *__pyx_v_da = 0;
25222  int __pyx_lineno = 0;
25223  const char *__pyx_filename = NULL;
25224  int __pyx_clineno = 0;
25225  PyObject *__pyx_r = 0;
25226  __Pyx_RefNannyDeclarations
25227  __Pyx_RefNannySetupContext("conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate (wrapper)", 0);
25228  {
25229  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_gravity,&__pyx_n_s_alpha,&__pyx_n_s_n,&__pyx_n_s_m,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_dV,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
25230  PyObject* values[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
25231  if (unlikely(__pyx_kwds)) {
25232  Py_ssize_t kw_args;
25233  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
25234  switch (pos_args) {
25235  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
25236  CYTHON_FALLTHROUGH;
25237  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
25238  CYTHON_FALLTHROUGH;
25239  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
25240  CYTHON_FALLTHROUGH;
25241  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
25242  CYTHON_FALLTHROUGH;
25243  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
25244  CYTHON_FALLTHROUGH;
25245  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
25246  CYTHON_FALLTHROUGH;
25247  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
25248  CYTHON_FALLTHROUGH;
25249  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
25250  CYTHON_FALLTHROUGH;
25251  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
25252  CYTHON_FALLTHROUGH;
25253  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
25254  CYTHON_FALLTHROUGH;
25255  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
25256  CYTHON_FALLTHROUGH;
25257  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
25258  CYTHON_FALLTHROUGH;
25259  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
25260  CYTHON_FALLTHROUGH;
25261  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
25262  CYTHON_FALLTHROUGH;
25263  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25264  CYTHON_FALLTHROUGH;
25265  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25266  CYTHON_FALLTHROUGH;
25267  case 0: break;
25268  default: goto __pyx_L5_argtuple_error;
25269  }
25270  kw_args = PyDict_Size(__pyx_kwds);
25271  switch (pos_args) {
25272  case 0:
25273  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
25274  else goto __pyx_L5_argtuple_error;
25275  CYTHON_FALLTHROUGH;
25276  case 1:
25277  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
25278  else {
25279  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 1); __PYX_ERR(0, 5510, __pyx_L3_error)
25280  }
25281  CYTHON_FALLTHROUGH;
25282  case 2:
25283  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
25284  else {
25285  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 2); __PYX_ERR(0, 5510, __pyx_L3_error)
25286  }
25287  CYTHON_FALLTHROUGH;
25288  case 3:
25289  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
25290  else {
25291  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 3); __PYX_ERR(0, 5510, __pyx_L3_error)
25292  }
25293  CYTHON_FALLTHROUGH;
25294  case 4:
25295  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
25296  else {
25297  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 4); __PYX_ERR(0, 5510, __pyx_L3_error)
25298  }
25299  CYTHON_FALLTHROUGH;
25300  case 5:
25301  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
25302  else {
25303  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 5); __PYX_ERR(0, 5510, __pyx_L3_error)
25304  }
25305  CYTHON_FALLTHROUGH;
25306  case 6:
25307  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
25308  else {
25309  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 6); __PYX_ERR(0, 5510, __pyx_L3_error)
25310  }
25311  CYTHON_FALLTHROUGH;
25312  case 7:
25313  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
25314  else {
25315  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 7); __PYX_ERR(0, 5510, __pyx_L3_error)
25316  }
25317  CYTHON_FALLTHROUGH;
25318  case 8:
25319  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dV)) != 0)) kw_args--;
25320  else {
25321  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 8); __PYX_ERR(0, 5510, __pyx_L3_error)
25322  }
25323  CYTHON_FALLTHROUGH;
25324  case 9:
25325  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
25326  else {
25327  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 9); __PYX_ERR(0, 5510, __pyx_L3_error)
25328  }
25329  CYTHON_FALLTHROUGH;
25330  case 10:
25331  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
25332  else {
25333  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 10); __PYX_ERR(0, 5510, __pyx_L3_error)
25334  }
25335  CYTHON_FALLTHROUGH;
25336  case 11:
25337  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
25338  else {
25339  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 11); __PYX_ERR(0, 5510, __pyx_L3_error)
25340  }
25341  CYTHON_FALLTHROUGH;
25342  case 12:
25343  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
25344  else {
25345  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 12); __PYX_ERR(0, 5510, __pyx_L3_error)
25346  }
25347  CYTHON_FALLTHROUGH;
25348  case 13:
25349  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
25350  else {
25351  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 13); __PYX_ERR(0, 5510, __pyx_L3_error)
25352  }
25353  CYTHON_FALLTHROUGH;
25354  case 14:
25355  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
25356  else {
25357  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 14); __PYX_ERR(0, 5510, __pyx_L3_error)
25358  }
25359  CYTHON_FALLTHROUGH;
25360  case 15:
25361  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
25362  else {
25363  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 15); __PYX_ERR(0, 5510, __pyx_L3_error)
25364  }
25365  }
25366  if (unlikely(kw_args > 0)) {
25367  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate") < 0)) __PYX_ERR(0, 5510, __pyx_L3_error)
25368  }
25369  } else if (PyTuple_GET_SIZE(__pyx_args) != 16) {
25370  goto __pyx_L5_argtuple_error;
25371  } else {
25372  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25373  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25374  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
25375  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
25376  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
25377  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
25378  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
25379  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
25380  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
25381  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
25382  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
25383  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
25384  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
25385  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
25386  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
25387  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
25388  }
25389  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5510, __pyx_L3_error)
25390  __pyx_v_gravity = ((PyArrayObject *)values[1]);
25391  __pyx_v_alpha = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_alpha == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5512, __pyx_L3_error)
25392  __pyx_v_n = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_n == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5513, __pyx_L3_error)
25393  __pyx_v_m = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_m == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5514, __pyx_L3_error)
25394  __pyx_v_thetaR = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_thetaR == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5515, __pyx_L3_error)
25395  __pyx_v_thetaSR = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_thetaSR == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5516, __pyx_L3_error)
25396  __pyx_v_KWs = __pyx_PyFloat_AsDouble(values[7]); if (unlikely((__pyx_v_KWs == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5517, __pyx_L3_error)
25397  __pyx_v_dV = ((PyArrayObject *)values[8]);
25398  __pyx_v_u = ((PyArrayObject *)values[9]);
25399  __pyx_v_mass = ((PyArrayObject *)values[10]);
25400  __pyx_v_dmass = ((PyArrayObject *)values[11]);
25401  __pyx_v_f = ((PyArrayObject *)values[12]);
25402  __pyx_v_df = ((PyArrayObject *)values[13]);
25403  __pyx_v_a = ((PyArrayObject *)values[14]);
25404  __pyx_v_da = ((PyArrayObject *)values[15]);
25405  }
25406  goto __pyx_L4_argument_unpacking_done;
25407  __pyx_L5_argtuple_error:;
25408  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5510, __pyx_L3_error)
25409  __pyx_L3_error:;
25410  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
25411  __Pyx_RefNannyFinishContext();
25412  return NULL;
25413  __pyx_L4_argument_unpacking_done:;
25414  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1, "gravity", 0))) __PYX_ERR(0, 5511, __pyx_L1_error)
25415  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dV), __pyx_ptype_5numpy_ndarray, 1, "dV", 0))) __PYX_ERR(0, 5518, __pyx_L1_error)
25416  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 5519, __pyx_L1_error)
25417  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1, "mass", 0))) __PYX_ERR(0, 5520, __pyx_L1_error)
25418  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1, "dmass", 0))) __PYX_ERR(0, 5521, __pyx_L1_error)
25419  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 5522, __pyx_L1_error)
25420  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 5523, __pyx_L1_error)
25421  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 5524, __pyx_L1_error)
25422  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 5525, __pyx_L1_error)
25423  __pyx_r = __pyx_pf_22ctransportCoefficients_122conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate(__pyx_self, __pyx_v_rho, __pyx_v_gravity, __pyx_v_alpha, __pyx_v_n, __pyx_v_m, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_dV, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
25424 
25425  /* function exit code */
25426  goto __pyx_L0;
25427  __pyx_L1_error:;
25428  __pyx_r = NULL;
25429  __pyx_L0:;
25430  __Pyx_RefNannyFinishContext();
25431  return __pyx_r;
25432 }
25433 
25434 static PyObject *__pyx_pf_22ctransportCoefficients_122conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, double __pyx_v_alpha, double __pyx_v_n, double __pyx_v_m, double __pyx_v_thetaR, double __pyx_v_thetaSR, double __pyx_v_KWs, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
25435  PyObject *__pyx_r = NULL;
25436  __Pyx_RefNannyDeclarations
25437  int __pyx_lineno = 0;
25438  const char *__pyx_filename = NULL;
25439  int __pyx_clineno = 0;
25440  __Pyx_RefNannySetupContext("conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 0);
25441 
25442  /* "ctransportCoefficients.pyx":5526
25443  * np.ndarray a,
25444  * np.ndarray da):
25445  * assert f.ndim == 3 # <<<<<<<<<<<<<<
25446  * cconservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate(f.shape[0],
25447  * f.shape[1],
25448  */
25449  #ifndef CYTHON_WITHOUT_ASSERTIONS
25450  if (unlikely(!Py_OptimizeFlag)) {
25451  if (unlikely(!((__pyx_v_f->nd == 3) != 0))) {
25452  PyErr_SetNone(PyExc_AssertionError);
25453  __PYX_ERR(0, 5526, __pyx_L1_error)
25454  }
25455  }
25456  #endif
25457 
25458  /* "ctransportCoefficients.pyx":5527
25459  * np.ndarray da):
25460  * assert f.ndim == 3
25461  * cconservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate(f.shape[0], # <<<<<<<<<<<<<<
25462  * f.shape[1],
25463  * f.shape[2],
25464  */
25465  conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate((__pyx_v_f->dimensions[0]), (__pyx_v_f->dimensions[1]), (__pyx_v_f->dimensions[2]), __pyx_v_rho, ((double *)__pyx_v_gravity->data), __pyx_v_alpha, __pyx_v_n, __pyx_v_m, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, ((double *)__pyx_v_dV->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_mass->data), ((double *)__pyx_v_dmass->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data));
25466 
25467  /* "ctransportCoefficients.pyx":5510
25468  * <double*> phi.data,
25469  * <double*> dphi.data)
25470  * def conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate(const double rho, # <<<<<<<<<<<<<<
25471  * np.ndarray gravity,
25472  * const double alpha,
25473  */
25474 
25475  /* function exit code */
25476  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
25477  goto __pyx_L0;
25478  __pyx_L1_error:;
25479  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
25480  __pyx_r = NULL;
25481  __pyx_L0:;
25482  __Pyx_XGIVEREF(__pyx_r);
25483  __Pyx_RefNannyFinishContext();
25484  return __pyx_r;
25485 }
25486 
25487 /* "ctransportCoefficients.pyx":5546
25488  * <double*> a.data,
25489  * <double*> da.data)
25490  * def conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate(const double rho, # <<<<<<<<<<<<<<
25491  * np.ndarray gravity,
25492  * const double alpha,
25493  */
25494 
25495 /* Python wrapper */
25496 static PyObject *__pyx_pw_22ctransportCoefficients_125conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
25497 static PyMethodDef __pyx_mdef_22ctransportCoefficients_125conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate = {"conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_125conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
25498 static PyObject *__pyx_pw_22ctransportCoefficients_125conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
25499  double __pyx_v_rho;
25500  PyArrayObject *__pyx_v_gravity = 0;
25501  double __pyx_v_alpha;
25502  double __pyx_v_n;
25503  double __pyx_v_m;
25504  double __pyx_v_thetaR;
25505  double __pyx_v_thetaSR;
25506  double __pyx_v_KWs;
25507  PyArrayObject *__pyx_v_dV = 0;
25508  PyArrayObject *__pyx_v_u = 0;
25509  PyArrayObject *__pyx_v_mass = 0;
25510  PyArrayObject *__pyx_v_dmass = 0;
25511  PyArrayObject *__pyx_v_f = 0;
25512  PyArrayObject *__pyx_v_df = 0;
25513  PyArrayObject *__pyx_v_a = 0;
25514  PyArrayObject *__pyx_v_da = 0;
25515  int __pyx_lineno = 0;
25516  const char *__pyx_filename = NULL;
25517  int __pyx_clineno = 0;
25518  PyObject *__pyx_r = 0;
25519  __Pyx_RefNannyDeclarations
25520  __Pyx_RefNannySetupContext("conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate (wrapper)", 0);
25521  {
25522  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_gravity,&__pyx_n_s_alpha,&__pyx_n_s_n,&__pyx_n_s_m,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_dV,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
25523  PyObject* values[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
25524  if (unlikely(__pyx_kwds)) {
25525  Py_ssize_t kw_args;
25526  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
25527  switch (pos_args) {
25528  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
25529  CYTHON_FALLTHROUGH;
25530  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
25531  CYTHON_FALLTHROUGH;
25532  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
25533  CYTHON_FALLTHROUGH;
25534  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
25535  CYTHON_FALLTHROUGH;
25536  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
25537  CYTHON_FALLTHROUGH;
25538  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
25539  CYTHON_FALLTHROUGH;
25540  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
25541  CYTHON_FALLTHROUGH;
25542  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
25543  CYTHON_FALLTHROUGH;
25544  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
25545  CYTHON_FALLTHROUGH;
25546  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
25547  CYTHON_FALLTHROUGH;
25548  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
25549  CYTHON_FALLTHROUGH;
25550  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
25551  CYTHON_FALLTHROUGH;
25552  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
25553  CYTHON_FALLTHROUGH;
25554  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
25555  CYTHON_FALLTHROUGH;
25556  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25557  CYTHON_FALLTHROUGH;
25558  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25559  CYTHON_FALLTHROUGH;
25560  case 0: break;
25561  default: goto __pyx_L5_argtuple_error;
25562  }
25563  kw_args = PyDict_Size(__pyx_kwds);
25564  switch (pos_args) {
25565  case 0:
25566  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
25567  else goto __pyx_L5_argtuple_error;
25568  CYTHON_FALLTHROUGH;
25569  case 1:
25570  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
25571  else {
25572  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 1); __PYX_ERR(0, 5546, __pyx_L3_error)
25573  }
25574  CYTHON_FALLTHROUGH;
25575  case 2:
25576  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
25577  else {
25578  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 2); __PYX_ERR(0, 5546, __pyx_L3_error)
25579  }
25580  CYTHON_FALLTHROUGH;
25581  case 3:
25582  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
25583  else {
25584  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 3); __PYX_ERR(0, 5546, __pyx_L3_error)
25585  }
25586  CYTHON_FALLTHROUGH;
25587  case 4:
25588  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
25589  else {
25590  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 4); __PYX_ERR(0, 5546, __pyx_L3_error)
25591  }
25592  CYTHON_FALLTHROUGH;
25593  case 5:
25594  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
25595  else {
25596  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 5); __PYX_ERR(0, 5546, __pyx_L3_error)
25597  }
25598  CYTHON_FALLTHROUGH;
25599  case 6:
25600  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
25601  else {
25602  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 6); __PYX_ERR(0, 5546, __pyx_L3_error)
25603  }
25604  CYTHON_FALLTHROUGH;
25605  case 7:
25606  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
25607  else {
25608  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 7); __PYX_ERR(0, 5546, __pyx_L3_error)
25609  }
25610  CYTHON_FALLTHROUGH;
25611  case 8:
25612  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dV)) != 0)) kw_args--;
25613  else {
25614  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 8); __PYX_ERR(0, 5546, __pyx_L3_error)
25615  }
25616  CYTHON_FALLTHROUGH;
25617  case 9:
25618  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
25619  else {
25620  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 9); __PYX_ERR(0, 5546, __pyx_L3_error)
25621  }
25622  CYTHON_FALLTHROUGH;
25623  case 10:
25624  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
25625  else {
25626  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 10); __PYX_ERR(0, 5546, __pyx_L3_error)
25627  }
25628  CYTHON_FALLTHROUGH;
25629  case 11:
25630  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
25631  else {
25632  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 11); __PYX_ERR(0, 5546, __pyx_L3_error)
25633  }
25634  CYTHON_FALLTHROUGH;
25635  case 12:
25636  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
25637  else {
25638  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 12); __PYX_ERR(0, 5546, __pyx_L3_error)
25639  }
25640  CYTHON_FALLTHROUGH;
25641  case 13:
25642  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
25643  else {
25644  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 13); __PYX_ERR(0, 5546, __pyx_L3_error)
25645  }
25646  CYTHON_FALLTHROUGH;
25647  case 14:
25648  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
25649  else {
25650  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 14); __PYX_ERR(0, 5546, __pyx_L3_error)
25651  }
25652  CYTHON_FALLTHROUGH;
25653  case 15:
25654  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
25655  else {
25656  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 15); __PYX_ERR(0, 5546, __pyx_L3_error)
25657  }
25658  }
25659  if (unlikely(kw_args > 0)) {
25660  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate") < 0)) __PYX_ERR(0, 5546, __pyx_L3_error)
25661  }
25662  } else if (PyTuple_GET_SIZE(__pyx_args) != 16) {
25663  goto __pyx_L5_argtuple_error;
25664  } else {
25665  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25666  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25667  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
25668  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
25669  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
25670  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
25671  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
25672  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
25673  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
25674  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
25675  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
25676  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
25677  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
25678  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
25679  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
25680  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
25681  }
25682  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5546, __pyx_L3_error)
25683  __pyx_v_gravity = ((PyArrayObject *)values[1]);
25684  __pyx_v_alpha = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_alpha == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5548, __pyx_L3_error)
25685  __pyx_v_n = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_n == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5549, __pyx_L3_error)
25686  __pyx_v_m = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_m == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5550, __pyx_L3_error)
25687  __pyx_v_thetaR = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_thetaR == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5551, __pyx_L3_error)
25688  __pyx_v_thetaSR = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_thetaSR == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5552, __pyx_L3_error)
25689  __pyx_v_KWs = __pyx_PyFloat_AsDouble(values[7]); if (unlikely((__pyx_v_KWs == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5553, __pyx_L3_error)
25690  __pyx_v_dV = ((PyArrayObject *)values[8]);
25691  __pyx_v_u = ((PyArrayObject *)values[9]);
25692  __pyx_v_mass = ((PyArrayObject *)values[10]);
25693  __pyx_v_dmass = ((PyArrayObject *)values[11]);
25694  __pyx_v_f = ((PyArrayObject *)values[12]);
25695  __pyx_v_df = ((PyArrayObject *)values[13]);
25696  __pyx_v_a = ((PyArrayObject *)values[14]);
25697  __pyx_v_da = ((PyArrayObject *)values[15]);
25698  }
25699  goto __pyx_L4_argument_unpacking_done;
25700  __pyx_L5_argtuple_error:;
25701  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5546, __pyx_L3_error)
25702  __pyx_L3_error:;
25703  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
25704  __Pyx_RefNannyFinishContext();
25705  return NULL;
25706  __pyx_L4_argument_unpacking_done:;
25707  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1, "gravity", 0))) __PYX_ERR(0, 5547, __pyx_L1_error)
25708  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dV), __pyx_ptype_5numpy_ndarray, 1, "dV", 0))) __PYX_ERR(0, 5554, __pyx_L1_error)
25709  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 5555, __pyx_L1_error)
25710  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1, "mass", 0))) __PYX_ERR(0, 5556, __pyx_L1_error)
25711  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1, "dmass", 0))) __PYX_ERR(0, 5557, __pyx_L1_error)
25712  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 5558, __pyx_L1_error)
25713  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 5559, __pyx_L1_error)
25714  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 5560, __pyx_L1_error)
25715  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 5561, __pyx_L1_error)
25716  __pyx_r = __pyx_pf_22ctransportCoefficients_124conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate(__pyx_self, __pyx_v_rho, __pyx_v_gravity, __pyx_v_alpha, __pyx_v_n, __pyx_v_m, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_dV, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
25717 
25718  /* function exit code */
25719  goto __pyx_L0;
25720  __pyx_L1_error:;
25721  __pyx_r = NULL;
25722  __pyx_L0:;
25723  __Pyx_RefNannyFinishContext();
25724  return __pyx_r;
25725 }
25726 
25727 static PyObject *__pyx_pf_22ctransportCoefficients_124conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, double __pyx_v_alpha, double __pyx_v_n, double __pyx_v_m, double __pyx_v_thetaR, double __pyx_v_thetaSR, double __pyx_v_KWs, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
25728  PyObject *__pyx_r = NULL;
25729  __Pyx_RefNannyDeclarations
25730  int __pyx_lineno = 0;
25731  const char *__pyx_filename = NULL;
25732  int __pyx_clineno = 0;
25733  __Pyx_RefNannySetupContext("conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 0);
25734 
25735  /* "ctransportCoefficients.pyx":5562
25736  * np.ndarray a,
25737  * np.ndarray da):
25738  * assert f.ndim == 4 # <<<<<<<<<<<<<<
25739  * cconservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate(f.shape[0],
25740  * f.shape[1],
25741  */
25742  #ifndef CYTHON_WITHOUT_ASSERTIONS
25743  if (unlikely(!Py_OptimizeFlag)) {
25744  if (unlikely(!((__pyx_v_f->nd == 4) != 0))) {
25745  PyErr_SetNone(PyExc_AssertionError);
25746  __PYX_ERR(0, 5562, __pyx_L1_error)
25747  }
25748  }
25749  #endif
25750 
25751  /* "ctransportCoefficients.pyx":5563
25752  * np.ndarray da):
25753  * assert f.ndim == 4
25754  * cconservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate(f.shape[0], # <<<<<<<<<<<<<<
25755  * f.shape[1],
25756  * f.shape[2],
25757  */
25758  conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate((__pyx_v_f->dimensions[0]), (__pyx_v_f->dimensions[1]), (__pyx_v_f->dimensions[2]), (__pyx_v_f->dimensions[3]), __pyx_v_rho, ((double *)__pyx_v_gravity->data), __pyx_v_alpha, __pyx_v_n, __pyx_v_m, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, ((double *)__pyx_v_dV->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_mass->data), ((double *)__pyx_v_dmass->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data));
25759 
25760  /* "ctransportCoefficients.pyx":5546
25761  * <double*> a.data,
25762  * <double*> da.data)
25763  * def conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate(const double rho, # <<<<<<<<<<<<<<
25764  * np.ndarray gravity,
25765  * const double alpha,
25766  */
25767 
25768  /* function exit code */
25769  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
25770  goto __pyx_L0;
25771  __pyx_L1_error:;
25772  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
25773  __pyx_r = NULL;
25774  __pyx_L0:;
25775  __Pyx_XGIVEREF(__pyx_r);
25776  __Pyx_RefNannyFinishContext();
25777  return __pyx_r;
25778 }
25779 
25780 /* "ctransportCoefficients.pyx":5583
25781  * <double*> a.data,
25782  * <double*> da.data)
25783  * def conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate(const double rho, # <<<<<<<<<<<<<<
25784  * np.ndarray gravity,
25785  * np.ndarray alpha,
25786  */
25787 
25788 /* Python wrapper */
25789 static PyObject *__pyx_pw_22ctransportCoefficients_127conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
25790 static PyMethodDef __pyx_mdef_22ctransportCoefficients_127conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate = {"conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_127conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
25791 static PyObject *__pyx_pw_22ctransportCoefficients_127conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
25792  double __pyx_v_rho;
25793  PyArrayObject *__pyx_v_gravity = 0;
25794  PyArrayObject *__pyx_v_alpha = 0;
25795  PyArrayObject *__pyx_v_n = 0;
25796  PyArrayObject *__pyx_v_thetaR = 0;
25797  PyArrayObject *__pyx_v_thetaSR = 0;
25798  PyArrayObject *__pyx_v_KWs = 0;
25799  PyArrayObject *__pyx_v_dV = 0;
25800  PyArrayObject *__pyx_v_u = 0;
25801  PyArrayObject *__pyx_v_mass = 0;
25802  PyArrayObject *__pyx_v_dmass = 0;
25803  PyArrayObject *__pyx_v_f = 0;
25804  PyArrayObject *__pyx_v_df = 0;
25805  PyArrayObject *__pyx_v_a = 0;
25806  PyArrayObject *__pyx_v_da = 0;
25807  int __pyx_lineno = 0;
25808  const char *__pyx_filename = NULL;
25809  int __pyx_clineno = 0;
25810  PyObject *__pyx_r = 0;
25811  __Pyx_RefNannyDeclarations
25812  __Pyx_RefNannySetupContext("conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate (wrapper)", 0);
25813  {
25814  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_gravity,&__pyx_n_s_alpha,&__pyx_n_s_n,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_dV,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
25815  PyObject* values[15] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
25816  if (unlikely(__pyx_kwds)) {
25817  Py_ssize_t kw_args;
25818  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
25819  switch (pos_args) {
25820  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
25821  CYTHON_FALLTHROUGH;
25822  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
25823  CYTHON_FALLTHROUGH;
25824  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
25825  CYTHON_FALLTHROUGH;
25826  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
25827  CYTHON_FALLTHROUGH;
25828  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
25829  CYTHON_FALLTHROUGH;
25830  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
25831  CYTHON_FALLTHROUGH;
25832  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
25833  CYTHON_FALLTHROUGH;
25834  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
25835  CYTHON_FALLTHROUGH;
25836  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
25837  CYTHON_FALLTHROUGH;
25838  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
25839  CYTHON_FALLTHROUGH;
25840  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
25841  CYTHON_FALLTHROUGH;
25842  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
25843  CYTHON_FALLTHROUGH;
25844  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
25845  CYTHON_FALLTHROUGH;
25846  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25847  CYTHON_FALLTHROUGH;
25848  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25849  CYTHON_FALLTHROUGH;
25850  case 0: break;
25851  default: goto __pyx_L5_argtuple_error;
25852  }
25853  kw_args = PyDict_Size(__pyx_kwds);
25854  switch (pos_args) {
25855  case 0:
25856  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
25857  else goto __pyx_L5_argtuple_error;
25858  CYTHON_FALLTHROUGH;
25859  case 1:
25860  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
25861  else {
25862  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 1); __PYX_ERR(0, 5583, __pyx_L3_error)
25863  }
25864  CYTHON_FALLTHROUGH;
25865  case 2:
25866  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
25867  else {
25868  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 2); __PYX_ERR(0, 5583, __pyx_L3_error)
25869  }
25870  CYTHON_FALLTHROUGH;
25871  case 3:
25872  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
25873  else {
25874  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 3); __PYX_ERR(0, 5583, __pyx_L3_error)
25875  }
25876  CYTHON_FALLTHROUGH;
25877  case 4:
25878  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
25879  else {
25880  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 4); __PYX_ERR(0, 5583, __pyx_L3_error)
25881  }
25882  CYTHON_FALLTHROUGH;
25883  case 5:
25884  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
25885  else {
25886  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 5); __PYX_ERR(0, 5583, __pyx_L3_error)
25887  }
25888  CYTHON_FALLTHROUGH;
25889  case 6:
25890  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
25891  else {
25892  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 6); __PYX_ERR(0, 5583, __pyx_L3_error)
25893  }
25894  CYTHON_FALLTHROUGH;
25895  case 7:
25896  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dV)) != 0)) kw_args--;
25897  else {
25898  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 7); __PYX_ERR(0, 5583, __pyx_L3_error)
25899  }
25900  CYTHON_FALLTHROUGH;
25901  case 8:
25902  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
25903  else {
25904  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 8); __PYX_ERR(0, 5583, __pyx_L3_error)
25905  }
25906  CYTHON_FALLTHROUGH;
25907  case 9:
25908  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
25909  else {
25910  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 9); __PYX_ERR(0, 5583, __pyx_L3_error)
25911  }
25912  CYTHON_FALLTHROUGH;
25913  case 10:
25914  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
25915  else {
25916  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 10); __PYX_ERR(0, 5583, __pyx_L3_error)
25917  }
25918  CYTHON_FALLTHROUGH;
25919  case 11:
25920  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
25921  else {
25922  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 11); __PYX_ERR(0, 5583, __pyx_L3_error)
25923  }
25924  CYTHON_FALLTHROUGH;
25925  case 12:
25926  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
25927  else {
25928  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 12); __PYX_ERR(0, 5583, __pyx_L3_error)
25929  }
25930  CYTHON_FALLTHROUGH;
25931  case 13:
25932  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
25933  else {
25934  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 13); __PYX_ERR(0, 5583, __pyx_L3_error)
25935  }
25936  CYTHON_FALLTHROUGH;
25937  case 14:
25938  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
25939  else {
25940  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 14); __PYX_ERR(0, 5583, __pyx_L3_error)
25941  }
25942  }
25943  if (unlikely(kw_args > 0)) {
25944  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate") < 0)) __PYX_ERR(0, 5583, __pyx_L3_error)
25945  }
25946  } else if (PyTuple_GET_SIZE(__pyx_args) != 15) {
25947  goto __pyx_L5_argtuple_error;
25948  } else {
25949  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25950  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25951  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
25952  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
25953  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
25954  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
25955  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
25956  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
25957  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
25958  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
25959  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
25960  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
25961  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
25962  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
25963  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
25964  }
25965  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5583, __pyx_L3_error)
25966  __pyx_v_gravity = ((PyArrayObject *)values[1]);
25967  __pyx_v_alpha = ((PyArrayObject *)values[2]);
25968  __pyx_v_n = ((PyArrayObject *)values[3]);
25969  __pyx_v_thetaR = ((PyArrayObject *)values[4]);
25970  __pyx_v_thetaSR = ((PyArrayObject *)values[5]);
25971  __pyx_v_KWs = ((PyArrayObject *)values[6]);
25972  __pyx_v_dV = ((PyArrayObject *)values[7]);
25973  __pyx_v_u = ((PyArrayObject *)values[8]);
25974  __pyx_v_mass = ((PyArrayObject *)values[9]);
25975  __pyx_v_dmass = ((PyArrayObject *)values[10]);
25976  __pyx_v_f = ((PyArrayObject *)values[11]);
25977  __pyx_v_df = ((PyArrayObject *)values[12]);
25978  __pyx_v_a = ((PyArrayObject *)values[13]);
25979  __pyx_v_da = ((PyArrayObject *)values[14]);
25980  }
25981  goto __pyx_L4_argument_unpacking_done;
25982  __pyx_L5_argtuple_error:;
25983  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5583, __pyx_L3_error)
25984  __pyx_L3_error:;
25985  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
25986  __Pyx_RefNannyFinishContext();
25987  return NULL;
25988  __pyx_L4_argument_unpacking_done:;
25989  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1, "gravity", 0))) __PYX_ERR(0, 5584, __pyx_L1_error)
25990  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha), __pyx_ptype_5numpy_ndarray, 1, "alpha", 0))) __PYX_ERR(0, 5585, __pyx_L1_error)
25991  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1, "n", 0))) __PYX_ERR(0, 5586, __pyx_L1_error)
25992  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaR), __pyx_ptype_5numpy_ndarray, 1, "thetaR", 0))) __PYX_ERR(0, 5587, __pyx_L1_error)
25993  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaSR), __pyx_ptype_5numpy_ndarray, 1, "thetaSR", 0))) __PYX_ERR(0, 5588, __pyx_L1_error)
25994  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_KWs), __pyx_ptype_5numpy_ndarray, 1, "KWs", 0))) __PYX_ERR(0, 5589, __pyx_L1_error)
25995  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dV), __pyx_ptype_5numpy_ndarray, 1, "dV", 0))) __PYX_ERR(0, 5590, __pyx_L1_error)
25996  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 5591, __pyx_L1_error)
25997  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1, "mass", 0))) __PYX_ERR(0, 5592, __pyx_L1_error)
25998  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1, "dmass", 0))) __PYX_ERR(0, 5593, __pyx_L1_error)
25999  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 5594, __pyx_L1_error)
26000  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 5595, __pyx_L1_error)
26001  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 5596, __pyx_L1_error)
26002  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 5597, __pyx_L1_error)
26003  __pyx_r = __pyx_pf_22ctransportCoefficients_126conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate(__pyx_self, __pyx_v_rho, __pyx_v_gravity, __pyx_v_alpha, __pyx_v_n, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_dV, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
26004 
26005  /* function exit code */
26006  goto __pyx_L0;
26007  __pyx_L1_error:;
26008  __pyx_r = NULL;
26009  __pyx_L0:;
26010  __Pyx_RefNannyFinishContext();
26011  return __pyx_r;
26012 }
26013 
26014 static PyObject *__pyx_pf_22ctransportCoefficients_126conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
26015  PyObject *__pyx_r = NULL;
26016  __Pyx_RefNannyDeclarations
26017  PyObject *__pyx_t_1 = NULL;
26018  PyObject *__pyx_t_2 = NULL;
26019  PyObject *__pyx_t_3 = NULL;
26020  int __pyx_t_4;
26021  int __pyx_lineno = 0;
26022  const char *__pyx_filename = NULL;
26023  int __pyx_clineno = 0;
26024  __Pyx_RefNannySetupContext("conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 0);
26025 
26026  /* "ctransportCoefficients.pyx":5598
26027  * np.ndarray a,
26028  * np.ndarray da):
26029  * cconservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate(u.size/u.shape[u.ndim-1], # <<<<<<<<<<<<<<
26030  * u.shape[u.ndim-1],
26031  * f.shape[f.ndim-1],
26032  */
26033  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5598, __pyx_L1_error)
26034  __Pyx_GOTREF(__pyx_t_1);
26035  __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_u->dimensions[(__pyx_v_u->nd - 1)])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5598, __pyx_L1_error)
26036  __Pyx_GOTREF(__pyx_t_2);
26037  __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5598, __pyx_L1_error)
26038  __Pyx_GOTREF(__pyx_t_3);
26039  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
26040  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
26041  __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5598, __pyx_L1_error)
26042  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
26043 
26044  /* "ctransportCoefficients.pyx":5615
26045  * <double*> df.data,
26046  * <double*> a.data,
26047  * <double*> da.data) # <<<<<<<<<<<<<<
26048  * def conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate(const double rho,
26049  * np.ndarray gravity,
26050  */
26051  conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate(__pyx_t_4, (__pyx_v_u->dimensions[(__pyx_v_u->nd - 1)]), (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_rho, ((double *)__pyx_v_gravity->data), ((double *)__pyx_v_alpha->data), ((double *)__pyx_v_n->data), ((double *)__pyx_v_thetaR->data), ((double *)__pyx_v_thetaSR->data), ((double *)__pyx_v_KWs->data), ((double *)__pyx_v_dV->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_mass->data), ((double *)__pyx_v_dmass->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data));
26052 
26053  /* "ctransportCoefficients.pyx":5583
26054  * <double*> a.data,
26055  * <double*> da.data)
26056  * def conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate(const double rho, # <<<<<<<<<<<<<<
26057  * np.ndarray gravity,
26058  * np.ndarray alpha,
26059  */
26060 
26061  /* function exit code */
26062  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
26063  goto __pyx_L0;
26064  __pyx_L1_error:;
26065  __Pyx_XDECREF(__pyx_t_1);
26066  __Pyx_XDECREF(__pyx_t_2);
26067  __Pyx_XDECREF(__pyx_t_3);
26068  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
26069  __pyx_r = NULL;
26070  __pyx_L0:;
26071  __Pyx_XGIVEREF(__pyx_r);
26072  __Pyx_RefNannyFinishContext();
26073  return __pyx_r;
26074 }
26075 
26076 /* "ctransportCoefficients.pyx":5616
26077  * <double*> a.data,
26078  * <double*> da.data)
26079  * def conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate(const double rho, # <<<<<<<<<<<<<<
26080  * np.ndarray gravity,
26081  * np.ndarray x,
26082  */
26083 
26084 /* Python wrapper */
26085 static PyObject *__pyx_pw_22ctransportCoefficients_129conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
26086 static PyMethodDef __pyx_mdef_22ctransportCoefficients_129conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate = {"conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_129conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
26087 static PyObject *__pyx_pw_22ctransportCoefficients_129conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
26088  double __pyx_v_rho;
26089  PyArrayObject *__pyx_v_gravity = 0;
26090  PyArrayObject *__pyx_v_x = 0;
26091  double __pyx_v_alpha;
26092  double __pyx_v_n;
26093  double __pyx_v_m;
26094  double __pyx_v_thetaR;
26095  double __pyx_v_thetaSR;
26096  double __pyx_v_KWs;
26097  PyArrayObject *__pyx_v_u = 0;
26098  PyArrayObject *__pyx_v_mass = 0;
26099  PyArrayObject *__pyx_v_dmass = 0;
26100  PyArrayObject *__pyx_v_f = 0;
26101  PyArrayObject *__pyx_v_df = 0;
26102  PyArrayObject *__pyx_v_a = 0;
26103  PyArrayObject *__pyx_v_da = 0;
26104  PyArrayObject *__pyx_v_phi = 0;
26105  PyArrayObject *__pyx_v_dphi = 0;
26106  int __pyx_lineno = 0;
26107  const char *__pyx_filename = NULL;
26108  int __pyx_clineno = 0;
26109  PyObject *__pyx_r = 0;
26110  __Pyx_RefNannyDeclarations
26111  __Pyx_RefNannySetupContext("conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate (wrapper)", 0);
26112  {
26113  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_gravity,&__pyx_n_s_x,&__pyx_n_s_alpha,&__pyx_n_s_n,&__pyx_n_s_m,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_phi,&__pyx_n_s_dphi,0};
26114  PyObject* values[18] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
26115  if (unlikely(__pyx_kwds)) {
26116  Py_ssize_t kw_args;
26117  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
26118  switch (pos_args) {
26119  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
26120  CYTHON_FALLTHROUGH;
26121  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
26122  CYTHON_FALLTHROUGH;
26123  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
26124  CYTHON_FALLTHROUGH;
26125  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
26126  CYTHON_FALLTHROUGH;
26127  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
26128  CYTHON_FALLTHROUGH;
26129  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
26130  CYTHON_FALLTHROUGH;
26131  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
26132  CYTHON_FALLTHROUGH;
26133  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
26134  CYTHON_FALLTHROUGH;
26135  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
26136  CYTHON_FALLTHROUGH;
26137  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
26138  CYTHON_FALLTHROUGH;
26139  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
26140  CYTHON_FALLTHROUGH;
26141  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
26142  CYTHON_FALLTHROUGH;
26143  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
26144  CYTHON_FALLTHROUGH;
26145  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
26146  CYTHON_FALLTHROUGH;
26147  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
26148  CYTHON_FALLTHROUGH;
26149  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
26150  CYTHON_FALLTHROUGH;
26151  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
26152  CYTHON_FALLTHROUGH;
26153  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
26154  CYTHON_FALLTHROUGH;
26155  case 0: break;
26156  default: goto __pyx_L5_argtuple_error;
26157  }
26158  kw_args = PyDict_Size(__pyx_kwds);
26159  switch (pos_args) {
26160  case 0:
26161  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
26162  else goto __pyx_L5_argtuple_error;
26163  CYTHON_FALLTHROUGH;
26164  case 1:
26165  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
26166  else {
26167  __Pyx_RaiseArgtupleInvalid("conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 1); __PYX_ERR(0, 5616, __pyx_L3_error)
26168  }
26169  CYTHON_FALLTHROUGH;
26170  case 2:
26171  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
26172  else {
26173  __Pyx_RaiseArgtupleInvalid("conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 2); __PYX_ERR(0, 5616, __pyx_L3_error)
26174  }
26175  CYTHON_FALLTHROUGH;
26176  case 3:
26177  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
26178  else {
26179  __Pyx_RaiseArgtupleInvalid("conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 3); __PYX_ERR(0, 5616, __pyx_L3_error)
26180  }
26181  CYTHON_FALLTHROUGH;
26182  case 4:
26183  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
26184  else {
26185  __Pyx_RaiseArgtupleInvalid("conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 4); __PYX_ERR(0, 5616, __pyx_L3_error)
26186  }
26187  CYTHON_FALLTHROUGH;
26188  case 5:
26189  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
26190  else {
26191  __Pyx_RaiseArgtupleInvalid("conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 5); __PYX_ERR(0, 5616, __pyx_L3_error)
26192  }
26193  CYTHON_FALLTHROUGH;
26194  case 6:
26195  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
26196  else {
26197  __Pyx_RaiseArgtupleInvalid("conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 6); __PYX_ERR(0, 5616, __pyx_L3_error)
26198  }
26199  CYTHON_FALLTHROUGH;
26200  case 7:
26201  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
26202  else {
26203  __Pyx_RaiseArgtupleInvalid("conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 7); __PYX_ERR(0, 5616, __pyx_L3_error)
26204  }
26205  CYTHON_FALLTHROUGH;
26206  case 8:
26207  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
26208  else {
26209  __Pyx_RaiseArgtupleInvalid("conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 8); __PYX_ERR(0, 5616, __pyx_L3_error)
26210  }
26211  CYTHON_FALLTHROUGH;
26212  case 9:
26213  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
26214  else {
26215  __Pyx_RaiseArgtupleInvalid("conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 9); __PYX_ERR(0, 5616, __pyx_L3_error)
26216  }
26217  CYTHON_FALLTHROUGH;
26218  case 10:
26219  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
26220  else {
26221  __Pyx_RaiseArgtupleInvalid("conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 10); __PYX_ERR(0, 5616, __pyx_L3_error)
26222  }
26223  CYTHON_FALLTHROUGH;
26224  case 11:
26225  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
26226  else {
26227  __Pyx_RaiseArgtupleInvalid("conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 11); __PYX_ERR(0, 5616, __pyx_L3_error)
26228  }
26229  CYTHON_FALLTHROUGH;
26230  case 12:
26231  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
26232  else {
26233  __Pyx_RaiseArgtupleInvalid("conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 12); __PYX_ERR(0, 5616, __pyx_L3_error)
26234  }
26235  CYTHON_FALLTHROUGH;
26236  case 13:
26237  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
26238  else {
26239  __Pyx_RaiseArgtupleInvalid("conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 13); __PYX_ERR(0, 5616, __pyx_L3_error)
26240  }
26241  CYTHON_FALLTHROUGH;
26242  case 14:
26243  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
26244  else {
26245  __Pyx_RaiseArgtupleInvalid("conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 14); __PYX_ERR(0, 5616, __pyx_L3_error)
26246  }
26247  CYTHON_FALLTHROUGH;
26248  case 15:
26249  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
26250  else {
26251  __Pyx_RaiseArgtupleInvalid("conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 15); __PYX_ERR(0, 5616, __pyx_L3_error)
26252  }
26253  CYTHON_FALLTHROUGH;
26254  case 16:
26255  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
26256  else {
26257  __Pyx_RaiseArgtupleInvalid("conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 16); __PYX_ERR(0, 5616, __pyx_L3_error)
26258  }
26259  CYTHON_FALLTHROUGH;
26260  case 17:
26261  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
26262  else {
26263  __Pyx_RaiseArgtupleInvalid("conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 17); __PYX_ERR(0, 5616, __pyx_L3_error)
26264  }
26265  }
26266  if (unlikely(kw_args > 0)) {
26267  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate") < 0)) __PYX_ERR(0, 5616, __pyx_L3_error)
26268  }
26269  } else if (PyTuple_GET_SIZE(__pyx_args) != 18) {
26270  goto __pyx_L5_argtuple_error;
26271  } else {
26272  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
26273  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
26274  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
26275  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
26276  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
26277  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
26278  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
26279  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
26280  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
26281  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
26282  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
26283  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
26284  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
26285  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
26286  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
26287  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
26288  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
26289  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
26290  }
26291  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5616, __pyx_L3_error)
26292  __pyx_v_gravity = ((PyArrayObject *)values[1]);
26293  __pyx_v_x = ((PyArrayObject *)values[2]);
26294  __pyx_v_alpha = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_alpha == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5619, __pyx_L3_error)
26295  __pyx_v_n = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_n == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5620, __pyx_L3_error)
26296  __pyx_v_m = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_m == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5621, __pyx_L3_error)
26297  __pyx_v_thetaR = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_thetaR == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5622, __pyx_L3_error)
26298  __pyx_v_thetaSR = __pyx_PyFloat_AsDouble(values[7]); if (unlikely((__pyx_v_thetaSR == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5623, __pyx_L3_error)
26299  __pyx_v_KWs = __pyx_PyFloat_AsDouble(values[8]); if (unlikely((__pyx_v_KWs == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5624, __pyx_L3_error)
26300  __pyx_v_u = ((PyArrayObject *)values[9]);
26301  __pyx_v_mass = ((PyArrayObject *)values[10]);
26302  __pyx_v_dmass = ((PyArrayObject *)values[11]);
26303  __pyx_v_f = ((PyArrayObject *)values[12]);
26304  __pyx_v_df = ((PyArrayObject *)values[13]);
26305  __pyx_v_a = ((PyArrayObject *)values[14]);
26306  __pyx_v_da = ((PyArrayObject *)values[15]);
26307  __pyx_v_phi = ((PyArrayObject *)values[16]);
26308  __pyx_v_dphi = ((PyArrayObject *)values[17]);
26309  }
26310  goto __pyx_L4_argument_unpacking_done;
26311  __pyx_L5_argtuple_error:;
26312  __Pyx_RaiseArgtupleInvalid("conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5616, __pyx_L3_error)
26313  __pyx_L3_error:;
26314  __Pyx_AddTraceback("ctransportCoefficients.conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
26315  __Pyx_RefNannyFinishContext();
26316  return NULL;
26317  __pyx_L4_argument_unpacking_done:;
26318  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1, "gravity", 0))) __PYX_ERR(0, 5617, __pyx_L1_error)
26319  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1, "x", 0))) __PYX_ERR(0, 5618, __pyx_L1_error)
26320  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 5625, __pyx_L1_error)
26321  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1, "mass", 0))) __PYX_ERR(0, 5626, __pyx_L1_error)
26322  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1, "dmass", 0))) __PYX_ERR(0, 5627, __pyx_L1_error)
26323  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 5628, __pyx_L1_error)
26324  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 5629, __pyx_L1_error)
26325  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 5630, __pyx_L1_error)
26326  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 5631, __pyx_L1_error)
26327  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 5632, __pyx_L1_error)
26328  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1, "dphi", 0))) __PYX_ERR(0, 5633, __pyx_L1_error)
26329  __pyx_r = __pyx_pf_22ctransportCoefficients_128conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate(__pyx_self, __pyx_v_rho, __pyx_v_gravity, __pyx_v_x, __pyx_v_alpha, __pyx_v_n, __pyx_v_m, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da, __pyx_v_phi, __pyx_v_dphi);
26330 
26331  /* function exit code */
26332  goto __pyx_L0;
26333  __pyx_L1_error:;
26334  __pyx_r = NULL;
26335  __pyx_L0:;
26336  __Pyx_RefNannyFinishContext();
26337  return __pyx_r;
26338 }
26339 
26340 static PyObject *__pyx_pf_22ctransportCoefficients_128conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_x, double __pyx_v_alpha, double __pyx_v_n, double __pyx_v_m, double __pyx_v_thetaR, double __pyx_v_thetaSR, double __pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi) {
26341  PyObject *__pyx_r = NULL;
26342  __Pyx_RefNannyDeclarations
26343  PyObject *__pyx_t_1 = NULL;
26344  int __pyx_t_2;
26345  int __pyx_lineno = 0;
26346  const char *__pyx_filename = NULL;
26347  int __pyx_clineno = 0;
26348  __Pyx_RefNannySetupContext("conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 0);
26349 
26350  /* "ctransportCoefficients.pyx":5634
26351  * np.ndarray phi,
26352  * np.ndarray dphi):
26353  * cconservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate(u.size, # <<<<<<<<<<<<<<
26354  * f.shape[f.ndim-1],
26355  * rho,
26356  */
26357  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5634, __pyx_L1_error)
26358  __Pyx_GOTREF(__pyx_t_1);
26359  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5634, __pyx_L1_error)
26360  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
26361 
26362  /* "ctransportCoefficients.pyx":5653
26363  * <double*> da.data,
26364  * <double*> phi.data,
26365  * <double*> dphi.data) # <<<<<<<<<<<<<<
26366  * def conservativeHeadRichardsMualemVanGenuchten_sd_het(np.ndarray rowptr,
26367  * np.ndarray colind,
26368  */
26369  conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_rho, ((double *)__pyx_v_gravity->data), ((double *)__pyx_v_x->data), __pyx_v_alpha, __pyx_v_n, __pyx_v_m, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, ((double *)__pyx_v_u->data), ((double *)__pyx_v_mass->data), ((double *)__pyx_v_dmass->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_dphi->data));
26370 
26371  /* "ctransportCoefficients.pyx":5616
26372  * <double*> a.data,
26373  * <double*> da.data)
26374  * def conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate(const double rho, # <<<<<<<<<<<<<<
26375  * np.ndarray gravity,
26376  * np.ndarray x,
26377  */
26378 
26379  /* function exit code */
26380  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
26381  goto __pyx_L0;
26382  __pyx_L1_error:;
26383  __Pyx_XDECREF(__pyx_t_1);
26384  __Pyx_AddTraceback("ctransportCoefficients.conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
26385  __pyx_r = NULL;
26386  __pyx_L0:;
26387  __Pyx_XGIVEREF(__pyx_r);
26388  __Pyx_RefNannyFinishContext();
26389  return __pyx_r;
26390 }
26391 
26392 /* "ctransportCoefficients.pyx":5654
26393  * <double*> phi.data,
26394  * <double*> dphi.data)
26395  * def conservativeHeadRichardsMualemVanGenuchten_sd_het(np.ndarray rowptr, # <<<<<<<<<<<<<<
26396  * np.ndarray colind,
26397  * np.ndarray materialTypes,
26398  */
26399 
26400 /* Python wrapper */
26401 static PyObject *__pyx_pw_22ctransportCoefficients_131conservativeHeadRichardsMualemVanGenuchten_sd_het(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
26402 static PyMethodDef __pyx_mdef_22ctransportCoefficients_131conservativeHeadRichardsMualemVanGenuchten_sd_het = {"conservativeHeadRichardsMualemVanGenuchten_sd_het", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_131conservativeHeadRichardsMualemVanGenuchten_sd_het, METH_VARARGS|METH_KEYWORDS, 0};
26403 static PyObject *__pyx_pw_22ctransportCoefficients_131conservativeHeadRichardsMualemVanGenuchten_sd_het(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
26404  PyArrayObject *__pyx_v_rowptr = 0;
26405  PyArrayObject *__pyx_v_colind = 0;
26406  PyArrayObject *__pyx_v_materialTypes = 0;
26407  double __pyx_v_rho;
26408  double __pyx_v_beta;
26409  PyArrayObject *__pyx_v_gravity = 0;
26410  PyArrayObject *__pyx_v_alpha = 0;
26411  PyArrayObject *__pyx_v_n = 0;
26412  PyArrayObject *__pyx_v_thetaR = 0;
26413  PyArrayObject *__pyx_v_thetaSR = 0;
26414  PyArrayObject *__pyx_v_KWs = 0;
26415  PyArrayObject *__pyx_v_u = 0;
26416  PyArrayObject *__pyx_v_mass = 0;
26417  PyArrayObject *__pyx_v_dmass = 0;
26418  PyArrayObject *__pyx_v_f = 0;
26419  PyArrayObject *__pyx_v_df = 0;
26420  PyArrayObject *__pyx_v_a = 0;
26421  PyArrayObject *__pyx_v_da = 0;
26422  PyArrayObject *__pyx_v_vol_frac = 0;
26423  int __pyx_v_linearize_at_zero;
26424  double __pyx_v_pc_eps;
26425  int __pyx_lineno = 0;
26426  const char *__pyx_filename = NULL;
26427  int __pyx_clineno = 0;
26428  PyObject *__pyx_r = 0;
26429  __Pyx_RefNannyDeclarations
26430  __Pyx_RefNannySetupContext("conservativeHeadRichardsMualemVanGenuchten_sd_het (wrapper)", 0);
26431  {
26432  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_materialTypes,&__pyx_n_s_rho,&__pyx_n_s_beta,&__pyx_n_s_gravity,&__pyx_n_s_alpha,&__pyx_n_s_n,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_vol_frac,&__pyx_n_s_linearize_at_zero,&__pyx_n_s_pc_eps,0};
26433  PyObject* values[21] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
26434  if (unlikely(__pyx_kwds)) {
26435  Py_ssize_t kw_args;
26436  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
26437  switch (pos_args) {
26438  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
26439  CYTHON_FALLTHROUGH;
26440  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
26441  CYTHON_FALLTHROUGH;
26442  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
26443  CYTHON_FALLTHROUGH;
26444  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
26445  CYTHON_FALLTHROUGH;
26446  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
26447  CYTHON_FALLTHROUGH;
26448  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
26449  CYTHON_FALLTHROUGH;
26450  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
26451  CYTHON_FALLTHROUGH;
26452  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
26453  CYTHON_FALLTHROUGH;
26454  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
26455  CYTHON_FALLTHROUGH;
26456  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
26457  CYTHON_FALLTHROUGH;
26458  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
26459  CYTHON_FALLTHROUGH;
26460  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
26461  CYTHON_FALLTHROUGH;
26462  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
26463  CYTHON_FALLTHROUGH;
26464  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
26465  CYTHON_FALLTHROUGH;
26466  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
26467  CYTHON_FALLTHROUGH;
26468  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
26469  CYTHON_FALLTHROUGH;
26470  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
26471  CYTHON_FALLTHROUGH;
26472  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
26473  CYTHON_FALLTHROUGH;
26474  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
26475  CYTHON_FALLTHROUGH;
26476  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
26477  CYTHON_FALLTHROUGH;
26478  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
26479  CYTHON_FALLTHROUGH;
26480  case 0: break;
26481  default: goto __pyx_L5_argtuple_error;
26482  }
26483  kw_args = PyDict_Size(__pyx_kwds);
26484  switch (pos_args) {
26485  case 0:
26486  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
26487  else goto __pyx_L5_argtuple_error;
26488  CYTHON_FALLTHROUGH;
26489  case 1:
26490  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
26491  else {
26492  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 1); __PYX_ERR(0, 5654, __pyx_L3_error)
26493  }
26494  CYTHON_FALLTHROUGH;
26495  case 2:
26496  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_materialTypes)) != 0)) kw_args--;
26497  else {
26498  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 2); __PYX_ERR(0, 5654, __pyx_L3_error)
26499  }
26500  CYTHON_FALLTHROUGH;
26501  case 3:
26502  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
26503  else {
26504  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 3); __PYX_ERR(0, 5654, __pyx_L3_error)
26505  }
26506  CYTHON_FALLTHROUGH;
26507  case 4:
26508  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_beta)) != 0)) kw_args--;
26509  else {
26510  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 4); __PYX_ERR(0, 5654, __pyx_L3_error)
26511  }
26512  CYTHON_FALLTHROUGH;
26513  case 5:
26514  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
26515  else {
26516  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 5); __PYX_ERR(0, 5654, __pyx_L3_error)
26517  }
26518  CYTHON_FALLTHROUGH;
26519  case 6:
26520  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
26521  else {
26522  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 6); __PYX_ERR(0, 5654, __pyx_L3_error)
26523  }
26524  CYTHON_FALLTHROUGH;
26525  case 7:
26526  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
26527  else {
26528  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 7); __PYX_ERR(0, 5654, __pyx_L3_error)
26529  }
26530  CYTHON_FALLTHROUGH;
26531  case 8:
26532  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
26533  else {
26534  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 8); __PYX_ERR(0, 5654, __pyx_L3_error)
26535  }
26536  CYTHON_FALLTHROUGH;
26537  case 9:
26538  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
26539  else {
26540  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 9); __PYX_ERR(0, 5654, __pyx_L3_error)
26541  }
26542  CYTHON_FALLTHROUGH;
26543  case 10:
26544  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
26545  else {
26546  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 10); __PYX_ERR(0, 5654, __pyx_L3_error)
26547  }
26548  CYTHON_FALLTHROUGH;
26549  case 11:
26550  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
26551  else {
26552  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 11); __PYX_ERR(0, 5654, __pyx_L3_error)
26553  }
26554  CYTHON_FALLTHROUGH;
26555  case 12:
26556  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
26557  else {
26558  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 12); __PYX_ERR(0, 5654, __pyx_L3_error)
26559  }
26560  CYTHON_FALLTHROUGH;
26561  case 13:
26562  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
26563  else {
26564  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 13); __PYX_ERR(0, 5654, __pyx_L3_error)
26565  }
26566  CYTHON_FALLTHROUGH;
26567  case 14:
26568  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
26569  else {
26570  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 14); __PYX_ERR(0, 5654, __pyx_L3_error)
26571  }
26572  CYTHON_FALLTHROUGH;
26573  case 15:
26574  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
26575  else {
26576  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 15); __PYX_ERR(0, 5654, __pyx_L3_error)
26577  }
26578  CYTHON_FALLTHROUGH;
26579  case 16:
26580  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
26581  else {
26582  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 16); __PYX_ERR(0, 5654, __pyx_L3_error)
26583  }
26584  CYTHON_FALLTHROUGH;
26585  case 17:
26586  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
26587  else {
26588  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 17); __PYX_ERR(0, 5654, __pyx_L3_error)
26589  }
26590  CYTHON_FALLTHROUGH;
26591  case 18:
26592  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vol_frac)) != 0)) kw_args--;
26593  else {
26594  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 18); __PYX_ERR(0, 5654, __pyx_L3_error)
26595  }
26596  CYTHON_FALLTHROUGH;
26597  case 19:
26598  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_linearize_at_zero)) != 0)) kw_args--;
26599  else {
26600  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 19); __PYX_ERR(0, 5654, __pyx_L3_error)
26601  }
26602  CYTHON_FALLTHROUGH;
26603  case 20:
26604  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pc_eps)) != 0)) kw_args--;
26605  else {
26606  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 20); __PYX_ERR(0, 5654, __pyx_L3_error)
26607  }
26608  }
26609  if (unlikely(kw_args > 0)) {
26610  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "conservativeHeadRichardsMualemVanGenuchten_sd_het") < 0)) __PYX_ERR(0, 5654, __pyx_L3_error)
26611  }
26612  } else if (PyTuple_GET_SIZE(__pyx_args) != 21) {
26613  goto __pyx_L5_argtuple_error;
26614  } else {
26615  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
26616  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
26617  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
26618  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
26619  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
26620  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
26621  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
26622  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
26623  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
26624  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
26625  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
26626  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
26627  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
26628  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
26629  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
26630  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
26631  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
26632  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
26633  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
26634  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
26635  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
26636  }
26637  __pyx_v_rowptr = ((PyArrayObject *)values[0]);
26638  __pyx_v_colind = ((PyArrayObject *)values[1]);
26639  __pyx_v_materialTypes = ((PyArrayObject *)values[2]);
26640  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5657, __pyx_L3_error)
26641  __pyx_v_beta = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_beta == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5658, __pyx_L3_error)
26642  __pyx_v_gravity = ((PyArrayObject *)values[5]);
26643  __pyx_v_alpha = ((PyArrayObject *)values[6]);
26644  __pyx_v_n = ((PyArrayObject *)values[7]);
26645  __pyx_v_thetaR = ((PyArrayObject *)values[8]);
26646  __pyx_v_thetaSR = ((PyArrayObject *)values[9]);
26647  __pyx_v_KWs = ((PyArrayObject *)values[10]);
26648  __pyx_v_u = ((PyArrayObject *)values[11]);
26649  __pyx_v_mass = ((PyArrayObject *)values[12]);
26650  __pyx_v_dmass = ((PyArrayObject *)values[13]);
26651  __pyx_v_f = ((PyArrayObject *)values[14]);
26652  __pyx_v_df = ((PyArrayObject *)values[15]);
26653  __pyx_v_a = ((PyArrayObject *)values[16]);
26654  __pyx_v_da = ((PyArrayObject *)values[17]);
26655  __pyx_v_vol_frac = ((PyArrayObject *)values[18]);
26656  __pyx_v_linearize_at_zero = __Pyx_PyInt_As_int(values[19]); if (unlikely((__pyx_v_linearize_at_zero == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5673, __pyx_L3_error)
26657  __pyx_v_pc_eps = __pyx_PyFloat_AsDouble(values[20]); if (unlikely((__pyx_v_pc_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5674, __pyx_L3_error)
26658  }
26659  goto __pyx_L4_argument_unpacking_done;
26660  __pyx_L5_argtuple_error:;
26661  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5654, __pyx_L3_error)
26662  __pyx_L3_error:;
26663  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchten_sd_het", __pyx_clineno, __pyx_lineno, __pyx_filename);
26664  __Pyx_RefNannyFinishContext();
26665  return NULL;
26666  __pyx_L4_argument_unpacking_done:;
26667  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1, "rowptr", 0))) __PYX_ERR(0, 5654, __pyx_L1_error)
26668  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1, "colind", 0))) __PYX_ERR(0, 5655, __pyx_L1_error)
26669  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_materialTypes), __pyx_ptype_5numpy_ndarray, 1, "materialTypes", 0))) __PYX_ERR(0, 5656, __pyx_L1_error)
26670  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1, "gravity", 0))) __PYX_ERR(0, 5659, __pyx_L1_error)
26671  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha), __pyx_ptype_5numpy_ndarray, 1, "alpha", 0))) __PYX_ERR(0, 5660, __pyx_L1_error)
26672  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1, "n", 0))) __PYX_ERR(0, 5661, __pyx_L1_error)
26673  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaR), __pyx_ptype_5numpy_ndarray, 1, "thetaR", 0))) __PYX_ERR(0, 5662, __pyx_L1_error)
26674  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaSR), __pyx_ptype_5numpy_ndarray, 1, "thetaSR", 0))) __PYX_ERR(0, 5663, __pyx_L1_error)
26675  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_KWs), __pyx_ptype_5numpy_ndarray, 1, "KWs", 0))) __PYX_ERR(0, 5664, __pyx_L1_error)
26676  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 5665, __pyx_L1_error)
26677  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1, "mass", 0))) __PYX_ERR(0, 5666, __pyx_L1_error)
26678  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1, "dmass", 0))) __PYX_ERR(0, 5667, __pyx_L1_error)
26679  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 5668, __pyx_L1_error)
26680  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 5669, __pyx_L1_error)
26681  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 5670, __pyx_L1_error)
26682  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 5671, __pyx_L1_error)
26683  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vol_frac), __pyx_ptype_5numpy_ndarray, 1, "vol_frac", 0))) __PYX_ERR(0, 5672, __pyx_L1_error)
26684  __pyx_r = __pyx_pf_22ctransportCoefficients_130conservativeHeadRichardsMualemVanGenuchten_sd_het(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_materialTypes, __pyx_v_rho, __pyx_v_beta, __pyx_v_gravity, __pyx_v_alpha, __pyx_v_n, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da, __pyx_v_vol_frac, __pyx_v_linearize_at_zero, __pyx_v_pc_eps);
26685 
26686  /* function exit code */
26687  goto __pyx_L0;
26688  __pyx_L1_error:;
26689  __pyx_r = NULL;
26690  __pyx_L0:;
26691  __Pyx_RefNannyFinishContext();
26692  return __pyx_r;
26693 }
26694 
26695 static PyObject *__pyx_pf_22ctransportCoefficients_130conservativeHeadRichardsMualemVanGenuchten_sd_het(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_materialTypes, double __pyx_v_rho, double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_vol_frac, int __pyx_v_linearize_at_zero, double __pyx_v_pc_eps) {
26696  PyObject *__pyx_r = NULL;
26697  __Pyx_RefNannyDeclarations
26698  int __pyx_t_1;
26699  PyObject *__pyx_t_2 = NULL;
26700  PyObject *__pyx_t_3 = NULL;
26701  PyObject *__pyx_t_4 = NULL;
26702  int __pyx_t_5;
26703  int __pyx_lineno = 0;
26704  const char *__pyx_filename = NULL;
26705  int __pyx_clineno = 0;
26706  __Pyx_RefNannySetupContext("conservativeHeadRichardsMualemVanGenuchten_sd_het", 0);
26707 
26708  /* "ctransportCoefficients.pyx":5675
26709  * int linearize_at_zero,
26710  * double pc_eps):
26711  * if linearize_at_zero == 1: # <<<<<<<<<<<<<<
26712  * cconservativeHeadRichardsMualemVanGenuchten_sd_het_linearized_at_saturation(u.size/u.shape[u.ndim-1],
26713  * u.shape[u.ndim-1],
26714  */
26715  __pyx_t_1 = ((__pyx_v_linearize_at_zero == 1) != 0);
26716  if (__pyx_t_1) {
26717 
26718  /* "ctransportCoefficients.pyx":5676
26719  * double pc_eps):
26720  * if linearize_at_zero == 1:
26721  * cconservativeHeadRichardsMualemVanGenuchten_sd_het_linearized_at_saturation(u.size/u.shape[u.ndim-1], # <<<<<<<<<<<<<<
26722  * u.shape[u.ndim-1],
26723  * f.shape[f.ndim-1],
26724  */
26725  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5676, __pyx_L1_error)
26726  __Pyx_GOTREF(__pyx_t_2);
26727  __pyx_t_3 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_u->dimensions[(__pyx_v_u->nd - 1)])); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5676, __pyx_L1_error)
26728  __Pyx_GOTREF(__pyx_t_3);
26729  __pyx_t_4 = __Pyx_PyNumber_Divide(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5676, __pyx_L1_error)
26730  __Pyx_GOTREF(__pyx_t_4);
26731  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
26732  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
26733  __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_4); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5676, __pyx_L1_error)
26734  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
26735 
26736  /* "ctransportCoefficients.pyx":5698
26737  * <double*> a.data,
26738  * <double*> da.data,
26739  * <double*> vol_frac.data) # <<<<<<<<<<<<<<
26740  * else:
26741  * cconservativeHeadRichardsMualemVanGenuchten_sd_het(u.size/u.shape[u.ndim-1],
26742  */
26743  conservativeHeadRichardsMualemVanGenuchten_sd_het_linearized_at_saturation(__pyx_t_5, (__pyx_v_u->dimensions[(__pyx_v_u->nd - 1)]), (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_pc_eps, ((int *)__pyx_v_rowptr->data), ((int *)__pyx_v_colind->data), ((int *)__pyx_v_materialTypes->data), __pyx_v_rho, __pyx_v_beta, ((double *)__pyx_v_gravity->data), ((double *)__pyx_v_alpha->data), ((double *)__pyx_v_n->data), ((double *)__pyx_v_thetaR->data), ((double *)__pyx_v_thetaSR->data), ((double *)__pyx_v_KWs->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_mass->data), ((double *)__pyx_v_dmass->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data), ((double *)__pyx_v_vol_frac->data));
26744 
26745  /* "ctransportCoefficients.pyx":5675
26746  * int linearize_at_zero,
26747  * double pc_eps):
26748  * if linearize_at_zero == 1: # <<<<<<<<<<<<<<
26749  * cconservativeHeadRichardsMualemVanGenuchten_sd_het_linearized_at_saturation(u.size/u.shape[u.ndim-1],
26750  * u.shape[u.ndim-1],
26751  */
26752  goto __pyx_L3;
26753  }
26754 
26755  /* "ctransportCoefficients.pyx":5700
26756  * <double*> vol_frac.data)
26757  * else:
26758  * cconservativeHeadRichardsMualemVanGenuchten_sd_het(u.size/u.shape[u.ndim-1], # <<<<<<<<<<<<<<
26759  * u.shape[u.ndim-1],
26760  * f.shape[f.ndim-1],
26761  */
26762  /*else*/ {
26763  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5700, __pyx_L1_error)
26764  __Pyx_GOTREF(__pyx_t_4);
26765  __pyx_t_3 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_u->dimensions[(__pyx_v_u->nd - 1)])); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5700, __pyx_L1_error)
26766  __Pyx_GOTREF(__pyx_t_3);
26767  __pyx_t_2 = __Pyx_PyNumber_Divide(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5700, __pyx_L1_error)
26768  __Pyx_GOTREF(__pyx_t_2);
26769  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
26770  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
26771  __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_2); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5700, __pyx_L1_error)
26772  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
26773 
26774  /* "ctransportCoefficients.pyx":5722
26775  * <double*> a.data,
26776  * <double*> da.data,
26777  * <double*> vol_frac.data) # <<<<<<<<<<<<<<
26778  * def conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2(np.ndarray materialTypes,
26779  * const double rho,
26780  */
26781  conservativeHeadRichardsMualemVanGenuchten_sd_het(__pyx_t_5, (__pyx_v_u->dimensions[(__pyx_v_u->nd - 1)]), (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_pc_eps, ((int *)__pyx_v_rowptr->data), ((int *)__pyx_v_colind->data), ((int *)__pyx_v_materialTypes->data), __pyx_v_rho, __pyx_v_beta, ((double *)__pyx_v_gravity->data), ((double *)__pyx_v_alpha->data), ((double *)__pyx_v_n->data), ((double *)__pyx_v_thetaR->data), ((double *)__pyx_v_thetaSR->data), ((double *)__pyx_v_KWs->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_mass->data), ((double *)__pyx_v_dmass->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data), ((double *)__pyx_v_vol_frac->data));
26782  }
26783  __pyx_L3:;
26784 
26785  /* "ctransportCoefficients.pyx":5654
26786  * <double*> phi.data,
26787  * <double*> dphi.data)
26788  * def conservativeHeadRichardsMualemVanGenuchten_sd_het(np.ndarray rowptr, # <<<<<<<<<<<<<<
26789  * np.ndarray colind,
26790  * np.ndarray materialTypes,
26791  */
26792 
26793  /* function exit code */
26794  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
26795  goto __pyx_L0;
26796  __pyx_L1_error:;
26797  __Pyx_XDECREF(__pyx_t_2);
26798  __Pyx_XDECREF(__pyx_t_3);
26799  __Pyx_XDECREF(__pyx_t_4);
26800  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchten_sd_het", __pyx_clineno, __pyx_lineno, __pyx_filename);
26801  __pyx_r = NULL;
26802  __pyx_L0:;
26803  __Pyx_XGIVEREF(__pyx_r);
26804  __Pyx_RefNannyFinishContext();
26805  return __pyx_r;
26806 }
26807 
26808 /* "ctransportCoefficients.pyx":5723
26809  * <double*> da.data,
26810  * <double*> vol_frac.data)
26811  * def conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2(np.ndarray materialTypes, # <<<<<<<<<<<<<<
26812  * const double rho,
26813  * const double beta,
26814  */
26815 
26816 /* Python wrapper */
26817 static PyObject *__pyx_pw_22ctransportCoefficients_133conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
26818 static PyMethodDef __pyx_mdef_22ctransportCoefficients_133conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2 = {"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_133conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2, METH_VARARGS|METH_KEYWORDS, 0};
26819 static PyObject *__pyx_pw_22ctransportCoefficients_133conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
26820  PyArrayObject *__pyx_v_materialTypes = 0;
26821  double __pyx_v_rho;
26822  double __pyx_v_beta;
26823  PyArrayObject *__pyx_v_gravity = 0;
26824  PyArrayObject *__pyx_v_alpha = 0;
26825  PyArrayObject *__pyx_v_n = 0;
26826  PyArrayObject *__pyx_v_thetaR = 0;
26827  PyArrayObject *__pyx_v_thetaSR = 0;
26828  PyArrayObject *__pyx_v_KWs = 0;
26829  PyArrayObject *__pyx_v_u = 0;
26830  PyArrayObject *__pyx_v_mass = 0;
26831  PyArrayObject *__pyx_v_dmass = 0;
26832  PyArrayObject *__pyx_v_f = 0;
26833  PyArrayObject *__pyx_v_df = 0;
26834  PyArrayObject *__pyx_v_a = 0;
26835  PyArrayObject *__pyx_v_da = 0;
26836  int __pyx_lineno = 0;
26837  const char *__pyx_filename = NULL;
26838  int __pyx_clineno = 0;
26839  PyObject *__pyx_r = 0;
26840  __Pyx_RefNannyDeclarations
26841  __Pyx_RefNannySetupContext("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2 (wrapper)", 0);
26842  {
26843  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_materialTypes,&__pyx_n_s_rho,&__pyx_n_s_beta,&__pyx_n_s_gravity,&__pyx_n_s_alpha,&__pyx_n_s_n,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
26844  PyObject* values[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
26845  if (unlikely(__pyx_kwds)) {
26846  Py_ssize_t kw_args;
26847  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
26848  switch (pos_args) {
26849  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
26850  CYTHON_FALLTHROUGH;
26851  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
26852  CYTHON_FALLTHROUGH;
26853  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
26854  CYTHON_FALLTHROUGH;
26855  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
26856  CYTHON_FALLTHROUGH;
26857  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
26858  CYTHON_FALLTHROUGH;
26859  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
26860  CYTHON_FALLTHROUGH;
26861  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
26862  CYTHON_FALLTHROUGH;
26863  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
26864  CYTHON_FALLTHROUGH;
26865  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
26866  CYTHON_FALLTHROUGH;
26867  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
26868  CYTHON_FALLTHROUGH;
26869  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
26870  CYTHON_FALLTHROUGH;
26871  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
26872  CYTHON_FALLTHROUGH;
26873  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
26874  CYTHON_FALLTHROUGH;
26875  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
26876  CYTHON_FALLTHROUGH;
26877  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
26878  CYTHON_FALLTHROUGH;
26879  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
26880  CYTHON_FALLTHROUGH;
26881  case 0: break;
26882  default: goto __pyx_L5_argtuple_error;
26883  }
26884  kw_args = PyDict_Size(__pyx_kwds);
26885  switch (pos_args) {
26886  case 0:
26887  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_materialTypes)) != 0)) kw_args--;
26888  else goto __pyx_L5_argtuple_error;
26889  CYTHON_FALLTHROUGH;
26890  case 1:
26891  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
26892  else {
26893  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 1); __PYX_ERR(0, 5723, __pyx_L3_error)
26894  }
26895  CYTHON_FALLTHROUGH;
26896  case 2:
26897  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_beta)) != 0)) kw_args--;
26898  else {
26899  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 2); __PYX_ERR(0, 5723, __pyx_L3_error)
26900  }
26901  CYTHON_FALLTHROUGH;
26902  case 3:
26903  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
26904  else {
26905  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 3); __PYX_ERR(0, 5723, __pyx_L3_error)
26906  }
26907  CYTHON_FALLTHROUGH;
26908  case 4:
26909  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
26910  else {
26911  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 4); __PYX_ERR(0, 5723, __pyx_L3_error)
26912  }
26913  CYTHON_FALLTHROUGH;
26914  case 5:
26915  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
26916  else {
26917  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 5); __PYX_ERR(0, 5723, __pyx_L3_error)
26918  }
26919  CYTHON_FALLTHROUGH;
26920  case 6:
26921  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
26922  else {
26923  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 6); __PYX_ERR(0, 5723, __pyx_L3_error)
26924  }
26925  CYTHON_FALLTHROUGH;
26926  case 7:
26927  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
26928  else {
26929  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 7); __PYX_ERR(0, 5723, __pyx_L3_error)
26930  }
26931  CYTHON_FALLTHROUGH;
26932  case 8:
26933  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
26934  else {
26935  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 8); __PYX_ERR(0, 5723, __pyx_L3_error)
26936  }
26937  CYTHON_FALLTHROUGH;
26938  case 9:
26939  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
26940  else {
26941  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 9); __PYX_ERR(0, 5723, __pyx_L3_error)
26942  }
26943  CYTHON_FALLTHROUGH;
26944  case 10:
26945  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
26946  else {
26947  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 10); __PYX_ERR(0, 5723, __pyx_L3_error)
26948  }
26949  CYTHON_FALLTHROUGH;
26950  case 11:
26951  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
26952  else {
26953  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 11); __PYX_ERR(0, 5723, __pyx_L3_error)
26954  }
26955  CYTHON_FALLTHROUGH;
26956  case 12:
26957  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
26958  else {
26959  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 12); __PYX_ERR(0, 5723, __pyx_L3_error)
26960  }
26961  CYTHON_FALLTHROUGH;
26962  case 13:
26963  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
26964  else {
26965  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 13); __PYX_ERR(0, 5723, __pyx_L3_error)
26966  }
26967  CYTHON_FALLTHROUGH;
26968  case 14:
26969  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
26970  else {
26971  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 14); __PYX_ERR(0, 5723, __pyx_L3_error)
26972  }
26973  CYTHON_FALLTHROUGH;
26974  case 15:
26975  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
26976  else {
26977  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 15); __PYX_ERR(0, 5723, __pyx_L3_error)
26978  }
26979  }
26980  if (unlikely(kw_args > 0)) {
26981  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2") < 0)) __PYX_ERR(0, 5723, __pyx_L3_error)
26982  }
26983  } else if (PyTuple_GET_SIZE(__pyx_args) != 16) {
26984  goto __pyx_L5_argtuple_error;
26985  } else {
26986  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
26987  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
26988  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
26989  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
26990  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
26991  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
26992  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
26993  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
26994  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
26995  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
26996  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
26997  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
26998  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
26999  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
27000  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
27001  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
27002  }
27003  __pyx_v_materialTypes = ((PyArrayObject *)values[0]);
27004  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5724, __pyx_L3_error)
27005  __pyx_v_beta = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_beta == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5725, __pyx_L3_error)
27006  __pyx_v_gravity = ((PyArrayObject *)values[3]);
27007  __pyx_v_alpha = ((PyArrayObject *)values[4]);
27008  __pyx_v_n = ((PyArrayObject *)values[5]);
27009  __pyx_v_thetaR = ((PyArrayObject *)values[6]);
27010  __pyx_v_thetaSR = ((PyArrayObject *)values[7]);
27011  __pyx_v_KWs = ((PyArrayObject *)values[8]);
27012  __pyx_v_u = ((PyArrayObject *)values[9]);
27013  __pyx_v_mass = ((PyArrayObject *)values[10]);
27014  __pyx_v_dmass = ((PyArrayObject *)values[11]);
27015  __pyx_v_f = ((PyArrayObject *)values[12]);
27016  __pyx_v_df = ((PyArrayObject *)values[13]);
27017  __pyx_v_a = ((PyArrayObject *)values[14]);
27018  __pyx_v_da = ((PyArrayObject *)values[15]);
27019  }
27020  goto __pyx_L4_argument_unpacking_done;
27021  __pyx_L5_argtuple_error:;
27022  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5723, __pyx_L3_error)
27023  __pyx_L3_error:;
27024  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", __pyx_clineno, __pyx_lineno, __pyx_filename);
27025  __Pyx_RefNannyFinishContext();
27026  return NULL;
27027  __pyx_L4_argument_unpacking_done:;
27028  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_materialTypes), __pyx_ptype_5numpy_ndarray, 1, "materialTypes", 0))) __PYX_ERR(0, 5723, __pyx_L1_error)
27029  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1, "gravity", 0))) __PYX_ERR(0, 5726, __pyx_L1_error)
27030  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha), __pyx_ptype_5numpy_ndarray, 1, "alpha", 0))) __PYX_ERR(0, 5727, __pyx_L1_error)
27031  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1, "n", 0))) __PYX_ERR(0, 5728, __pyx_L1_error)
27032  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaR), __pyx_ptype_5numpy_ndarray, 1, "thetaR", 0))) __PYX_ERR(0, 5729, __pyx_L1_error)
27033  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaSR), __pyx_ptype_5numpy_ndarray, 1, "thetaSR", 0))) __PYX_ERR(0, 5730, __pyx_L1_error)
27034  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_KWs), __pyx_ptype_5numpy_ndarray, 1, "KWs", 0))) __PYX_ERR(0, 5731, __pyx_L1_error)
27035  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 5732, __pyx_L1_error)
27036  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1, "mass", 0))) __PYX_ERR(0, 5733, __pyx_L1_error)
27037  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1, "dmass", 0))) __PYX_ERR(0, 5734, __pyx_L1_error)
27038  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 5735, __pyx_L1_error)
27039  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 5736, __pyx_L1_error)
27040  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 5737, __pyx_L1_error)
27041  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 5738, __pyx_L1_error)
27042  __pyx_r = __pyx_pf_22ctransportCoefficients_132conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2(__pyx_self, __pyx_v_materialTypes, __pyx_v_rho, __pyx_v_beta, __pyx_v_gravity, __pyx_v_alpha, __pyx_v_n, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
27043 
27044  /* function exit code */
27045  goto __pyx_L0;
27046  __pyx_L1_error:;
27047  __pyx_r = NULL;
27048  __pyx_L0:;
27049  __Pyx_RefNannyFinishContext();
27050  return __pyx_r;
27051 }
27052 
27053 static PyObject *__pyx_pf_22ctransportCoefficients_132conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_materialTypes, double __pyx_v_rho, double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
27054  PyObject *__pyx_r = NULL;
27055  __Pyx_RefNannyDeclarations
27056  PyObject *__pyx_t_1 = NULL;
27057  PyObject *__pyx_t_2 = NULL;
27058  PyObject *__pyx_t_3 = NULL;
27059  int __pyx_t_4;
27060  int __pyx_lineno = 0;
27061  const char *__pyx_filename = NULL;
27062  int __pyx_clineno = 0;
27063  __Pyx_RefNannySetupContext("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 0);
27064 
27065  /* "ctransportCoefficients.pyx":5739
27066  * np.ndarray a,
27067  * np.ndarray da):
27068  * cconservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2(u.size/u.shape[u.ndim-1], # <<<<<<<<<<<<<<
27069  * u.shape[u.ndim-1],
27070  * f.shape[f.ndim-1],
27071  */
27072  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5739, __pyx_L1_error)
27073  __Pyx_GOTREF(__pyx_t_1);
27074  __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_u->dimensions[(__pyx_v_u->nd - 1)])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5739, __pyx_L1_error)
27075  __Pyx_GOTREF(__pyx_t_2);
27076  __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5739, __pyx_L1_error)
27077  __Pyx_GOTREF(__pyx_t_3);
27078  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
27079  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
27080  __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5739, __pyx_L1_error)
27081  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
27082 
27083  /* "ctransportCoefficients.pyx":5757
27084  * <double*> df.data,
27085  * <double*> a.data,
27086  * <double*> da.data) # <<<<<<<<<<<<<<
27087  * def seepageBrezis(np.ndarray materialTypes,
27088  * const double epsFact,
27089  */
27090  conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2(__pyx_t_4, (__pyx_v_u->dimensions[(__pyx_v_u->nd - 1)]), (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), ((int *)__pyx_v_materialTypes->data), __pyx_v_rho, __pyx_v_beta, ((double *)__pyx_v_gravity->data), ((double *)__pyx_v_alpha->data), ((double *)__pyx_v_n->data), ((double *)__pyx_v_thetaR->data), ((double *)__pyx_v_thetaSR->data), ((double *)__pyx_v_KWs->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_mass->data), ((double *)__pyx_v_dmass->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data));
27091 
27092  /* "ctransportCoefficients.pyx":5723
27093  * <double*> da.data,
27094  * <double*> vol_frac.data)
27095  * def conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2(np.ndarray materialTypes, # <<<<<<<<<<<<<<
27096  * const double rho,
27097  * const double beta,
27098  */
27099 
27100  /* function exit code */
27101  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
27102  goto __pyx_L0;
27103  __pyx_L1_error:;
27104  __Pyx_XDECREF(__pyx_t_1);
27105  __Pyx_XDECREF(__pyx_t_2);
27106  __Pyx_XDECREF(__pyx_t_3);
27107  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", __pyx_clineno, __pyx_lineno, __pyx_filename);
27108  __pyx_r = NULL;
27109  __pyx_L0:;
27110  __Pyx_XGIVEREF(__pyx_r);
27111  __Pyx_RefNannyFinishContext();
27112  return __pyx_r;
27113 }
27114 
27115 /* "ctransportCoefficients.pyx":5758
27116  * <double*> a.data,
27117  * <double*> da.data)
27118  * def seepageBrezis(np.ndarray materialTypes, # <<<<<<<<<<<<<<
27119  * const double epsFact,
27120  * const double rho,
27121  */
27122 
27123 /* Python wrapper */
27124 static PyObject *__pyx_pw_22ctransportCoefficients_135seepageBrezis(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
27125 static PyMethodDef __pyx_mdef_22ctransportCoefficients_135seepageBrezis = {"seepageBrezis", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_135seepageBrezis, METH_VARARGS|METH_KEYWORDS, 0};
27126 static PyObject *__pyx_pw_22ctransportCoefficients_135seepageBrezis(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
27127  PyArrayObject *__pyx_v_materialTypes = 0;
27128  double __pyx_v_epsFact;
27129  double __pyx_v_rho;
27130  double __pyx_v_beta;
27131  PyArrayObject *__pyx_v_elementDiameter = 0;
27132  PyArrayObject *__pyx_v_gravity = 0;
27133  PyArrayObject *__pyx_v_alpha = 0;
27134  PyArrayObject *__pyx_v_n = 0;
27135  PyArrayObject *__pyx_v_thetaR = 0;
27136  PyArrayObject *__pyx_v_thetaSR = 0;
27137  PyArrayObject *__pyx_v_KWs = 0;
27138  PyArrayObject *__pyx_v_u = 0;
27139  PyArrayObject *__pyx_v_mass = 0;
27140  PyArrayObject *__pyx_v_dmass = 0;
27141  PyArrayObject *__pyx_v_f = 0;
27142  PyArrayObject *__pyx_v_df = 0;
27143  PyArrayObject *__pyx_v_a = 0;
27144  PyArrayObject *__pyx_v_da = 0;
27145  int __pyx_lineno = 0;
27146  const char *__pyx_filename = NULL;
27147  int __pyx_clineno = 0;
27148  PyObject *__pyx_r = 0;
27149  __Pyx_RefNannyDeclarations
27150  __Pyx_RefNannySetupContext("seepageBrezis (wrapper)", 0);
27151  {
27152  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_materialTypes,&__pyx_n_s_epsFact,&__pyx_n_s_rho,&__pyx_n_s_beta,&__pyx_n_s_elementDiameter,&__pyx_n_s_gravity,&__pyx_n_s_alpha,&__pyx_n_s_n,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
27153  PyObject* values[18] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
27154  if (unlikely(__pyx_kwds)) {
27155  Py_ssize_t kw_args;
27156  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
27157  switch (pos_args) {
27158  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
27159  CYTHON_FALLTHROUGH;
27160  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
27161  CYTHON_FALLTHROUGH;
27162  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
27163  CYTHON_FALLTHROUGH;
27164  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
27165  CYTHON_FALLTHROUGH;
27166  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
27167  CYTHON_FALLTHROUGH;
27168  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
27169  CYTHON_FALLTHROUGH;
27170  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
27171  CYTHON_FALLTHROUGH;
27172  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
27173  CYTHON_FALLTHROUGH;
27174  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
27175  CYTHON_FALLTHROUGH;
27176  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
27177  CYTHON_FALLTHROUGH;
27178  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
27179  CYTHON_FALLTHROUGH;
27180  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
27181  CYTHON_FALLTHROUGH;
27182  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
27183  CYTHON_FALLTHROUGH;
27184  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
27185  CYTHON_FALLTHROUGH;
27186  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
27187  CYTHON_FALLTHROUGH;
27188  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
27189  CYTHON_FALLTHROUGH;
27190  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
27191  CYTHON_FALLTHROUGH;
27192  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
27193  CYTHON_FALLTHROUGH;
27194  case 0: break;
27195  default: goto __pyx_L5_argtuple_error;
27196  }
27197  kw_args = PyDict_Size(__pyx_kwds);
27198  switch (pos_args) {
27199  case 0:
27200  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_materialTypes)) != 0)) kw_args--;
27201  else goto __pyx_L5_argtuple_error;
27202  CYTHON_FALLTHROUGH;
27203  case 1:
27204  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsFact)) != 0)) kw_args--;
27205  else {
27206  __Pyx_RaiseArgtupleInvalid("seepageBrezis", 1, 18, 18, 1); __PYX_ERR(0, 5758, __pyx_L3_error)
27207  }
27208  CYTHON_FALLTHROUGH;
27209  case 2:
27210  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
27211  else {
27212  __Pyx_RaiseArgtupleInvalid("seepageBrezis", 1, 18, 18, 2); __PYX_ERR(0, 5758, __pyx_L3_error)
27213  }
27214  CYTHON_FALLTHROUGH;
27215  case 3:
27216  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_beta)) != 0)) kw_args--;
27217  else {
27218  __Pyx_RaiseArgtupleInvalid("seepageBrezis", 1, 18, 18, 3); __PYX_ERR(0, 5758, __pyx_L3_error)
27219  }
27220  CYTHON_FALLTHROUGH;
27221  case 4:
27222  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementDiameter)) != 0)) kw_args--;
27223  else {
27224  __Pyx_RaiseArgtupleInvalid("seepageBrezis", 1, 18, 18, 4); __PYX_ERR(0, 5758, __pyx_L3_error)
27225  }
27226  CYTHON_FALLTHROUGH;
27227  case 5:
27228  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
27229  else {
27230  __Pyx_RaiseArgtupleInvalid("seepageBrezis", 1, 18, 18, 5); __PYX_ERR(0, 5758, __pyx_L3_error)
27231  }
27232  CYTHON_FALLTHROUGH;
27233  case 6:
27234  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
27235  else {
27236  __Pyx_RaiseArgtupleInvalid("seepageBrezis", 1, 18, 18, 6); __PYX_ERR(0, 5758, __pyx_L3_error)
27237  }
27238  CYTHON_FALLTHROUGH;
27239  case 7:
27240  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
27241  else {
27242  __Pyx_RaiseArgtupleInvalid("seepageBrezis", 1, 18, 18, 7); __PYX_ERR(0, 5758, __pyx_L3_error)
27243  }
27244  CYTHON_FALLTHROUGH;
27245  case 8:
27246  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
27247  else {
27248  __Pyx_RaiseArgtupleInvalid("seepageBrezis", 1, 18, 18, 8); __PYX_ERR(0, 5758, __pyx_L3_error)
27249  }
27250  CYTHON_FALLTHROUGH;
27251  case 9:
27252  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
27253  else {
27254  __Pyx_RaiseArgtupleInvalid("seepageBrezis", 1, 18, 18, 9); __PYX_ERR(0, 5758, __pyx_L3_error)
27255  }
27256  CYTHON_FALLTHROUGH;
27257  case 10:
27258  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
27259  else {
27260  __Pyx_RaiseArgtupleInvalid("seepageBrezis", 1, 18, 18, 10); __PYX_ERR(0, 5758, __pyx_L3_error)
27261  }
27262  CYTHON_FALLTHROUGH;
27263  case 11:
27264  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
27265  else {
27266  __Pyx_RaiseArgtupleInvalid("seepageBrezis", 1, 18, 18, 11); __PYX_ERR(0, 5758, __pyx_L3_error)
27267  }
27268  CYTHON_FALLTHROUGH;
27269  case 12:
27270  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
27271  else {
27272  __Pyx_RaiseArgtupleInvalid("seepageBrezis", 1, 18, 18, 12); __PYX_ERR(0, 5758, __pyx_L3_error)
27273  }
27274  CYTHON_FALLTHROUGH;
27275  case 13:
27276  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
27277  else {
27278  __Pyx_RaiseArgtupleInvalid("seepageBrezis", 1, 18, 18, 13); __PYX_ERR(0, 5758, __pyx_L3_error)
27279  }
27280  CYTHON_FALLTHROUGH;
27281  case 14:
27282  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
27283  else {
27284  __Pyx_RaiseArgtupleInvalid("seepageBrezis", 1, 18, 18, 14); __PYX_ERR(0, 5758, __pyx_L3_error)
27285  }
27286  CYTHON_FALLTHROUGH;
27287  case 15:
27288  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
27289  else {
27290  __Pyx_RaiseArgtupleInvalid("seepageBrezis", 1, 18, 18, 15); __PYX_ERR(0, 5758, __pyx_L3_error)
27291  }
27292  CYTHON_FALLTHROUGH;
27293  case 16:
27294  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
27295  else {
27296  __Pyx_RaiseArgtupleInvalid("seepageBrezis", 1, 18, 18, 16); __PYX_ERR(0, 5758, __pyx_L3_error)
27297  }
27298  CYTHON_FALLTHROUGH;
27299  case 17:
27300  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
27301  else {
27302  __Pyx_RaiseArgtupleInvalid("seepageBrezis", 1, 18, 18, 17); __PYX_ERR(0, 5758, __pyx_L3_error)
27303  }
27304  }
27305  if (unlikely(kw_args > 0)) {
27306  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "seepageBrezis") < 0)) __PYX_ERR(0, 5758, __pyx_L3_error)
27307  }
27308  } else if (PyTuple_GET_SIZE(__pyx_args) != 18) {
27309  goto __pyx_L5_argtuple_error;
27310  } else {
27311  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
27312  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
27313  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
27314  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
27315  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
27316  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
27317  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
27318  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
27319  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
27320  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
27321  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
27322  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
27323  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
27324  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
27325  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
27326  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
27327  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
27328  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
27329  }
27330  __pyx_v_materialTypes = ((PyArrayObject *)values[0]);
27331  __pyx_v_epsFact = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_epsFact == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5759, __pyx_L3_error)
27332  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5760, __pyx_L3_error)
27333  __pyx_v_beta = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_beta == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5761, __pyx_L3_error)
27334  __pyx_v_elementDiameter = ((PyArrayObject *)values[4]);
27335  __pyx_v_gravity = ((PyArrayObject *)values[5]);
27336  __pyx_v_alpha = ((PyArrayObject *)values[6]);
27337  __pyx_v_n = ((PyArrayObject *)values[7]);
27338  __pyx_v_thetaR = ((PyArrayObject *)values[8]);
27339  __pyx_v_thetaSR = ((PyArrayObject *)values[9]);
27340  __pyx_v_KWs = ((PyArrayObject *)values[10]);
27341  __pyx_v_u = ((PyArrayObject *)values[11]);
27342  __pyx_v_mass = ((PyArrayObject *)values[12]);
27343  __pyx_v_dmass = ((PyArrayObject *)values[13]);
27344  __pyx_v_f = ((PyArrayObject *)values[14]);
27345  __pyx_v_df = ((PyArrayObject *)values[15]);
27346  __pyx_v_a = ((PyArrayObject *)values[16]);
27347  __pyx_v_da = ((PyArrayObject *)values[17]);
27348  }
27349  goto __pyx_L4_argument_unpacking_done;
27350  __pyx_L5_argtuple_error:;
27351  __Pyx_RaiseArgtupleInvalid("seepageBrezis", 1, 18, 18, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5758, __pyx_L3_error)
27352  __pyx_L3_error:;
27353  __Pyx_AddTraceback("ctransportCoefficients.seepageBrezis", __pyx_clineno, __pyx_lineno, __pyx_filename);
27354  __Pyx_RefNannyFinishContext();
27355  return NULL;
27356  __pyx_L4_argument_unpacking_done:;
27357  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_materialTypes), __pyx_ptype_5numpy_ndarray, 1, "materialTypes", 0))) __PYX_ERR(0, 5758, __pyx_L1_error)
27358  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementDiameter), __pyx_ptype_5numpy_ndarray, 1, "elementDiameter", 0))) __PYX_ERR(0, 5762, __pyx_L1_error)
27359  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1, "gravity", 0))) __PYX_ERR(0, 5763, __pyx_L1_error)
27360  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha), __pyx_ptype_5numpy_ndarray, 1, "alpha", 0))) __PYX_ERR(0, 5764, __pyx_L1_error)
27361  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1, "n", 0))) __PYX_ERR(0, 5765, __pyx_L1_error)
27362  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaR), __pyx_ptype_5numpy_ndarray, 1, "thetaR", 0))) __PYX_ERR(0, 5766, __pyx_L1_error)
27363  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaSR), __pyx_ptype_5numpy_ndarray, 1, "thetaSR", 0))) __PYX_ERR(0, 5767, __pyx_L1_error)
27364  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_KWs), __pyx_ptype_5numpy_ndarray, 1, "KWs", 0))) __PYX_ERR(0, 5768, __pyx_L1_error)
27365  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 5769, __pyx_L1_error)
27366  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1, "mass", 0))) __PYX_ERR(0, 5770, __pyx_L1_error)
27367  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1, "dmass", 0))) __PYX_ERR(0, 5771, __pyx_L1_error)
27368  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 5772, __pyx_L1_error)
27369  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 5773, __pyx_L1_error)
27370  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 5774, __pyx_L1_error)
27371  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 5775, __pyx_L1_error)
27372  __pyx_r = __pyx_pf_22ctransportCoefficients_134seepageBrezis(__pyx_self, __pyx_v_materialTypes, __pyx_v_epsFact, __pyx_v_rho, __pyx_v_beta, __pyx_v_elementDiameter, __pyx_v_gravity, __pyx_v_alpha, __pyx_v_n, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
27373 
27374  /* function exit code */
27375  goto __pyx_L0;
27376  __pyx_L1_error:;
27377  __pyx_r = NULL;
27378  __pyx_L0:;
27379  __Pyx_RefNannyFinishContext();
27380  return __pyx_r;
27381 }
27382 
27383 static PyObject *__pyx_pf_22ctransportCoefficients_134seepageBrezis(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_materialTypes, double __pyx_v_epsFact, double __pyx_v_rho, double __pyx_v_beta, PyArrayObject *__pyx_v_elementDiameter, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
27384  PyObject *__pyx_r = NULL;
27385  __Pyx_RefNannyDeclarations
27386  PyObject *__pyx_t_1 = NULL;
27387  PyObject *__pyx_t_2 = NULL;
27388  PyObject *__pyx_t_3 = NULL;
27389  int __pyx_t_4;
27390  int __pyx_lineno = 0;
27391  const char *__pyx_filename = NULL;
27392  int __pyx_clineno = 0;
27393  __Pyx_RefNannySetupContext("seepageBrezis", 0);
27394 
27395  /* "ctransportCoefficients.pyx":5776
27396  * np.ndarray a,
27397  * np.ndarray da):
27398  * cseepageBrezis(u.size/u.shape[u.ndim-1], # <<<<<<<<<<<<<<
27399  * u.shape[u.ndim-1],
27400  * f.shape[f.ndim-1],
27401  */
27402  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5776, __pyx_L1_error)
27403  __Pyx_GOTREF(__pyx_t_1);
27404  __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_u->dimensions[(__pyx_v_u->nd - 1)])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5776, __pyx_L1_error)
27405  __Pyx_GOTREF(__pyx_t_2);
27406  __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5776, __pyx_L1_error)
27407  __Pyx_GOTREF(__pyx_t_3);
27408  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
27409  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
27410  __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5776, __pyx_L1_error)
27411  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
27412 
27413  /* "ctransportCoefficients.pyx":5796
27414  * <double*> df.data,
27415  * <double*> a.data,
27416  * <double*> da.data) # <<<<<<<<<<<<<<
27417  * def conservativeHeadRichardsMualemVanGenuchtenHetEvaluate(const double rho,
27418  * np.ndarray gravity,
27419  */
27420  seepageBrezis(__pyx_t_4, (__pyx_v_u->dimensions[(__pyx_v_u->nd - 1)]), (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), ((int *)__pyx_v_materialTypes->data), __pyx_v_epsFact, __pyx_v_rho, __pyx_v_beta, ((double *)__pyx_v_elementDiameter->data), ((double *)__pyx_v_gravity->data), ((double *)__pyx_v_alpha->data), ((double *)__pyx_v_n->data), ((double *)__pyx_v_thetaR->data), ((double *)__pyx_v_thetaSR->data), ((double *)__pyx_v_KWs->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_mass->data), ((double *)__pyx_v_dmass->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data));
27421 
27422  /* "ctransportCoefficients.pyx":5758
27423  * <double*> a.data,
27424  * <double*> da.data)
27425  * def seepageBrezis(np.ndarray materialTypes, # <<<<<<<<<<<<<<
27426  * const double epsFact,
27427  * const double rho,
27428  */
27429 
27430  /* function exit code */
27431  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
27432  goto __pyx_L0;
27433  __pyx_L1_error:;
27434  __Pyx_XDECREF(__pyx_t_1);
27435  __Pyx_XDECREF(__pyx_t_2);
27436  __Pyx_XDECREF(__pyx_t_3);
27437  __Pyx_AddTraceback("ctransportCoefficients.seepageBrezis", __pyx_clineno, __pyx_lineno, __pyx_filename);
27438  __pyx_r = NULL;
27439  __pyx_L0:;
27440  __Pyx_XGIVEREF(__pyx_r);
27441  __Pyx_RefNannyFinishContext();
27442  return __pyx_r;
27443 }
27444 
27445 /* "ctransportCoefficients.pyx":5797
27446  * <double*> a.data,
27447  * <double*> da.data)
27448  * def conservativeHeadRichardsMualemVanGenuchtenHetEvaluate(const double rho, # <<<<<<<<<<<<<<
27449  * np.ndarray gravity,
27450  * np.ndarray alpha,
27451  */
27452 
27453 /* Python wrapper */
27454 static PyObject *__pyx_pw_22ctransportCoefficients_137conservativeHeadRichardsMualemVanGenuchtenHetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
27455 static PyMethodDef __pyx_mdef_22ctransportCoefficients_137conservativeHeadRichardsMualemVanGenuchtenHetEvaluate = {"conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_137conservativeHeadRichardsMualemVanGenuchtenHetEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
27456 static PyObject *__pyx_pw_22ctransportCoefficients_137conservativeHeadRichardsMualemVanGenuchtenHetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
27457  double __pyx_v_rho;
27458  PyArrayObject *__pyx_v_gravity = 0;
27459  PyArrayObject *__pyx_v_alpha = 0;
27460  PyArrayObject *__pyx_v_n = 0;
27461  PyArrayObject *__pyx_v_thetaR = 0;
27462  PyArrayObject *__pyx_v_thetaSR = 0;
27463  PyArrayObject *__pyx_v_KWs = 0;
27464  PyArrayObject *__pyx_v_u = 0;
27465  PyArrayObject *__pyx_v_mass = 0;
27466  PyArrayObject *__pyx_v_dmass = 0;
27467  PyArrayObject *__pyx_v_f = 0;
27468  PyArrayObject *__pyx_v_df = 0;
27469  PyArrayObject *__pyx_v_a = 0;
27470  PyArrayObject *__pyx_v_da = 0;
27471  int __pyx_lineno = 0;
27472  const char *__pyx_filename = NULL;
27473  int __pyx_clineno = 0;
27474  PyObject *__pyx_r = 0;
27475  __Pyx_RefNannyDeclarations
27476  __Pyx_RefNannySetupContext("conservativeHeadRichardsMualemVanGenuchtenHetEvaluate (wrapper)", 0);
27477  {
27478  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_gravity,&__pyx_n_s_alpha,&__pyx_n_s_n,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
27479  PyObject* values[14] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0};
27480  if (unlikely(__pyx_kwds)) {
27481  Py_ssize_t kw_args;
27482  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
27483  switch (pos_args) {
27484  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
27485  CYTHON_FALLTHROUGH;
27486  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
27487  CYTHON_FALLTHROUGH;
27488  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
27489  CYTHON_FALLTHROUGH;
27490  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
27491  CYTHON_FALLTHROUGH;
27492  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
27493  CYTHON_FALLTHROUGH;
27494  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
27495  CYTHON_FALLTHROUGH;
27496  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
27497  CYTHON_FALLTHROUGH;
27498  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
27499  CYTHON_FALLTHROUGH;
27500  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
27501  CYTHON_FALLTHROUGH;
27502  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
27503  CYTHON_FALLTHROUGH;
27504  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
27505  CYTHON_FALLTHROUGH;
27506  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
27507  CYTHON_FALLTHROUGH;
27508  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
27509  CYTHON_FALLTHROUGH;
27510  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
27511  CYTHON_FALLTHROUGH;
27512  case 0: break;
27513  default: goto __pyx_L5_argtuple_error;
27514  }
27515  kw_args = PyDict_Size(__pyx_kwds);
27516  switch (pos_args) {
27517  case 0:
27518  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
27519  else goto __pyx_L5_argtuple_error;
27520  CYTHON_FALLTHROUGH;
27521  case 1:
27522  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
27523  else {
27524  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, 1); __PYX_ERR(0, 5797, __pyx_L3_error)
27525  }
27526  CYTHON_FALLTHROUGH;
27527  case 2:
27528  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
27529  else {
27530  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, 2); __PYX_ERR(0, 5797, __pyx_L3_error)
27531  }
27532  CYTHON_FALLTHROUGH;
27533  case 3:
27534  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
27535  else {
27536  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, 3); __PYX_ERR(0, 5797, __pyx_L3_error)
27537  }
27538  CYTHON_FALLTHROUGH;
27539  case 4:
27540  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
27541  else {
27542  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, 4); __PYX_ERR(0, 5797, __pyx_L3_error)
27543  }
27544  CYTHON_FALLTHROUGH;
27545  case 5:
27546  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
27547  else {
27548  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, 5); __PYX_ERR(0, 5797, __pyx_L3_error)
27549  }
27550  CYTHON_FALLTHROUGH;
27551  case 6:
27552  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
27553  else {
27554  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, 6); __PYX_ERR(0, 5797, __pyx_L3_error)
27555  }
27556  CYTHON_FALLTHROUGH;
27557  case 7:
27558  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
27559  else {
27560  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, 7); __PYX_ERR(0, 5797, __pyx_L3_error)
27561  }
27562  CYTHON_FALLTHROUGH;
27563  case 8:
27564  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
27565  else {
27566  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, 8); __PYX_ERR(0, 5797, __pyx_L3_error)
27567  }
27568  CYTHON_FALLTHROUGH;
27569  case 9:
27570  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
27571  else {
27572  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, 9); __PYX_ERR(0, 5797, __pyx_L3_error)
27573  }
27574  CYTHON_FALLTHROUGH;
27575  case 10:
27576  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
27577  else {
27578  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, 10); __PYX_ERR(0, 5797, __pyx_L3_error)
27579  }
27580  CYTHON_FALLTHROUGH;
27581  case 11:
27582  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
27583  else {
27584  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, 11); __PYX_ERR(0, 5797, __pyx_L3_error)
27585  }
27586  CYTHON_FALLTHROUGH;
27587  case 12:
27588  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
27589  else {
27590  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, 12); __PYX_ERR(0, 5797, __pyx_L3_error)
27591  }
27592  CYTHON_FALLTHROUGH;
27593  case 13:
27594  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
27595  else {
27596  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, 13); __PYX_ERR(0, 5797, __pyx_L3_error)
27597  }
27598  }
27599  if (unlikely(kw_args > 0)) {
27600  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "conservativeHeadRichardsMualemVanGenuchtenHetEvaluate") < 0)) __PYX_ERR(0, 5797, __pyx_L3_error)
27601  }
27602  } else if (PyTuple_GET_SIZE(__pyx_args) != 14) {
27603  goto __pyx_L5_argtuple_error;
27604  } else {
27605  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
27606  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
27607  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
27608  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
27609  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
27610  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
27611  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
27612  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
27613  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
27614  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
27615  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
27616  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
27617  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
27618  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
27619  }
27620  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5797, __pyx_L3_error)
27621  __pyx_v_gravity = ((PyArrayObject *)values[1]);
27622  __pyx_v_alpha = ((PyArrayObject *)values[2]);
27623  __pyx_v_n = ((PyArrayObject *)values[3]);
27624  __pyx_v_thetaR = ((PyArrayObject *)values[4]);
27625  __pyx_v_thetaSR = ((PyArrayObject *)values[5]);
27626  __pyx_v_KWs = ((PyArrayObject *)values[6]);
27627  __pyx_v_u = ((PyArrayObject *)values[7]);
27628  __pyx_v_mass = ((PyArrayObject *)values[8]);
27629  __pyx_v_dmass = ((PyArrayObject *)values[9]);
27630  __pyx_v_f = ((PyArrayObject *)values[10]);
27631  __pyx_v_df = ((PyArrayObject *)values[11]);
27632  __pyx_v_a = ((PyArrayObject *)values[12]);
27633  __pyx_v_da = ((PyArrayObject *)values[13]);
27634  }
27635  goto __pyx_L4_argument_unpacking_done;
27636  __pyx_L5_argtuple_error:;
27637  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5797, __pyx_L3_error)
27638  __pyx_L3_error:;
27639  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
27640  __Pyx_RefNannyFinishContext();
27641  return NULL;
27642  __pyx_L4_argument_unpacking_done:;
27643  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1, "gravity", 0))) __PYX_ERR(0, 5798, __pyx_L1_error)
27644  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha), __pyx_ptype_5numpy_ndarray, 1, "alpha", 0))) __PYX_ERR(0, 5799, __pyx_L1_error)
27645  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1, "n", 0))) __PYX_ERR(0, 5800, __pyx_L1_error)
27646  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaR), __pyx_ptype_5numpy_ndarray, 1, "thetaR", 0))) __PYX_ERR(0, 5801, __pyx_L1_error)
27647  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaSR), __pyx_ptype_5numpy_ndarray, 1, "thetaSR", 0))) __PYX_ERR(0, 5802, __pyx_L1_error)
27648  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_KWs), __pyx_ptype_5numpy_ndarray, 1, "KWs", 0))) __PYX_ERR(0, 5803, __pyx_L1_error)
27649  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 5804, __pyx_L1_error)
27650  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1, "mass", 0))) __PYX_ERR(0, 5805, __pyx_L1_error)
27651  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1, "dmass", 0))) __PYX_ERR(0, 5806, __pyx_L1_error)
27652  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 5807, __pyx_L1_error)
27653  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 5808, __pyx_L1_error)
27654  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 5809, __pyx_L1_error)
27655  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 5810, __pyx_L1_error)
27656  __pyx_r = __pyx_pf_22ctransportCoefficients_136conservativeHeadRichardsMualemVanGenuchtenHetEvaluate(__pyx_self, __pyx_v_rho, __pyx_v_gravity, __pyx_v_alpha, __pyx_v_n, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
27657 
27658  /* function exit code */
27659  goto __pyx_L0;
27660  __pyx_L1_error:;
27661  __pyx_r = NULL;
27662  __pyx_L0:;
27663  __Pyx_RefNannyFinishContext();
27664  return __pyx_r;
27665 }
27666 
27667 static PyObject *__pyx_pf_22ctransportCoefficients_136conservativeHeadRichardsMualemVanGenuchtenHetEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
27668  PyObject *__pyx_r = NULL;
27669  __Pyx_RefNannyDeclarations
27670  PyObject *__pyx_t_1 = NULL;
27671  PyObject *__pyx_t_2 = NULL;
27672  PyObject *__pyx_t_3 = NULL;
27673  int __pyx_t_4;
27674  int __pyx_lineno = 0;
27675  const char *__pyx_filename = NULL;
27676  int __pyx_clineno = 0;
27677  __Pyx_RefNannySetupContext("conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 0);
27678 
27679  /* "ctransportCoefficients.pyx":5811
27680  * np.ndarray a,
27681  * np.ndarray da):
27682  * cconservativeHeadRichardsMualemVanGenuchtenHetEvaluate(u.size/u.shape[u.ndim-1], # <<<<<<<<<<<<<<
27683  * f.shape[f.ndim-1],
27684  * rho,
27685  */
27686  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5811, __pyx_L1_error)
27687  __Pyx_GOTREF(__pyx_t_1);
27688  __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_u->dimensions[(__pyx_v_u->nd - 1)])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5811, __pyx_L1_error)
27689  __Pyx_GOTREF(__pyx_t_2);
27690  __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5811, __pyx_L1_error)
27691  __Pyx_GOTREF(__pyx_t_3);
27692  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
27693  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
27694  __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5811, __pyx_L1_error)
27695  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
27696 
27697  /* "ctransportCoefficients.pyx":5826
27698  * <double*> df.data,
27699  * <double*> a.data,
27700  * <double*> da.data) # <<<<<<<<<<<<<<
27701  * def conservativeSatRichardsMualemVanGenuchtenHomEvaluate(const double rho,
27702  * np.ndarray gravity,
27703  */
27704  conservativeHeadRichardsMualemVanGenuchtenHetEvaluate(__pyx_t_4, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_rho, ((double *)__pyx_v_gravity->data), ((double *)__pyx_v_alpha->data), ((double *)__pyx_v_n->data), ((double *)__pyx_v_thetaR->data), ((double *)__pyx_v_thetaSR->data), ((double *)__pyx_v_KWs->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_mass->data), ((double *)__pyx_v_dmass->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data));
27705 
27706  /* "ctransportCoefficients.pyx":5797
27707  * <double*> a.data,
27708  * <double*> da.data)
27709  * def conservativeHeadRichardsMualemVanGenuchtenHetEvaluate(const double rho, # <<<<<<<<<<<<<<
27710  * np.ndarray gravity,
27711  * np.ndarray alpha,
27712  */
27713 
27714  /* function exit code */
27715  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
27716  goto __pyx_L0;
27717  __pyx_L1_error:;
27718  __Pyx_XDECREF(__pyx_t_1);
27719  __Pyx_XDECREF(__pyx_t_2);
27720  __Pyx_XDECREF(__pyx_t_3);
27721  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
27722  __pyx_r = NULL;
27723  __pyx_L0:;
27724  __Pyx_XGIVEREF(__pyx_r);
27725  __Pyx_RefNannyFinishContext();
27726  return __pyx_r;
27727 }
27728 
27729 /* "ctransportCoefficients.pyx":5827
27730  * <double*> a.data,
27731  * <double*> da.data)
27732  * def conservativeSatRichardsMualemVanGenuchtenHomEvaluate(const double rho, # <<<<<<<<<<<<<<
27733  * np.ndarray gravity,
27734  * np.ndarray x,
27735  */
27736 
27737 /* Python wrapper */
27738 static PyObject *__pyx_pw_22ctransportCoefficients_139conservativeSatRichardsMualemVanGenuchtenHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
27739 static PyMethodDef __pyx_mdef_22ctransportCoefficients_139conservativeSatRichardsMualemVanGenuchtenHomEvaluate = {"conservativeSatRichardsMualemVanGenuchtenHomEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_139conservativeSatRichardsMualemVanGenuchtenHomEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
27740 static PyObject *__pyx_pw_22ctransportCoefficients_139conservativeSatRichardsMualemVanGenuchtenHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
27741  double __pyx_v_rho;
27742  PyArrayObject *__pyx_v_gravity = 0;
27743  PyArrayObject *__pyx_v_x = 0;
27744  double __pyx_v_alpha;
27745  double __pyx_v_n;
27746  double __pyx_v_m;
27747  double __pyx_v_thetaR;
27748  double __pyx_v_thetaSR;
27749  double __pyx_v_KWs;
27750  PyArrayObject *__pyx_v_u = 0;
27751  PyArrayObject *__pyx_v_mass = 0;
27752  PyArrayObject *__pyx_v_dmass = 0;
27753  PyArrayObject *__pyx_v_f = 0;
27754  PyArrayObject *__pyx_v_df = 0;
27755  PyArrayObject *__pyx_v_a = 0;
27756  PyArrayObject *__pyx_v_da = 0;
27757  PyArrayObject *__pyx_v_phi = 0;
27758  PyArrayObject *__pyx_v_dphi = 0;
27759  int __pyx_lineno = 0;
27760  const char *__pyx_filename = NULL;
27761  int __pyx_clineno = 0;
27762  PyObject *__pyx_r = 0;
27763  __Pyx_RefNannyDeclarations
27764  __Pyx_RefNannySetupContext("conservativeSatRichardsMualemVanGenuchtenHomEvaluate (wrapper)", 0);
27765  {
27766  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_gravity,&__pyx_n_s_x,&__pyx_n_s_alpha,&__pyx_n_s_n,&__pyx_n_s_m,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_phi,&__pyx_n_s_dphi,0};
27767  PyObject* values[18] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
27768  if (unlikely(__pyx_kwds)) {
27769  Py_ssize_t kw_args;
27770  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
27771  switch (pos_args) {
27772  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
27773  CYTHON_FALLTHROUGH;
27774  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
27775  CYTHON_FALLTHROUGH;
27776  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
27777  CYTHON_FALLTHROUGH;
27778  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
27779  CYTHON_FALLTHROUGH;
27780  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
27781  CYTHON_FALLTHROUGH;
27782  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
27783  CYTHON_FALLTHROUGH;
27784  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
27785  CYTHON_FALLTHROUGH;
27786  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
27787  CYTHON_FALLTHROUGH;
27788  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
27789  CYTHON_FALLTHROUGH;
27790  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
27791  CYTHON_FALLTHROUGH;
27792  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
27793  CYTHON_FALLTHROUGH;
27794  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
27795  CYTHON_FALLTHROUGH;
27796  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
27797  CYTHON_FALLTHROUGH;
27798  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
27799  CYTHON_FALLTHROUGH;
27800  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
27801  CYTHON_FALLTHROUGH;
27802  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
27803  CYTHON_FALLTHROUGH;
27804  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
27805  CYTHON_FALLTHROUGH;
27806  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
27807  CYTHON_FALLTHROUGH;
27808  case 0: break;
27809  default: goto __pyx_L5_argtuple_error;
27810  }
27811  kw_args = PyDict_Size(__pyx_kwds);
27812  switch (pos_args) {
27813  case 0:
27814  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
27815  else goto __pyx_L5_argtuple_error;
27816  CYTHON_FALLTHROUGH;
27817  case 1:
27818  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
27819  else {
27820  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 1); __PYX_ERR(0, 5827, __pyx_L3_error)
27821  }
27822  CYTHON_FALLTHROUGH;
27823  case 2:
27824  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
27825  else {
27826  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 2); __PYX_ERR(0, 5827, __pyx_L3_error)
27827  }
27828  CYTHON_FALLTHROUGH;
27829  case 3:
27830  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
27831  else {
27832  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 3); __PYX_ERR(0, 5827, __pyx_L3_error)
27833  }
27834  CYTHON_FALLTHROUGH;
27835  case 4:
27836  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
27837  else {
27838  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 4); __PYX_ERR(0, 5827, __pyx_L3_error)
27839  }
27840  CYTHON_FALLTHROUGH;
27841  case 5:
27842  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
27843  else {
27844  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 5); __PYX_ERR(0, 5827, __pyx_L3_error)
27845  }
27846  CYTHON_FALLTHROUGH;
27847  case 6:
27848  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
27849  else {
27850  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 6); __PYX_ERR(0, 5827, __pyx_L3_error)
27851  }
27852  CYTHON_FALLTHROUGH;
27853  case 7:
27854  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
27855  else {
27856  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 7); __PYX_ERR(0, 5827, __pyx_L3_error)
27857  }
27858  CYTHON_FALLTHROUGH;
27859  case 8:
27860  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
27861  else {
27862  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 8); __PYX_ERR(0, 5827, __pyx_L3_error)
27863  }
27864  CYTHON_FALLTHROUGH;
27865  case 9:
27866  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
27867  else {
27868  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 9); __PYX_ERR(0, 5827, __pyx_L3_error)
27869  }
27870  CYTHON_FALLTHROUGH;
27871  case 10:
27872  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
27873  else {
27874  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 10); __PYX_ERR(0, 5827, __pyx_L3_error)
27875  }
27876  CYTHON_FALLTHROUGH;
27877  case 11:
27878  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
27879  else {
27880  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 11); __PYX_ERR(0, 5827, __pyx_L3_error)
27881  }
27882  CYTHON_FALLTHROUGH;
27883  case 12:
27884  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
27885  else {
27886  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 12); __PYX_ERR(0, 5827, __pyx_L3_error)
27887  }
27888  CYTHON_FALLTHROUGH;
27889  case 13:
27890  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
27891  else {
27892  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 13); __PYX_ERR(0, 5827, __pyx_L3_error)
27893  }
27894  CYTHON_FALLTHROUGH;
27895  case 14:
27896  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
27897  else {
27898  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 14); __PYX_ERR(0, 5827, __pyx_L3_error)
27899  }
27900  CYTHON_FALLTHROUGH;
27901  case 15:
27902  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
27903  else {
27904  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 15); __PYX_ERR(0, 5827, __pyx_L3_error)
27905  }
27906  CYTHON_FALLTHROUGH;
27907  case 16:
27908  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
27909  else {
27910  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 16); __PYX_ERR(0, 5827, __pyx_L3_error)
27911  }
27912  CYTHON_FALLTHROUGH;
27913  case 17:
27914  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
27915  else {
27916  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 17); __PYX_ERR(0, 5827, __pyx_L3_error)
27917  }
27918  }
27919  if (unlikely(kw_args > 0)) {
27920  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "conservativeSatRichardsMualemVanGenuchtenHomEvaluate") < 0)) __PYX_ERR(0, 5827, __pyx_L3_error)
27921  }
27922  } else if (PyTuple_GET_SIZE(__pyx_args) != 18) {
27923  goto __pyx_L5_argtuple_error;
27924  } else {
27925  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
27926  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
27927  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
27928  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
27929  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
27930  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
27931  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
27932  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
27933  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
27934  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
27935  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
27936  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
27937  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
27938  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
27939  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
27940  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
27941  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
27942  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
27943  }
27944  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5827, __pyx_L3_error)
27945  __pyx_v_gravity = ((PyArrayObject *)values[1]);
27946  __pyx_v_x = ((PyArrayObject *)values[2]);
27947  __pyx_v_alpha = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_alpha == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5830, __pyx_L3_error)
27948  __pyx_v_n = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_n == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5831, __pyx_L3_error)
27949  __pyx_v_m = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_m == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5832, __pyx_L3_error)
27950  __pyx_v_thetaR = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_thetaR == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5833, __pyx_L3_error)
27951  __pyx_v_thetaSR = __pyx_PyFloat_AsDouble(values[7]); if (unlikely((__pyx_v_thetaSR == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5834, __pyx_L3_error)
27952  __pyx_v_KWs = __pyx_PyFloat_AsDouble(values[8]); if (unlikely((__pyx_v_KWs == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5835, __pyx_L3_error)
27953  __pyx_v_u = ((PyArrayObject *)values[9]);
27954  __pyx_v_mass = ((PyArrayObject *)values[10]);
27955  __pyx_v_dmass = ((PyArrayObject *)values[11]);
27956  __pyx_v_f = ((PyArrayObject *)values[12]);
27957  __pyx_v_df = ((PyArrayObject *)values[13]);
27958  __pyx_v_a = ((PyArrayObject *)values[14]);
27959  __pyx_v_da = ((PyArrayObject *)values[15]);
27960  __pyx_v_phi = ((PyArrayObject *)values[16]);
27961  __pyx_v_dphi = ((PyArrayObject *)values[17]);
27962  }
27963  goto __pyx_L4_argument_unpacking_done;
27964  __pyx_L5_argtuple_error:;
27965  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5827, __pyx_L3_error)
27966  __pyx_L3_error:;
27967  __Pyx_AddTraceback("ctransportCoefficients.conservativeSatRichardsMualemVanGenuchtenHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
27968  __Pyx_RefNannyFinishContext();
27969  return NULL;
27970  __pyx_L4_argument_unpacking_done:;
27971  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1, "gravity", 0))) __PYX_ERR(0, 5828, __pyx_L1_error)
27972  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1, "x", 0))) __PYX_ERR(0, 5829, __pyx_L1_error)
27973  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 5836, __pyx_L1_error)
27974  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1, "mass", 0))) __PYX_ERR(0, 5837, __pyx_L1_error)
27975  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1, "dmass", 0))) __PYX_ERR(0, 5838, __pyx_L1_error)
27976  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 5839, __pyx_L1_error)
27977  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 5840, __pyx_L1_error)
27978  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 5841, __pyx_L1_error)
27979  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 5842, __pyx_L1_error)
27980  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 5843, __pyx_L1_error)
27981  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1, "dphi", 0))) __PYX_ERR(0, 5844, __pyx_L1_error)
27982  __pyx_r = __pyx_pf_22ctransportCoefficients_138conservativeSatRichardsMualemVanGenuchtenHomEvaluate(__pyx_self, __pyx_v_rho, __pyx_v_gravity, __pyx_v_x, __pyx_v_alpha, __pyx_v_n, __pyx_v_m, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da, __pyx_v_phi, __pyx_v_dphi);
27983 
27984  /* function exit code */
27985  goto __pyx_L0;
27986  __pyx_L1_error:;
27987  __pyx_r = NULL;
27988  __pyx_L0:;
27989  __Pyx_RefNannyFinishContext();
27990  return __pyx_r;
27991 }
27992 
27993 static PyObject *__pyx_pf_22ctransportCoefficients_138conservativeSatRichardsMualemVanGenuchtenHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_x, double __pyx_v_alpha, double __pyx_v_n, double __pyx_v_m, double __pyx_v_thetaR, double __pyx_v_thetaSR, double __pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi) {
27994  PyObject *__pyx_r = NULL;
27995  __Pyx_RefNannyDeclarations
27996  PyObject *__pyx_t_1 = NULL;
27997  int __pyx_t_2;
27998  int __pyx_lineno = 0;
27999  const char *__pyx_filename = NULL;
28000  int __pyx_clineno = 0;
28001  __Pyx_RefNannySetupContext("conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 0);
28002 
28003  /* "ctransportCoefficients.pyx":5845
28004  * np.ndarray phi,
28005  * np.ndarray dphi):
28006  * cconservativeSatRichardsMualemVanGenuchtenHomEvaluate(u.size, # <<<<<<<<<<<<<<
28007  * f.shape[f.ndim-1],
28008  * rho,
28009  */
28010  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5845, __pyx_L1_error)
28011  __Pyx_GOTREF(__pyx_t_1);
28012  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5845, __pyx_L1_error)
28013  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
28014 
28015  /* "ctransportCoefficients.pyx":5864
28016  * <double*> da.data,
28017  * <double*> phi.data,
28018  * <double*> dphi.data) # <<<<<<<<<<<<<<
28019  * def conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate(const double rho,
28020  * np.ndarray gravity,
28021  */
28022  conservativeSatRichardsMualemVanGenuchtenHomEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_rho, ((double *)__pyx_v_gravity->data), ((double *)__pyx_v_x->data), __pyx_v_alpha, __pyx_v_n, __pyx_v_m, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, ((double *)__pyx_v_u->data), ((double *)__pyx_v_mass->data), ((double *)__pyx_v_dmass->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_dphi->data));
28023 
28024  /* "ctransportCoefficients.pyx":5827
28025  * <double*> a.data,
28026  * <double*> da.data)
28027  * def conservativeSatRichardsMualemVanGenuchtenHomEvaluate(const double rho, # <<<<<<<<<<<<<<
28028  * np.ndarray gravity,
28029  * np.ndarray x,
28030  */
28031 
28032  /* function exit code */
28033  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
28034  goto __pyx_L0;
28035  __pyx_L1_error:;
28036  __Pyx_XDECREF(__pyx_t_1);
28037  __Pyx_AddTraceback("ctransportCoefficients.conservativeSatRichardsMualemVanGenuchtenHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
28038  __pyx_r = NULL;
28039  __pyx_L0:;
28040  __Pyx_XGIVEREF(__pyx_r);
28041  __Pyx_RefNannyFinishContext();
28042  return __pyx_r;
28043 }
28044 
28045 /* "ctransportCoefficients.pyx":5865
28046  * <double*> phi.data,
28047  * <double*> dphi.data)
28048  * def conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate(const double rho, # <<<<<<<<<<<<<<
28049  * np.ndarray gravity,
28050  * np.ndarray Lambda,
28051  */
28052 
28053 /* Python wrapper */
28054 static PyObject *__pyx_pw_22ctransportCoefficients_141conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
28055 static PyMethodDef __pyx_mdef_22ctransportCoefficients_141conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate = {"conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_141conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
28056 static PyObject *__pyx_pw_22ctransportCoefficients_141conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
28057  double __pyx_v_rho;
28058  PyArrayObject *__pyx_v_gravity = 0;
28059  PyArrayObject *__pyx_v_Lambda = 0;
28060  PyArrayObject *__pyx_v_pd = 0;
28061  PyArrayObject *__pyx_v_thetaR = 0;
28062  PyArrayObject *__pyx_v_thetaS = 0;
28063  PyArrayObject *__pyx_v_KWs = 0;
28064  PyArrayObject *__pyx_v_u = 0;
28065  PyArrayObject *__pyx_v_mass = 0;
28066  PyArrayObject *__pyx_v_dmass = 0;
28067  PyArrayObject *__pyx_v_f = 0;
28068  PyArrayObject *__pyx_v_df = 0;
28069  PyArrayObject *__pyx_v_a = 0;
28070  PyArrayObject *__pyx_v_da = 0;
28071  int __pyx_lineno = 0;
28072  const char *__pyx_filename = NULL;
28073  int __pyx_clineno = 0;
28074  PyObject *__pyx_r = 0;
28075  __Pyx_RefNannyDeclarations
28076  __Pyx_RefNannySetupContext("conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate (wrapper)", 0);
28077  {
28078  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_gravity,&__pyx_n_s_Lambda,&__pyx_n_s_pd,&__pyx_n_s_thetaR,&__pyx_n_s_thetaS,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
28079  PyObject* values[14] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0};
28080  if (unlikely(__pyx_kwds)) {
28081  Py_ssize_t kw_args;
28082  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
28083  switch (pos_args) {
28084  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
28085  CYTHON_FALLTHROUGH;
28086  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
28087  CYTHON_FALLTHROUGH;
28088  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
28089  CYTHON_FALLTHROUGH;
28090  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
28091  CYTHON_FALLTHROUGH;
28092  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
28093  CYTHON_FALLTHROUGH;
28094  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
28095  CYTHON_FALLTHROUGH;
28096  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
28097  CYTHON_FALLTHROUGH;
28098  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
28099  CYTHON_FALLTHROUGH;
28100  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
28101  CYTHON_FALLTHROUGH;
28102  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28103  CYTHON_FALLTHROUGH;
28104  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28105  CYTHON_FALLTHROUGH;
28106  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28107  CYTHON_FALLTHROUGH;
28108  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28109  CYTHON_FALLTHROUGH;
28110  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28111  CYTHON_FALLTHROUGH;
28112  case 0: break;
28113  default: goto __pyx_L5_argtuple_error;
28114  }
28115  kw_args = PyDict_Size(__pyx_kwds);
28116  switch (pos_args) {
28117  case 0:
28118  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
28119  else goto __pyx_L5_argtuple_error;
28120  CYTHON_FALLTHROUGH;
28121  case 1:
28122  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
28123  else {
28124  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, 1); __PYX_ERR(0, 5865, __pyx_L3_error)
28125  }
28126  CYTHON_FALLTHROUGH;
28127  case 2:
28128  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lambda)) != 0)) kw_args--;
28129  else {
28130  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, 2); __PYX_ERR(0, 5865, __pyx_L3_error)
28131  }
28132  CYTHON_FALLTHROUGH;
28133  case 3:
28134  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pd)) != 0)) kw_args--;
28135  else {
28136  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, 3); __PYX_ERR(0, 5865, __pyx_L3_error)
28137  }
28138  CYTHON_FALLTHROUGH;
28139  case 4:
28140  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
28141  else {
28142  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, 4); __PYX_ERR(0, 5865, __pyx_L3_error)
28143  }
28144  CYTHON_FALLTHROUGH;
28145  case 5:
28146  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaS)) != 0)) kw_args--;
28147  else {
28148  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, 5); __PYX_ERR(0, 5865, __pyx_L3_error)
28149  }
28150  CYTHON_FALLTHROUGH;
28151  case 6:
28152  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
28153  else {
28154  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, 6); __PYX_ERR(0, 5865, __pyx_L3_error)
28155  }
28156  CYTHON_FALLTHROUGH;
28157  case 7:
28158  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
28159  else {
28160  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, 7); __PYX_ERR(0, 5865, __pyx_L3_error)
28161  }
28162  CYTHON_FALLTHROUGH;
28163  case 8:
28164  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
28165  else {
28166  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, 8); __PYX_ERR(0, 5865, __pyx_L3_error)
28167  }
28168  CYTHON_FALLTHROUGH;
28169  case 9:
28170  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
28171  else {
28172  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, 9); __PYX_ERR(0, 5865, __pyx_L3_error)
28173  }
28174  CYTHON_FALLTHROUGH;
28175  case 10:
28176  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
28177  else {
28178  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, 10); __PYX_ERR(0, 5865, __pyx_L3_error)
28179  }
28180  CYTHON_FALLTHROUGH;
28181  case 11:
28182  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
28183  else {
28184  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, 11); __PYX_ERR(0, 5865, __pyx_L3_error)
28185  }
28186  CYTHON_FALLTHROUGH;
28187  case 12:
28188  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
28189  else {
28190  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, 12); __PYX_ERR(0, 5865, __pyx_L3_error)
28191  }
28192  CYTHON_FALLTHROUGH;
28193  case 13:
28194  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
28195  else {
28196  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, 13); __PYX_ERR(0, 5865, __pyx_L3_error)
28197  }
28198  }
28199  if (unlikely(kw_args > 0)) {
28200  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate") < 0)) __PYX_ERR(0, 5865, __pyx_L3_error)
28201  }
28202  } else if (PyTuple_GET_SIZE(__pyx_args) != 14) {
28203  goto __pyx_L5_argtuple_error;
28204  } else {
28205  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28206  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28207  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28208  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28209  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28210  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
28211  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
28212  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
28213  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
28214  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
28215  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
28216  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
28217  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
28218  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
28219  }
28220  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5865, __pyx_L3_error)
28221  __pyx_v_gravity = ((PyArrayObject *)values[1]);
28222  __pyx_v_Lambda = ((PyArrayObject *)values[2]);
28223  __pyx_v_pd = ((PyArrayObject *)values[3]);
28224  __pyx_v_thetaR = ((PyArrayObject *)values[4]);
28225  __pyx_v_thetaS = ((PyArrayObject *)values[5]);
28226  __pyx_v_KWs = ((PyArrayObject *)values[6]);
28227  __pyx_v_u = ((PyArrayObject *)values[7]);
28228  __pyx_v_mass = ((PyArrayObject *)values[8]);
28229  __pyx_v_dmass = ((PyArrayObject *)values[9]);
28230  __pyx_v_f = ((PyArrayObject *)values[10]);
28231  __pyx_v_df = ((PyArrayObject *)values[11]);
28232  __pyx_v_a = ((PyArrayObject *)values[12]);
28233  __pyx_v_da = ((PyArrayObject *)values[13]);
28234  }
28235  goto __pyx_L4_argument_unpacking_done;
28236  __pyx_L5_argtuple_error:;
28237  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5865, __pyx_L3_error)
28238  __pyx_L3_error:;
28239  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
28240  __Pyx_RefNannyFinishContext();
28241  return NULL;
28242  __pyx_L4_argument_unpacking_done:;
28243  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1, "gravity", 0))) __PYX_ERR(0, 5866, __pyx_L1_error)
28244  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Lambda), __pyx_ptype_5numpy_ndarray, 1, "Lambda", 0))) __PYX_ERR(0, 5867, __pyx_L1_error)
28245  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pd), __pyx_ptype_5numpy_ndarray, 1, "pd", 0))) __PYX_ERR(0, 5868, __pyx_L1_error)
28246  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaR), __pyx_ptype_5numpy_ndarray, 1, "thetaR", 0))) __PYX_ERR(0, 5869, __pyx_L1_error)
28247  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaS), __pyx_ptype_5numpy_ndarray, 1, "thetaS", 0))) __PYX_ERR(0, 5870, __pyx_L1_error)
28248  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_KWs), __pyx_ptype_5numpy_ndarray, 1, "KWs", 0))) __PYX_ERR(0, 5871, __pyx_L1_error)
28249  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 5872, __pyx_L1_error)
28250  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1, "mass", 0))) __PYX_ERR(0, 5873, __pyx_L1_error)
28251  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1, "dmass", 0))) __PYX_ERR(0, 5874, __pyx_L1_error)
28252  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 5875, __pyx_L1_error)
28253  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 5876, __pyx_L1_error)
28254  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 5877, __pyx_L1_error)
28255  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 5878, __pyx_L1_error)
28256  __pyx_r = __pyx_pf_22ctransportCoefficients_140conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate(__pyx_self, __pyx_v_rho, __pyx_v_gravity, __pyx_v_Lambda, __pyx_v_pd, __pyx_v_thetaR, __pyx_v_thetaS, __pyx_v_KWs, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
28257 
28258  /* function exit code */
28259  goto __pyx_L0;
28260  __pyx_L1_error:;
28261  __pyx_r = NULL;
28262  __pyx_L0:;
28263  __Pyx_RefNannyFinishContext();
28264  return __pyx_r;
28265 }
28266 
28267 static PyObject *__pyx_pf_22ctransportCoefficients_140conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_Lambda, PyArrayObject *__pyx_v_pd, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaS, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
28268  PyObject *__pyx_r = NULL;
28269  __Pyx_RefNannyDeclarations
28270  PyObject *__pyx_t_1 = NULL;
28271  int __pyx_t_2;
28272  int __pyx_lineno = 0;
28273  const char *__pyx_filename = NULL;
28274  int __pyx_clineno = 0;
28275  __Pyx_RefNannySetupContext("conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 0);
28276 
28277  /* "ctransportCoefficients.pyx":5879
28278  * np.ndarray a,
28279  * np.ndarray da):
28280  * cconservativeHeadRichardsBrooksCoreyBurdineHetEvaluate(u.size, # <<<<<<<<<<<<<<
28281  * f.shape[f.ndim-1],
28282  * rho,
28283  */
28284  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5879, __pyx_L1_error)
28285  __Pyx_GOTREF(__pyx_t_1);
28286  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5879, __pyx_L1_error)
28287  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
28288 
28289  /* "ctransportCoefficients.pyx":5894
28290  * <double*> df.data,
28291  * <double*> a.data,
28292  * <double*> da.data) # <<<<<<<<<<<<<<
28293  * def conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate(const double rho,
28294  * const double beta,
28295  */
28296  conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_rho, ((double *)__pyx_v_gravity->data), ((double *)__pyx_v_Lambda->data), ((double *)__pyx_v_pd->data), ((double *)__pyx_v_thetaR->data), ((double *)__pyx_v_thetaS->data), ((double *)__pyx_v_KWs->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_mass->data), ((double *)__pyx_v_dmass->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data));
28297 
28298  /* "ctransportCoefficients.pyx":5865
28299  * <double*> phi.data,
28300  * <double*> dphi.data)
28301  * def conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate(const double rho, # <<<<<<<<<<<<<<
28302  * np.ndarray gravity,
28303  * np.ndarray Lambda,
28304  */
28305 
28306  /* function exit code */
28307  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
28308  goto __pyx_L0;
28309  __pyx_L1_error:;
28310  __Pyx_XDECREF(__pyx_t_1);
28311  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
28312  __pyx_r = NULL;
28313  __pyx_L0:;
28314  __Pyx_XGIVEREF(__pyx_r);
28315  __Pyx_RefNannyFinishContext();
28316  return __pyx_r;
28317 }
28318 
28319 /* "ctransportCoefficients.pyx":5895
28320  * <double*> a.data,
28321  * <double*> da.data)
28322  * def conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate(const double rho, # <<<<<<<<<<<<<<
28323  * const double beta,
28324  * np.ndarray gravity,
28325  */
28326 
28327 /* Python wrapper */
28328 static PyObject *__pyx_pw_22ctransportCoefficients_143conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
28329 static PyMethodDef __pyx_mdef_22ctransportCoefficients_143conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate = {"conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_143conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
28330 static PyObject *__pyx_pw_22ctransportCoefficients_143conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
28331  double __pyx_v_rho;
28332  double __pyx_v_beta;
28333  PyArrayObject *__pyx_v_gravity = 0;
28334  double __pyx_v_Lambda;
28335  double __pyx_v_pd;
28336  double __pyx_v_thetaR;
28337  double __pyx_v_thetaSR;
28338  double __pyx_v_KWs;
28339  PyArrayObject *__pyx_v_u = 0;
28340  PyArrayObject *__pyx_v_mass = 0;
28341  PyArrayObject *__pyx_v_dmass = 0;
28342  PyArrayObject *__pyx_v_f = 0;
28343  PyArrayObject *__pyx_v_df = 0;
28344  PyArrayObject *__pyx_v_a = 0;
28345  PyArrayObject *__pyx_v_da = 0;
28346  int __pyx_lineno = 0;
28347  const char *__pyx_filename = NULL;
28348  int __pyx_clineno = 0;
28349  PyObject *__pyx_r = 0;
28350  __Pyx_RefNannyDeclarations
28351  __Pyx_RefNannySetupContext("conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate (wrapper)", 0);
28352  {
28353  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_beta,&__pyx_n_s_gravity,&__pyx_n_s_Lambda,&__pyx_n_s_pd,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
28354  PyObject* values[15] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
28355  if (unlikely(__pyx_kwds)) {
28356  Py_ssize_t kw_args;
28357  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
28358  switch (pos_args) {
28359  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
28360  CYTHON_FALLTHROUGH;
28361  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
28362  CYTHON_FALLTHROUGH;
28363  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
28364  CYTHON_FALLTHROUGH;
28365  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
28366  CYTHON_FALLTHROUGH;
28367  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
28368  CYTHON_FALLTHROUGH;
28369  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
28370  CYTHON_FALLTHROUGH;
28371  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
28372  CYTHON_FALLTHROUGH;
28373  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
28374  CYTHON_FALLTHROUGH;
28375  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
28376  CYTHON_FALLTHROUGH;
28377  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
28378  CYTHON_FALLTHROUGH;
28379  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28380  CYTHON_FALLTHROUGH;
28381  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28382  CYTHON_FALLTHROUGH;
28383  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28384  CYTHON_FALLTHROUGH;
28385  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28386  CYTHON_FALLTHROUGH;
28387  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28388  CYTHON_FALLTHROUGH;
28389  case 0: break;
28390  default: goto __pyx_L5_argtuple_error;
28391  }
28392  kw_args = PyDict_Size(__pyx_kwds);
28393  switch (pos_args) {
28394  case 0:
28395  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
28396  else goto __pyx_L5_argtuple_error;
28397  CYTHON_FALLTHROUGH;
28398  case 1:
28399  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_beta)) != 0)) kw_args--;
28400  else {
28401  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 1); __PYX_ERR(0, 5895, __pyx_L3_error)
28402  }
28403  CYTHON_FALLTHROUGH;
28404  case 2:
28405  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
28406  else {
28407  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 2); __PYX_ERR(0, 5895, __pyx_L3_error)
28408  }
28409  CYTHON_FALLTHROUGH;
28410  case 3:
28411  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lambda)) != 0)) kw_args--;
28412  else {
28413  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 3); __PYX_ERR(0, 5895, __pyx_L3_error)
28414  }
28415  CYTHON_FALLTHROUGH;
28416  case 4:
28417  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pd)) != 0)) kw_args--;
28418  else {
28419  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 4); __PYX_ERR(0, 5895, __pyx_L3_error)
28420  }
28421  CYTHON_FALLTHROUGH;
28422  case 5:
28423  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
28424  else {
28425  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 5); __PYX_ERR(0, 5895, __pyx_L3_error)
28426  }
28427  CYTHON_FALLTHROUGH;
28428  case 6:
28429  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
28430  else {
28431  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 6); __PYX_ERR(0, 5895, __pyx_L3_error)
28432  }
28433  CYTHON_FALLTHROUGH;
28434  case 7:
28435  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
28436  else {
28437  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 7); __PYX_ERR(0, 5895, __pyx_L3_error)
28438  }
28439  CYTHON_FALLTHROUGH;
28440  case 8:
28441  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
28442  else {
28443  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 8); __PYX_ERR(0, 5895, __pyx_L3_error)
28444  }
28445  CYTHON_FALLTHROUGH;
28446  case 9:
28447  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
28448  else {
28449  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 9); __PYX_ERR(0, 5895, __pyx_L3_error)
28450  }
28451  CYTHON_FALLTHROUGH;
28452  case 10:
28453  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
28454  else {
28455  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 10); __PYX_ERR(0, 5895, __pyx_L3_error)
28456  }
28457  CYTHON_FALLTHROUGH;
28458  case 11:
28459  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
28460  else {
28461  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 11); __PYX_ERR(0, 5895, __pyx_L3_error)
28462  }
28463  CYTHON_FALLTHROUGH;
28464  case 12:
28465  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
28466  else {
28467  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 12); __PYX_ERR(0, 5895, __pyx_L3_error)
28468  }
28469  CYTHON_FALLTHROUGH;
28470  case 13:
28471  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
28472  else {
28473  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 13); __PYX_ERR(0, 5895, __pyx_L3_error)
28474  }
28475  CYTHON_FALLTHROUGH;
28476  case 14:
28477  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
28478  else {
28479  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 14); __PYX_ERR(0, 5895, __pyx_L3_error)
28480  }
28481  }
28482  if (unlikely(kw_args > 0)) {
28483  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate") < 0)) __PYX_ERR(0, 5895, __pyx_L3_error)
28484  }
28485  } else if (PyTuple_GET_SIZE(__pyx_args) != 15) {
28486  goto __pyx_L5_argtuple_error;
28487  } else {
28488  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28489  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28490  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28491  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28492  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28493  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
28494  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
28495  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
28496  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
28497  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
28498  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
28499  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
28500  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
28501  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
28502  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
28503  }
28504  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5895, __pyx_L3_error)
28505  __pyx_v_beta = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_beta == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5896, __pyx_L3_error)
28506  __pyx_v_gravity = ((PyArrayObject *)values[2]);
28507  __pyx_v_Lambda = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_Lambda == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5898, __pyx_L3_error)
28508  __pyx_v_pd = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_pd == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5899, __pyx_L3_error)
28509  __pyx_v_thetaR = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_thetaR == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5900, __pyx_L3_error)
28510  __pyx_v_thetaSR = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_thetaSR == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5901, __pyx_L3_error)
28511  __pyx_v_KWs = __pyx_PyFloat_AsDouble(values[7]); if (unlikely((__pyx_v_KWs == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5902, __pyx_L3_error)
28512  __pyx_v_u = ((PyArrayObject *)values[8]);
28513  __pyx_v_mass = ((PyArrayObject *)values[9]);
28514  __pyx_v_dmass = ((PyArrayObject *)values[10]);
28515  __pyx_v_f = ((PyArrayObject *)values[11]);
28516  __pyx_v_df = ((PyArrayObject *)values[12]);
28517  __pyx_v_a = ((PyArrayObject *)values[13]);
28518  __pyx_v_da = ((PyArrayObject *)values[14]);
28519  }
28520  goto __pyx_L4_argument_unpacking_done;
28521  __pyx_L5_argtuple_error:;
28522  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5895, __pyx_L3_error)
28523  __pyx_L3_error:;
28524  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
28525  __Pyx_RefNannyFinishContext();
28526  return NULL;
28527  __pyx_L4_argument_unpacking_done:;
28528  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1, "gravity", 0))) __PYX_ERR(0, 5897, __pyx_L1_error)
28529  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 5903, __pyx_L1_error)
28530  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1, "mass", 0))) __PYX_ERR(0, 5904, __pyx_L1_error)
28531  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1, "dmass", 0))) __PYX_ERR(0, 5905, __pyx_L1_error)
28532  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 5906, __pyx_L1_error)
28533  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 5907, __pyx_L1_error)
28534  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 5908, __pyx_L1_error)
28535  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 5909, __pyx_L1_error)
28536  __pyx_r = __pyx_pf_22ctransportCoefficients_142conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate(__pyx_self, __pyx_v_rho, __pyx_v_beta, __pyx_v_gravity, __pyx_v_Lambda, __pyx_v_pd, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
28537 
28538  /* function exit code */
28539  goto __pyx_L0;
28540  __pyx_L1_error:;
28541  __pyx_r = NULL;
28542  __pyx_L0:;
28543  __Pyx_RefNannyFinishContext();
28544  return __pyx_r;
28545 }
28546 
28547 static PyObject *__pyx_pf_22ctransportCoefficients_142conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, double __pyx_v_Lambda, double __pyx_v_pd, double __pyx_v_thetaR, double __pyx_v_thetaSR, double __pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
28548  PyObject *__pyx_r = NULL;
28549  __Pyx_RefNannyDeclarations
28550  PyObject *__pyx_t_1 = NULL;
28551  int __pyx_t_2;
28552  int __pyx_lineno = 0;
28553  const char *__pyx_filename = NULL;
28554  int __pyx_clineno = 0;
28555  __Pyx_RefNannySetupContext("conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 0);
28556 
28557  /* "ctransportCoefficients.pyx":5910
28558  * np.ndarray a,
28559  * np.ndarray da):
28560  * cconservativeHeadRichardsBrooksCoreyBurdineHomEvaluate(u.size, # <<<<<<<<<<<<<<
28561  * f.shape[f.ndim-1],
28562  * rho,
28563  */
28564  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5910, __pyx_L1_error)
28565  __Pyx_GOTREF(__pyx_t_1);
28566  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5910, __pyx_L1_error)
28567  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
28568 
28569  /* "ctransportCoefficients.pyx":5926
28570  * <double*> df.data,
28571  * <double*> a.data,
28572  * <double*> da.data) # <<<<<<<<<<<<<<
28573  * def conservativeSatRichardsBrooksCoreyBurdineHomEvaluate(const int nPoints,
28574  * const int nSpace,
28575  */
28576  conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_rho, __pyx_v_beta, ((double *)__pyx_v_gravity->data), __pyx_v_Lambda, __pyx_v_pd, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, ((double *)__pyx_v_u->data), ((double *)__pyx_v_mass->data), ((double *)__pyx_v_dmass->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data));
28577 
28578  /* "ctransportCoefficients.pyx":5895
28579  * <double*> a.data,
28580  * <double*> da.data)
28581  * def conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate(const double rho, # <<<<<<<<<<<<<<
28582  * const double beta,
28583  * np.ndarray gravity,
28584  */
28585 
28586  /* function exit code */
28587  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
28588  goto __pyx_L0;
28589  __pyx_L1_error:;
28590  __Pyx_XDECREF(__pyx_t_1);
28591  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
28592  __pyx_r = NULL;
28593  __pyx_L0:;
28594  __Pyx_XGIVEREF(__pyx_r);
28595  __Pyx_RefNannyFinishContext();
28596  return __pyx_r;
28597 }
28598 
28599 /* "ctransportCoefficients.pyx":5927
28600  * <double*> a.data,
28601  * <double*> da.data)
28602  * def conservativeSatRichardsBrooksCoreyBurdineHomEvaluate(const int nPoints, # <<<<<<<<<<<<<<
28603  * const int nSpace,
28604  * const double rho,
28605  */
28606 
28607 /* Python wrapper */
28608 static PyObject *__pyx_pw_22ctransportCoefficients_145conservativeSatRichardsBrooksCoreyBurdineHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
28609 static PyMethodDef __pyx_mdef_22ctransportCoefficients_145conservativeSatRichardsBrooksCoreyBurdineHomEvaluate = {"conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_145conservativeSatRichardsBrooksCoreyBurdineHomEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
28610 static PyObject *__pyx_pw_22ctransportCoefficients_145conservativeSatRichardsBrooksCoreyBurdineHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
28611  int __pyx_v_nPoints;
28612  int __pyx_v_nSpace;
28613  double __pyx_v_rho;
28614  PyArrayObject *__pyx_v_gravity = 0;
28615  double __pyx_v_Lambda;
28616  double __pyx_v_pd;
28617  double __pyx_v_thetaR;
28618  double __pyx_v_thetaSR;
28619  double __pyx_v_KWs;
28620  PyArrayObject *__pyx_v_u = 0;
28621  PyArrayObject *__pyx_v_mass = 0;
28622  PyArrayObject *__pyx_v_dmass = 0;
28623  PyArrayObject *__pyx_v_f = 0;
28624  PyArrayObject *__pyx_v_df = 0;
28625  PyArrayObject *__pyx_v_a = 0;
28626  PyArrayObject *__pyx_v_da = 0;
28627  PyArrayObject *__pyx_v_phi = 0;
28628  PyArrayObject *__pyx_v_dphi = 0;
28629  int __pyx_lineno = 0;
28630  const char *__pyx_filename = NULL;
28631  int __pyx_clineno = 0;
28632  PyObject *__pyx_r = 0;
28633  __Pyx_RefNannyDeclarations
28634  __Pyx_RefNannySetupContext("conservativeSatRichardsBrooksCoreyBurdineHomEvaluate (wrapper)", 0);
28635  {
28636  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nPoints,&__pyx_n_s_nSpace,&__pyx_n_s_rho,&__pyx_n_s_gravity,&__pyx_n_s_Lambda,&__pyx_n_s_pd,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_phi,&__pyx_n_s_dphi,0};
28637  PyObject* values[18] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
28638  if (unlikely(__pyx_kwds)) {
28639  Py_ssize_t kw_args;
28640  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
28641  switch (pos_args) {
28642  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
28643  CYTHON_FALLTHROUGH;
28644  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
28645  CYTHON_FALLTHROUGH;
28646  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
28647  CYTHON_FALLTHROUGH;
28648  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
28649  CYTHON_FALLTHROUGH;
28650  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
28651  CYTHON_FALLTHROUGH;
28652  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
28653  CYTHON_FALLTHROUGH;
28654  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
28655  CYTHON_FALLTHROUGH;
28656  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
28657  CYTHON_FALLTHROUGH;
28658  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
28659  CYTHON_FALLTHROUGH;
28660  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
28661  CYTHON_FALLTHROUGH;
28662  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
28663  CYTHON_FALLTHROUGH;
28664  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
28665  CYTHON_FALLTHROUGH;
28666  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
28667  CYTHON_FALLTHROUGH;
28668  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28669  CYTHON_FALLTHROUGH;
28670  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28671  CYTHON_FALLTHROUGH;
28672  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28673  CYTHON_FALLTHROUGH;
28674  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28675  CYTHON_FALLTHROUGH;
28676  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28677  CYTHON_FALLTHROUGH;
28678  case 0: break;
28679  default: goto __pyx_L5_argtuple_error;
28680  }
28681  kw_args = PyDict_Size(__pyx_kwds);
28682  switch (pos_args) {
28683  case 0:
28684  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPoints)) != 0)) kw_args--;
28685  else goto __pyx_L5_argtuple_error;
28686  CYTHON_FALLTHROUGH;
28687  case 1:
28688  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
28689  else {
28690  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 1); __PYX_ERR(0, 5927, __pyx_L3_error)
28691  }
28692  CYTHON_FALLTHROUGH;
28693  case 2:
28694  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
28695  else {
28696  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 2); __PYX_ERR(0, 5927, __pyx_L3_error)
28697  }
28698  CYTHON_FALLTHROUGH;
28699  case 3:
28700  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
28701  else {
28702  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 3); __PYX_ERR(0, 5927, __pyx_L3_error)
28703  }
28704  CYTHON_FALLTHROUGH;
28705  case 4:
28706  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lambda)) != 0)) kw_args--;
28707  else {
28708  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 4); __PYX_ERR(0, 5927, __pyx_L3_error)
28709  }
28710  CYTHON_FALLTHROUGH;
28711  case 5:
28712  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pd)) != 0)) kw_args--;
28713  else {
28714  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 5); __PYX_ERR(0, 5927, __pyx_L3_error)
28715  }
28716  CYTHON_FALLTHROUGH;
28717  case 6:
28718  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
28719  else {
28720  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 6); __PYX_ERR(0, 5927, __pyx_L3_error)
28721  }
28722  CYTHON_FALLTHROUGH;
28723  case 7:
28724  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
28725  else {
28726  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 7); __PYX_ERR(0, 5927, __pyx_L3_error)
28727  }
28728  CYTHON_FALLTHROUGH;
28729  case 8:
28730  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
28731  else {
28732  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 8); __PYX_ERR(0, 5927, __pyx_L3_error)
28733  }
28734  CYTHON_FALLTHROUGH;
28735  case 9:
28736  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
28737  else {
28738  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 9); __PYX_ERR(0, 5927, __pyx_L3_error)
28739  }
28740  CYTHON_FALLTHROUGH;
28741  case 10:
28742  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
28743  else {
28744  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 10); __PYX_ERR(0, 5927, __pyx_L3_error)
28745  }
28746  CYTHON_FALLTHROUGH;
28747  case 11:
28748  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
28749  else {
28750  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 11); __PYX_ERR(0, 5927, __pyx_L3_error)
28751  }
28752  CYTHON_FALLTHROUGH;
28753  case 12:
28754  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
28755  else {
28756  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 12); __PYX_ERR(0, 5927, __pyx_L3_error)
28757  }
28758  CYTHON_FALLTHROUGH;
28759  case 13:
28760  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
28761  else {
28762  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 13); __PYX_ERR(0, 5927, __pyx_L3_error)
28763  }
28764  CYTHON_FALLTHROUGH;
28765  case 14:
28766  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
28767  else {
28768  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 14); __PYX_ERR(0, 5927, __pyx_L3_error)
28769  }
28770  CYTHON_FALLTHROUGH;
28771  case 15:
28772  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
28773  else {
28774  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 15); __PYX_ERR(0, 5927, __pyx_L3_error)
28775  }
28776  CYTHON_FALLTHROUGH;
28777  case 16:
28778  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
28779  else {
28780  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 16); __PYX_ERR(0, 5927, __pyx_L3_error)
28781  }
28782  CYTHON_FALLTHROUGH;
28783  case 17:
28784  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
28785  else {
28786  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 17); __PYX_ERR(0, 5927, __pyx_L3_error)
28787  }
28788  }
28789  if (unlikely(kw_args > 0)) {
28790  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "conservativeSatRichardsBrooksCoreyBurdineHomEvaluate") < 0)) __PYX_ERR(0, 5927, __pyx_L3_error)
28791  }
28792  } else if (PyTuple_GET_SIZE(__pyx_args) != 18) {
28793  goto __pyx_L5_argtuple_error;
28794  } else {
28795  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28796  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28797  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28798  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28799  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28800  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
28801  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
28802  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
28803  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
28804  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
28805  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
28806  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
28807  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
28808  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
28809  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
28810  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
28811  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
28812  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
28813  }
28814  __pyx_v_nPoints = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_nPoints == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5927, __pyx_L3_error)
28815  __pyx_v_nSpace = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_nSpace == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5928, __pyx_L3_error)
28816  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5929, __pyx_L3_error)
28817  __pyx_v_gravity = ((PyArrayObject *)values[3]);
28818  __pyx_v_Lambda = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_Lambda == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5931, __pyx_L3_error)
28819  __pyx_v_pd = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_pd == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5932, __pyx_L3_error)
28820  __pyx_v_thetaR = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_thetaR == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5933, __pyx_L3_error)
28821  __pyx_v_thetaSR = __pyx_PyFloat_AsDouble(values[7]); if (unlikely((__pyx_v_thetaSR == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5934, __pyx_L3_error)
28822  __pyx_v_KWs = __pyx_PyFloat_AsDouble(values[8]); if (unlikely((__pyx_v_KWs == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5935, __pyx_L3_error)
28823  __pyx_v_u = ((PyArrayObject *)values[9]);
28824  __pyx_v_mass = ((PyArrayObject *)values[10]);
28825  __pyx_v_dmass = ((PyArrayObject *)values[11]);
28826  __pyx_v_f = ((PyArrayObject *)values[12]);
28827  __pyx_v_df = ((PyArrayObject *)values[13]);
28828  __pyx_v_a = ((PyArrayObject *)values[14]);
28829  __pyx_v_da = ((PyArrayObject *)values[15]);
28830  __pyx_v_phi = ((PyArrayObject *)values[16]);
28831  __pyx_v_dphi = ((PyArrayObject *)values[17]);
28832  }
28833  goto __pyx_L4_argument_unpacking_done;
28834  __pyx_L5_argtuple_error:;
28835  __Pyx_RaiseArgtupleInvalid("conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5927, __pyx_L3_error)
28836  __pyx_L3_error:;
28837  __Pyx_AddTraceback("ctransportCoefficients.conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
28838  __Pyx_RefNannyFinishContext();
28839  return NULL;
28840  __pyx_L4_argument_unpacking_done:;
28841  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1, "gravity", 0))) __PYX_ERR(0, 5930, __pyx_L1_error)
28842  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 5936, __pyx_L1_error)
28843  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1, "mass", 0))) __PYX_ERR(0, 5937, __pyx_L1_error)
28844  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1, "dmass", 0))) __PYX_ERR(0, 5938, __pyx_L1_error)
28845  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 5939, __pyx_L1_error)
28846  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 5940, __pyx_L1_error)
28847  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 5941, __pyx_L1_error)
28848  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 5942, __pyx_L1_error)
28849  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 5943, __pyx_L1_error)
28850  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1, "dphi", 0))) __PYX_ERR(0, 5944, __pyx_L1_error)
28851  __pyx_r = __pyx_pf_22ctransportCoefficients_144conservativeSatRichardsBrooksCoreyBurdineHomEvaluate(__pyx_self, __pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_rho, __pyx_v_gravity, __pyx_v_Lambda, __pyx_v_pd, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da, __pyx_v_phi, __pyx_v_dphi);
28852 
28853  /* function exit code */
28854  goto __pyx_L0;
28855  __pyx_L1_error:;
28856  __pyx_r = NULL;
28857  __pyx_L0:;
28858  __Pyx_RefNannyFinishContext();
28859  return __pyx_r;
28860 }
28861 
28862 static PyObject *__pyx_pf_22ctransportCoefficients_144conservativeSatRichardsBrooksCoreyBurdineHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nPoints, int __pyx_v_nSpace, double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, double __pyx_v_Lambda, double __pyx_v_pd, double __pyx_v_thetaR, double __pyx_v_thetaSR, double __pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi) {
28863  PyObject *__pyx_r = NULL;
28864  __Pyx_RefNannyDeclarations
28865  __Pyx_RefNannySetupContext("conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 0);
28866 
28867  /* "ctransportCoefficients.pyx":5945
28868  * np.ndarray phi,
28869  * np.ndarray dphi):
28870  * cconservativeSatRichardsBrooksCoreyBurdineHomEvaluate(nPoints, # <<<<<<<<<<<<<<
28871  * nSpace,
28872  * rho,
28873  */
28874  conservativeSatRichardsBrooksCoreyBurdineHomEvaluate(__pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_rho, ((double *)__pyx_v_gravity->data), __pyx_v_Lambda, __pyx_v_pd, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, ((double *)__pyx_v_u->data), ((double *)__pyx_v_mass->data), ((double *)__pyx_v_dmass->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_dphi->data));
28875 
28876  /* "ctransportCoefficients.pyx":5927
28877  * <double*> a.data,
28878  * <double*> da.data)
28879  * def conservativeSatRichardsBrooksCoreyBurdineHomEvaluate(const int nPoints, # <<<<<<<<<<<<<<
28880  * const int nSpace,
28881  * const double rho,
28882  */
28883 
28884  /* function exit code */
28885  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
28886  __Pyx_XGIVEREF(__pyx_r);
28887  __Pyx_RefNannyFinishContext();
28888  return __pyx_r;
28889 }
28890 
28891 /* "ctransportCoefficients.pyx":5963
28892  * <double*> phi.data,
28893  * <double*> dphi.data)
28894  * def conservativeHeadRichardsBCBfromMVGHomEvaluate(const double rho, # <<<<<<<<<<<<<<
28895  * np.ndarray gravity,
28896  * const double alpha,
28897  */
28898 
28899 /* Python wrapper */
28900 static PyObject *__pyx_pw_22ctransportCoefficients_147conservativeHeadRichardsBCBfromMVGHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
28901 static PyMethodDef __pyx_mdef_22ctransportCoefficients_147conservativeHeadRichardsBCBfromMVGHomEvaluate = {"conservativeHeadRichardsBCBfromMVGHomEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_147conservativeHeadRichardsBCBfromMVGHomEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
28902 static PyObject *__pyx_pw_22ctransportCoefficients_147conservativeHeadRichardsBCBfromMVGHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
28903  double __pyx_v_rho;
28904  PyArrayObject *__pyx_v_gravity = 0;
28905  double __pyx_v_alpha;
28906  double __pyx_v_n;
28907  double __pyx_v_m;
28908  double __pyx_v_thetaR;
28909  double __pyx_v_thetaSR;
28910  double __pyx_v_KWs;
28911  PyArrayObject *__pyx_v_u = 0;
28912  PyArrayObject *__pyx_v_mass = 0;
28913  PyArrayObject *__pyx_v_dmass = 0;
28914  PyArrayObject *__pyx_v_f = 0;
28915  PyArrayObject *__pyx_v_df = 0;
28916  PyArrayObject *__pyx_v_a = 0;
28917  PyArrayObject *__pyx_v_da = 0;
28918  int __pyx_lineno = 0;
28919  const char *__pyx_filename = NULL;
28920  int __pyx_clineno = 0;
28921  PyObject *__pyx_r = 0;
28922  __Pyx_RefNannyDeclarations
28923  __Pyx_RefNannySetupContext("conservativeHeadRichardsBCBfromMVGHomEvaluate (wrapper)", 0);
28924  {
28925  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_gravity,&__pyx_n_s_alpha,&__pyx_n_s_n,&__pyx_n_s_m,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
28926  PyObject* values[15] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
28927  if (unlikely(__pyx_kwds)) {
28928  Py_ssize_t kw_args;
28929  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
28930  switch (pos_args) {
28931  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
28932  CYTHON_FALLTHROUGH;
28933  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
28934  CYTHON_FALLTHROUGH;
28935  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
28936  CYTHON_FALLTHROUGH;
28937  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
28938  CYTHON_FALLTHROUGH;
28939  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
28940  CYTHON_FALLTHROUGH;
28941  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
28942  CYTHON_FALLTHROUGH;
28943  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
28944  CYTHON_FALLTHROUGH;
28945  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
28946  CYTHON_FALLTHROUGH;
28947  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
28948  CYTHON_FALLTHROUGH;
28949  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
28950  CYTHON_FALLTHROUGH;
28951  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28952  CYTHON_FALLTHROUGH;
28953  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28954  CYTHON_FALLTHROUGH;
28955  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28956  CYTHON_FALLTHROUGH;
28957  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28958  CYTHON_FALLTHROUGH;
28959  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28960  CYTHON_FALLTHROUGH;
28961  case 0: break;
28962  default: goto __pyx_L5_argtuple_error;
28963  }
28964  kw_args = PyDict_Size(__pyx_kwds);
28965  switch (pos_args) {
28966  case 0:
28967  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
28968  else goto __pyx_L5_argtuple_error;
28969  CYTHON_FALLTHROUGH;
28970  case 1:
28971  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
28972  else {
28973  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 1); __PYX_ERR(0, 5963, __pyx_L3_error)
28974  }
28975  CYTHON_FALLTHROUGH;
28976  case 2:
28977  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
28978  else {
28979  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 2); __PYX_ERR(0, 5963, __pyx_L3_error)
28980  }
28981  CYTHON_FALLTHROUGH;
28982  case 3:
28983  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
28984  else {
28985  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 3); __PYX_ERR(0, 5963, __pyx_L3_error)
28986  }
28987  CYTHON_FALLTHROUGH;
28988  case 4:
28989  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
28990  else {
28991  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 4); __PYX_ERR(0, 5963, __pyx_L3_error)
28992  }
28993  CYTHON_FALLTHROUGH;
28994  case 5:
28995  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
28996  else {
28997  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 5); __PYX_ERR(0, 5963, __pyx_L3_error)
28998  }
28999  CYTHON_FALLTHROUGH;
29000  case 6:
29001  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
29002  else {
29003  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 6); __PYX_ERR(0, 5963, __pyx_L3_error)
29004  }
29005  CYTHON_FALLTHROUGH;
29006  case 7:
29007  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
29008  else {
29009  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 7); __PYX_ERR(0, 5963, __pyx_L3_error)
29010  }
29011  CYTHON_FALLTHROUGH;
29012  case 8:
29013  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
29014  else {
29015  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 8); __PYX_ERR(0, 5963, __pyx_L3_error)
29016  }
29017  CYTHON_FALLTHROUGH;
29018  case 9:
29019  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
29020  else {
29021  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 9); __PYX_ERR(0, 5963, __pyx_L3_error)
29022  }
29023  CYTHON_FALLTHROUGH;
29024  case 10:
29025  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
29026  else {
29027  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 10); __PYX_ERR(0, 5963, __pyx_L3_error)
29028  }
29029  CYTHON_FALLTHROUGH;
29030  case 11:
29031  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
29032  else {
29033  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 11); __PYX_ERR(0, 5963, __pyx_L3_error)
29034  }
29035  CYTHON_FALLTHROUGH;
29036  case 12:
29037  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
29038  else {
29039  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 12); __PYX_ERR(0, 5963, __pyx_L3_error)
29040  }
29041  CYTHON_FALLTHROUGH;
29042  case 13:
29043  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
29044  else {
29045  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 13); __PYX_ERR(0, 5963, __pyx_L3_error)
29046  }
29047  CYTHON_FALLTHROUGH;
29048  case 14:
29049  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
29050  else {
29051  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 14); __PYX_ERR(0, 5963, __pyx_L3_error)
29052  }
29053  }
29054  if (unlikely(kw_args > 0)) {
29055  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "conservativeHeadRichardsBCBfromMVGHomEvaluate") < 0)) __PYX_ERR(0, 5963, __pyx_L3_error)
29056  }
29057  } else if (PyTuple_GET_SIZE(__pyx_args) != 15) {
29058  goto __pyx_L5_argtuple_error;
29059  } else {
29060  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29061  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29062  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29063  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29064  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29065  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
29066  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
29067  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
29068  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
29069  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
29070  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
29071  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
29072  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
29073  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
29074  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
29075  }
29076  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5963, __pyx_L3_error)
29077  __pyx_v_gravity = ((PyArrayObject *)values[1]);
29078  __pyx_v_alpha = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_alpha == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5965, __pyx_L3_error)
29079  __pyx_v_n = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_n == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5966, __pyx_L3_error)
29080  __pyx_v_m = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_m == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5967, __pyx_L3_error)
29081  __pyx_v_thetaR = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_thetaR == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5968, __pyx_L3_error)
29082  __pyx_v_thetaSR = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_thetaSR == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5969, __pyx_L3_error)
29083  __pyx_v_KWs = __pyx_PyFloat_AsDouble(values[7]); if (unlikely((__pyx_v_KWs == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5970, __pyx_L3_error)
29084  __pyx_v_u = ((PyArrayObject *)values[8]);
29085  __pyx_v_mass = ((PyArrayObject *)values[9]);
29086  __pyx_v_dmass = ((PyArrayObject *)values[10]);
29087  __pyx_v_f = ((PyArrayObject *)values[11]);
29088  __pyx_v_df = ((PyArrayObject *)values[12]);
29089  __pyx_v_a = ((PyArrayObject *)values[13]);
29090  __pyx_v_da = ((PyArrayObject *)values[14]);
29091  }
29092  goto __pyx_L4_argument_unpacking_done;
29093  __pyx_L5_argtuple_error:;
29094  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5963, __pyx_L3_error)
29095  __pyx_L3_error:;
29096  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsBCBfromMVGHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
29097  __Pyx_RefNannyFinishContext();
29098  return NULL;
29099  __pyx_L4_argument_unpacking_done:;
29100  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1, "gravity", 0))) __PYX_ERR(0, 5964, __pyx_L1_error)
29101  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 5971, __pyx_L1_error)
29102  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1, "mass", 0))) __PYX_ERR(0, 5972, __pyx_L1_error)
29103  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1, "dmass", 0))) __PYX_ERR(0, 5973, __pyx_L1_error)
29104  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 5974, __pyx_L1_error)
29105  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 5975, __pyx_L1_error)
29106  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 5976, __pyx_L1_error)
29107  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 5977, __pyx_L1_error)
29108  __pyx_r = __pyx_pf_22ctransportCoefficients_146conservativeHeadRichardsBCBfromMVGHomEvaluate(__pyx_self, __pyx_v_rho, __pyx_v_gravity, __pyx_v_alpha, __pyx_v_n, __pyx_v_m, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
29109 
29110  /* function exit code */
29111  goto __pyx_L0;
29112  __pyx_L1_error:;
29113  __pyx_r = NULL;
29114  __pyx_L0:;
29115  __Pyx_RefNannyFinishContext();
29116  return __pyx_r;
29117 }
29118 
29119 static PyObject *__pyx_pf_22ctransportCoefficients_146conservativeHeadRichardsBCBfromMVGHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, double __pyx_v_alpha, double __pyx_v_n, double __pyx_v_m, double __pyx_v_thetaR, double __pyx_v_thetaSR, double __pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
29120  PyObject *__pyx_r = NULL;
29121  __Pyx_RefNannyDeclarations
29122  PyObject *__pyx_t_1 = NULL;
29123  int __pyx_t_2;
29124  int __pyx_lineno = 0;
29125  const char *__pyx_filename = NULL;
29126  int __pyx_clineno = 0;
29127  __Pyx_RefNannySetupContext("conservativeHeadRichardsBCBfromMVGHomEvaluate", 0);
29128 
29129  /* "ctransportCoefficients.pyx":5978
29130  * np.ndarray a,
29131  * np.ndarray da):
29132  * cconservativeHeadRichardsBCBfromMVGHomEvaluate(u.size, # <<<<<<<<<<<<<<
29133  * f.shape[f.ndim-1],
29134  * rho,
29135  */
29136  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5978, __pyx_L1_error)
29137  __Pyx_GOTREF(__pyx_t_1);
29138  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5978, __pyx_L1_error)
29139  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
29140 
29141  /* "ctransportCoefficients.pyx":5994
29142  * <double*> df.data,
29143  * <double*> a.data,
29144  * <double*> da.data) # <<<<<<<<<<<<<<
29145  * def LinearElasticity_1D_Evaluate(const double E,
29146  * const double nu,
29147  */
29148  conservativeHeadRichardsBCBfromMVGHomEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_rho, ((double *)__pyx_v_gravity->data), __pyx_v_alpha, __pyx_v_n, __pyx_v_m, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, ((double *)__pyx_v_u->data), ((double *)__pyx_v_mass->data), ((double *)__pyx_v_dmass->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data));
29149 
29150  /* "ctransportCoefficients.pyx":5963
29151  * <double*> phi.data,
29152  * <double*> dphi.data)
29153  * def conservativeHeadRichardsBCBfromMVGHomEvaluate(const double rho, # <<<<<<<<<<<<<<
29154  * np.ndarray gravity,
29155  * const double alpha,
29156  */
29157 
29158  /* function exit code */
29159  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
29160  goto __pyx_L0;
29161  __pyx_L1_error:;
29162  __Pyx_XDECREF(__pyx_t_1);
29163  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsBCBfromMVGHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
29164  __pyx_r = NULL;
29165  __pyx_L0:;
29166  __Pyx_XGIVEREF(__pyx_r);
29167  __Pyx_RefNannyFinishContext();
29168  return __pyx_r;
29169 }
29170 
29171 /* "ctransportCoefficients.pyx":5995
29172  * <double*> a.data,
29173  * <double*> da.data)
29174  * def LinearElasticity_1D_Evaluate(const double E, # <<<<<<<<<<<<<<
29175  * const double nu,
29176  * np.ndarray g,
29177  */
29178 
29179 /* Python wrapper */
29180 static PyObject *__pyx_pw_22ctransportCoefficients_149LinearElasticity_1D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
29181 static PyMethodDef __pyx_mdef_22ctransportCoefficients_149LinearElasticity_1D_Evaluate = {"LinearElasticity_1D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_149LinearElasticity_1D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
29182 static PyObject *__pyx_pw_22ctransportCoefficients_149LinearElasticity_1D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
29183  double __pyx_v_E;
29184  double __pyx_v_nu;
29185  PyArrayObject *__pyx_v_g = 0;
29186  PyArrayObject *__pyx_v_u = 0;
29187  PyArrayObject *__pyx_v_uu_diff_ten = 0;
29188  PyArrayObject *__pyx_v_u_force = 0;
29189  int __pyx_lineno = 0;
29190  const char *__pyx_filename = NULL;
29191  int __pyx_clineno = 0;
29192  PyObject *__pyx_r = 0;
29193  __Pyx_RefNannyDeclarations
29194  __Pyx_RefNannySetupContext("LinearElasticity_1D_Evaluate (wrapper)", 0);
29195  {
29196  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_E,&__pyx_n_s_nu,&__pyx_n_s_g,&__pyx_n_s_u,&__pyx_n_s_uu_diff_ten,&__pyx_n_s_u_force,0};
29197  PyObject* values[6] = {0,0,0,0,0,0};
29198  if (unlikely(__pyx_kwds)) {
29199  Py_ssize_t kw_args;
29200  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
29201  switch (pos_args) {
29202  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
29203  CYTHON_FALLTHROUGH;
29204  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29205  CYTHON_FALLTHROUGH;
29206  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29207  CYTHON_FALLTHROUGH;
29208  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29209  CYTHON_FALLTHROUGH;
29210  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29211  CYTHON_FALLTHROUGH;
29212  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29213  CYTHON_FALLTHROUGH;
29214  case 0: break;
29215  default: goto __pyx_L5_argtuple_error;
29216  }
29217  kw_args = PyDict_Size(__pyx_kwds);
29218  switch (pos_args) {
29219  case 0:
29220  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_E)) != 0)) kw_args--;
29221  else goto __pyx_L5_argtuple_error;
29222  CYTHON_FALLTHROUGH;
29223  case 1:
29224  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
29225  else {
29226  __Pyx_RaiseArgtupleInvalid("LinearElasticity_1D_Evaluate", 1, 6, 6, 1); __PYX_ERR(0, 5995, __pyx_L3_error)
29227  }
29228  CYTHON_FALLTHROUGH;
29229  case 2:
29230  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
29231  else {
29232  __Pyx_RaiseArgtupleInvalid("LinearElasticity_1D_Evaluate", 1, 6, 6, 2); __PYX_ERR(0, 5995, __pyx_L3_error)
29233  }
29234  CYTHON_FALLTHROUGH;
29235  case 3:
29236  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
29237  else {
29238  __Pyx_RaiseArgtupleInvalid("LinearElasticity_1D_Evaluate", 1, 6, 6, 3); __PYX_ERR(0, 5995, __pyx_L3_error)
29239  }
29240  CYTHON_FALLTHROUGH;
29241  case 4:
29242  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uu_diff_ten)) != 0)) kw_args--;
29243  else {
29244  __Pyx_RaiseArgtupleInvalid("LinearElasticity_1D_Evaluate", 1, 6, 6, 4); __PYX_ERR(0, 5995, __pyx_L3_error)
29245  }
29246  CYTHON_FALLTHROUGH;
29247  case 5:
29248  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_force)) != 0)) kw_args--;
29249  else {
29250  __Pyx_RaiseArgtupleInvalid("LinearElasticity_1D_Evaluate", 1, 6, 6, 5); __PYX_ERR(0, 5995, __pyx_L3_error)
29251  }
29252  }
29253  if (unlikely(kw_args > 0)) {
29254  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "LinearElasticity_1D_Evaluate") < 0)) __PYX_ERR(0, 5995, __pyx_L3_error)
29255  }
29256  } else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
29257  goto __pyx_L5_argtuple_error;
29258  } else {
29259  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29260  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29261  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29262  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29263  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29264  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
29265  }
29266  __pyx_v_E = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_E == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5995, __pyx_L3_error)
29267  __pyx_v_nu = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_nu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5996, __pyx_L3_error)
29268  __pyx_v_g = ((PyArrayObject *)values[2]);
29269  __pyx_v_u = ((PyArrayObject *)values[3]);
29270  __pyx_v_uu_diff_ten = ((PyArrayObject *)values[4]);
29271  __pyx_v_u_force = ((PyArrayObject *)values[5]);
29272  }
29273  goto __pyx_L4_argument_unpacking_done;
29274  __pyx_L5_argtuple_error:;
29275  __Pyx_RaiseArgtupleInvalid("LinearElasticity_1D_Evaluate", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5995, __pyx_L3_error)
29276  __pyx_L3_error:;
29277  __Pyx_AddTraceback("ctransportCoefficients.LinearElasticity_1D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
29278  __Pyx_RefNannyFinishContext();
29279  return NULL;
29280  __pyx_L4_argument_unpacking_done:;
29281  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 5997, __pyx_L1_error)
29282  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 5998, __pyx_L1_error)
29283  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "uu_diff_ten", 0))) __PYX_ERR(0, 5999, __pyx_L1_error)
29284  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_force), __pyx_ptype_5numpy_ndarray, 1, "u_force", 0))) __PYX_ERR(0, 6000, __pyx_L1_error)
29285  __pyx_r = __pyx_pf_22ctransportCoefficients_148LinearElasticity_1D_Evaluate(__pyx_self, __pyx_v_E, __pyx_v_nu, __pyx_v_g, __pyx_v_u, __pyx_v_uu_diff_ten, __pyx_v_u_force);
29286 
29287  /* function exit code */
29288  goto __pyx_L0;
29289  __pyx_L1_error:;
29290  __pyx_r = NULL;
29291  __pyx_L0:;
29292  __Pyx_RefNannyFinishContext();
29293  return __pyx_r;
29294 }
29295 
29296 static PyObject *__pyx_pf_22ctransportCoefficients_148LinearElasticity_1D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_E, double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_uu_diff_ten, PyArrayObject *__pyx_v_u_force) {
29297  PyObject *__pyx_r = NULL;
29298  __Pyx_RefNannyDeclarations
29299  PyObject *__pyx_t_1 = NULL;
29300  int __pyx_t_2;
29301  int __pyx_lineno = 0;
29302  const char *__pyx_filename = NULL;
29303  int __pyx_clineno = 0;
29304  __Pyx_RefNannySetupContext("LinearElasticity_1D_Evaluate", 0);
29305 
29306  /* "ctransportCoefficients.pyx":6001
29307  * np.ndarray uu_diff_ten,
29308  * np.ndarray u_force):
29309  * cLinearElasticity_1D_Evaluate(u.size, # <<<<<<<<<<<<<<
29310  * E,
29311  * nu,
29312  */
29313  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6001, __pyx_L1_error)
29314  __Pyx_GOTREF(__pyx_t_1);
29315  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6001, __pyx_L1_error)
29316  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
29317 
29318  /* "ctransportCoefficients.pyx":6007
29319  * <double*> u.data,
29320  * <double*> uu_diff_ten.data,
29321  * <double*> u_force.data) # <<<<<<<<<<<<<<
29322  * def LinearElasticity_2D_Evaluate(const double E,
29323  * const double nu,
29324  */
29325  LinearElasticity_1D_Evaluate(__pyx_t_2, __pyx_v_E, __pyx_v_nu, ((double *)__pyx_v_g->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_uu_diff_ten->data), ((double *)__pyx_v_u_force->data));
29326 
29327  /* "ctransportCoefficients.pyx":5995
29328  * <double*> a.data,
29329  * <double*> da.data)
29330  * def LinearElasticity_1D_Evaluate(const double E, # <<<<<<<<<<<<<<
29331  * const double nu,
29332  * np.ndarray g,
29333  */
29334 
29335  /* function exit code */
29336  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
29337  goto __pyx_L0;
29338  __pyx_L1_error:;
29339  __Pyx_XDECREF(__pyx_t_1);
29340  __Pyx_AddTraceback("ctransportCoefficients.LinearElasticity_1D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
29341  __pyx_r = NULL;
29342  __pyx_L0:;
29343  __Pyx_XGIVEREF(__pyx_r);
29344  __Pyx_RefNannyFinishContext();
29345  return __pyx_r;
29346 }
29347 
29348 /* "ctransportCoefficients.pyx":6008
29349  * <double*> uu_diff_ten.data,
29350  * <double*> u_force.data)
29351  * def LinearElasticity_2D_Evaluate(const double E, # <<<<<<<<<<<<<<
29352  * const double nu,
29353  * np.ndarray g,
29354  */
29355 
29356 /* Python wrapper */
29357 static PyObject *__pyx_pw_22ctransportCoefficients_151LinearElasticity_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
29358 static PyMethodDef __pyx_mdef_22ctransportCoefficients_151LinearElasticity_2D_Evaluate = {"LinearElasticity_2D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_151LinearElasticity_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
29359 static PyObject *__pyx_pw_22ctransportCoefficients_151LinearElasticity_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
29360  double __pyx_v_E;
29361  double __pyx_v_nu;
29362  PyArrayObject *__pyx_v_g = 0;
29363  PyArrayObject *__pyx_v_u = 0;
29364  PyArrayObject *__pyx_v_v = 0;
29365  PyArrayObject *__pyx_v_uu_diff_ten = 0;
29366  PyArrayObject *__pyx_v_uv_diff_ten = 0;
29367  PyArrayObject *__pyx_v_vu_diff_ten = 0;
29368  PyArrayObject *__pyx_v_vv_diff_ten = 0;
29369  PyArrayObject *__pyx_v_u_force = 0;
29370  PyArrayObject *__pyx_v_v_force = 0;
29371  int __pyx_lineno = 0;
29372  const char *__pyx_filename = NULL;
29373  int __pyx_clineno = 0;
29374  PyObject *__pyx_r = 0;
29375  __Pyx_RefNannyDeclarations
29376  __Pyx_RefNannySetupContext("LinearElasticity_2D_Evaluate (wrapper)", 0);
29377  {
29378  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_E,&__pyx_n_s_nu,&__pyx_n_s_g,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_uu_diff_ten,&__pyx_n_s_uv_diff_ten,&__pyx_n_s_vu_diff_ten,&__pyx_n_s_vv_diff_ten,&__pyx_n_s_u_force,&__pyx_n_s_v_force,0};
29379  PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0};
29380  if (unlikely(__pyx_kwds)) {
29381  Py_ssize_t kw_args;
29382  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
29383  switch (pos_args) {
29384  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
29385  CYTHON_FALLTHROUGH;
29386  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
29387  CYTHON_FALLTHROUGH;
29388  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
29389  CYTHON_FALLTHROUGH;
29390  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
29391  CYTHON_FALLTHROUGH;
29392  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
29393  CYTHON_FALLTHROUGH;
29394  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
29395  CYTHON_FALLTHROUGH;
29396  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29397  CYTHON_FALLTHROUGH;
29398  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29399  CYTHON_FALLTHROUGH;
29400  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29401  CYTHON_FALLTHROUGH;
29402  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29403  CYTHON_FALLTHROUGH;
29404  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29405  CYTHON_FALLTHROUGH;
29406  case 0: break;
29407  default: goto __pyx_L5_argtuple_error;
29408  }
29409  kw_args = PyDict_Size(__pyx_kwds);
29410  switch (pos_args) {
29411  case 0:
29412  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_E)) != 0)) kw_args--;
29413  else goto __pyx_L5_argtuple_error;
29414  CYTHON_FALLTHROUGH;
29415  case 1:
29416  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
29417  else {
29418  __Pyx_RaiseArgtupleInvalid("LinearElasticity_2D_Evaluate", 1, 11, 11, 1); __PYX_ERR(0, 6008, __pyx_L3_error)
29419  }
29420  CYTHON_FALLTHROUGH;
29421  case 2:
29422  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
29423  else {
29424  __Pyx_RaiseArgtupleInvalid("LinearElasticity_2D_Evaluate", 1, 11, 11, 2); __PYX_ERR(0, 6008, __pyx_L3_error)
29425  }
29426  CYTHON_FALLTHROUGH;
29427  case 3:
29428  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
29429  else {
29430  __Pyx_RaiseArgtupleInvalid("LinearElasticity_2D_Evaluate", 1, 11, 11, 3); __PYX_ERR(0, 6008, __pyx_L3_error)
29431  }
29432  CYTHON_FALLTHROUGH;
29433  case 4:
29434  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
29435  else {
29436  __Pyx_RaiseArgtupleInvalid("LinearElasticity_2D_Evaluate", 1, 11, 11, 4); __PYX_ERR(0, 6008, __pyx_L3_error)
29437  }
29438  CYTHON_FALLTHROUGH;
29439  case 5:
29440  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uu_diff_ten)) != 0)) kw_args--;
29441  else {
29442  __Pyx_RaiseArgtupleInvalid("LinearElasticity_2D_Evaluate", 1, 11, 11, 5); __PYX_ERR(0, 6008, __pyx_L3_error)
29443  }
29444  CYTHON_FALLTHROUGH;
29445  case 6:
29446  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv_diff_ten)) != 0)) kw_args--;
29447  else {
29448  __Pyx_RaiseArgtupleInvalid("LinearElasticity_2D_Evaluate", 1, 11, 11, 6); __PYX_ERR(0, 6008, __pyx_L3_error)
29449  }
29450  CYTHON_FALLTHROUGH;
29451  case 7:
29452  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vu_diff_ten)) != 0)) kw_args--;
29453  else {
29454  __Pyx_RaiseArgtupleInvalid("LinearElasticity_2D_Evaluate", 1, 11, 11, 7); __PYX_ERR(0, 6008, __pyx_L3_error)
29455  }
29456  CYTHON_FALLTHROUGH;
29457  case 8:
29458  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vv_diff_ten)) != 0)) kw_args--;
29459  else {
29460  __Pyx_RaiseArgtupleInvalid("LinearElasticity_2D_Evaluate", 1, 11, 11, 8); __PYX_ERR(0, 6008, __pyx_L3_error)
29461  }
29462  CYTHON_FALLTHROUGH;
29463  case 9:
29464  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_force)) != 0)) kw_args--;
29465  else {
29466  __Pyx_RaiseArgtupleInvalid("LinearElasticity_2D_Evaluate", 1, 11, 11, 9); __PYX_ERR(0, 6008, __pyx_L3_error)
29467  }
29468  CYTHON_FALLTHROUGH;
29469  case 10:
29470  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_force)) != 0)) kw_args--;
29471  else {
29472  __Pyx_RaiseArgtupleInvalid("LinearElasticity_2D_Evaluate", 1, 11, 11, 10); __PYX_ERR(0, 6008, __pyx_L3_error)
29473  }
29474  }
29475  if (unlikely(kw_args > 0)) {
29476  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "LinearElasticity_2D_Evaluate") < 0)) __PYX_ERR(0, 6008, __pyx_L3_error)
29477  }
29478  } else if (PyTuple_GET_SIZE(__pyx_args) != 11) {
29479  goto __pyx_L5_argtuple_error;
29480  } else {
29481  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29482  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29483  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29484  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29485  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29486  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
29487  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
29488  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
29489  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
29490  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
29491  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
29492  }
29493  __pyx_v_E = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_E == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6008, __pyx_L3_error)
29494  __pyx_v_nu = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_nu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6009, __pyx_L3_error)
29495  __pyx_v_g = ((PyArrayObject *)values[2]);
29496  __pyx_v_u = ((PyArrayObject *)values[3]);
29497  __pyx_v_v = ((PyArrayObject *)values[4]);
29498  __pyx_v_uu_diff_ten = ((PyArrayObject *)values[5]);
29499  __pyx_v_uv_diff_ten = ((PyArrayObject *)values[6]);
29500  __pyx_v_vu_diff_ten = ((PyArrayObject *)values[7]);
29501  __pyx_v_vv_diff_ten = ((PyArrayObject *)values[8]);
29502  __pyx_v_u_force = ((PyArrayObject *)values[9]);
29503  __pyx_v_v_force = ((PyArrayObject *)values[10]);
29504  }
29505  goto __pyx_L4_argument_unpacking_done;
29506  __pyx_L5_argtuple_error:;
29507  __Pyx_RaiseArgtupleInvalid("LinearElasticity_2D_Evaluate", 1, 11, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6008, __pyx_L3_error)
29508  __pyx_L3_error:;
29509  __Pyx_AddTraceback("ctransportCoefficients.LinearElasticity_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
29510  __Pyx_RefNannyFinishContext();
29511  return NULL;
29512  __pyx_L4_argument_unpacking_done:;
29513  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 6010, __pyx_L1_error)
29514  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 6011, __pyx_L1_error)
29515  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 6012, __pyx_L1_error)
29516  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "uu_diff_ten", 0))) __PYX_ERR(0, 6013, __pyx_L1_error)
29517  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "uv_diff_ten", 0))) __PYX_ERR(0, 6014, __pyx_L1_error)
29518  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "vu_diff_ten", 0))) __PYX_ERR(0, 6015, __pyx_L1_error)
29519  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "vv_diff_ten", 0))) __PYX_ERR(0, 6016, __pyx_L1_error)
29520  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_force), __pyx_ptype_5numpy_ndarray, 1, "u_force", 0))) __PYX_ERR(0, 6017, __pyx_L1_error)
29521  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v_force), __pyx_ptype_5numpy_ndarray, 1, "v_force", 0))) __PYX_ERR(0, 6018, __pyx_L1_error)
29522  __pyx_r = __pyx_pf_22ctransportCoefficients_150LinearElasticity_2D_Evaluate(__pyx_self, __pyx_v_E, __pyx_v_nu, __pyx_v_g, __pyx_v_u, __pyx_v_v, __pyx_v_uu_diff_ten, __pyx_v_uv_diff_ten, __pyx_v_vu_diff_ten, __pyx_v_vv_diff_ten, __pyx_v_u_force, __pyx_v_v_force);
29523 
29524  /* function exit code */
29525  goto __pyx_L0;
29526  __pyx_L1_error:;
29527  __pyx_r = NULL;
29528  __pyx_L0:;
29529  __Pyx_RefNannyFinishContext();
29530  return __pyx_r;
29531 }
29532 
29533 static PyObject *__pyx_pf_22ctransportCoefficients_150LinearElasticity_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_E, double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_uu_diff_ten, PyArrayObject *__pyx_v_uv_diff_ten, PyArrayObject *__pyx_v_vu_diff_ten, PyArrayObject *__pyx_v_vv_diff_ten, PyArrayObject *__pyx_v_u_force, PyArrayObject *__pyx_v_v_force) {
29534  PyObject *__pyx_r = NULL;
29535  __Pyx_RefNannyDeclarations
29536  PyObject *__pyx_t_1 = NULL;
29537  int __pyx_t_2;
29538  int __pyx_lineno = 0;
29539  const char *__pyx_filename = NULL;
29540  int __pyx_clineno = 0;
29541  __Pyx_RefNannySetupContext("LinearElasticity_2D_Evaluate", 0);
29542 
29543  /* "ctransportCoefficients.pyx":6019
29544  * np.ndarray u_force,
29545  * np.ndarray v_force):
29546  * cLinearElasticity_2D_Evaluate(u.size, # <<<<<<<<<<<<<<
29547  * E,
29548  * nu,
29549  */
29550  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6019, __pyx_L1_error)
29551  __Pyx_GOTREF(__pyx_t_1);
29552  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6019, __pyx_L1_error)
29553  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
29554 
29555  /* "ctransportCoefficients.pyx":6030
29556  * <double*> vv_diff_ten.data,
29557  * <double*> u_force.data,
29558  * <double*> v_force.data) # <<<<<<<<<<<<<<
29559  * def LinearElasticity_3D_Evaluate(const double E,
29560  * const double nu,
29561  */
29562  LinearElasticity_2D_Evaluate(__pyx_t_2, __pyx_v_E, __pyx_v_nu, ((double *)__pyx_v_g->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_uu_diff_ten->data), ((double *)__pyx_v_uv_diff_ten->data), ((double *)__pyx_v_vu_diff_ten->data), ((double *)__pyx_v_vv_diff_ten->data), ((double *)__pyx_v_u_force->data), ((double *)__pyx_v_v_force->data));
29563 
29564  /* "ctransportCoefficients.pyx":6008
29565  * <double*> uu_diff_ten.data,
29566  * <double*> u_force.data)
29567  * def LinearElasticity_2D_Evaluate(const double E, # <<<<<<<<<<<<<<
29568  * const double nu,
29569  * np.ndarray g,
29570  */
29571 
29572  /* function exit code */
29573  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
29574  goto __pyx_L0;
29575  __pyx_L1_error:;
29576  __Pyx_XDECREF(__pyx_t_1);
29577  __Pyx_AddTraceback("ctransportCoefficients.LinearElasticity_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
29578  __pyx_r = NULL;
29579  __pyx_L0:;
29580  __Pyx_XGIVEREF(__pyx_r);
29581  __Pyx_RefNannyFinishContext();
29582  return __pyx_r;
29583 }
29584 
29585 /* "ctransportCoefficients.pyx":6031
29586  * <double*> u_force.data,
29587  * <double*> v_force.data)
29588  * def LinearElasticity_3D_Evaluate(const double E, # <<<<<<<<<<<<<<
29589  * const double nu,
29590  * np.ndarray g,
29591  */
29592 
29593 /* Python wrapper */
29594 static PyObject *__pyx_pw_22ctransportCoefficients_153LinearElasticity_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
29595 static PyMethodDef __pyx_mdef_22ctransportCoefficients_153LinearElasticity_3D_Evaluate = {"LinearElasticity_3D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_153LinearElasticity_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
29596 static PyObject *__pyx_pw_22ctransportCoefficients_153LinearElasticity_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
29597  double __pyx_v_E;
29598  double __pyx_v_nu;
29599  PyArrayObject *__pyx_v_g = 0;
29600  PyArrayObject *__pyx_v_u = 0;
29601  PyArrayObject *__pyx_v_v = 0;
29602  PyArrayObject *__pyx_v_w = 0;
29603  PyArrayObject *__pyx_v_uu_diff_ten = 0;
29604  PyArrayObject *__pyx_v_uv_diff_ten = 0;
29605  PyArrayObject *__pyx_v_uw_diff_ten = 0;
29606  PyArrayObject *__pyx_v_vu_diff_ten = 0;
29607  PyArrayObject *__pyx_v_vv_diff_ten = 0;
29608  PyArrayObject *__pyx_v_vw_diff_ten = 0;
29609  PyArrayObject *__pyx_v_wu_diff_ten = 0;
29610  PyArrayObject *__pyx_v_wv_diff_ten = 0;
29611  PyArrayObject *__pyx_v_ww_diff_ten = 0;
29612  PyArrayObject *__pyx_v_u_force = 0;
29613  PyArrayObject *__pyx_v_v_force = 0;
29614  PyArrayObject *__pyx_v_w_force = 0;
29615  int __pyx_lineno = 0;
29616  const char *__pyx_filename = NULL;
29617  int __pyx_clineno = 0;
29618  PyObject *__pyx_r = 0;
29619  __Pyx_RefNannyDeclarations
29620  __Pyx_RefNannySetupContext("LinearElasticity_3D_Evaluate (wrapper)", 0);
29621  {
29622  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_E,&__pyx_n_s_nu,&__pyx_n_s_g,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_uu_diff_ten,&__pyx_n_s_uv_diff_ten,&__pyx_n_s_uw_diff_ten,&__pyx_n_s_vu_diff_ten,&__pyx_n_s_vv_diff_ten,&__pyx_n_s_vw_diff_ten,&__pyx_n_s_wu_diff_ten,&__pyx_n_s_wv_diff_ten,&__pyx_n_s_ww_diff_ten,&__pyx_n_s_u_force,&__pyx_n_s_v_force,&__pyx_n_s_w_force,0};
29623  PyObject* values[18] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
29624  if (unlikely(__pyx_kwds)) {
29625  Py_ssize_t kw_args;
29626  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
29627  switch (pos_args) {
29628  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
29629  CYTHON_FALLTHROUGH;
29630  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
29631  CYTHON_FALLTHROUGH;
29632  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
29633  CYTHON_FALLTHROUGH;
29634  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
29635  CYTHON_FALLTHROUGH;
29636  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
29637  CYTHON_FALLTHROUGH;
29638  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
29639  CYTHON_FALLTHROUGH;
29640  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
29641  CYTHON_FALLTHROUGH;
29642  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
29643  CYTHON_FALLTHROUGH;
29644  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
29645  CYTHON_FALLTHROUGH;
29646  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
29647  CYTHON_FALLTHROUGH;
29648  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
29649  CYTHON_FALLTHROUGH;
29650  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
29651  CYTHON_FALLTHROUGH;
29652  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
29653  CYTHON_FALLTHROUGH;
29654  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29655  CYTHON_FALLTHROUGH;
29656  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29657  CYTHON_FALLTHROUGH;
29658  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29659  CYTHON_FALLTHROUGH;
29660  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29661  CYTHON_FALLTHROUGH;
29662  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29663  CYTHON_FALLTHROUGH;
29664  case 0: break;
29665  default: goto __pyx_L5_argtuple_error;
29666  }
29667  kw_args = PyDict_Size(__pyx_kwds);
29668  switch (pos_args) {
29669  case 0:
29670  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_E)) != 0)) kw_args--;
29671  else goto __pyx_L5_argtuple_error;
29672  CYTHON_FALLTHROUGH;
29673  case 1:
29674  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
29675  else {
29676  __Pyx_RaiseArgtupleInvalid("LinearElasticity_3D_Evaluate", 1, 18, 18, 1); __PYX_ERR(0, 6031, __pyx_L3_error)
29677  }
29678  CYTHON_FALLTHROUGH;
29679  case 2:
29680  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
29681  else {
29682  __Pyx_RaiseArgtupleInvalid("LinearElasticity_3D_Evaluate", 1, 18, 18, 2); __PYX_ERR(0, 6031, __pyx_L3_error)
29683  }
29684  CYTHON_FALLTHROUGH;
29685  case 3:
29686  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
29687  else {
29688  __Pyx_RaiseArgtupleInvalid("LinearElasticity_3D_Evaluate", 1, 18, 18, 3); __PYX_ERR(0, 6031, __pyx_L3_error)
29689  }
29690  CYTHON_FALLTHROUGH;
29691  case 4:
29692  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
29693  else {
29694  __Pyx_RaiseArgtupleInvalid("LinearElasticity_3D_Evaluate", 1, 18, 18, 4); __PYX_ERR(0, 6031, __pyx_L3_error)
29695  }
29696  CYTHON_FALLTHROUGH;
29697  case 5:
29698  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
29699  else {
29700  __Pyx_RaiseArgtupleInvalid("LinearElasticity_3D_Evaluate", 1, 18, 18, 5); __PYX_ERR(0, 6031, __pyx_L3_error)
29701  }
29702  CYTHON_FALLTHROUGH;
29703  case 6:
29704  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uu_diff_ten)) != 0)) kw_args--;
29705  else {
29706  __Pyx_RaiseArgtupleInvalid("LinearElasticity_3D_Evaluate", 1, 18, 18, 6); __PYX_ERR(0, 6031, __pyx_L3_error)
29707  }
29708  CYTHON_FALLTHROUGH;
29709  case 7:
29710  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv_diff_ten)) != 0)) kw_args--;
29711  else {
29712  __Pyx_RaiseArgtupleInvalid("LinearElasticity_3D_Evaluate", 1, 18, 18, 7); __PYX_ERR(0, 6031, __pyx_L3_error)
29713  }
29714  CYTHON_FALLTHROUGH;
29715  case 8:
29716  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uw_diff_ten)) != 0)) kw_args--;
29717  else {
29718  __Pyx_RaiseArgtupleInvalid("LinearElasticity_3D_Evaluate", 1, 18, 18, 8); __PYX_ERR(0, 6031, __pyx_L3_error)
29719  }
29720  CYTHON_FALLTHROUGH;
29721  case 9:
29722  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vu_diff_ten)) != 0)) kw_args--;
29723  else {
29724  __Pyx_RaiseArgtupleInvalid("LinearElasticity_3D_Evaluate", 1, 18, 18, 9); __PYX_ERR(0, 6031, __pyx_L3_error)
29725  }
29726  CYTHON_FALLTHROUGH;
29727  case 10:
29728  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vv_diff_ten)) != 0)) kw_args--;
29729  else {
29730  __Pyx_RaiseArgtupleInvalid("LinearElasticity_3D_Evaluate", 1, 18, 18, 10); __PYX_ERR(0, 6031, __pyx_L3_error)
29731  }
29732  CYTHON_FALLTHROUGH;
29733  case 11:
29734  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vw_diff_ten)) != 0)) kw_args--;
29735  else {
29736  __Pyx_RaiseArgtupleInvalid("LinearElasticity_3D_Evaluate", 1, 18, 18, 11); __PYX_ERR(0, 6031, __pyx_L3_error)
29737  }
29738  CYTHON_FALLTHROUGH;
29739  case 12:
29740  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_wu_diff_ten)) != 0)) kw_args--;
29741  else {
29742  __Pyx_RaiseArgtupleInvalid("LinearElasticity_3D_Evaluate", 1, 18, 18, 12); __PYX_ERR(0, 6031, __pyx_L3_error)
29743  }
29744  CYTHON_FALLTHROUGH;
29745  case 13:
29746  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_wv_diff_ten)) != 0)) kw_args--;
29747  else {
29748  __Pyx_RaiseArgtupleInvalid("LinearElasticity_3D_Evaluate", 1, 18, 18, 13); __PYX_ERR(0, 6031, __pyx_L3_error)
29749  }
29750  CYTHON_FALLTHROUGH;
29751  case 14:
29752  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ww_diff_ten)) != 0)) kw_args--;
29753  else {
29754  __Pyx_RaiseArgtupleInvalid("LinearElasticity_3D_Evaluate", 1, 18, 18, 14); __PYX_ERR(0, 6031, __pyx_L3_error)
29755  }
29756  CYTHON_FALLTHROUGH;
29757  case 15:
29758  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_force)) != 0)) kw_args--;
29759  else {
29760  __Pyx_RaiseArgtupleInvalid("LinearElasticity_3D_Evaluate", 1, 18, 18, 15); __PYX_ERR(0, 6031, __pyx_L3_error)
29761  }
29762  CYTHON_FALLTHROUGH;
29763  case 16:
29764  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_force)) != 0)) kw_args--;
29765  else {
29766  __Pyx_RaiseArgtupleInvalid("LinearElasticity_3D_Evaluate", 1, 18, 18, 16); __PYX_ERR(0, 6031, __pyx_L3_error)
29767  }
29768  CYTHON_FALLTHROUGH;
29769  case 17:
29770  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_force)) != 0)) kw_args--;
29771  else {
29772  __Pyx_RaiseArgtupleInvalid("LinearElasticity_3D_Evaluate", 1, 18, 18, 17); __PYX_ERR(0, 6031, __pyx_L3_error)
29773  }
29774  }
29775  if (unlikely(kw_args > 0)) {
29776  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "LinearElasticity_3D_Evaluate") < 0)) __PYX_ERR(0, 6031, __pyx_L3_error)
29777  }
29778  } else if (PyTuple_GET_SIZE(__pyx_args) != 18) {
29779  goto __pyx_L5_argtuple_error;
29780  } else {
29781  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29782  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29783  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29784  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29785  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29786  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
29787  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
29788  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
29789  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
29790  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
29791  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
29792  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
29793  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
29794  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
29795  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
29796  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
29797  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
29798  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
29799  }
29800  __pyx_v_E = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_E == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6031, __pyx_L3_error)
29801  __pyx_v_nu = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_nu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6032, __pyx_L3_error)
29802  __pyx_v_g = ((PyArrayObject *)values[2]);
29803  __pyx_v_u = ((PyArrayObject *)values[3]);
29804  __pyx_v_v = ((PyArrayObject *)values[4]);
29805  __pyx_v_w = ((PyArrayObject *)values[5]);
29806  __pyx_v_uu_diff_ten = ((PyArrayObject *)values[6]);
29807  __pyx_v_uv_diff_ten = ((PyArrayObject *)values[7]);
29808  __pyx_v_uw_diff_ten = ((PyArrayObject *)values[8]);
29809  __pyx_v_vu_diff_ten = ((PyArrayObject *)values[9]);
29810  __pyx_v_vv_diff_ten = ((PyArrayObject *)values[10]);
29811  __pyx_v_vw_diff_ten = ((PyArrayObject *)values[11]);
29812  __pyx_v_wu_diff_ten = ((PyArrayObject *)values[12]);
29813  __pyx_v_wv_diff_ten = ((PyArrayObject *)values[13]);
29814  __pyx_v_ww_diff_ten = ((PyArrayObject *)values[14]);
29815  __pyx_v_u_force = ((PyArrayObject *)values[15]);
29816  __pyx_v_v_force = ((PyArrayObject *)values[16]);
29817  __pyx_v_w_force = ((PyArrayObject *)values[17]);
29818  }
29819  goto __pyx_L4_argument_unpacking_done;
29820  __pyx_L5_argtuple_error:;
29821  __Pyx_RaiseArgtupleInvalid("LinearElasticity_3D_Evaluate", 1, 18, 18, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6031, __pyx_L3_error)
29822  __pyx_L3_error:;
29823  __Pyx_AddTraceback("ctransportCoefficients.LinearElasticity_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
29824  __Pyx_RefNannyFinishContext();
29825  return NULL;
29826  __pyx_L4_argument_unpacking_done:;
29827  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 6033, __pyx_L1_error)
29828  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 6034, __pyx_L1_error)
29829  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 6035, __pyx_L1_error)
29830  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1, "w", 0))) __PYX_ERR(0, 6036, __pyx_L1_error)
29831  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "uu_diff_ten", 0))) __PYX_ERR(0, 6037, __pyx_L1_error)
29832  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "uv_diff_ten", 0))) __PYX_ERR(0, 6038, __pyx_L1_error)
29833  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uw_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "uw_diff_ten", 0))) __PYX_ERR(0, 6039, __pyx_L1_error)
29834  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "vu_diff_ten", 0))) __PYX_ERR(0, 6040, __pyx_L1_error)
29835  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "vv_diff_ten", 0))) __PYX_ERR(0, 6041, __pyx_L1_error)
29836  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vw_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "vw_diff_ten", 0))) __PYX_ERR(0, 6042, __pyx_L1_error)
29837  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_wu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "wu_diff_ten", 0))) __PYX_ERR(0, 6043, __pyx_L1_error)
29838  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_wv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "wv_diff_ten", 0))) __PYX_ERR(0, 6044, __pyx_L1_error)
29839  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ww_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "ww_diff_ten", 0))) __PYX_ERR(0, 6045, __pyx_L1_error)
29840  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_force), __pyx_ptype_5numpy_ndarray, 1, "u_force", 0))) __PYX_ERR(0, 6046, __pyx_L1_error)
29841  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v_force), __pyx_ptype_5numpy_ndarray, 1, "v_force", 0))) __PYX_ERR(0, 6047, __pyx_L1_error)
29842  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_force), __pyx_ptype_5numpy_ndarray, 1, "w_force", 0))) __PYX_ERR(0, 6048, __pyx_L1_error)
29843  __pyx_r = __pyx_pf_22ctransportCoefficients_152LinearElasticity_3D_Evaluate(__pyx_self, __pyx_v_E, __pyx_v_nu, __pyx_v_g, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_uu_diff_ten, __pyx_v_uv_diff_ten, __pyx_v_uw_diff_ten, __pyx_v_vu_diff_ten, __pyx_v_vv_diff_ten, __pyx_v_vw_diff_ten, __pyx_v_wu_diff_ten, __pyx_v_wv_diff_ten, __pyx_v_ww_diff_ten, __pyx_v_u_force, __pyx_v_v_force, __pyx_v_w_force);
29844 
29845  /* function exit code */
29846  goto __pyx_L0;
29847  __pyx_L1_error:;
29848  __pyx_r = NULL;
29849  __pyx_L0:;
29850  __Pyx_RefNannyFinishContext();
29851  return __pyx_r;
29852 }
29853 
29854 static PyObject *__pyx_pf_22ctransportCoefficients_152LinearElasticity_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_E, double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_uu_diff_ten, PyArrayObject *__pyx_v_uv_diff_ten, PyArrayObject *__pyx_v_uw_diff_ten, PyArrayObject *__pyx_v_vu_diff_ten, PyArrayObject *__pyx_v_vv_diff_ten, PyArrayObject *__pyx_v_vw_diff_ten, PyArrayObject *__pyx_v_wu_diff_ten, PyArrayObject *__pyx_v_wv_diff_ten, PyArrayObject *__pyx_v_ww_diff_ten, PyArrayObject *__pyx_v_u_force, PyArrayObject *__pyx_v_v_force, PyArrayObject *__pyx_v_w_force) {
29855  PyObject *__pyx_r = NULL;
29856  __Pyx_RefNannyDeclarations
29857  PyObject *__pyx_t_1 = NULL;
29858  int __pyx_t_2;
29859  int __pyx_lineno = 0;
29860  const char *__pyx_filename = NULL;
29861  int __pyx_clineno = 0;
29862  __Pyx_RefNannySetupContext("LinearElasticity_3D_Evaluate", 0);
29863 
29864  /* "ctransportCoefficients.pyx":6049
29865  * np.ndarray v_force,
29866  * np.ndarray w_force):
29867  * cLinearElasticity_3D_Evaluate(u.size, # <<<<<<<<<<<<<<
29868  * E,
29869  * nu,
29870  */
29871  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6049, __pyx_L1_error)
29872  __Pyx_GOTREF(__pyx_t_1);
29873  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6049, __pyx_L1_error)
29874  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
29875 
29876  /* "ctransportCoefficients.pyx":6067
29877  * <double*> u_force.data,
29878  * <double*> v_force.data,
29879  * <double*> w_force.data) # <<<<<<<<<<<<<<
29880  * def MovingMesh_2D_Evaluate(const double E0,
29881  * const double nu,
29882  */
29883  LinearElasticity_3D_Evaluate(__pyx_t_2, __pyx_v_E, __pyx_v_nu, ((double *)__pyx_v_g->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_w->data), ((double *)__pyx_v_uu_diff_ten->data), ((double *)__pyx_v_uv_diff_ten->data), ((double *)__pyx_v_uw_diff_ten->data), ((double *)__pyx_v_vu_diff_ten->data), ((double *)__pyx_v_vv_diff_ten->data), ((double *)__pyx_v_vw_diff_ten->data), ((double *)__pyx_v_wu_diff_ten->data), ((double *)__pyx_v_wv_diff_ten->data), ((double *)__pyx_v_ww_diff_ten->data), ((double *)__pyx_v_u_force->data), ((double *)__pyx_v_v_force->data), ((double *)__pyx_v_w_force->data));
29884 
29885  /* "ctransportCoefficients.pyx":6031
29886  * <double*> u_force.data,
29887  * <double*> v_force.data)
29888  * def LinearElasticity_3D_Evaluate(const double E, # <<<<<<<<<<<<<<
29889  * const double nu,
29890  * np.ndarray g,
29891  */
29892 
29893  /* function exit code */
29894  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
29895  goto __pyx_L0;
29896  __pyx_L1_error:;
29897  __Pyx_XDECREF(__pyx_t_1);
29898  __Pyx_AddTraceback("ctransportCoefficients.LinearElasticity_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
29899  __pyx_r = NULL;
29900  __pyx_L0:;
29901  __Pyx_XGIVEREF(__pyx_r);
29902  __Pyx_RefNannyFinishContext();
29903  return __pyx_r;
29904 }
29905 
29906 /* "ctransportCoefficients.pyx":6068
29907  * <double*> v_force.data,
29908  * <double*> w_force.data)
29909  * def MovingMesh_2D_Evaluate(const double E0, # <<<<<<<<<<<<<<
29910  * const double nu,
29911  * np.ndarray g,
29912  */
29913 
29914 /* Python wrapper */
29915 static PyObject *__pyx_pw_22ctransportCoefficients_155MovingMesh_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
29916 static PyMethodDef __pyx_mdef_22ctransportCoefficients_155MovingMesh_2D_Evaluate = {"MovingMesh_2D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_155MovingMesh_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
29917 static PyObject *__pyx_pw_22ctransportCoefficients_155MovingMesh_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
29918  double __pyx_v_E0;
29919  double __pyx_v_nu;
29920  PyArrayObject *__pyx_v_g = 0;
29921  PyArrayObject *__pyx_v_det_J = 0;
29922  PyArrayObject *__pyx_v_u = 0;
29923  PyArrayObject *__pyx_v_v = 0;
29924  PyArrayObject *__pyx_v_uu_diff_ten = 0;
29925  PyArrayObject *__pyx_v_uv_diff_ten = 0;
29926  PyArrayObject *__pyx_v_vu_diff_ten = 0;
29927  PyArrayObject *__pyx_v_vv_diff_ten = 0;
29928  PyArrayObject *__pyx_v_u_force = 0;
29929  PyArrayObject *__pyx_v_v_force = 0;
29930  int __pyx_lineno = 0;
29931  const char *__pyx_filename = NULL;
29932  int __pyx_clineno = 0;
29933  PyObject *__pyx_r = 0;
29934  __Pyx_RefNannyDeclarations
29935  __Pyx_RefNannySetupContext("MovingMesh_2D_Evaluate (wrapper)", 0);
29936  {
29937  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_E0,&__pyx_n_s_nu,&__pyx_n_s_g,&__pyx_n_s_det_J,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_uu_diff_ten,&__pyx_n_s_uv_diff_ten,&__pyx_n_s_vu_diff_ten,&__pyx_n_s_vv_diff_ten,&__pyx_n_s_u_force,&__pyx_n_s_v_force,0};
29938  PyObject* values[12] = {0,0,0,0,0,0,0,0,0,0,0,0};
29939  if (unlikely(__pyx_kwds)) {
29940  Py_ssize_t kw_args;
29941  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
29942  switch (pos_args) {
29943  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
29944  CYTHON_FALLTHROUGH;
29945  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
29946  CYTHON_FALLTHROUGH;
29947  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
29948  CYTHON_FALLTHROUGH;
29949  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
29950  CYTHON_FALLTHROUGH;
29951  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
29952  CYTHON_FALLTHROUGH;
29953  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
29954  CYTHON_FALLTHROUGH;
29955  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
29956  CYTHON_FALLTHROUGH;
29957  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29958  CYTHON_FALLTHROUGH;
29959  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29960  CYTHON_FALLTHROUGH;
29961  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29962  CYTHON_FALLTHROUGH;
29963  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29964  CYTHON_FALLTHROUGH;
29965  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29966  CYTHON_FALLTHROUGH;
29967  case 0: break;
29968  default: goto __pyx_L5_argtuple_error;
29969  }
29970  kw_args = PyDict_Size(__pyx_kwds);
29971  switch (pos_args) {
29972  case 0:
29973  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_E0)) != 0)) kw_args--;
29974  else goto __pyx_L5_argtuple_error;
29975  CYTHON_FALLTHROUGH;
29976  case 1:
29977  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
29978  else {
29979  __Pyx_RaiseArgtupleInvalid("MovingMesh_2D_Evaluate", 1, 12, 12, 1); __PYX_ERR(0, 6068, __pyx_L3_error)
29980  }
29981  CYTHON_FALLTHROUGH;
29982  case 2:
29983  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
29984  else {
29985  __Pyx_RaiseArgtupleInvalid("MovingMesh_2D_Evaluate", 1, 12, 12, 2); __PYX_ERR(0, 6068, __pyx_L3_error)
29986  }
29987  CYTHON_FALLTHROUGH;
29988  case 3:
29989  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_det_J)) != 0)) kw_args--;
29990  else {
29991  __Pyx_RaiseArgtupleInvalid("MovingMesh_2D_Evaluate", 1, 12, 12, 3); __PYX_ERR(0, 6068, __pyx_L3_error)
29992  }
29993  CYTHON_FALLTHROUGH;
29994  case 4:
29995  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
29996  else {
29997  __Pyx_RaiseArgtupleInvalid("MovingMesh_2D_Evaluate", 1, 12, 12, 4); __PYX_ERR(0, 6068, __pyx_L3_error)
29998  }
29999  CYTHON_FALLTHROUGH;
30000  case 5:
30001  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
30002  else {
30003  __Pyx_RaiseArgtupleInvalid("MovingMesh_2D_Evaluate", 1, 12, 12, 5); __PYX_ERR(0, 6068, __pyx_L3_error)
30004  }
30005  CYTHON_FALLTHROUGH;
30006  case 6:
30007  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uu_diff_ten)) != 0)) kw_args--;
30008  else {
30009  __Pyx_RaiseArgtupleInvalid("MovingMesh_2D_Evaluate", 1, 12, 12, 6); __PYX_ERR(0, 6068, __pyx_L3_error)
30010  }
30011  CYTHON_FALLTHROUGH;
30012  case 7:
30013  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv_diff_ten)) != 0)) kw_args--;
30014  else {
30015  __Pyx_RaiseArgtupleInvalid("MovingMesh_2D_Evaluate", 1, 12, 12, 7); __PYX_ERR(0, 6068, __pyx_L3_error)
30016  }
30017  CYTHON_FALLTHROUGH;
30018  case 8:
30019  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vu_diff_ten)) != 0)) kw_args--;
30020  else {
30021  __Pyx_RaiseArgtupleInvalid("MovingMesh_2D_Evaluate", 1, 12, 12, 8); __PYX_ERR(0, 6068, __pyx_L3_error)
30022  }
30023  CYTHON_FALLTHROUGH;
30024  case 9:
30025  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vv_diff_ten)) != 0)) kw_args--;
30026  else {
30027  __Pyx_RaiseArgtupleInvalid("MovingMesh_2D_Evaluate", 1, 12, 12, 9); __PYX_ERR(0, 6068, __pyx_L3_error)
30028  }
30029  CYTHON_FALLTHROUGH;
30030  case 10:
30031  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_force)) != 0)) kw_args--;
30032  else {
30033  __Pyx_RaiseArgtupleInvalid("MovingMesh_2D_Evaluate", 1, 12, 12, 10); __PYX_ERR(0, 6068, __pyx_L3_error)
30034  }
30035  CYTHON_FALLTHROUGH;
30036  case 11:
30037  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_force)) != 0)) kw_args--;
30038  else {
30039  __Pyx_RaiseArgtupleInvalid("MovingMesh_2D_Evaluate", 1, 12, 12, 11); __PYX_ERR(0, 6068, __pyx_L3_error)
30040  }
30041  }
30042  if (unlikely(kw_args > 0)) {
30043  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "MovingMesh_2D_Evaluate") < 0)) __PYX_ERR(0, 6068, __pyx_L3_error)
30044  }
30045  } else if (PyTuple_GET_SIZE(__pyx_args) != 12) {
30046  goto __pyx_L5_argtuple_error;
30047  } else {
30048  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30049  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30050  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30051  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30052  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30053  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30054  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30055  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
30056  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
30057  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
30058  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
30059  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
30060  }
30061  __pyx_v_E0 = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_E0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6068, __pyx_L3_error)
30062  __pyx_v_nu = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_nu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6069, __pyx_L3_error)
30063  __pyx_v_g = ((PyArrayObject *)values[2]);
30064  __pyx_v_det_J = ((PyArrayObject *)values[3]);
30065  __pyx_v_u = ((PyArrayObject *)values[4]);
30066  __pyx_v_v = ((PyArrayObject *)values[5]);
30067  __pyx_v_uu_diff_ten = ((PyArrayObject *)values[6]);
30068  __pyx_v_uv_diff_ten = ((PyArrayObject *)values[7]);
30069  __pyx_v_vu_diff_ten = ((PyArrayObject *)values[8]);
30070  __pyx_v_vv_diff_ten = ((PyArrayObject *)values[9]);
30071  __pyx_v_u_force = ((PyArrayObject *)values[10]);
30072  __pyx_v_v_force = ((PyArrayObject *)values[11]);
30073  }
30074  goto __pyx_L4_argument_unpacking_done;
30075  __pyx_L5_argtuple_error:;
30076  __Pyx_RaiseArgtupleInvalid("MovingMesh_2D_Evaluate", 1, 12, 12, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6068, __pyx_L3_error)
30077  __pyx_L3_error:;
30078  __Pyx_AddTraceback("ctransportCoefficients.MovingMesh_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
30079  __Pyx_RefNannyFinishContext();
30080  return NULL;
30081  __pyx_L4_argument_unpacking_done:;
30082  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 6070, __pyx_L1_error)
30083  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_det_J), __pyx_ptype_5numpy_ndarray, 1, "det_J", 0))) __PYX_ERR(0, 6071, __pyx_L1_error)
30084  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 6072, __pyx_L1_error)
30085  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 6073, __pyx_L1_error)
30086  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "uu_diff_ten", 0))) __PYX_ERR(0, 6074, __pyx_L1_error)
30087  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "uv_diff_ten", 0))) __PYX_ERR(0, 6075, __pyx_L1_error)
30088  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "vu_diff_ten", 0))) __PYX_ERR(0, 6076, __pyx_L1_error)
30089  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "vv_diff_ten", 0))) __PYX_ERR(0, 6077, __pyx_L1_error)
30090  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_force), __pyx_ptype_5numpy_ndarray, 1, "u_force", 0))) __PYX_ERR(0, 6078, __pyx_L1_error)
30091  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v_force), __pyx_ptype_5numpy_ndarray, 1, "v_force", 0))) __PYX_ERR(0, 6079, __pyx_L1_error)
30092  __pyx_r = __pyx_pf_22ctransportCoefficients_154MovingMesh_2D_Evaluate(__pyx_self, __pyx_v_E0, __pyx_v_nu, __pyx_v_g, __pyx_v_det_J, __pyx_v_u, __pyx_v_v, __pyx_v_uu_diff_ten, __pyx_v_uv_diff_ten, __pyx_v_vu_diff_ten, __pyx_v_vv_diff_ten, __pyx_v_u_force, __pyx_v_v_force);
30093 
30094  /* function exit code */
30095  goto __pyx_L0;
30096  __pyx_L1_error:;
30097  __pyx_r = NULL;
30098  __pyx_L0:;
30099  __Pyx_RefNannyFinishContext();
30100  return __pyx_r;
30101 }
30102 
30103 static PyObject *__pyx_pf_22ctransportCoefficients_154MovingMesh_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_E0, double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_det_J, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_uu_diff_ten, PyArrayObject *__pyx_v_uv_diff_ten, PyArrayObject *__pyx_v_vu_diff_ten, PyArrayObject *__pyx_v_vv_diff_ten, PyArrayObject *__pyx_v_u_force, PyArrayObject *__pyx_v_v_force) {
30104  PyObject *__pyx_r = NULL;
30105  __Pyx_RefNannyDeclarations
30106  PyObject *__pyx_t_1 = NULL;
30107  int __pyx_t_2;
30108  int __pyx_lineno = 0;
30109  const char *__pyx_filename = NULL;
30110  int __pyx_clineno = 0;
30111  __Pyx_RefNannySetupContext("MovingMesh_2D_Evaluate", 0);
30112 
30113  /* "ctransportCoefficients.pyx":6080
30114  * np.ndarray u_force,
30115  * np.ndarray v_force):
30116  * cMovingMesh_2D_Evaluate(u.size, # <<<<<<<<<<<<<<
30117  * E0,
30118  * nu,
30119  */
30120  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6080, __pyx_L1_error)
30121  __Pyx_GOTREF(__pyx_t_1);
30122  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6080, __pyx_L1_error)
30123  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
30124 
30125  /* "ctransportCoefficients.pyx":6092
30126  * <double*> vv_diff_ten.data,
30127  * <double*> u_force.data,
30128  * <double*> v_force.data) # <<<<<<<<<<<<<<
30129  * def MovingMesh_3D_Evaluate(const double E0,
30130  * const double nu,
30131  */
30132  MovingMesh_2D_Evaluate(__pyx_t_2, __pyx_v_E0, __pyx_v_nu, ((double *)__pyx_v_g->data), ((double *)__pyx_v_det_J->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_uu_diff_ten->data), ((double *)__pyx_v_uv_diff_ten->data), ((double *)__pyx_v_vu_diff_ten->data), ((double *)__pyx_v_vv_diff_ten->data), ((double *)__pyx_v_u_force->data), ((double *)__pyx_v_v_force->data));
30133 
30134  /* "ctransportCoefficients.pyx":6068
30135  * <double*> v_force.data,
30136  * <double*> w_force.data)
30137  * def MovingMesh_2D_Evaluate(const double E0, # <<<<<<<<<<<<<<
30138  * const double nu,
30139  * np.ndarray g,
30140  */
30141 
30142  /* function exit code */
30143  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
30144  goto __pyx_L0;
30145  __pyx_L1_error:;
30146  __Pyx_XDECREF(__pyx_t_1);
30147  __Pyx_AddTraceback("ctransportCoefficients.MovingMesh_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
30148  __pyx_r = NULL;
30149  __pyx_L0:;
30150  __Pyx_XGIVEREF(__pyx_r);
30151  __Pyx_RefNannyFinishContext();
30152  return __pyx_r;
30153 }
30154 
30155 /* "ctransportCoefficients.pyx":6093
30156  * <double*> u_force.data,
30157  * <double*> v_force.data)
30158  * def MovingMesh_3D_Evaluate(const double E0, # <<<<<<<<<<<<<<
30159  * const double nu,
30160  * np.ndarray g,
30161  */
30162 
30163 /* Python wrapper */
30164 static PyObject *__pyx_pw_22ctransportCoefficients_157MovingMesh_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
30165 static PyMethodDef __pyx_mdef_22ctransportCoefficients_157MovingMesh_3D_Evaluate = {"MovingMesh_3D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_157MovingMesh_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
30166 static PyObject *__pyx_pw_22ctransportCoefficients_157MovingMesh_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
30167  double __pyx_v_E0;
30168  double __pyx_v_nu;
30169  PyArrayObject *__pyx_v_g = 0;
30170  PyArrayObject *__pyx_v_det_J = 0;
30171  PyArrayObject *__pyx_v_u = 0;
30172  PyArrayObject *__pyx_v_v = 0;
30173  PyArrayObject *__pyx_v_w = 0;
30174  PyArrayObject *__pyx_v_uu_diff_ten = 0;
30175  PyArrayObject *__pyx_v_uv_diff_ten = 0;
30176  PyArrayObject *__pyx_v_uw_diff_ten = 0;
30177  PyArrayObject *__pyx_v_vu_diff_ten = 0;
30178  PyArrayObject *__pyx_v_vv_diff_ten = 0;
30179  PyArrayObject *__pyx_v_vw_diff_ten = 0;
30180  PyArrayObject *__pyx_v_wu_diff_ten = 0;
30181  PyArrayObject *__pyx_v_wv_diff_ten = 0;
30182  PyArrayObject *__pyx_v_ww_diff_ten = 0;
30183  PyArrayObject *__pyx_v_u_force = 0;
30184  PyArrayObject *__pyx_v_v_force = 0;
30185  PyArrayObject *__pyx_v_w_force = 0;
30186  int __pyx_lineno = 0;
30187  const char *__pyx_filename = NULL;
30188  int __pyx_clineno = 0;
30189  PyObject *__pyx_r = 0;
30190  __Pyx_RefNannyDeclarations
30191  __Pyx_RefNannySetupContext("MovingMesh_3D_Evaluate (wrapper)", 0);
30192  {
30193  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_E0,&__pyx_n_s_nu,&__pyx_n_s_g,&__pyx_n_s_det_J,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_uu_diff_ten,&__pyx_n_s_uv_diff_ten,&__pyx_n_s_uw_diff_ten,&__pyx_n_s_vu_diff_ten,&__pyx_n_s_vv_diff_ten,&__pyx_n_s_vw_diff_ten,&__pyx_n_s_wu_diff_ten,&__pyx_n_s_wv_diff_ten,&__pyx_n_s_ww_diff_ten,&__pyx_n_s_u_force,&__pyx_n_s_v_force,&__pyx_n_s_w_force,0};
30194  PyObject* values[19] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
30195  if (unlikely(__pyx_kwds)) {
30196  Py_ssize_t kw_args;
30197  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
30198  switch (pos_args) {
30199  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
30200  CYTHON_FALLTHROUGH;
30201  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
30202  CYTHON_FALLTHROUGH;
30203  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
30204  CYTHON_FALLTHROUGH;
30205  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
30206  CYTHON_FALLTHROUGH;
30207  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
30208  CYTHON_FALLTHROUGH;
30209  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
30210  CYTHON_FALLTHROUGH;
30211  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
30212  CYTHON_FALLTHROUGH;
30213  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
30214  CYTHON_FALLTHROUGH;
30215  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
30216  CYTHON_FALLTHROUGH;
30217  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
30218  CYTHON_FALLTHROUGH;
30219  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
30220  CYTHON_FALLTHROUGH;
30221  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
30222  CYTHON_FALLTHROUGH;
30223  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30224  CYTHON_FALLTHROUGH;
30225  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30226  CYTHON_FALLTHROUGH;
30227  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30228  CYTHON_FALLTHROUGH;
30229  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30230  CYTHON_FALLTHROUGH;
30231  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30232  CYTHON_FALLTHROUGH;
30233  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30234  CYTHON_FALLTHROUGH;
30235  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30236  CYTHON_FALLTHROUGH;
30237  case 0: break;
30238  default: goto __pyx_L5_argtuple_error;
30239  }
30240  kw_args = PyDict_Size(__pyx_kwds);
30241  switch (pos_args) {
30242  case 0:
30243  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_E0)) != 0)) kw_args--;
30244  else goto __pyx_L5_argtuple_error;
30245  CYTHON_FALLTHROUGH;
30246  case 1:
30247  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
30248  else {
30249  __Pyx_RaiseArgtupleInvalid("MovingMesh_3D_Evaluate", 1, 19, 19, 1); __PYX_ERR(0, 6093, __pyx_L3_error)
30250  }
30251  CYTHON_FALLTHROUGH;
30252  case 2:
30253  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
30254  else {
30255  __Pyx_RaiseArgtupleInvalid("MovingMesh_3D_Evaluate", 1, 19, 19, 2); __PYX_ERR(0, 6093, __pyx_L3_error)
30256  }
30257  CYTHON_FALLTHROUGH;
30258  case 3:
30259  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_det_J)) != 0)) kw_args--;
30260  else {
30261  __Pyx_RaiseArgtupleInvalid("MovingMesh_3D_Evaluate", 1, 19, 19, 3); __PYX_ERR(0, 6093, __pyx_L3_error)
30262  }
30263  CYTHON_FALLTHROUGH;
30264  case 4:
30265  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
30266  else {
30267  __Pyx_RaiseArgtupleInvalid("MovingMesh_3D_Evaluate", 1, 19, 19, 4); __PYX_ERR(0, 6093, __pyx_L3_error)
30268  }
30269  CYTHON_FALLTHROUGH;
30270  case 5:
30271  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
30272  else {
30273  __Pyx_RaiseArgtupleInvalid("MovingMesh_3D_Evaluate", 1, 19, 19, 5); __PYX_ERR(0, 6093, __pyx_L3_error)
30274  }
30275  CYTHON_FALLTHROUGH;
30276  case 6:
30277  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
30278  else {
30279  __Pyx_RaiseArgtupleInvalid("MovingMesh_3D_Evaluate", 1, 19, 19, 6); __PYX_ERR(0, 6093, __pyx_L3_error)
30280  }
30281  CYTHON_FALLTHROUGH;
30282  case 7:
30283  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uu_diff_ten)) != 0)) kw_args--;
30284  else {
30285  __Pyx_RaiseArgtupleInvalid("MovingMesh_3D_Evaluate", 1, 19, 19, 7); __PYX_ERR(0, 6093, __pyx_L3_error)
30286  }
30287  CYTHON_FALLTHROUGH;
30288  case 8:
30289  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv_diff_ten)) != 0)) kw_args--;
30290  else {
30291  __Pyx_RaiseArgtupleInvalid("MovingMesh_3D_Evaluate", 1, 19, 19, 8); __PYX_ERR(0, 6093, __pyx_L3_error)
30292  }
30293  CYTHON_FALLTHROUGH;
30294  case 9:
30295  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uw_diff_ten)) != 0)) kw_args--;
30296  else {
30297  __Pyx_RaiseArgtupleInvalid("MovingMesh_3D_Evaluate", 1, 19, 19, 9); __PYX_ERR(0, 6093, __pyx_L3_error)
30298  }
30299  CYTHON_FALLTHROUGH;
30300  case 10:
30301  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vu_diff_ten)) != 0)) kw_args--;
30302  else {
30303  __Pyx_RaiseArgtupleInvalid("MovingMesh_3D_Evaluate", 1, 19, 19, 10); __PYX_ERR(0, 6093, __pyx_L3_error)
30304  }
30305  CYTHON_FALLTHROUGH;
30306  case 11:
30307  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vv_diff_ten)) != 0)) kw_args--;
30308  else {
30309  __Pyx_RaiseArgtupleInvalid("MovingMesh_3D_Evaluate", 1, 19, 19, 11); __PYX_ERR(0, 6093, __pyx_L3_error)
30310  }
30311  CYTHON_FALLTHROUGH;
30312  case 12:
30313  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vw_diff_ten)) != 0)) kw_args--;
30314  else {
30315  __Pyx_RaiseArgtupleInvalid("MovingMesh_3D_Evaluate", 1, 19, 19, 12); __PYX_ERR(0, 6093, __pyx_L3_error)
30316  }
30317  CYTHON_FALLTHROUGH;
30318  case 13:
30319  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_wu_diff_ten)) != 0)) kw_args--;
30320  else {
30321  __Pyx_RaiseArgtupleInvalid("MovingMesh_3D_Evaluate", 1, 19, 19, 13); __PYX_ERR(0, 6093, __pyx_L3_error)
30322  }
30323  CYTHON_FALLTHROUGH;
30324  case 14:
30325  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_wv_diff_ten)) != 0)) kw_args--;
30326  else {
30327  __Pyx_RaiseArgtupleInvalid("MovingMesh_3D_Evaluate", 1, 19, 19, 14); __PYX_ERR(0, 6093, __pyx_L3_error)
30328  }
30329  CYTHON_FALLTHROUGH;
30330  case 15:
30331  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ww_diff_ten)) != 0)) kw_args--;
30332  else {
30333  __Pyx_RaiseArgtupleInvalid("MovingMesh_3D_Evaluate", 1, 19, 19, 15); __PYX_ERR(0, 6093, __pyx_L3_error)
30334  }
30335  CYTHON_FALLTHROUGH;
30336  case 16:
30337  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_force)) != 0)) kw_args--;
30338  else {
30339  __Pyx_RaiseArgtupleInvalid("MovingMesh_3D_Evaluate", 1, 19, 19, 16); __PYX_ERR(0, 6093, __pyx_L3_error)
30340  }
30341  CYTHON_FALLTHROUGH;
30342  case 17:
30343  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_force)) != 0)) kw_args--;
30344  else {
30345  __Pyx_RaiseArgtupleInvalid("MovingMesh_3D_Evaluate", 1, 19, 19, 17); __PYX_ERR(0, 6093, __pyx_L3_error)
30346  }
30347  CYTHON_FALLTHROUGH;
30348  case 18:
30349  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_force)) != 0)) kw_args--;
30350  else {
30351  __Pyx_RaiseArgtupleInvalid("MovingMesh_3D_Evaluate", 1, 19, 19, 18); __PYX_ERR(0, 6093, __pyx_L3_error)
30352  }
30353  }
30354  if (unlikely(kw_args > 0)) {
30355  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "MovingMesh_3D_Evaluate") < 0)) __PYX_ERR(0, 6093, __pyx_L3_error)
30356  }
30357  } else if (PyTuple_GET_SIZE(__pyx_args) != 19) {
30358  goto __pyx_L5_argtuple_error;
30359  } else {
30360  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30361  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30362  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30363  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30364  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30365  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30366  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30367  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
30368  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
30369  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
30370  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
30371  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
30372  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
30373  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
30374  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
30375  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
30376  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
30377  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
30378  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
30379  }
30380  __pyx_v_E0 = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_E0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6093, __pyx_L3_error)
30381  __pyx_v_nu = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_nu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6094, __pyx_L3_error)
30382  __pyx_v_g = ((PyArrayObject *)values[2]);
30383  __pyx_v_det_J = ((PyArrayObject *)values[3]);
30384  __pyx_v_u = ((PyArrayObject *)values[4]);
30385  __pyx_v_v = ((PyArrayObject *)values[5]);
30386  __pyx_v_w = ((PyArrayObject *)values[6]);
30387  __pyx_v_uu_diff_ten = ((PyArrayObject *)values[7]);
30388  __pyx_v_uv_diff_ten = ((PyArrayObject *)values[8]);
30389  __pyx_v_uw_diff_ten = ((PyArrayObject *)values[9]);
30390  __pyx_v_vu_diff_ten = ((PyArrayObject *)values[10]);
30391  __pyx_v_vv_diff_ten = ((PyArrayObject *)values[11]);
30392  __pyx_v_vw_diff_ten = ((PyArrayObject *)values[12]);
30393  __pyx_v_wu_diff_ten = ((PyArrayObject *)values[13]);
30394  __pyx_v_wv_diff_ten = ((PyArrayObject *)values[14]);
30395  __pyx_v_ww_diff_ten = ((PyArrayObject *)values[15]);
30396  __pyx_v_u_force = ((PyArrayObject *)values[16]);
30397  __pyx_v_v_force = ((PyArrayObject *)values[17]);
30398  __pyx_v_w_force = ((PyArrayObject *)values[18]);
30399  }
30400  goto __pyx_L4_argument_unpacking_done;
30401  __pyx_L5_argtuple_error:;
30402  __Pyx_RaiseArgtupleInvalid("MovingMesh_3D_Evaluate", 1, 19, 19, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6093, __pyx_L3_error)
30403  __pyx_L3_error:;
30404  __Pyx_AddTraceback("ctransportCoefficients.MovingMesh_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
30405  __Pyx_RefNannyFinishContext();
30406  return NULL;
30407  __pyx_L4_argument_unpacking_done:;
30408  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 6095, __pyx_L1_error)
30409  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_det_J), __pyx_ptype_5numpy_ndarray, 1, "det_J", 0))) __PYX_ERR(0, 6096, __pyx_L1_error)
30410  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 6097, __pyx_L1_error)
30411  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 6098, __pyx_L1_error)
30412  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1, "w", 0))) __PYX_ERR(0, 6099, __pyx_L1_error)
30413  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "uu_diff_ten", 0))) __PYX_ERR(0, 6100, __pyx_L1_error)
30414  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "uv_diff_ten", 0))) __PYX_ERR(0, 6101, __pyx_L1_error)
30415  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uw_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "uw_diff_ten", 0))) __PYX_ERR(0, 6102, __pyx_L1_error)
30416  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "vu_diff_ten", 0))) __PYX_ERR(0, 6103, __pyx_L1_error)
30417  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "vv_diff_ten", 0))) __PYX_ERR(0, 6104, __pyx_L1_error)
30418  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vw_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "vw_diff_ten", 0))) __PYX_ERR(0, 6105, __pyx_L1_error)
30419  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_wu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "wu_diff_ten", 0))) __PYX_ERR(0, 6106, __pyx_L1_error)
30420  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_wv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "wv_diff_ten", 0))) __PYX_ERR(0, 6107, __pyx_L1_error)
30421  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ww_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "ww_diff_ten", 0))) __PYX_ERR(0, 6108, __pyx_L1_error)
30422  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_force), __pyx_ptype_5numpy_ndarray, 1, "u_force", 0))) __PYX_ERR(0, 6109, __pyx_L1_error)
30423  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v_force), __pyx_ptype_5numpy_ndarray, 1, "v_force", 0))) __PYX_ERR(0, 6110, __pyx_L1_error)
30424  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_force), __pyx_ptype_5numpy_ndarray, 1, "w_force", 0))) __PYX_ERR(0, 6111, __pyx_L1_error)
30425  __pyx_r = __pyx_pf_22ctransportCoefficients_156MovingMesh_3D_Evaluate(__pyx_self, __pyx_v_E0, __pyx_v_nu, __pyx_v_g, __pyx_v_det_J, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_uu_diff_ten, __pyx_v_uv_diff_ten, __pyx_v_uw_diff_ten, __pyx_v_vu_diff_ten, __pyx_v_vv_diff_ten, __pyx_v_vw_diff_ten, __pyx_v_wu_diff_ten, __pyx_v_wv_diff_ten, __pyx_v_ww_diff_ten, __pyx_v_u_force, __pyx_v_v_force, __pyx_v_w_force);
30426 
30427  /* function exit code */
30428  goto __pyx_L0;
30429  __pyx_L1_error:;
30430  __pyx_r = NULL;
30431  __pyx_L0:;
30432  __Pyx_RefNannyFinishContext();
30433  return __pyx_r;
30434 }
30435 
30436 static PyObject *__pyx_pf_22ctransportCoefficients_156MovingMesh_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_E0, double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_det_J, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_uu_diff_ten, PyArrayObject *__pyx_v_uv_diff_ten, PyArrayObject *__pyx_v_uw_diff_ten, PyArrayObject *__pyx_v_vu_diff_ten, PyArrayObject *__pyx_v_vv_diff_ten, PyArrayObject *__pyx_v_vw_diff_ten, PyArrayObject *__pyx_v_wu_diff_ten, PyArrayObject *__pyx_v_wv_diff_ten, PyArrayObject *__pyx_v_ww_diff_ten, PyArrayObject *__pyx_v_u_force, PyArrayObject *__pyx_v_v_force, PyArrayObject *__pyx_v_w_force) {
30437  PyObject *__pyx_r = NULL;
30438  __Pyx_RefNannyDeclarations
30439  PyObject *__pyx_t_1 = NULL;
30440  int __pyx_t_2;
30441  int __pyx_lineno = 0;
30442  const char *__pyx_filename = NULL;
30443  int __pyx_clineno = 0;
30444  __Pyx_RefNannySetupContext("MovingMesh_3D_Evaluate", 0);
30445 
30446  /* "ctransportCoefficients.pyx":6112
30447  * np.ndarray v_force,
30448  * np.ndarray w_force):
30449  * cMovingMesh_3D_Evaluate(u.size, # <<<<<<<<<<<<<<
30450  * E0,
30451  * nu,
30452  */
30453  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6112, __pyx_L1_error)
30454  __Pyx_GOTREF(__pyx_t_1);
30455  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6112, __pyx_L1_error)
30456  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
30457 
30458  /* "ctransportCoefficients.pyx":6131
30459  * <double*> u_force.data,
30460  * <double*> v_force.data,
30461  * <double*> w_force.data) # <<<<<<<<<<<<<<
30462  * def MovingMesh_1D_Evaluate(const double E0,
30463  * const double nu,
30464  */
30465  MovingMesh_3D_Evaluate(__pyx_t_2, __pyx_v_E0, __pyx_v_nu, ((double *)__pyx_v_g->data), ((double *)__pyx_v_det_J->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_w->data), ((double *)__pyx_v_uu_diff_ten->data), ((double *)__pyx_v_uv_diff_ten->data), ((double *)__pyx_v_uw_diff_ten->data), ((double *)__pyx_v_vu_diff_ten->data), ((double *)__pyx_v_vv_diff_ten->data), ((double *)__pyx_v_vw_diff_ten->data), ((double *)__pyx_v_wu_diff_ten->data), ((double *)__pyx_v_wv_diff_ten->data), ((double *)__pyx_v_ww_diff_ten->data), ((double *)__pyx_v_u_force->data), ((double *)__pyx_v_v_force->data), ((double *)__pyx_v_w_force->data));
30466 
30467  /* "ctransportCoefficients.pyx":6093
30468  * <double*> u_force.data,
30469  * <double*> v_force.data)
30470  * def MovingMesh_3D_Evaluate(const double E0, # <<<<<<<<<<<<<<
30471  * const double nu,
30472  * np.ndarray g,
30473  */
30474 
30475  /* function exit code */
30476  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
30477  goto __pyx_L0;
30478  __pyx_L1_error:;
30479  __Pyx_XDECREF(__pyx_t_1);
30480  __Pyx_AddTraceback("ctransportCoefficients.MovingMesh_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
30481  __pyx_r = NULL;
30482  __pyx_L0:;
30483  __Pyx_XGIVEREF(__pyx_r);
30484  __Pyx_RefNannyFinishContext();
30485  return __pyx_r;
30486 }
30487 
30488 /* "ctransportCoefficients.pyx":6132
30489  * <double*> v_force.data,
30490  * <double*> w_force.data)
30491  * def MovingMesh_1D_Evaluate(const double E0, # <<<<<<<<<<<<<<
30492  * const double nu,
30493  * np.ndarray g,
30494  */
30495 
30496 /* Python wrapper */
30497 static PyObject *__pyx_pw_22ctransportCoefficients_159MovingMesh_1D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
30498 static PyMethodDef __pyx_mdef_22ctransportCoefficients_159MovingMesh_1D_Evaluate = {"MovingMesh_1D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_159MovingMesh_1D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
30499 static PyObject *__pyx_pw_22ctransportCoefficients_159MovingMesh_1D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
30500  double __pyx_v_E0;
30501  double __pyx_v_nu;
30502  PyArrayObject *__pyx_v_g = 0;
30503  PyArrayObject *__pyx_v_det_J = 0;
30504  PyArrayObject *__pyx_v_u = 0;
30505  PyArrayObject *__pyx_v_uu_diff_ten = 0;
30506  PyArrayObject *__pyx_v_u_force = 0;
30507  int __pyx_lineno = 0;
30508  const char *__pyx_filename = NULL;
30509  int __pyx_clineno = 0;
30510  PyObject *__pyx_r = 0;
30511  __Pyx_RefNannyDeclarations
30512  __Pyx_RefNannySetupContext("MovingMesh_1D_Evaluate (wrapper)", 0);
30513  {
30514  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_E0,&__pyx_n_s_nu,&__pyx_n_s_g,&__pyx_n_s_det_J,&__pyx_n_s_u,&__pyx_n_s_uu_diff_ten,&__pyx_n_s_u_force,0};
30515  PyObject* values[7] = {0,0,0,0,0,0,0};
30516  if (unlikely(__pyx_kwds)) {
30517  Py_ssize_t kw_args;
30518  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
30519  switch (pos_args) {
30520  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30521  CYTHON_FALLTHROUGH;
30522  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30523  CYTHON_FALLTHROUGH;
30524  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30525  CYTHON_FALLTHROUGH;
30526  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30527  CYTHON_FALLTHROUGH;
30528  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30529  CYTHON_FALLTHROUGH;
30530  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30531  CYTHON_FALLTHROUGH;
30532  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30533  CYTHON_FALLTHROUGH;
30534  case 0: break;
30535  default: goto __pyx_L5_argtuple_error;
30536  }
30537  kw_args = PyDict_Size(__pyx_kwds);
30538  switch (pos_args) {
30539  case 0:
30540  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_E0)) != 0)) kw_args--;
30541  else goto __pyx_L5_argtuple_error;
30542  CYTHON_FALLTHROUGH;
30543  case 1:
30544  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
30545  else {
30546  __Pyx_RaiseArgtupleInvalid("MovingMesh_1D_Evaluate", 1, 7, 7, 1); __PYX_ERR(0, 6132, __pyx_L3_error)
30547  }
30548  CYTHON_FALLTHROUGH;
30549  case 2:
30550  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
30551  else {
30552  __Pyx_RaiseArgtupleInvalid("MovingMesh_1D_Evaluate", 1, 7, 7, 2); __PYX_ERR(0, 6132, __pyx_L3_error)
30553  }
30554  CYTHON_FALLTHROUGH;
30555  case 3:
30556  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_det_J)) != 0)) kw_args--;
30557  else {
30558  __Pyx_RaiseArgtupleInvalid("MovingMesh_1D_Evaluate", 1, 7, 7, 3); __PYX_ERR(0, 6132, __pyx_L3_error)
30559  }
30560  CYTHON_FALLTHROUGH;
30561  case 4:
30562  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
30563  else {
30564  __Pyx_RaiseArgtupleInvalid("MovingMesh_1D_Evaluate", 1, 7, 7, 4); __PYX_ERR(0, 6132, __pyx_L3_error)
30565  }
30566  CYTHON_FALLTHROUGH;
30567  case 5:
30568  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uu_diff_ten)) != 0)) kw_args--;
30569  else {
30570  __Pyx_RaiseArgtupleInvalid("MovingMesh_1D_Evaluate", 1, 7, 7, 5); __PYX_ERR(0, 6132, __pyx_L3_error)
30571  }
30572  CYTHON_FALLTHROUGH;
30573  case 6:
30574  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_force)) != 0)) kw_args--;
30575  else {
30576  __Pyx_RaiseArgtupleInvalid("MovingMesh_1D_Evaluate", 1, 7, 7, 6); __PYX_ERR(0, 6132, __pyx_L3_error)
30577  }
30578  }
30579  if (unlikely(kw_args > 0)) {
30580  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "MovingMesh_1D_Evaluate") < 0)) __PYX_ERR(0, 6132, __pyx_L3_error)
30581  }
30582  } else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
30583  goto __pyx_L5_argtuple_error;
30584  } else {
30585  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30586  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30587  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30588  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30589  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30590  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30591  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30592  }
30593  __pyx_v_E0 = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_E0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6132, __pyx_L3_error)
30594  __pyx_v_nu = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_nu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6133, __pyx_L3_error)
30595  __pyx_v_g = ((PyArrayObject *)values[2]);
30596  __pyx_v_det_J = ((PyArrayObject *)values[3]);
30597  __pyx_v_u = ((PyArrayObject *)values[4]);
30598  __pyx_v_uu_diff_ten = ((PyArrayObject *)values[5]);
30599  __pyx_v_u_force = ((PyArrayObject *)values[6]);
30600  }
30601  goto __pyx_L4_argument_unpacking_done;
30602  __pyx_L5_argtuple_error:;
30603  __Pyx_RaiseArgtupleInvalid("MovingMesh_1D_Evaluate", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6132, __pyx_L3_error)
30604  __pyx_L3_error:;
30605  __Pyx_AddTraceback("ctransportCoefficients.MovingMesh_1D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
30606  __Pyx_RefNannyFinishContext();
30607  return NULL;
30608  __pyx_L4_argument_unpacking_done:;
30609  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 6134, __pyx_L1_error)
30610  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_det_J), __pyx_ptype_5numpy_ndarray, 1, "det_J", 0))) __PYX_ERR(0, 6135, __pyx_L1_error)
30611  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 6136, __pyx_L1_error)
30612  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "uu_diff_ten", 0))) __PYX_ERR(0, 6137, __pyx_L1_error)
30613  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_force), __pyx_ptype_5numpy_ndarray, 1, "u_force", 0))) __PYX_ERR(0, 6138, __pyx_L1_error)
30614  __pyx_r = __pyx_pf_22ctransportCoefficients_158MovingMesh_1D_Evaluate(__pyx_self, __pyx_v_E0, __pyx_v_nu, __pyx_v_g, __pyx_v_det_J, __pyx_v_u, __pyx_v_uu_diff_ten, __pyx_v_u_force);
30615 
30616  /* function exit code */
30617  goto __pyx_L0;
30618  __pyx_L1_error:;
30619  __pyx_r = NULL;
30620  __pyx_L0:;
30621  __Pyx_RefNannyFinishContext();
30622  return __pyx_r;
30623 }
30624 
30625 static PyObject *__pyx_pf_22ctransportCoefficients_158MovingMesh_1D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_E0, double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_det_J, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_uu_diff_ten, PyArrayObject *__pyx_v_u_force) {
30626  PyObject *__pyx_r = NULL;
30627  __Pyx_RefNannyDeclarations
30628  PyObject *__pyx_t_1 = NULL;
30629  int __pyx_t_2;
30630  int __pyx_lineno = 0;
30631  const char *__pyx_filename = NULL;
30632  int __pyx_clineno = 0;
30633  __Pyx_RefNannySetupContext("MovingMesh_1D_Evaluate", 0);
30634 
30635  /* "ctransportCoefficients.pyx":6139
30636  * np.ndarray uu_diff_ten,
30637  * np.ndarray u_force):
30638  * cMovingMesh_1D_Evaluate(u.size, # <<<<<<<<<<<<<<
30639  * E0,
30640  * nu,
30641  */
30642  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6139, __pyx_L1_error)
30643  __Pyx_GOTREF(__pyx_t_1);
30644  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6139, __pyx_L1_error)
30645  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
30646 
30647  /* "ctransportCoefficients.pyx":6146
30648  * <double*> u.data,
30649  * <double*> uu_diff_ten.data,
30650  * <double*> u_force.data) # <<<<<<<<<<<<<<
30651  * def levelSetConservationCoefficientsEvaluate(double epsHeaviside,
30652  * double epsDirac,
30653  */
30654  MovingMesh_1D_Evaluate(__pyx_t_2, __pyx_v_E0, __pyx_v_nu, ((double *)__pyx_v_g->data), ((double *)__pyx_v_det_J->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_uu_diff_ten->data), ((double *)__pyx_v_u_force->data));
30655 
30656  /* "ctransportCoefficients.pyx":6132
30657  * <double*> v_force.data,
30658  * <double*> w_force.data)
30659  * def MovingMesh_1D_Evaluate(const double E0, # <<<<<<<<<<<<<<
30660  * const double nu,
30661  * np.ndarray g,
30662  */
30663 
30664  /* function exit code */
30665  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
30666  goto __pyx_L0;
30667  __pyx_L1_error:;
30668  __Pyx_XDECREF(__pyx_t_1);
30669  __Pyx_AddTraceback("ctransportCoefficients.MovingMesh_1D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
30670  __pyx_r = NULL;
30671  __pyx_L0:;
30672  __Pyx_XGIVEREF(__pyx_r);
30673  __Pyx_RefNannyFinishContext();
30674  return __pyx_r;
30675 }
30676 
30677 /* "ctransportCoefficients.pyx":6147
30678  * <double*> uu_diff_ten.data,
30679  * <double*> u_force.data)
30680  * def levelSetConservationCoefficientsEvaluate(double epsHeaviside, # <<<<<<<<<<<<<<
30681  * double epsDirac,
30682  * double epsDiffusion,
30683  */
30684 
30685 /* Python wrapper */
30686 static PyObject *__pyx_pw_22ctransportCoefficients_161levelSetConservationCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
30687 static PyMethodDef __pyx_mdef_22ctransportCoefficients_161levelSetConservationCoefficientsEvaluate = {"levelSetConservationCoefficientsEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_161levelSetConservationCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
30688 static PyObject *__pyx_pw_22ctransportCoefficients_161levelSetConservationCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
30689  double __pyx_v_epsHeaviside;
30690  double __pyx_v_epsDirac;
30691  double __pyx_v_epsDiffusion;
30692  PyArrayObject *__pyx_v_u_ls = 0;
30693  PyArrayObject *__pyx_v_H_vof = 0;
30694  PyArrayObject *__pyx_v_u = 0;
30695  PyArrayObject *__pyx_v_r = 0;
30696  PyArrayObject *__pyx_v_dr = 0;
30697  PyArrayObject *__pyx_v_a = 0;
30698  int __pyx_lineno = 0;
30699  const char *__pyx_filename = NULL;
30700  int __pyx_clineno = 0;
30701  PyObject *__pyx_r = 0;
30702  __Pyx_RefNannyDeclarations
30703  __Pyx_RefNannySetupContext("levelSetConservationCoefficientsEvaluate (wrapper)", 0);
30704  {
30705  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_epsHeaviside,&__pyx_n_s_epsDirac,&__pyx_n_s_epsDiffusion,&__pyx_n_s_u_ls,&__pyx_n_s_H_vof,&__pyx_n_s_u,&__pyx_n_s_r,&__pyx_n_s_dr,&__pyx_n_s_a,0};
30706  PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
30707  if (unlikely(__pyx_kwds)) {
30708  Py_ssize_t kw_args;
30709  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
30710  switch (pos_args) {
30711  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
30712  CYTHON_FALLTHROUGH;
30713  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
30714  CYTHON_FALLTHROUGH;
30715  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30716  CYTHON_FALLTHROUGH;
30717  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30718  CYTHON_FALLTHROUGH;
30719  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30720  CYTHON_FALLTHROUGH;
30721  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30722  CYTHON_FALLTHROUGH;
30723  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30724  CYTHON_FALLTHROUGH;
30725  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30726  CYTHON_FALLTHROUGH;
30727  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30728  CYTHON_FALLTHROUGH;
30729  case 0: break;
30730  default: goto __pyx_L5_argtuple_error;
30731  }
30732  kw_args = PyDict_Size(__pyx_kwds);
30733  switch (pos_args) {
30734  case 0:
30735  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsHeaviside)) != 0)) kw_args--;
30736  else goto __pyx_L5_argtuple_error;
30737  CYTHON_FALLTHROUGH;
30738  case 1:
30739  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsDirac)) != 0)) kw_args--;
30740  else {
30741  __Pyx_RaiseArgtupleInvalid("levelSetConservationCoefficientsEvaluate", 1, 9, 9, 1); __PYX_ERR(0, 6147, __pyx_L3_error)
30742  }
30743  CYTHON_FALLTHROUGH;
30744  case 2:
30745  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsDiffusion)) != 0)) kw_args--;
30746  else {
30747  __Pyx_RaiseArgtupleInvalid("levelSetConservationCoefficientsEvaluate", 1, 9, 9, 2); __PYX_ERR(0, 6147, __pyx_L3_error)
30748  }
30749  CYTHON_FALLTHROUGH;
30750  case 3:
30751  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_ls)) != 0)) kw_args--;
30752  else {
30753  __Pyx_RaiseArgtupleInvalid("levelSetConservationCoefficientsEvaluate", 1, 9, 9, 3); __PYX_ERR(0, 6147, __pyx_L3_error)
30754  }
30755  CYTHON_FALLTHROUGH;
30756  case 4:
30757  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H_vof)) != 0)) kw_args--;
30758  else {
30759  __Pyx_RaiseArgtupleInvalid("levelSetConservationCoefficientsEvaluate", 1, 9, 9, 4); __PYX_ERR(0, 6147, __pyx_L3_error)
30760  }
30761  CYTHON_FALLTHROUGH;
30762  case 5:
30763  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
30764  else {
30765  __Pyx_RaiseArgtupleInvalid("levelSetConservationCoefficientsEvaluate", 1, 9, 9, 5); __PYX_ERR(0, 6147, __pyx_L3_error)
30766  }
30767  CYTHON_FALLTHROUGH;
30768  case 6:
30769  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
30770  else {
30771  __Pyx_RaiseArgtupleInvalid("levelSetConservationCoefficientsEvaluate", 1, 9, 9, 6); __PYX_ERR(0, 6147, __pyx_L3_error)
30772  }
30773  CYTHON_FALLTHROUGH;
30774  case 7:
30775  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
30776  else {
30777  __Pyx_RaiseArgtupleInvalid("levelSetConservationCoefficientsEvaluate", 1, 9, 9, 7); __PYX_ERR(0, 6147, __pyx_L3_error)
30778  }
30779  CYTHON_FALLTHROUGH;
30780  case 8:
30781  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
30782  else {
30783  __Pyx_RaiseArgtupleInvalid("levelSetConservationCoefficientsEvaluate", 1, 9, 9, 8); __PYX_ERR(0, 6147, __pyx_L3_error)
30784  }
30785  }
30786  if (unlikely(kw_args > 0)) {
30787  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "levelSetConservationCoefficientsEvaluate") < 0)) __PYX_ERR(0, 6147, __pyx_L3_error)
30788  }
30789  } else if (PyTuple_GET_SIZE(__pyx_args) != 9) {
30790  goto __pyx_L5_argtuple_error;
30791  } else {
30792  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30793  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30794  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30795  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30796  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30797  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30798  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30799  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
30800  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
30801  }
30802  __pyx_v_epsHeaviside = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_epsHeaviside == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6147, __pyx_L3_error)
30803  __pyx_v_epsDirac = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_epsDirac == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6148, __pyx_L3_error)
30804  __pyx_v_epsDiffusion = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_epsDiffusion == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6149, __pyx_L3_error)
30805  __pyx_v_u_ls = ((PyArrayObject *)values[3]);
30806  __pyx_v_H_vof = ((PyArrayObject *)values[4]);
30807  __pyx_v_u = ((PyArrayObject *)values[5]);
30808  __pyx_v_r = ((PyArrayObject *)values[6]);
30809  __pyx_v_dr = ((PyArrayObject *)values[7]);
30810  __pyx_v_a = ((PyArrayObject *)values[8]);
30811  }
30812  goto __pyx_L4_argument_unpacking_done;
30813  __pyx_L5_argtuple_error:;
30814  __Pyx_RaiseArgtupleInvalid("levelSetConservationCoefficientsEvaluate", 1, 9, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6147, __pyx_L3_error)
30815  __pyx_L3_error:;
30816  __Pyx_AddTraceback("ctransportCoefficients.levelSetConservationCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
30817  __Pyx_RefNannyFinishContext();
30818  return NULL;
30819  __pyx_L4_argument_unpacking_done:;
30820  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_ls), __pyx_ptype_5numpy_ndarray, 1, "u_ls", 0))) __PYX_ERR(0, 6150, __pyx_L1_error)
30821  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H_vof), __pyx_ptype_5numpy_ndarray, 1, "H_vof", 0))) __PYX_ERR(0, 6151, __pyx_L1_error)
30822  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 6152, __pyx_L1_error)
30823  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1, "r", 0))) __PYX_ERR(0, 6153, __pyx_L1_error)
30824  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1, "dr", 0))) __PYX_ERR(0, 6154, __pyx_L1_error)
30825  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 6155, __pyx_L1_error)
30826  __pyx_r = __pyx_pf_22ctransportCoefficients_160levelSetConservationCoefficientsEvaluate(__pyx_self, __pyx_v_epsHeaviside, __pyx_v_epsDirac, __pyx_v_epsDiffusion, __pyx_v_u_ls, __pyx_v_H_vof, __pyx_v_u, __pyx_v_r, __pyx_v_dr, __pyx_v_a);
30827 
30828  /* function exit code */
30829  goto __pyx_L0;
30830  __pyx_L1_error:;
30831  __pyx_r = NULL;
30832  __pyx_L0:;
30833  __Pyx_RefNannyFinishContext();
30834  return __pyx_r;
30835 }
30836 
30837 static PyObject *__pyx_pf_22ctransportCoefficients_160levelSetConservationCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_epsHeaviside, double __pyx_v_epsDirac, double __pyx_v_epsDiffusion, PyArrayObject *__pyx_v_u_ls, PyArrayObject *__pyx_v_H_vof, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr, PyArrayObject *__pyx_v_a) {
30838  PyObject *__pyx_r = NULL;
30839  __Pyx_RefNannyDeclarations
30840  PyObject *__pyx_t_1 = NULL;
30841  int __pyx_t_2;
30842  int __pyx_lineno = 0;
30843  const char *__pyx_filename = NULL;
30844  int __pyx_clineno = 0;
30845  __Pyx_RefNannySetupContext("levelSetConservationCoefficientsEvaluate", 0);
30846 
30847  /* "ctransportCoefficients.pyx":6156
30848  * np.ndarray dr,
30849  * np.ndarray a):
30850  * clevelSetConservationCoefficientsEvaluate(u.size, # <<<<<<<<<<<<<<
30851  * a.shape[-1],
30852  * epsHeaviside,
30853  */
30854  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6156, __pyx_L1_error)
30855  __Pyx_GOTREF(__pyx_t_1);
30856  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6156, __pyx_L1_error)
30857  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
30858 
30859  /* "ctransportCoefficients.pyx":6166
30860  * <double*> r.data,
30861  * <double*> dr.data,
30862  * <double*> a.data) # <<<<<<<<<<<<<<
30863  * def levelSetConservationCoefficientsEvaluate_sd(double epsHeaviside,
30864  * double epsDirac,
30865  */
30866  levelSetConservationCoefficientsEvaluate(__pyx_t_2, (__pyx_v_a->dimensions[-1L]), __pyx_v_epsHeaviside, __pyx_v_epsDirac, __pyx_v_epsDiffusion, ((double *)__pyx_v_u_ls->data), ((double *)__pyx_v_H_vof->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_r->data), ((double *)__pyx_v_dr->data), ((double *)__pyx_v_a->data));
30867 
30868  /* "ctransportCoefficients.pyx":6147
30869  * <double*> uu_diff_ten.data,
30870  * <double*> u_force.data)
30871  * def levelSetConservationCoefficientsEvaluate(double epsHeaviside, # <<<<<<<<<<<<<<
30872  * double epsDirac,
30873  * double epsDiffusion,
30874  */
30875 
30876  /* function exit code */
30877  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
30878  goto __pyx_L0;
30879  __pyx_L1_error:;
30880  __Pyx_XDECREF(__pyx_t_1);
30881  __Pyx_AddTraceback("ctransportCoefficients.levelSetConservationCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
30882  __pyx_r = NULL;
30883  __pyx_L0:;
30884  __Pyx_XGIVEREF(__pyx_r);
30885  __Pyx_RefNannyFinishContext();
30886  return __pyx_r;
30887 }
30888 
30889 /* "ctransportCoefficients.pyx":6167
30890  * <double*> dr.data,
30891  * <double*> a.data)
30892  * def levelSetConservationCoefficientsEvaluate_sd(double epsHeaviside, # <<<<<<<<<<<<<<
30893  * double epsDirac,
30894  * np.ndarray u_ls,
30895  */
30896 
30897 /* Python wrapper */
30898 static PyObject *__pyx_pw_22ctransportCoefficients_163levelSetConservationCoefficientsEvaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
30899 static PyMethodDef __pyx_mdef_22ctransportCoefficients_163levelSetConservationCoefficientsEvaluate_sd = {"levelSetConservationCoefficientsEvaluate_sd", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_163levelSetConservationCoefficientsEvaluate_sd, METH_VARARGS|METH_KEYWORDS, 0};
30900 static PyObject *__pyx_pw_22ctransportCoefficients_163levelSetConservationCoefficientsEvaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
30901  double __pyx_v_epsHeaviside;
30902  double __pyx_v_epsDirac;
30903  PyArrayObject *__pyx_v_u_ls = 0;
30904  PyArrayObject *__pyx_v_H_vof = 0;
30905  PyArrayObject *__pyx_v_u = 0;
30906  PyArrayObject *__pyx_v_r = 0;
30907  PyArrayObject *__pyx_v_dr = 0;
30908  int __pyx_lineno = 0;
30909  const char *__pyx_filename = NULL;
30910  int __pyx_clineno = 0;
30911  PyObject *__pyx_r = 0;
30912  __Pyx_RefNannyDeclarations
30913  __Pyx_RefNannySetupContext("levelSetConservationCoefficientsEvaluate_sd (wrapper)", 0);
30914  {
30915  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_epsHeaviside,&__pyx_n_s_epsDirac,&__pyx_n_s_u_ls,&__pyx_n_s_H_vof,&__pyx_n_s_u,&__pyx_n_s_r,&__pyx_n_s_dr,0};
30916  PyObject* values[7] = {0,0,0,0,0,0,0};
30917  if (unlikely(__pyx_kwds)) {
30918  Py_ssize_t kw_args;
30919  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
30920  switch (pos_args) {
30921  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30922  CYTHON_FALLTHROUGH;
30923  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30924  CYTHON_FALLTHROUGH;
30925  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30926  CYTHON_FALLTHROUGH;
30927  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30928  CYTHON_FALLTHROUGH;
30929  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30930  CYTHON_FALLTHROUGH;
30931  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30932  CYTHON_FALLTHROUGH;
30933  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30934  CYTHON_FALLTHROUGH;
30935  case 0: break;
30936  default: goto __pyx_L5_argtuple_error;
30937  }
30938  kw_args = PyDict_Size(__pyx_kwds);
30939  switch (pos_args) {
30940  case 0:
30941  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsHeaviside)) != 0)) kw_args--;
30942  else goto __pyx_L5_argtuple_error;
30943  CYTHON_FALLTHROUGH;
30944  case 1:
30945  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsDirac)) != 0)) kw_args--;
30946  else {
30947  __Pyx_RaiseArgtupleInvalid("levelSetConservationCoefficientsEvaluate_sd", 1, 7, 7, 1); __PYX_ERR(0, 6167, __pyx_L3_error)
30948  }
30949  CYTHON_FALLTHROUGH;
30950  case 2:
30951  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_ls)) != 0)) kw_args--;
30952  else {
30953  __Pyx_RaiseArgtupleInvalid("levelSetConservationCoefficientsEvaluate_sd", 1, 7, 7, 2); __PYX_ERR(0, 6167, __pyx_L3_error)
30954  }
30955  CYTHON_FALLTHROUGH;
30956  case 3:
30957  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H_vof)) != 0)) kw_args--;
30958  else {
30959  __Pyx_RaiseArgtupleInvalid("levelSetConservationCoefficientsEvaluate_sd", 1, 7, 7, 3); __PYX_ERR(0, 6167, __pyx_L3_error)
30960  }
30961  CYTHON_FALLTHROUGH;
30962  case 4:
30963  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
30964  else {
30965  __Pyx_RaiseArgtupleInvalid("levelSetConservationCoefficientsEvaluate_sd", 1, 7, 7, 4); __PYX_ERR(0, 6167, __pyx_L3_error)
30966  }
30967  CYTHON_FALLTHROUGH;
30968  case 5:
30969  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
30970  else {
30971  __Pyx_RaiseArgtupleInvalid("levelSetConservationCoefficientsEvaluate_sd", 1, 7, 7, 5); __PYX_ERR(0, 6167, __pyx_L3_error)
30972  }
30973  CYTHON_FALLTHROUGH;
30974  case 6:
30975  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
30976  else {
30977  __Pyx_RaiseArgtupleInvalid("levelSetConservationCoefficientsEvaluate_sd", 1, 7, 7, 6); __PYX_ERR(0, 6167, __pyx_L3_error)
30978  }
30979  }
30980  if (unlikely(kw_args > 0)) {
30981  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "levelSetConservationCoefficientsEvaluate_sd") < 0)) __PYX_ERR(0, 6167, __pyx_L3_error)
30982  }
30983  } else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
30984  goto __pyx_L5_argtuple_error;
30985  } else {
30986  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30987  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30988  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30989  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30990  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30991  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30992  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30993  }
30994  __pyx_v_epsHeaviside = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_epsHeaviside == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6167, __pyx_L3_error)
30995  __pyx_v_epsDirac = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_epsDirac == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6168, __pyx_L3_error)
30996  __pyx_v_u_ls = ((PyArrayObject *)values[2]);
30997  __pyx_v_H_vof = ((PyArrayObject *)values[3]);
30998  __pyx_v_u = ((PyArrayObject *)values[4]);
30999  __pyx_v_r = ((PyArrayObject *)values[5]);
31000  __pyx_v_dr = ((PyArrayObject *)values[6]);
31001  }
31002  goto __pyx_L4_argument_unpacking_done;
31003  __pyx_L5_argtuple_error:;
31004  __Pyx_RaiseArgtupleInvalid("levelSetConservationCoefficientsEvaluate_sd", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6167, __pyx_L3_error)
31005  __pyx_L3_error:;
31006  __Pyx_AddTraceback("ctransportCoefficients.levelSetConservationCoefficientsEvaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
31007  __Pyx_RefNannyFinishContext();
31008  return NULL;
31009  __pyx_L4_argument_unpacking_done:;
31010  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_ls), __pyx_ptype_5numpy_ndarray, 1, "u_ls", 0))) __PYX_ERR(0, 6169, __pyx_L1_error)
31011  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H_vof), __pyx_ptype_5numpy_ndarray, 1, "H_vof", 0))) __PYX_ERR(0, 6170, __pyx_L1_error)
31012  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 6171, __pyx_L1_error)
31013  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1, "r", 0))) __PYX_ERR(0, 6172, __pyx_L1_error)
31014  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1, "dr", 0))) __PYX_ERR(0, 6173, __pyx_L1_error)
31015  __pyx_r = __pyx_pf_22ctransportCoefficients_162levelSetConservationCoefficientsEvaluate_sd(__pyx_self, __pyx_v_epsHeaviside, __pyx_v_epsDirac, __pyx_v_u_ls, __pyx_v_H_vof, __pyx_v_u, __pyx_v_r, __pyx_v_dr);
31016 
31017  /* function exit code */
31018  goto __pyx_L0;
31019  __pyx_L1_error:;
31020  __pyx_r = NULL;
31021  __pyx_L0:;
31022  __Pyx_RefNannyFinishContext();
31023  return __pyx_r;
31024 }
31025 
31026 static PyObject *__pyx_pf_22ctransportCoefficients_162levelSetConservationCoefficientsEvaluate_sd(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_epsHeaviside, double __pyx_v_epsDirac, PyArrayObject *__pyx_v_u_ls, PyArrayObject *__pyx_v_H_vof, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr) {
31027  PyObject *__pyx_r = NULL;
31028  __Pyx_RefNannyDeclarations
31029  PyObject *__pyx_t_1 = NULL;
31030  int __pyx_t_2;
31031  int __pyx_lineno = 0;
31032  const char *__pyx_filename = NULL;
31033  int __pyx_clineno = 0;
31034  __Pyx_RefNannySetupContext("levelSetConservationCoefficientsEvaluate_sd", 0);
31035 
31036  /* "ctransportCoefficients.pyx":6174
31037  * np.ndarray r,
31038  * np.ndarray dr):
31039  * clevelSetConservationCoefficientsEvaluate_sd(u.size, # <<<<<<<<<<<<<<
31040  * epsHeaviside,
31041  * epsDirac,
31042  */
31043  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6174, __pyx_L1_error)
31044  __Pyx_GOTREF(__pyx_t_1);
31045  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6174, __pyx_L1_error)
31046  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
31047 
31048  /* "ctransportCoefficients.pyx":6181
31049  * <double*> u.data,
31050  * <double*> r.data,
31051  * <double*> dr.data) # <<<<<<<<<<<<<<
31052  * def evaluateBuckleyLeverettLiuExample(np.ndarray x,
31053  * np.ndarray u,
31054  */
31055  levelSetConservationCoefficientsEvaluate_sd(__pyx_t_2, __pyx_v_epsHeaviside, __pyx_v_epsDirac, ((double *)__pyx_v_u_ls->data), ((double *)__pyx_v_H_vof->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_r->data), ((double *)__pyx_v_dr->data));
31056 
31057  /* "ctransportCoefficients.pyx":6167
31058  * <double*> dr.data,
31059  * <double*> a.data)
31060  * def levelSetConservationCoefficientsEvaluate_sd(double epsHeaviside, # <<<<<<<<<<<<<<
31061  * double epsDirac,
31062  * np.ndarray u_ls,
31063  */
31064 
31065  /* function exit code */
31066  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
31067  goto __pyx_L0;
31068  __pyx_L1_error:;
31069  __Pyx_XDECREF(__pyx_t_1);
31070  __Pyx_AddTraceback("ctransportCoefficients.levelSetConservationCoefficientsEvaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
31071  __pyx_r = NULL;
31072  __pyx_L0:;
31073  __Pyx_XGIVEREF(__pyx_r);
31074  __Pyx_RefNannyFinishContext();
31075  return __pyx_r;
31076 }
31077 
31078 /* "ctransportCoefficients.pyx":6182
31079  * <double*> r.data,
31080  * <double*> dr.data)
31081  * def evaluateBuckleyLeverettLiuExample(np.ndarray x, # <<<<<<<<<<<<<<
31082  * np.ndarray u,
31083  * np.ndarray m,
31084  */
31085 
31086 /* Python wrapper */
31087 static PyObject *__pyx_pw_22ctransportCoefficients_165evaluateBuckleyLeverettLiuExample(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
31088 static PyMethodDef __pyx_mdef_22ctransportCoefficients_165evaluateBuckleyLeverettLiuExample = {"evaluateBuckleyLeverettLiuExample", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_165evaluateBuckleyLeverettLiuExample, METH_VARARGS|METH_KEYWORDS, 0};
31089 static PyObject *__pyx_pw_22ctransportCoefficients_165evaluateBuckleyLeverettLiuExample(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
31090  PyArrayObject *__pyx_v_x = 0;
31091  PyArrayObject *__pyx_v_u = 0;
31092  PyArrayObject *__pyx_v_m = 0;
31093  PyArrayObject *__pyx_v_dm = 0;
31094  PyArrayObject *__pyx_v_f = 0;
31095  PyArrayObject *__pyx_v_df = 0;
31096  PyArrayObject *__pyx_v_a = 0;
31097  int __pyx_lineno = 0;
31098  const char *__pyx_filename = NULL;
31099  int __pyx_clineno = 0;
31100  PyObject *__pyx_r = 0;
31101  __Pyx_RefNannyDeclarations
31102  __Pyx_RefNannySetupContext("evaluateBuckleyLeverettLiuExample (wrapper)", 0);
31103  {
31104  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,0};
31105  PyObject* values[7] = {0,0,0,0,0,0,0};
31106  if (unlikely(__pyx_kwds)) {
31107  Py_ssize_t kw_args;
31108  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
31109  switch (pos_args) {
31110  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
31111  CYTHON_FALLTHROUGH;
31112  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31113  CYTHON_FALLTHROUGH;
31114  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31115  CYTHON_FALLTHROUGH;
31116  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
31117  CYTHON_FALLTHROUGH;
31118  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
31119  CYTHON_FALLTHROUGH;
31120  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
31121  CYTHON_FALLTHROUGH;
31122  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
31123  CYTHON_FALLTHROUGH;
31124  case 0: break;
31125  default: goto __pyx_L5_argtuple_error;
31126  }
31127  kw_args = PyDict_Size(__pyx_kwds);
31128  switch (pos_args) {
31129  case 0:
31130  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
31131  else goto __pyx_L5_argtuple_error;
31132  CYTHON_FALLTHROUGH;
31133  case 1:
31134  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
31135  else {
31136  __Pyx_RaiseArgtupleInvalid("evaluateBuckleyLeverettLiuExample", 1, 7, 7, 1); __PYX_ERR(0, 6182, __pyx_L3_error)
31137  }
31138  CYTHON_FALLTHROUGH;
31139  case 2:
31140  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
31141  else {
31142  __Pyx_RaiseArgtupleInvalid("evaluateBuckleyLeverettLiuExample", 1, 7, 7, 2); __PYX_ERR(0, 6182, __pyx_L3_error)
31143  }
31144  CYTHON_FALLTHROUGH;
31145  case 3:
31146  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
31147  else {
31148  __Pyx_RaiseArgtupleInvalid("evaluateBuckleyLeverettLiuExample", 1, 7, 7, 3); __PYX_ERR(0, 6182, __pyx_L3_error)
31149  }
31150  CYTHON_FALLTHROUGH;
31151  case 4:
31152  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
31153  else {
31154  __Pyx_RaiseArgtupleInvalid("evaluateBuckleyLeverettLiuExample", 1, 7, 7, 4); __PYX_ERR(0, 6182, __pyx_L3_error)
31155  }
31156  CYTHON_FALLTHROUGH;
31157  case 5:
31158  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
31159  else {
31160  __Pyx_RaiseArgtupleInvalid("evaluateBuckleyLeverettLiuExample", 1, 7, 7, 5); __PYX_ERR(0, 6182, __pyx_L3_error)
31161  }
31162  CYTHON_FALLTHROUGH;
31163  case 6:
31164  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
31165  else {
31166  __Pyx_RaiseArgtupleInvalid("evaluateBuckleyLeverettLiuExample", 1, 7, 7, 6); __PYX_ERR(0, 6182, __pyx_L3_error)
31167  }
31168  }
31169  if (unlikely(kw_args > 0)) {
31170  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "evaluateBuckleyLeverettLiuExample") < 0)) __PYX_ERR(0, 6182, __pyx_L3_error)
31171  }
31172  } else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
31173  goto __pyx_L5_argtuple_error;
31174  } else {
31175  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
31176  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
31177  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
31178  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
31179  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31180  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31181  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
31182  }
31183  __pyx_v_x = ((PyArrayObject *)values[0]);
31184  __pyx_v_u = ((PyArrayObject *)values[1]);
31185  __pyx_v_m = ((PyArrayObject *)values[2]);
31186  __pyx_v_dm = ((PyArrayObject *)values[3]);
31187  __pyx_v_f = ((PyArrayObject *)values[4]);
31188  __pyx_v_df = ((PyArrayObject *)values[5]);
31189  __pyx_v_a = ((PyArrayObject *)values[6]);
31190  }
31191  goto __pyx_L4_argument_unpacking_done;
31192  __pyx_L5_argtuple_error:;
31193  __Pyx_RaiseArgtupleInvalid("evaluateBuckleyLeverettLiuExample", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6182, __pyx_L3_error)
31194  __pyx_L3_error:;
31195  __Pyx_AddTraceback("ctransportCoefficients.evaluateBuckleyLeverettLiuExample", __pyx_clineno, __pyx_lineno, __pyx_filename);
31196  __Pyx_RefNannyFinishContext();
31197  return NULL;
31198  __pyx_L4_argument_unpacking_done:;
31199  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1, "x", 0))) __PYX_ERR(0, 6182, __pyx_L1_error)
31200  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 6183, __pyx_L1_error)
31201  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 6184, __pyx_L1_error)
31202  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 6185, __pyx_L1_error)
31203  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 6186, __pyx_L1_error)
31204  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 6187, __pyx_L1_error)
31205  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 6188, __pyx_L1_error)
31206  __pyx_r = __pyx_pf_22ctransportCoefficients_164evaluateBuckleyLeverettLiuExample(__pyx_self, __pyx_v_x, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a);
31207 
31208  /* function exit code */
31209  goto __pyx_L0;
31210  __pyx_L1_error:;
31211  __pyx_r = NULL;
31212  __pyx_L0:;
31213  __Pyx_RefNannyFinishContext();
31214  return __pyx_r;
31215 }
31216 
31217 static PyObject *__pyx_pf_22ctransportCoefficients_164evaluateBuckleyLeverettLiuExample(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a) {
31218  PyObject *__pyx_r = NULL;
31219  __Pyx_RefNannyDeclarations
31220  PyObject *__pyx_t_1 = NULL;
31221  int __pyx_t_2;
31222  int __pyx_lineno = 0;
31223  const char *__pyx_filename = NULL;
31224  int __pyx_clineno = 0;
31225  __Pyx_RefNannySetupContext("evaluateBuckleyLeverettLiuExample", 0);
31226 
31227  /* "ctransportCoefficients.pyx":6189
31228  * np.ndarray df,
31229  * np.ndarray a):
31230  * cevaluateBuckleyLeverettLiuExample(u.size, # <<<<<<<<<<<<<<
31231  * f.shape[f.ndim-1],
31232  * <double*> x.data,
31233  */
31234  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6189, __pyx_L1_error)
31235  __Pyx_GOTREF(__pyx_t_1);
31236  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6189, __pyx_L1_error)
31237  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
31238 
31239  /* "ctransportCoefficients.pyx":6197
31240  * <double*> f.data,
31241  * <double*> df.data,
31242  * <double*> a.data) # <<<<<<<<<<<<<<
31243  * def VolumeAveragedNavierStokesFullDevStress_2D_Evaluate(const double rho,
31244  * const double mu,
31245  */
31246  evaluateBuckleyLeverettLiuExample(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), ((double *)__pyx_v_x->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data));
31247 
31248  /* "ctransportCoefficients.pyx":6182
31249  * <double*> r.data,
31250  * <double*> dr.data)
31251  * def evaluateBuckleyLeverettLiuExample(np.ndarray x, # <<<<<<<<<<<<<<
31252  * np.ndarray u,
31253  * np.ndarray m,
31254  */
31255 
31256  /* function exit code */
31257  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
31258  goto __pyx_L0;
31259  __pyx_L1_error:;
31260  __Pyx_XDECREF(__pyx_t_1);
31261  __Pyx_AddTraceback("ctransportCoefficients.evaluateBuckleyLeverettLiuExample", __pyx_clineno, __pyx_lineno, __pyx_filename);
31262  __pyx_r = NULL;
31263  __pyx_L0:;
31264  __Pyx_XGIVEREF(__pyx_r);
31265  __Pyx_RefNannyFinishContext();
31266  return __pyx_r;
31267 }
31268 
31269 /* "ctransportCoefficients.pyx":6198
31270  * <double*> df.data,
31271  * <double*> a.data)
31272  * def VolumeAveragedNavierStokesFullDevStress_2D_Evaluate(const double rho, # <<<<<<<<<<<<<<
31273  * const double mu,
31274  * np.ndarray meanGrainSize,
31275  */
31276 
31277 /* Python wrapper */
31278 static PyObject *__pyx_pw_22ctransportCoefficients_167VolumeAveragedNavierStokesFullDevStress_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
31279 static PyMethodDef __pyx_mdef_22ctransportCoefficients_167VolumeAveragedNavierStokesFullDevStress_2D_Evaluate = {"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_167VolumeAveragedNavierStokesFullDevStress_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
31280 static PyObject *__pyx_pw_22ctransportCoefficients_167VolumeAveragedNavierStokesFullDevStress_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
31281  double __pyx_v_rho;
31282  double __pyx_v_mu;
31283  PyArrayObject *__pyx_v_meanGrainSize = 0;
31284  PyArrayObject *__pyx_v_g = 0;
31285  PyArrayObject *__pyx_v_p = 0;
31286  PyArrayObject *__pyx_v_grad_p = 0;
31287  PyArrayObject *__pyx_v_u = 0;
31288  PyArrayObject *__pyx_v_v = 0;
31289  PyArrayObject *__pyx_v_porosity = 0;
31290  PyArrayObject *__pyx_v_mom_u_acc = 0;
31291  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
31292  PyArrayObject *__pyx_v_mom_v_acc = 0;
31293  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
31294  PyArrayObject *__pyx_v_mass_adv = 0;
31295  PyArrayObject *__pyx_v_dmass_adv_u = 0;
31296  PyArrayObject *__pyx_v_dmass_adv_v = 0;
31297  PyArrayObject *__pyx_v_mom_u_adv = 0;
31298  PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
31299  PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
31300  PyArrayObject *__pyx_v_mom_v_adv = 0;
31301  PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
31302  PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
31303  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
31304  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
31305  PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
31306  PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
31307  PyArrayObject *__pyx_v_mom_u_source = 0;
31308  PyArrayObject *__pyx_v_mom_v_source = 0;
31309  PyArrayObject *__pyx_v_dmom_u_source_u = 0;
31310  PyArrayObject *__pyx_v_dmom_u_source_v = 0;
31311  PyArrayObject *__pyx_v_dmom_v_source_u = 0;
31312  PyArrayObject *__pyx_v_dmom_v_source_v = 0;
31313  PyArrayObject *__pyx_v_mom_u_ham = 0;
31314  PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
31315  PyArrayObject *__pyx_v_mom_v_ham = 0;
31316  PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
31317  int __pyx_lineno = 0;
31318  const char *__pyx_filename = NULL;
31319  int __pyx_clineno = 0;
31320  PyObject *__pyx_r = 0;
31321  __Pyx_RefNannyDeclarations
31322  __Pyx_RefNannySetupContext("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate (wrapper)", 0);
31323  {
31324  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_mu,&__pyx_n_s_meanGrainSize,&__pyx_n_s_g,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_porosity,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_dmom_u_source_u,&__pyx_n_s_dmom_u_source_v,&__pyx_n_s_dmom_v_source_u,&__pyx_n_s_dmom_v_source_v,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,0};
31325  PyObject* values[36] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
31326  if (unlikely(__pyx_kwds)) {
31327  Py_ssize_t kw_args;
31328  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
31329  switch (pos_args) {
31330  case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
31331  CYTHON_FALLTHROUGH;
31332  case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
31333  CYTHON_FALLTHROUGH;
31334  case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
31335  CYTHON_FALLTHROUGH;
31336  case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
31337  CYTHON_FALLTHROUGH;
31338  case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
31339  CYTHON_FALLTHROUGH;
31340  case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
31341  CYTHON_FALLTHROUGH;
31342  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
31343  CYTHON_FALLTHROUGH;
31344  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
31345  CYTHON_FALLTHROUGH;
31346  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
31347  CYTHON_FALLTHROUGH;
31348  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
31349  CYTHON_FALLTHROUGH;
31350  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
31351  CYTHON_FALLTHROUGH;
31352  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
31353  CYTHON_FALLTHROUGH;
31354  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
31355  CYTHON_FALLTHROUGH;
31356  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
31357  CYTHON_FALLTHROUGH;
31358  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
31359  CYTHON_FALLTHROUGH;
31360  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
31361  CYTHON_FALLTHROUGH;
31362  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
31363  CYTHON_FALLTHROUGH;
31364  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
31365  CYTHON_FALLTHROUGH;
31366  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
31367  CYTHON_FALLTHROUGH;
31368  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
31369  CYTHON_FALLTHROUGH;
31370  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
31371  CYTHON_FALLTHROUGH;
31372  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
31373  CYTHON_FALLTHROUGH;
31374  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
31375  CYTHON_FALLTHROUGH;
31376  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
31377  CYTHON_FALLTHROUGH;
31378  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
31379  CYTHON_FALLTHROUGH;
31380  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
31381  CYTHON_FALLTHROUGH;
31382  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
31383  CYTHON_FALLTHROUGH;
31384  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
31385  CYTHON_FALLTHROUGH;
31386  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
31387  CYTHON_FALLTHROUGH;
31388  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
31389  CYTHON_FALLTHROUGH;
31390  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31391  CYTHON_FALLTHROUGH;
31392  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31393  CYTHON_FALLTHROUGH;
31394  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
31395  CYTHON_FALLTHROUGH;
31396  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
31397  CYTHON_FALLTHROUGH;
31398  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
31399  CYTHON_FALLTHROUGH;
31400  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
31401  CYTHON_FALLTHROUGH;
31402  case 0: break;
31403  default: goto __pyx_L5_argtuple_error;
31404  }
31405  kw_args = PyDict_Size(__pyx_kwds);
31406  switch (pos_args) {
31407  case 0:
31408  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
31409  else goto __pyx_L5_argtuple_error;
31410  CYTHON_FALLTHROUGH;
31411  case 1:
31412  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mu)) != 0)) kw_args--;
31413  else {
31414  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 1); __PYX_ERR(0, 6198, __pyx_L3_error)
31415  }
31416  CYTHON_FALLTHROUGH;
31417  case 2:
31418  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_meanGrainSize)) != 0)) kw_args--;
31419  else {
31420  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 2); __PYX_ERR(0, 6198, __pyx_L3_error)
31421  }
31422  CYTHON_FALLTHROUGH;
31423  case 3:
31424  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
31425  else {
31426  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 3); __PYX_ERR(0, 6198, __pyx_L3_error)
31427  }
31428  CYTHON_FALLTHROUGH;
31429  case 4:
31430  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
31431  else {
31432  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 4); __PYX_ERR(0, 6198, __pyx_L3_error)
31433  }
31434  CYTHON_FALLTHROUGH;
31435  case 5:
31436  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
31437  else {
31438  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 5); __PYX_ERR(0, 6198, __pyx_L3_error)
31439  }
31440  CYTHON_FALLTHROUGH;
31441  case 6:
31442  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
31443  else {
31444  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 6); __PYX_ERR(0, 6198, __pyx_L3_error)
31445  }
31446  CYTHON_FALLTHROUGH;
31447  case 7:
31448  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
31449  else {
31450  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 7); __PYX_ERR(0, 6198, __pyx_L3_error)
31451  }
31452  CYTHON_FALLTHROUGH;
31453  case 8:
31454  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_porosity)) != 0)) kw_args--;
31455  else {
31456  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 8); __PYX_ERR(0, 6198, __pyx_L3_error)
31457  }
31458  CYTHON_FALLTHROUGH;
31459  case 9:
31460  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
31461  else {
31462  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 9); __PYX_ERR(0, 6198, __pyx_L3_error)
31463  }
31464  CYTHON_FALLTHROUGH;
31465  case 10:
31466  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
31467  else {
31468  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 10); __PYX_ERR(0, 6198, __pyx_L3_error)
31469  }
31470  CYTHON_FALLTHROUGH;
31471  case 11:
31472  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
31473  else {
31474  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 11); __PYX_ERR(0, 6198, __pyx_L3_error)
31475  }
31476  CYTHON_FALLTHROUGH;
31477  case 12:
31478  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
31479  else {
31480  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 12); __PYX_ERR(0, 6198, __pyx_L3_error)
31481  }
31482  CYTHON_FALLTHROUGH;
31483  case 13:
31484  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
31485  else {
31486  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 13); __PYX_ERR(0, 6198, __pyx_L3_error)
31487  }
31488  CYTHON_FALLTHROUGH;
31489  case 14:
31490  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
31491  else {
31492  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 14); __PYX_ERR(0, 6198, __pyx_L3_error)
31493  }
31494  CYTHON_FALLTHROUGH;
31495  case 15:
31496  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
31497  else {
31498  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 15); __PYX_ERR(0, 6198, __pyx_L3_error)
31499  }
31500  CYTHON_FALLTHROUGH;
31501  case 16:
31502  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
31503  else {
31504  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 16); __PYX_ERR(0, 6198, __pyx_L3_error)
31505  }
31506  CYTHON_FALLTHROUGH;
31507  case 17:
31508  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
31509  else {
31510  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 17); __PYX_ERR(0, 6198, __pyx_L3_error)
31511  }
31512  CYTHON_FALLTHROUGH;
31513  case 18:
31514  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
31515  else {
31516  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 18); __PYX_ERR(0, 6198, __pyx_L3_error)
31517  }
31518  CYTHON_FALLTHROUGH;
31519  case 19:
31520  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
31521  else {
31522  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 19); __PYX_ERR(0, 6198, __pyx_L3_error)
31523  }
31524  CYTHON_FALLTHROUGH;
31525  case 20:
31526  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
31527  else {
31528  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 20); __PYX_ERR(0, 6198, __pyx_L3_error)
31529  }
31530  CYTHON_FALLTHROUGH;
31531  case 21:
31532  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
31533  else {
31534  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 21); __PYX_ERR(0, 6198, __pyx_L3_error)
31535  }
31536  CYTHON_FALLTHROUGH;
31537  case 22:
31538  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
31539  else {
31540  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 22); __PYX_ERR(0, 6198, __pyx_L3_error)
31541  }
31542  CYTHON_FALLTHROUGH;
31543  case 23:
31544  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
31545  else {
31546  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 23); __PYX_ERR(0, 6198, __pyx_L3_error)
31547  }
31548  CYTHON_FALLTHROUGH;
31549  case 24:
31550  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
31551  else {
31552  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 24); __PYX_ERR(0, 6198, __pyx_L3_error)
31553  }
31554  CYTHON_FALLTHROUGH;
31555  case 25:
31556  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
31557  else {
31558  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 25); __PYX_ERR(0, 6198, __pyx_L3_error)
31559  }
31560  CYTHON_FALLTHROUGH;
31561  case 26:
31562  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
31563  else {
31564  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 26); __PYX_ERR(0, 6198, __pyx_L3_error)
31565  }
31566  CYTHON_FALLTHROUGH;
31567  case 27:
31568  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
31569  else {
31570  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 27); __PYX_ERR(0, 6198, __pyx_L3_error)
31571  }
31572  CYTHON_FALLTHROUGH;
31573  case 28:
31574  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_u)) != 0)) kw_args--;
31575  else {
31576  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 28); __PYX_ERR(0, 6198, __pyx_L3_error)
31577  }
31578  CYTHON_FALLTHROUGH;
31579  case 29:
31580  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_v)) != 0)) kw_args--;
31581  else {
31582  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 29); __PYX_ERR(0, 6198, __pyx_L3_error)
31583  }
31584  CYTHON_FALLTHROUGH;
31585  case 30:
31586  if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_u)) != 0)) kw_args--;
31587  else {
31588  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 30); __PYX_ERR(0, 6198, __pyx_L3_error)
31589  }
31590  CYTHON_FALLTHROUGH;
31591  case 31:
31592  if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_v)) != 0)) kw_args--;
31593  else {
31594  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 31); __PYX_ERR(0, 6198, __pyx_L3_error)
31595  }
31596  CYTHON_FALLTHROUGH;
31597  case 32:
31598  if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
31599  else {
31600  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 32); __PYX_ERR(0, 6198, __pyx_L3_error)
31601  }
31602  CYTHON_FALLTHROUGH;
31603  case 33:
31604  if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
31605  else {
31606  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 33); __PYX_ERR(0, 6198, __pyx_L3_error)
31607  }
31608  CYTHON_FALLTHROUGH;
31609  case 34:
31610  if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
31611  else {
31612  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 34); __PYX_ERR(0, 6198, __pyx_L3_error)
31613  }
31614  CYTHON_FALLTHROUGH;
31615  case 35:
31616  if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
31617  else {
31618  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 35); __PYX_ERR(0, 6198, __pyx_L3_error)
31619  }
31620  }
31621  if (unlikely(kw_args > 0)) {
31622  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "VolumeAveragedNavierStokesFullDevStress_2D_Evaluate") < 0)) __PYX_ERR(0, 6198, __pyx_L3_error)
31623  }
31624  } else if (PyTuple_GET_SIZE(__pyx_args) != 36) {
31625  goto __pyx_L5_argtuple_error;
31626  } else {
31627  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
31628  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
31629  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
31630  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
31631  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31632  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31633  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
31634  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
31635  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
31636  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
31637  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
31638  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
31639  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
31640  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
31641  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
31642  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
31643  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
31644  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
31645  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
31646  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
31647  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
31648  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
31649  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
31650  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
31651  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
31652  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
31653  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
31654  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
31655  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
31656  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
31657  values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
31658  values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
31659  values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
31660  values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
31661  values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
31662  values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
31663  }
31664  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6198, __pyx_L3_error)
31665  __pyx_v_mu = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_mu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6199, __pyx_L3_error)
31666  __pyx_v_meanGrainSize = ((PyArrayObject *)values[2]);
31667  __pyx_v_g = ((PyArrayObject *)values[3]);
31668  __pyx_v_p = ((PyArrayObject *)values[4]);
31669  __pyx_v_grad_p = ((PyArrayObject *)values[5]);
31670  __pyx_v_u = ((PyArrayObject *)values[6]);
31671  __pyx_v_v = ((PyArrayObject *)values[7]);
31672  __pyx_v_porosity = ((PyArrayObject *)values[8]);
31673  __pyx_v_mom_u_acc = ((PyArrayObject *)values[9]);
31674  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[10]);
31675  __pyx_v_mom_v_acc = ((PyArrayObject *)values[11]);
31676  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[12]);
31677  __pyx_v_mass_adv = ((PyArrayObject *)values[13]);
31678  __pyx_v_dmass_adv_u = ((PyArrayObject *)values[14]);
31679  __pyx_v_dmass_adv_v = ((PyArrayObject *)values[15]);
31680  __pyx_v_mom_u_adv = ((PyArrayObject *)values[16]);
31681  __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[17]);
31682  __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[18]);
31683  __pyx_v_mom_v_adv = ((PyArrayObject *)values[19]);
31684  __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[20]);
31685  __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[21]);
31686  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[22]);
31687  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[23]);
31688  __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[24]);
31689  __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[25]);
31690  __pyx_v_mom_u_source = ((PyArrayObject *)values[26]);
31691  __pyx_v_mom_v_source = ((PyArrayObject *)values[27]);
31692  __pyx_v_dmom_u_source_u = ((PyArrayObject *)values[28]);
31693  __pyx_v_dmom_u_source_v = ((PyArrayObject *)values[29]);
31694  __pyx_v_dmom_v_source_u = ((PyArrayObject *)values[30]);
31695  __pyx_v_dmom_v_source_v = ((PyArrayObject *)values[31]);
31696  __pyx_v_mom_u_ham = ((PyArrayObject *)values[32]);
31697  __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[33]);
31698  __pyx_v_mom_v_ham = ((PyArrayObject *)values[34]);
31699  __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[35]);
31700  }
31701  goto __pyx_L4_argument_unpacking_done;
31702  __pyx_L5_argtuple_error:;
31703  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6198, __pyx_L3_error)
31704  __pyx_L3_error:;
31705  __Pyx_AddTraceback("ctransportCoefficients.VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
31706  __Pyx_RefNannyFinishContext();
31707  return NULL;
31708  __pyx_L4_argument_unpacking_done:;
31709  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_meanGrainSize), __pyx_ptype_5numpy_ndarray, 1, "meanGrainSize", 0))) __PYX_ERR(0, 6200, __pyx_L1_error)
31710  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 6201, __pyx_L1_error)
31711  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 6202, __pyx_L1_error)
31712  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1, "grad_p", 0))) __PYX_ERR(0, 6203, __pyx_L1_error)
31713  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 6204, __pyx_L1_error)
31714  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 6205, __pyx_L1_error)
31715  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_porosity), __pyx_ptype_5numpy_ndarray, 1, "porosity", 0))) __PYX_ERR(0, 6206, __pyx_L1_error)
31716  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 6207, __pyx_L1_error)
31717  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 6208, __pyx_L1_error)
31718  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 6209, __pyx_L1_error)
31719  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 6210, __pyx_L1_error)
31720  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 6211, __pyx_L1_error)
31721  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_u", 0))) __PYX_ERR(0, 6212, __pyx_L1_error)
31722  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_v", 0))) __PYX_ERR(0, 6213, __pyx_L1_error)
31723  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_u_adv", 0))) __PYX_ERR(0, 6214, __pyx_L1_error)
31724  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_u", 0))) __PYX_ERR(0, 6215, __pyx_L1_error)
31725  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_v", 0))) __PYX_ERR(0, 6216, __pyx_L1_error)
31726  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_v_adv", 0))) __PYX_ERR(0, 6217, __pyx_L1_error)
31727  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_u", 0))) __PYX_ERR(0, 6218, __pyx_L1_error)
31728  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_v", 0))) __PYX_ERR(0, 6219, __pyx_L1_error)
31729  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 6220, __pyx_L1_error)
31730  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 6221, __pyx_L1_error)
31731  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uv_diff_ten", 0))) __PYX_ERR(0, 6222, __pyx_L1_error)
31732  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vu_diff_ten", 0))) __PYX_ERR(0, 6223, __pyx_L1_error)
31733  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 6224, __pyx_L1_error)
31734  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 6225, __pyx_L1_error)
31735  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_source_u", 0))) __PYX_ERR(0, 6226, __pyx_L1_error)
31736  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_source_v", 0))) __PYX_ERR(0, 6227, __pyx_L1_error)
31737  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_source_u", 0))) __PYX_ERR(0, 6228, __pyx_L1_error)
31738  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_source_v", 0))) __PYX_ERR(0, 6229, __pyx_L1_error)
31739  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_u_ham", 0))) __PYX_ERR(0, 6230, __pyx_L1_error)
31740  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 6231, __pyx_L1_error)
31741  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_v_ham", 0))) __PYX_ERR(0, 6232, __pyx_L1_error)
31742  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 6233, __pyx_L1_error)
31743  __pyx_r = __pyx_pf_22ctransportCoefficients_166VolumeAveragedNavierStokesFullDevStress_2D_Evaluate(__pyx_self, __pyx_v_rho, __pyx_v_mu, __pyx_v_meanGrainSize, __pyx_v_g, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_porosity, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_dmom_u_source_u, __pyx_v_dmom_u_source_v, __pyx_v_dmom_v_source_u, __pyx_v_dmom_v_source_v, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p);
31744 
31745  /* function exit code */
31746  goto __pyx_L0;
31747  __pyx_L1_error:;
31748  __pyx_r = NULL;
31749  __pyx_L0:;
31750  __Pyx_RefNannyFinishContext();
31751  return __pyx_r;
31752 }
31753 
31754 static PyObject *__pyx_pf_22ctransportCoefficients_166VolumeAveragedNavierStokesFullDevStress_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, double __pyx_v_mu, PyArrayObject *__pyx_v_meanGrainSize, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p) {
31755  PyObject *__pyx_r = NULL;
31756  __Pyx_RefNannyDeclarations
31757  PyObject *__pyx_t_1 = NULL;
31758  int __pyx_t_2;
31759  int __pyx_lineno = 0;
31760  const char *__pyx_filename = NULL;
31761  int __pyx_clineno = 0;
31762  __Pyx_RefNannySetupContext("VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 0);
31763 
31764  /* "ctransportCoefficients.pyx":6234
31765  * np.ndarray mom_v_ham,
31766  * np.ndarray dmom_v_ham_grad_p):
31767  * cVolumeAveragedNavierStokesFullDevStress_2D_Evaluate(p.size, # <<<<<<<<<<<<<<
31768  * rho,
31769  * mu,
31770  */
31771  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6234, __pyx_L1_error)
31772  __Pyx_GOTREF(__pyx_t_1);
31773  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6234, __pyx_L1_error)
31774  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
31775 
31776  /* "ctransportCoefficients.pyx":6270
31777  * <double*> dmom_u_ham_grad_p.data,
31778  * <double*> mom_v_ham.data,
31779  * <double*> dmom_v_ham_grad_p.data) # <<<<<<<<<<<<<<
31780  * def VolumeAveragedNavierStokesFullDevStress_3D_Evaluate(const double rho,
31781  * const double mu,
31782  */
31783  VolumeAveragedNavierStokesFullDevStress_2D_Evaluate(__pyx_t_2, __pyx_v_rho, __pyx_v_mu, ((double *)__pyx_v_meanGrainSize->data), ((double *)__pyx_v_g->data), ((double *)__pyx_v_p->data), ((double *)__pyx_v_grad_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_porosity->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_v_acc_v->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_u->data), ((double *)__pyx_v_dmass_adv_v->data), ((double *)__pyx_v_mom_u_adv->data), ((double *)__pyx_v_dmom_u_adv_u->data), ((double *)__pyx_v_dmom_u_adv_v->data), ((double *)__pyx_v_mom_v_adv->data), ((double *)__pyx_v_dmom_v_adv_u->data), ((double *)__pyx_v_dmom_v_adv_v->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_uv_diff_ten->data), ((double *)__pyx_v_mom_vu_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_dmom_u_source_u->data), ((double *)__pyx_v_dmom_u_source_v->data), ((double *)__pyx_v_dmom_v_source_u->data), ((double *)__pyx_v_dmom_v_source_v->data), ((double *)__pyx_v_mom_u_ham->data), ((double *)__pyx_v_dmom_u_ham_grad_p->data), ((double *)__pyx_v_mom_v_ham->data), ((double *)__pyx_v_dmom_v_ham_grad_p->data));
31784 
31785  /* "ctransportCoefficients.pyx":6198
31786  * <double*> df.data,
31787  * <double*> a.data)
31788  * def VolumeAveragedNavierStokesFullDevStress_2D_Evaluate(const double rho, # <<<<<<<<<<<<<<
31789  * const double mu,
31790  * np.ndarray meanGrainSize,
31791  */
31792 
31793  /* function exit code */
31794  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
31795  goto __pyx_L0;
31796  __pyx_L1_error:;
31797  __Pyx_XDECREF(__pyx_t_1);
31798  __Pyx_AddTraceback("ctransportCoefficients.VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
31799  __pyx_r = NULL;
31800  __pyx_L0:;
31801  __Pyx_XGIVEREF(__pyx_r);
31802  __Pyx_RefNannyFinishContext();
31803  return __pyx_r;
31804 }
31805 
31806 /* "ctransportCoefficients.pyx":6271
31807  * <double*> mom_v_ham.data,
31808  * <double*> dmom_v_ham_grad_p.data)
31809  * def VolumeAveragedNavierStokesFullDevStress_3D_Evaluate(const double rho, # <<<<<<<<<<<<<<
31810  * const double mu,
31811  * np.ndarray meanGrainSize,
31812  */
31813 
31814 /* Python wrapper */
31815 static PyObject *__pyx_pw_22ctransportCoefficients_169VolumeAveragedNavierStokesFullDevStress_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
31816 static PyMethodDef __pyx_mdef_22ctransportCoefficients_169VolumeAveragedNavierStokesFullDevStress_3D_Evaluate = {"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_169VolumeAveragedNavierStokesFullDevStress_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
31817 static PyObject *__pyx_pw_22ctransportCoefficients_169VolumeAveragedNavierStokesFullDevStress_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
31818  double __pyx_v_rho;
31819  double __pyx_v_mu;
31820  PyArrayObject *__pyx_v_meanGrainSize = 0;
31821  PyArrayObject *__pyx_v_g = 0;
31822  PyArrayObject *__pyx_v_p = 0;
31823  PyArrayObject *__pyx_v_grad_p = 0;
31824  PyArrayObject *__pyx_v_u = 0;
31825  PyArrayObject *__pyx_v_v = 0;
31826  PyArrayObject *__pyx_v_w = 0;
31827  PyArrayObject *__pyx_v_porosity = 0;
31828  PyArrayObject *__pyx_v_mom_u_acc = 0;
31829  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
31830  PyArrayObject *__pyx_v_mom_v_acc = 0;
31831  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
31832  PyArrayObject *__pyx_v_mom_w_acc = 0;
31833  PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
31834  PyArrayObject *__pyx_v_mass_adv = 0;
31835  PyArrayObject *__pyx_v_dmass_adv_u = 0;
31836  PyArrayObject *__pyx_v_dmass_adv_v = 0;
31837  PyArrayObject *__pyx_v_dmass_adv_w = 0;
31838  PyArrayObject *__pyx_v_mom_u_adv = 0;
31839  PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
31840  PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
31841  PyArrayObject *__pyx_v_dmom_u_adv_w = 0;
31842  PyArrayObject *__pyx_v_mom_v_adv = 0;
31843  PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
31844  PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
31845  PyArrayObject *__pyx_v_dmom_v_adv_w = 0;
31846  PyArrayObject *__pyx_v_mom_w_adv = 0;
31847  PyArrayObject *__pyx_v_dmom_w_adv_u = 0;
31848  PyArrayObject *__pyx_v_dmom_w_adv_v = 0;
31849  PyArrayObject *__pyx_v_dmom_w_adv_w = 0;
31850  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
31851  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
31852  PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
31853  PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
31854  PyArrayObject *__pyx_v_mom_uw_diff_ten = 0;
31855  PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
31856  PyArrayObject *__pyx_v_mom_vw_diff_ten = 0;
31857  PyArrayObject *__pyx_v_mom_wu_diff_ten = 0;
31858  PyArrayObject *__pyx_v_mom_wv_diff_ten = 0;
31859  PyArrayObject *__pyx_v_mom_u_source = 0;
31860  PyArrayObject *__pyx_v_mom_v_source = 0;
31861  PyArrayObject *__pyx_v_mom_w_source = 0;
31862  PyArrayObject *__pyx_v_dmom_u_source_u = 0;
31863  PyArrayObject *__pyx_v_dmom_u_source_v = 0;
31864  PyArrayObject *__pyx_v_dmom_u_source_w = 0;
31865  PyArrayObject *__pyx_v_dmom_v_source_u = 0;
31866  PyArrayObject *__pyx_v_dmom_v_source_v = 0;
31867  PyArrayObject *__pyx_v_dmom_v_source_w = 0;
31868  PyArrayObject *__pyx_v_dmom_w_source_u = 0;
31869  PyArrayObject *__pyx_v_dmom_w_source_v = 0;
31870  PyArrayObject *__pyx_v_dmom_w_source_w = 0;
31871  PyArrayObject *__pyx_v_mom_u_ham = 0;
31872  PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
31873  PyArrayObject *__pyx_v_mom_v_ham = 0;
31874  PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
31875  PyArrayObject *__pyx_v_mom_w_ham = 0;
31876  PyArrayObject *__pyx_v_dmom_w_ham_grad_p = 0;
31877  int __pyx_lineno = 0;
31878  const char *__pyx_filename = NULL;
31879  int __pyx_clineno = 0;
31880  PyObject *__pyx_r = 0;
31881  __Pyx_RefNannyDeclarations
31882  __Pyx_RefNannySetupContext("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate (wrapper)", 0);
31883  {
31884  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_mu,&__pyx_n_s_meanGrainSize,&__pyx_n_s_g,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_porosity,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_w_acc_w,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_dmass_adv_w,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_dmom_u_adv_w,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_dmom_v_adv_w,&__pyx_n_s_mom_w_adv,&__pyx_n_s_dmom_w_adv_u,&__pyx_n_s_dmom_w_adv_v,&__pyx_n_s_dmom_w_adv_w,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_uw_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_vw_diff_ten,&__pyx_n_s_mom_wu_diff_ten,&__pyx_n_s_mom_wv_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,&__pyx_n_s_dmom_u_source_u,&__pyx_n_s_dmom_u_source_v,&__pyx_n_s_dmom_u_source_w,&__pyx_n_s_dmom_v_source_u,&__pyx_n_s_dmom_v_source_v,&__pyx_n_s_dmom_v_source_w,&__pyx_n_s_dmom_w_source_u,&__pyx_n_s_dmom_w_source_v,&__pyx_n_s_dmom_w_source_w,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,&__pyx_n_s_mom_w_ham,&__pyx_n_s_dmom_w_ham_grad_p,0};
31885  PyObject* values[59] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
31886  if (unlikely(__pyx_kwds)) {
31887  Py_ssize_t kw_args;
31888  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
31889  switch (pos_args) {
31890  case 59: values[58] = PyTuple_GET_ITEM(__pyx_args, 58);
31891  CYTHON_FALLTHROUGH;
31892  case 58: values[57] = PyTuple_GET_ITEM(__pyx_args, 57);
31893  CYTHON_FALLTHROUGH;
31894  case 57: values[56] = PyTuple_GET_ITEM(__pyx_args, 56);
31895  CYTHON_FALLTHROUGH;
31896  case 56: values[55] = PyTuple_GET_ITEM(__pyx_args, 55);
31897  CYTHON_FALLTHROUGH;
31898  case 55: values[54] = PyTuple_GET_ITEM(__pyx_args, 54);
31899  CYTHON_FALLTHROUGH;
31900  case 54: values[53] = PyTuple_GET_ITEM(__pyx_args, 53);
31901  CYTHON_FALLTHROUGH;
31902  case 53: values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
31903  CYTHON_FALLTHROUGH;
31904  case 52: values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
31905  CYTHON_FALLTHROUGH;
31906  case 51: values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
31907  CYTHON_FALLTHROUGH;
31908  case 50: values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
31909  CYTHON_FALLTHROUGH;
31910  case 49: values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
31911  CYTHON_FALLTHROUGH;
31912  case 48: values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
31913  CYTHON_FALLTHROUGH;
31914  case 47: values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
31915  CYTHON_FALLTHROUGH;
31916  case 46: values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
31917  CYTHON_FALLTHROUGH;
31918  case 45: values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
31919  CYTHON_FALLTHROUGH;
31920  case 44: values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
31921  CYTHON_FALLTHROUGH;
31922  case 43: values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
31923  CYTHON_FALLTHROUGH;
31924  case 42: values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
31925  CYTHON_FALLTHROUGH;
31926  case 41: values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
31927  CYTHON_FALLTHROUGH;
31928  case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
31929  CYTHON_FALLTHROUGH;
31930  case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
31931  CYTHON_FALLTHROUGH;
31932  case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
31933  CYTHON_FALLTHROUGH;
31934  case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
31935  CYTHON_FALLTHROUGH;
31936  case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
31937  CYTHON_FALLTHROUGH;
31938  case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
31939  CYTHON_FALLTHROUGH;
31940  case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
31941  CYTHON_FALLTHROUGH;
31942  case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
31943  CYTHON_FALLTHROUGH;
31944  case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
31945  CYTHON_FALLTHROUGH;
31946  case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
31947  CYTHON_FALLTHROUGH;
31948  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
31949  CYTHON_FALLTHROUGH;
31950  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
31951  CYTHON_FALLTHROUGH;
31952  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
31953  CYTHON_FALLTHROUGH;
31954  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
31955  CYTHON_FALLTHROUGH;
31956  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
31957  CYTHON_FALLTHROUGH;
31958  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
31959  CYTHON_FALLTHROUGH;
31960  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
31961  CYTHON_FALLTHROUGH;
31962  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
31963  CYTHON_FALLTHROUGH;
31964  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
31965  CYTHON_FALLTHROUGH;
31966  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
31967  CYTHON_FALLTHROUGH;
31968  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
31969  CYTHON_FALLTHROUGH;
31970  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
31971  CYTHON_FALLTHROUGH;
31972  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
31973  CYTHON_FALLTHROUGH;
31974  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
31975  CYTHON_FALLTHROUGH;
31976  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
31977  CYTHON_FALLTHROUGH;
31978  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
31979  CYTHON_FALLTHROUGH;
31980  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
31981  CYTHON_FALLTHROUGH;
31982  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
31983  CYTHON_FALLTHROUGH;
31984  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
31985  CYTHON_FALLTHROUGH;
31986  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
31987  CYTHON_FALLTHROUGH;
31988  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
31989  CYTHON_FALLTHROUGH;
31990  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
31991  CYTHON_FALLTHROUGH;
31992  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
31993  CYTHON_FALLTHROUGH;
31994  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
31995  CYTHON_FALLTHROUGH;
31996  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31997  CYTHON_FALLTHROUGH;
31998  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31999  CYTHON_FALLTHROUGH;
32000  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
32001  CYTHON_FALLTHROUGH;
32002  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
32003  CYTHON_FALLTHROUGH;
32004  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
32005  CYTHON_FALLTHROUGH;
32006  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
32007  CYTHON_FALLTHROUGH;
32008  case 0: break;
32009  default: goto __pyx_L5_argtuple_error;
32010  }
32011  kw_args = PyDict_Size(__pyx_kwds);
32012  switch (pos_args) {
32013  case 0:
32014  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
32015  else goto __pyx_L5_argtuple_error;
32016  CYTHON_FALLTHROUGH;
32017  case 1:
32018  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mu)) != 0)) kw_args--;
32019  else {
32020  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 1); __PYX_ERR(0, 6271, __pyx_L3_error)
32021  }
32022  CYTHON_FALLTHROUGH;
32023  case 2:
32024  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_meanGrainSize)) != 0)) kw_args--;
32025  else {
32026  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 2); __PYX_ERR(0, 6271, __pyx_L3_error)
32027  }
32028  CYTHON_FALLTHROUGH;
32029  case 3:
32030  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
32031  else {
32032  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 3); __PYX_ERR(0, 6271, __pyx_L3_error)
32033  }
32034  CYTHON_FALLTHROUGH;
32035  case 4:
32036  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
32037  else {
32038  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 4); __PYX_ERR(0, 6271, __pyx_L3_error)
32039  }
32040  CYTHON_FALLTHROUGH;
32041  case 5:
32042  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
32043  else {
32044  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 5); __PYX_ERR(0, 6271, __pyx_L3_error)
32045  }
32046  CYTHON_FALLTHROUGH;
32047  case 6:
32048  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
32049  else {
32050  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 6); __PYX_ERR(0, 6271, __pyx_L3_error)
32051  }
32052  CYTHON_FALLTHROUGH;
32053  case 7:
32054  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
32055  else {
32056  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 7); __PYX_ERR(0, 6271, __pyx_L3_error)
32057  }
32058  CYTHON_FALLTHROUGH;
32059  case 8:
32060  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
32061  else {
32062  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 8); __PYX_ERR(0, 6271, __pyx_L3_error)
32063  }
32064  CYTHON_FALLTHROUGH;
32065  case 9:
32066  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_porosity)) != 0)) kw_args--;
32067  else {
32068  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 9); __PYX_ERR(0, 6271, __pyx_L3_error)
32069  }
32070  CYTHON_FALLTHROUGH;
32071  case 10:
32072  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
32073  else {
32074  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 10); __PYX_ERR(0, 6271, __pyx_L3_error)
32075  }
32076  CYTHON_FALLTHROUGH;
32077  case 11:
32078  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
32079  else {
32080  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 11); __PYX_ERR(0, 6271, __pyx_L3_error)
32081  }
32082  CYTHON_FALLTHROUGH;
32083  case 12:
32084  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
32085  else {
32086  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 12); __PYX_ERR(0, 6271, __pyx_L3_error)
32087  }
32088  CYTHON_FALLTHROUGH;
32089  case 13:
32090  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
32091  else {
32092  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 13); __PYX_ERR(0, 6271, __pyx_L3_error)
32093  }
32094  CYTHON_FALLTHROUGH;
32095  case 14:
32096  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
32097  else {
32098  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 14); __PYX_ERR(0, 6271, __pyx_L3_error)
32099  }
32100  CYTHON_FALLTHROUGH;
32101  case 15:
32102  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
32103  else {
32104  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 15); __PYX_ERR(0, 6271, __pyx_L3_error)
32105  }
32106  CYTHON_FALLTHROUGH;
32107  case 16:
32108  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
32109  else {
32110  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 16); __PYX_ERR(0, 6271, __pyx_L3_error)
32111  }
32112  CYTHON_FALLTHROUGH;
32113  case 17:
32114  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
32115  else {
32116  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 17); __PYX_ERR(0, 6271, __pyx_L3_error)
32117  }
32118  CYTHON_FALLTHROUGH;
32119  case 18:
32120  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
32121  else {
32122  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 18); __PYX_ERR(0, 6271, __pyx_L3_error)
32123  }
32124  CYTHON_FALLTHROUGH;
32125  case 19:
32126  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_w)) != 0)) kw_args--;
32127  else {
32128  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 19); __PYX_ERR(0, 6271, __pyx_L3_error)
32129  }
32130  CYTHON_FALLTHROUGH;
32131  case 20:
32132  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
32133  else {
32134  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 20); __PYX_ERR(0, 6271, __pyx_L3_error)
32135  }
32136  CYTHON_FALLTHROUGH;
32137  case 21:
32138  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
32139  else {
32140  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 21); __PYX_ERR(0, 6271, __pyx_L3_error)
32141  }
32142  CYTHON_FALLTHROUGH;
32143  case 22:
32144  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
32145  else {
32146  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 22); __PYX_ERR(0, 6271, __pyx_L3_error)
32147  }
32148  CYTHON_FALLTHROUGH;
32149  case 23:
32150  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_w)) != 0)) kw_args--;
32151  else {
32152  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 23); __PYX_ERR(0, 6271, __pyx_L3_error)
32153  }
32154  CYTHON_FALLTHROUGH;
32155  case 24:
32156  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
32157  else {
32158  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 24); __PYX_ERR(0, 6271, __pyx_L3_error)
32159  }
32160  CYTHON_FALLTHROUGH;
32161  case 25:
32162  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
32163  else {
32164  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 25); __PYX_ERR(0, 6271, __pyx_L3_error)
32165  }
32166  CYTHON_FALLTHROUGH;
32167  case 26:
32168  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
32169  else {
32170  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 26); __PYX_ERR(0, 6271, __pyx_L3_error)
32171  }
32172  CYTHON_FALLTHROUGH;
32173  case 27:
32174  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_w)) != 0)) kw_args--;
32175  else {
32176  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 27); __PYX_ERR(0, 6271, __pyx_L3_error)
32177  }
32178  CYTHON_FALLTHROUGH;
32179  case 28:
32180  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_adv)) != 0)) kw_args--;
32181  else {
32182  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 28); __PYX_ERR(0, 6271, __pyx_L3_error)
32183  }
32184  CYTHON_FALLTHROUGH;
32185  case 29:
32186  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_u)) != 0)) kw_args--;
32187  else {
32188  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 29); __PYX_ERR(0, 6271, __pyx_L3_error)
32189  }
32190  CYTHON_FALLTHROUGH;
32191  case 30:
32192  if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_v)) != 0)) kw_args--;
32193  else {
32194  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 30); __PYX_ERR(0, 6271, __pyx_L3_error)
32195  }
32196  CYTHON_FALLTHROUGH;
32197  case 31:
32198  if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_w)) != 0)) kw_args--;
32199  else {
32200  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 31); __PYX_ERR(0, 6271, __pyx_L3_error)
32201  }
32202  CYTHON_FALLTHROUGH;
32203  case 32:
32204  if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
32205  else {
32206  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 32); __PYX_ERR(0, 6271, __pyx_L3_error)
32207  }
32208  CYTHON_FALLTHROUGH;
32209  case 33:
32210  if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
32211  else {
32212  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 33); __PYX_ERR(0, 6271, __pyx_L3_error)
32213  }
32214  CYTHON_FALLTHROUGH;
32215  case 34:
32216  if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
32217  else {
32218  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 34); __PYX_ERR(0, 6271, __pyx_L3_error)
32219  }
32220  CYTHON_FALLTHROUGH;
32221  case 35:
32222  if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
32223  else {
32224  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 35); __PYX_ERR(0, 6271, __pyx_L3_error)
32225  }
32226  CYTHON_FALLTHROUGH;
32227  case 36:
32228  if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uw_diff_ten)) != 0)) kw_args--;
32229  else {
32230  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 36); __PYX_ERR(0, 6271, __pyx_L3_error)
32231  }
32232  CYTHON_FALLTHROUGH;
32233  case 37:
32234  if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
32235  else {
32236  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 37); __PYX_ERR(0, 6271, __pyx_L3_error)
32237  }
32238  CYTHON_FALLTHROUGH;
32239  case 38:
32240  if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vw_diff_ten)) != 0)) kw_args--;
32241  else {
32242  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 38); __PYX_ERR(0, 6271, __pyx_L3_error)
32243  }
32244  CYTHON_FALLTHROUGH;
32245  case 39:
32246  if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wu_diff_ten)) != 0)) kw_args--;
32247  else {
32248  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 39); __PYX_ERR(0, 6271, __pyx_L3_error)
32249  }
32250  CYTHON_FALLTHROUGH;
32251  case 40:
32252  if (likely((values[40] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wv_diff_ten)) != 0)) kw_args--;
32253  else {
32254  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 40); __PYX_ERR(0, 6271, __pyx_L3_error)
32255  }
32256  CYTHON_FALLTHROUGH;
32257  case 41:
32258  if (likely((values[41] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
32259  else {
32260  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 41); __PYX_ERR(0, 6271, __pyx_L3_error)
32261  }
32262  CYTHON_FALLTHROUGH;
32263  case 42:
32264  if (likely((values[42] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
32265  else {
32266  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 42); __PYX_ERR(0, 6271, __pyx_L3_error)
32267  }
32268  CYTHON_FALLTHROUGH;
32269  case 43:
32270  if (likely((values[43] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
32271  else {
32272  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 43); __PYX_ERR(0, 6271, __pyx_L3_error)
32273  }
32274  CYTHON_FALLTHROUGH;
32275  case 44:
32276  if (likely((values[44] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_u)) != 0)) kw_args--;
32277  else {
32278  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 44); __PYX_ERR(0, 6271, __pyx_L3_error)
32279  }
32280  CYTHON_FALLTHROUGH;
32281  case 45:
32282  if (likely((values[45] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_v)) != 0)) kw_args--;
32283  else {
32284  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 45); __PYX_ERR(0, 6271, __pyx_L3_error)
32285  }
32286  CYTHON_FALLTHROUGH;
32287  case 46:
32288  if (likely((values[46] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_w)) != 0)) kw_args--;
32289  else {
32290  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 46); __PYX_ERR(0, 6271, __pyx_L3_error)
32291  }
32292  CYTHON_FALLTHROUGH;
32293  case 47:
32294  if (likely((values[47] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_u)) != 0)) kw_args--;
32295  else {
32296  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 47); __PYX_ERR(0, 6271, __pyx_L3_error)
32297  }
32298  CYTHON_FALLTHROUGH;
32299  case 48:
32300  if (likely((values[48] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_v)) != 0)) kw_args--;
32301  else {
32302  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 48); __PYX_ERR(0, 6271, __pyx_L3_error)
32303  }
32304  CYTHON_FALLTHROUGH;
32305  case 49:
32306  if (likely((values[49] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_w)) != 0)) kw_args--;
32307  else {
32308  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 49); __PYX_ERR(0, 6271, __pyx_L3_error)
32309  }
32310  CYTHON_FALLTHROUGH;
32311  case 50:
32312  if (likely((values[50] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_source_u)) != 0)) kw_args--;
32313  else {
32314  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 50); __PYX_ERR(0, 6271, __pyx_L3_error)
32315  }
32316  CYTHON_FALLTHROUGH;
32317  case 51:
32318  if (likely((values[51] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_source_v)) != 0)) kw_args--;
32319  else {
32320  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 51); __PYX_ERR(0, 6271, __pyx_L3_error)
32321  }
32322  CYTHON_FALLTHROUGH;
32323  case 52:
32324  if (likely((values[52] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_source_w)) != 0)) kw_args--;
32325  else {
32326  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 52); __PYX_ERR(0, 6271, __pyx_L3_error)
32327  }
32328  CYTHON_FALLTHROUGH;
32329  case 53:
32330  if (likely((values[53] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
32331  else {
32332  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 53); __PYX_ERR(0, 6271, __pyx_L3_error)
32333  }
32334  CYTHON_FALLTHROUGH;
32335  case 54:
32336  if (likely((values[54] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
32337  else {
32338  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 54); __PYX_ERR(0, 6271, __pyx_L3_error)
32339  }
32340  CYTHON_FALLTHROUGH;
32341  case 55:
32342  if (likely((values[55] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
32343  else {
32344  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 55); __PYX_ERR(0, 6271, __pyx_L3_error)
32345  }
32346  CYTHON_FALLTHROUGH;
32347  case 56:
32348  if (likely((values[56] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
32349  else {
32350  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 56); __PYX_ERR(0, 6271, __pyx_L3_error)
32351  }
32352  CYTHON_FALLTHROUGH;
32353  case 57:
32354  if (likely((values[57] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_ham)) != 0)) kw_args--;
32355  else {
32356  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 57); __PYX_ERR(0, 6271, __pyx_L3_error)
32357  }
32358  CYTHON_FALLTHROUGH;
32359  case 58:
32360  if (likely((values[58] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_ham_grad_p)) != 0)) kw_args--;
32361  else {
32362  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 58); __PYX_ERR(0, 6271, __pyx_L3_error)
32363  }
32364  }
32365  if (unlikely(kw_args > 0)) {
32366  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "VolumeAveragedNavierStokesFullDevStress_3D_Evaluate") < 0)) __PYX_ERR(0, 6271, __pyx_L3_error)
32367  }
32368  } else if (PyTuple_GET_SIZE(__pyx_args) != 59) {
32369  goto __pyx_L5_argtuple_error;
32370  } else {
32371  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
32372  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
32373  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
32374  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
32375  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
32376  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
32377  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
32378  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
32379  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
32380  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
32381  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
32382  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
32383  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
32384  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
32385  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
32386  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
32387  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
32388  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
32389  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
32390  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
32391  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
32392  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
32393  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
32394  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
32395  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
32396  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
32397  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
32398  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
32399  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
32400  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
32401  values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
32402  values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
32403  values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
32404  values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
32405  values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
32406  values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
32407  values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
32408  values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
32409  values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
32410  values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
32411  values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
32412  values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
32413  values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
32414  values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
32415  values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
32416  values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
32417  values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
32418  values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
32419  values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
32420  values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
32421  values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
32422  values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
32423  values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
32424  values[53] = PyTuple_GET_ITEM(__pyx_args, 53);
32425  values[54] = PyTuple_GET_ITEM(__pyx_args, 54);
32426  values[55] = PyTuple_GET_ITEM(__pyx_args, 55);
32427  values[56] = PyTuple_GET_ITEM(__pyx_args, 56);
32428  values[57] = PyTuple_GET_ITEM(__pyx_args, 57);
32429  values[58] = PyTuple_GET_ITEM(__pyx_args, 58);
32430  }
32431  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6271, __pyx_L3_error)
32432  __pyx_v_mu = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_mu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6272, __pyx_L3_error)
32433  __pyx_v_meanGrainSize = ((PyArrayObject *)values[2]);
32434  __pyx_v_g = ((PyArrayObject *)values[3]);
32435  __pyx_v_p = ((PyArrayObject *)values[4]);
32436  __pyx_v_grad_p = ((PyArrayObject *)values[5]);
32437  __pyx_v_u = ((PyArrayObject *)values[6]);
32438  __pyx_v_v = ((PyArrayObject *)values[7]);
32439  __pyx_v_w = ((PyArrayObject *)values[8]);
32440  __pyx_v_porosity = ((PyArrayObject *)values[9]);
32441  __pyx_v_mom_u_acc = ((PyArrayObject *)values[10]);
32442  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[11]);
32443  __pyx_v_mom_v_acc = ((PyArrayObject *)values[12]);
32444  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[13]);
32445  __pyx_v_mom_w_acc = ((PyArrayObject *)values[14]);
32446  __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[15]);
32447  __pyx_v_mass_adv = ((PyArrayObject *)values[16]);
32448  __pyx_v_dmass_adv_u = ((PyArrayObject *)values[17]);
32449  __pyx_v_dmass_adv_v = ((PyArrayObject *)values[18]);
32450  __pyx_v_dmass_adv_w = ((PyArrayObject *)values[19]);
32451  __pyx_v_mom_u_adv = ((PyArrayObject *)values[20]);
32452  __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[21]);
32453  __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[22]);
32454  __pyx_v_dmom_u_adv_w = ((PyArrayObject *)values[23]);
32455  __pyx_v_mom_v_adv = ((PyArrayObject *)values[24]);
32456  __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[25]);
32457  __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[26]);
32458  __pyx_v_dmom_v_adv_w = ((PyArrayObject *)values[27]);
32459  __pyx_v_mom_w_adv = ((PyArrayObject *)values[28]);
32460  __pyx_v_dmom_w_adv_u = ((PyArrayObject *)values[29]);
32461  __pyx_v_dmom_w_adv_v = ((PyArrayObject *)values[30]);
32462  __pyx_v_dmom_w_adv_w = ((PyArrayObject *)values[31]);
32463  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[32]);
32464  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[33]);
32465  __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[34]);
32466  __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[35]);
32467  __pyx_v_mom_uw_diff_ten = ((PyArrayObject *)values[36]);
32468  __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[37]);
32469  __pyx_v_mom_vw_diff_ten = ((PyArrayObject *)values[38]);
32470  __pyx_v_mom_wu_diff_ten = ((PyArrayObject *)values[39]);
32471  __pyx_v_mom_wv_diff_ten = ((PyArrayObject *)values[40]);
32472  __pyx_v_mom_u_source = ((PyArrayObject *)values[41]);
32473  __pyx_v_mom_v_source = ((PyArrayObject *)values[42]);
32474  __pyx_v_mom_w_source = ((PyArrayObject *)values[43]);
32475  __pyx_v_dmom_u_source_u = ((PyArrayObject *)values[44]);
32476  __pyx_v_dmom_u_source_v = ((PyArrayObject *)values[45]);
32477  __pyx_v_dmom_u_source_w = ((PyArrayObject *)values[46]);
32478  __pyx_v_dmom_v_source_u = ((PyArrayObject *)values[47]);
32479  __pyx_v_dmom_v_source_v = ((PyArrayObject *)values[48]);
32480  __pyx_v_dmom_v_source_w = ((PyArrayObject *)values[49]);
32481  __pyx_v_dmom_w_source_u = ((PyArrayObject *)values[50]);
32482  __pyx_v_dmom_w_source_v = ((PyArrayObject *)values[51]);
32483  __pyx_v_dmom_w_source_w = ((PyArrayObject *)values[52]);
32484  __pyx_v_mom_u_ham = ((PyArrayObject *)values[53]);
32485  __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[54]);
32486  __pyx_v_mom_v_ham = ((PyArrayObject *)values[55]);
32487  __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[56]);
32488  __pyx_v_mom_w_ham = ((PyArrayObject *)values[57]);
32489  __pyx_v_dmom_w_ham_grad_p = ((PyArrayObject *)values[58]);
32490  }
32491  goto __pyx_L4_argument_unpacking_done;
32492  __pyx_L5_argtuple_error:;
32493  __Pyx_RaiseArgtupleInvalid("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6271, __pyx_L3_error)
32494  __pyx_L3_error:;
32495  __Pyx_AddTraceback("ctransportCoefficients.VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
32496  __Pyx_RefNannyFinishContext();
32497  return NULL;
32498  __pyx_L4_argument_unpacking_done:;
32499  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_meanGrainSize), __pyx_ptype_5numpy_ndarray, 1, "meanGrainSize", 0))) __PYX_ERR(0, 6273, __pyx_L1_error)
32500  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 6274, __pyx_L1_error)
32501  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 6275, __pyx_L1_error)
32502  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1, "grad_p", 0))) __PYX_ERR(0, 6276, __pyx_L1_error)
32503  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 6277, __pyx_L1_error)
32504  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 6278, __pyx_L1_error)
32505  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1, "w", 0))) __PYX_ERR(0, 6279, __pyx_L1_error)
32506  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_porosity), __pyx_ptype_5numpy_ndarray, 1, "porosity", 0))) __PYX_ERR(0, 6280, __pyx_L1_error)
32507  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 6281, __pyx_L1_error)
32508  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 6282, __pyx_L1_error)
32509  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 6283, __pyx_L1_error)
32510  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 6284, __pyx_L1_error)
32511  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_w_acc", 0))) __PYX_ERR(0, 6285, __pyx_L1_error)
32512  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_acc_w", 0))) __PYX_ERR(0, 6286, __pyx_L1_error)
32513  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 6287, __pyx_L1_error)
32514  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_u", 0))) __PYX_ERR(0, 6288, __pyx_L1_error)
32515  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_v", 0))) __PYX_ERR(0, 6289, __pyx_L1_error)
32516  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_w", 0))) __PYX_ERR(0, 6290, __pyx_L1_error)
32517  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_u_adv", 0))) __PYX_ERR(0, 6291, __pyx_L1_error)
32518  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_u", 0))) __PYX_ERR(0, 6292, __pyx_L1_error)
32519  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_v", 0))) __PYX_ERR(0, 6293, __pyx_L1_error)
32520  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_w", 0))) __PYX_ERR(0, 6294, __pyx_L1_error)
32521  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_v_adv", 0))) __PYX_ERR(0, 6295, __pyx_L1_error)
32522  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_u", 0))) __PYX_ERR(0, 6296, __pyx_L1_error)
32523  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_v", 0))) __PYX_ERR(0, 6297, __pyx_L1_error)
32524  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_w", 0))) __PYX_ERR(0, 6298, __pyx_L1_error)
32525  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_w_adv", 0))) __PYX_ERR(0, 6299, __pyx_L1_error)
32526  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_u", 0))) __PYX_ERR(0, 6300, __pyx_L1_error)
32527  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_v", 0))) __PYX_ERR(0, 6301, __pyx_L1_error)
32528  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_w", 0))) __PYX_ERR(0, 6302, __pyx_L1_error)
32529  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 6303, __pyx_L1_error)
32530  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 6304, __pyx_L1_error)
32531  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_w_diff_ten", 0))) __PYX_ERR(0, 6305, __pyx_L1_error)
32532  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uv_diff_ten", 0))) __PYX_ERR(0, 6306, __pyx_L1_error)
32533  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uw_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uw_diff_ten", 0))) __PYX_ERR(0, 6307, __pyx_L1_error)
32534  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vu_diff_ten", 0))) __PYX_ERR(0, 6308, __pyx_L1_error)
32535  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vw_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vw_diff_ten", 0))) __PYX_ERR(0, 6309, __pyx_L1_error)
32536  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_wu_diff_ten", 0))) __PYX_ERR(0, 6310, __pyx_L1_error)
32537  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_wv_diff_ten", 0))) __PYX_ERR(0, 6311, __pyx_L1_error)
32538  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 6312, __pyx_L1_error)
32539  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 6313, __pyx_L1_error)
32540  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1, "mom_w_source", 0))) __PYX_ERR(0, 6314, __pyx_L1_error)
32541  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_source_u", 0))) __PYX_ERR(0, 6315, __pyx_L1_error)
32542  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_source_v", 0))) __PYX_ERR(0, 6316, __pyx_L1_error)
32543  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_source_w", 0))) __PYX_ERR(0, 6317, __pyx_L1_error)
32544  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_source_u", 0))) __PYX_ERR(0, 6318, __pyx_L1_error)
32545  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_source_v", 0))) __PYX_ERR(0, 6319, __pyx_L1_error)
32546  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_source_w", 0))) __PYX_ERR(0, 6320, __pyx_L1_error)
32547  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_source_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_source_u", 0))) __PYX_ERR(0, 6321, __pyx_L1_error)
32548  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_source_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_source_v", 0))) __PYX_ERR(0, 6322, __pyx_L1_error)
32549  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_source_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_source_w", 0))) __PYX_ERR(0, 6323, __pyx_L1_error)
32550  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_u_ham", 0))) __PYX_ERR(0, 6324, __pyx_L1_error)
32551  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 6325, __pyx_L1_error)
32552  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_v_ham", 0))) __PYX_ERR(0, 6326, __pyx_L1_error)
32553  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 6327, __pyx_L1_error)
32554  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_w_ham", 0))) __PYX_ERR(0, 6328, __pyx_L1_error)
32555  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_ham_grad_p", 0))) __PYX_ERR(0, 6329, __pyx_L1_error)
32556  __pyx_r = __pyx_pf_22ctransportCoefficients_168VolumeAveragedNavierStokesFullDevStress_3D_Evaluate(__pyx_self, __pyx_v_rho, __pyx_v_mu, __pyx_v_meanGrainSize, __pyx_v_g, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_porosity, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mom_w_acc, __pyx_v_dmom_w_acc_w, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_dmass_adv_w, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_dmom_u_adv_w, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_dmom_v_adv_w, __pyx_v_mom_w_adv, __pyx_v_dmom_w_adv_u, __pyx_v_dmom_w_adv_v, __pyx_v_dmom_w_adv_w, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_uw_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_vw_diff_ten, __pyx_v_mom_wu_diff_ten, __pyx_v_mom_wv_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source, __pyx_v_dmom_u_source_u, __pyx_v_dmom_u_source_v, __pyx_v_dmom_u_source_w, __pyx_v_dmom_v_source_u, __pyx_v_dmom_v_source_v, __pyx_v_dmom_v_source_w, __pyx_v_dmom_w_source_u, __pyx_v_dmom_w_source_v, __pyx_v_dmom_w_source_w, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p, __pyx_v_mom_w_ham, __pyx_v_dmom_w_ham_grad_p);
32557 
32558  /* function exit code */
32559  goto __pyx_L0;
32560  __pyx_L1_error:;
32561  __pyx_r = NULL;
32562  __pyx_L0:;
32563  __Pyx_RefNannyFinishContext();
32564  return __pyx_r;
32565 }
32566 
32567 static PyObject *__pyx_pf_22ctransportCoefficients_168VolumeAveragedNavierStokesFullDevStress_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, double __pyx_v_mu, PyArrayObject *__pyx_v_meanGrainSize, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_u_source_w, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_dmom_v_source_w, PyArrayObject *__pyx_v_dmom_w_source_u, PyArrayObject *__pyx_v_dmom_w_source_v, PyArrayObject *__pyx_v_dmom_w_source_w, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p) {
32568  PyObject *__pyx_r = NULL;
32569  __Pyx_RefNannyDeclarations
32570  PyObject *__pyx_t_1 = NULL;
32571  int __pyx_t_2;
32572  int __pyx_lineno = 0;
32573  const char *__pyx_filename = NULL;
32574  int __pyx_clineno = 0;
32575  __Pyx_RefNannySetupContext("VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 0);
32576 
32577  /* "ctransportCoefficients.pyx":6330
32578  * np.ndarray mom_w_ham,
32579  * np.ndarray dmom_w_ham_grad_p):
32580  * cVolumeAveragedNavierStokesFullDevStress_3D_Evaluate(p.size, # <<<<<<<<<<<<<<
32581  * rho,
32582  * mu,
32583  */
32584  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6330, __pyx_L1_error)
32585  __Pyx_GOTREF(__pyx_t_1);
32586  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6330, __pyx_L1_error)
32587  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
32588 
32589  /* "ctransportCoefficients.pyx":6389
32590  * <double*> dmom_v_ham_grad_p.data,
32591  * <double*> mom_w_ham.data,
32592  * <double*> dmom_w_ham_grad_p.data) # <<<<<<<<<<<<<<
32593  * def VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate(const int killNonlinearDrag,
32594  * const double eps_rho,
32595  */
32596  VolumeAveragedNavierStokesFullDevStress_3D_Evaluate(__pyx_t_2, __pyx_v_rho, __pyx_v_mu, ((double *)__pyx_v_meanGrainSize->data), ((double *)__pyx_v_g->data), ((double *)__pyx_v_p->data), ((double *)__pyx_v_grad_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_w->data), ((double *)__pyx_v_porosity->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_v_acc_v->data), ((double *)__pyx_v_mom_w_acc->data), ((double *)__pyx_v_dmom_w_acc_w->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_u->data), ((double *)__pyx_v_dmass_adv_v->data), ((double *)__pyx_v_dmass_adv_w->data), ((double *)__pyx_v_mom_u_adv->data), ((double *)__pyx_v_dmom_u_adv_u->data), ((double *)__pyx_v_dmom_u_adv_v->data), ((double *)__pyx_v_dmom_u_adv_w->data), ((double *)__pyx_v_mom_v_adv->data), ((double *)__pyx_v_dmom_v_adv_u->data), ((double *)__pyx_v_dmom_v_adv_v->data), ((double *)__pyx_v_dmom_v_adv_w->data), ((double *)__pyx_v_mom_w_adv->data), ((double *)__pyx_v_dmom_w_adv_u->data), ((double *)__pyx_v_dmom_w_adv_v->data), ((double *)__pyx_v_dmom_w_adv_w->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_w_diff_ten->data), ((double *)__pyx_v_mom_uv_diff_ten->data), ((double *)__pyx_v_mom_uw_diff_ten->data), ((double *)__pyx_v_mom_vu_diff_ten->data), ((double *)__pyx_v_mom_vw_diff_ten->data), ((double *)__pyx_v_mom_wu_diff_ten->data), ((double *)__pyx_v_mom_wv_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_mom_w_source->data), ((double *)__pyx_v_dmom_u_source_u->data), ((double *)__pyx_v_dmom_u_source_v->data), ((double *)__pyx_v_dmom_u_source_w->data), ((double *)__pyx_v_dmom_v_source_u->data), ((double *)__pyx_v_dmom_v_source_v->data), ((double *)__pyx_v_dmom_v_source_w->data), ((double *)__pyx_v_dmom_w_source_u->data), ((double *)__pyx_v_dmom_w_source_v->data), ((double *)__pyx_v_dmom_w_source_w->data), ((double *)__pyx_v_mom_u_ham->data), ((double *)__pyx_v_dmom_u_ham_grad_p->data), ((double *)__pyx_v_mom_v_ham->data), ((double *)__pyx_v_dmom_v_ham_grad_p->data), ((double *)__pyx_v_mom_w_ham->data), ((double *)__pyx_v_dmom_w_ham_grad_p->data));
32597 
32598  /* "ctransportCoefficients.pyx":6271
32599  * <double*> mom_v_ham.data,
32600  * <double*> dmom_v_ham_grad_p.data)
32601  * def VolumeAveragedNavierStokesFullDevStress_3D_Evaluate(const double rho, # <<<<<<<<<<<<<<
32602  * const double mu,
32603  * np.ndarray meanGrainSize,
32604  */
32605 
32606  /* function exit code */
32607  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
32608  goto __pyx_L0;
32609  __pyx_L1_error:;
32610  __Pyx_XDECREF(__pyx_t_1);
32611  __Pyx_AddTraceback("ctransportCoefficients.VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
32612  __pyx_r = NULL;
32613  __pyx_L0:;
32614  __Pyx_XGIVEREF(__pyx_r);
32615  __Pyx_RefNannyFinishContext();
32616  return __pyx_r;
32617 }
32618 
32619 /* "ctransportCoefficients.pyx":6390
32620  * <double*> mom_w_ham.data,
32621  * <double*> dmom_w_ham_grad_p.data)
32622  * def VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate(const int killNonlinearDrag, # <<<<<<<<<<<<<<
32623  * const double eps_rho,
32624  * const double eps_mu,
32625  */
32626 
32627 /* Python wrapper */
32628 static PyObject *__pyx_pw_22ctransportCoefficients_171VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
32629 static PyMethodDef __pyx_mdef_22ctransportCoefficients_171VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate = {"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_171VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
32630 static PyObject *__pyx_pw_22ctransportCoefficients_171VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
32631  int __pyx_v_killNonlinearDrag;
32632  double __pyx_v_eps_rho;
32633  double __pyx_v_eps_mu;
32634  double __pyx_v_sigma;
32635  double __pyx_v_rho_0;
32636  double __pyx_v_nu_0;
32637  double __pyx_v_rho_1;
32638  double __pyx_v_nu_1;
32639  PyArrayObject *__pyx_v_meanGrainSize = 0;
32640  PyArrayObject *__pyx_v_g = 0;
32641  PyArrayObject *__pyx_v_phi = 0;
32642  PyArrayObject *__pyx_v_n = 0;
32643  PyArrayObject *__pyx_v_kappa = 0;
32644  PyArrayObject *__pyx_v_p = 0;
32645  PyArrayObject *__pyx_v_grad_p = 0;
32646  PyArrayObject *__pyx_v_u = 0;
32647  PyArrayObject *__pyx_v_v = 0;
32648  PyArrayObject *__pyx_v_porosity = 0;
32649  PyArrayObject *__pyx_v_mom_u_acc = 0;
32650  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
32651  PyArrayObject *__pyx_v_mom_v_acc = 0;
32652  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
32653  PyArrayObject *__pyx_v_mass_adv = 0;
32654  PyArrayObject *__pyx_v_dmass_adv_u = 0;
32655  PyArrayObject *__pyx_v_dmass_adv_v = 0;
32656  PyArrayObject *__pyx_v_mom_u_adv = 0;
32657  PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
32658  PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
32659  PyArrayObject *__pyx_v_mom_v_adv = 0;
32660  PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
32661  PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
32662  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
32663  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
32664  PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
32665  PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
32666  PyArrayObject *__pyx_v_mom_u_source = 0;
32667  PyArrayObject *__pyx_v_mom_v_source = 0;
32668  PyArrayObject *__pyx_v_dmom_u_source_u = 0;
32669  PyArrayObject *__pyx_v_dmom_u_source_v = 0;
32670  PyArrayObject *__pyx_v_dmom_v_source_u = 0;
32671  PyArrayObject *__pyx_v_dmom_v_source_v = 0;
32672  PyArrayObject *__pyx_v_mom_u_ham = 0;
32673  PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
32674  PyArrayObject *__pyx_v_mom_v_ham = 0;
32675  PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
32676  int __pyx_lineno = 0;
32677  const char *__pyx_filename = NULL;
32678  int __pyx_clineno = 0;
32679  PyObject *__pyx_r = 0;
32680  __Pyx_RefNannyDeclarations
32681  __Pyx_RefNannySetupContext("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate (wrapper)", 0);
32682  {
32683  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_killNonlinearDrag,&__pyx_n_s_eps_rho,&__pyx_n_s_eps_mu,&__pyx_n_s_sigma,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_meanGrainSize,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_n,&__pyx_n_s_kappa,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_porosity,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_dmom_u_source_u,&__pyx_n_s_dmom_u_source_v,&__pyx_n_s_dmom_v_source_u,&__pyx_n_s_dmom_v_source_v,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,0};
32684  PyObject* values[45] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
32685  if (unlikely(__pyx_kwds)) {
32686  Py_ssize_t kw_args;
32687  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
32688  switch (pos_args) {
32689  case 45: values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
32690  CYTHON_FALLTHROUGH;
32691  case 44: values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
32692  CYTHON_FALLTHROUGH;
32693  case 43: values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
32694  CYTHON_FALLTHROUGH;
32695  case 42: values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
32696  CYTHON_FALLTHROUGH;
32697  case 41: values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
32698  CYTHON_FALLTHROUGH;
32699  case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
32700  CYTHON_FALLTHROUGH;
32701  case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
32702  CYTHON_FALLTHROUGH;
32703  case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
32704  CYTHON_FALLTHROUGH;
32705  case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
32706  CYTHON_FALLTHROUGH;
32707  case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
32708  CYTHON_FALLTHROUGH;
32709  case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
32710  CYTHON_FALLTHROUGH;
32711  case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
32712  CYTHON_FALLTHROUGH;
32713  case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
32714  CYTHON_FALLTHROUGH;
32715  case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
32716  CYTHON_FALLTHROUGH;
32717  case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
32718  CYTHON_FALLTHROUGH;
32719  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
32720  CYTHON_FALLTHROUGH;
32721  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
32722  CYTHON_FALLTHROUGH;
32723  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
32724  CYTHON_FALLTHROUGH;
32725  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
32726  CYTHON_FALLTHROUGH;
32727  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
32728  CYTHON_FALLTHROUGH;
32729  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
32730  CYTHON_FALLTHROUGH;
32731  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
32732  CYTHON_FALLTHROUGH;
32733  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
32734  CYTHON_FALLTHROUGH;
32735  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
32736  CYTHON_FALLTHROUGH;
32737  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
32738  CYTHON_FALLTHROUGH;
32739  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
32740  CYTHON_FALLTHROUGH;
32741  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
32742  CYTHON_FALLTHROUGH;
32743  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
32744  CYTHON_FALLTHROUGH;
32745  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
32746  CYTHON_FALLTHROUGH;
32747  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
32748  CYTHON_FALLTHROUGH;
32749  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
32750  CYTHON_FALLTHROUGH;
32751  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
32752  CYTHON_FALLTHROUGH;
32753  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
32754  CYTHON_FALLTHROUGH;
32755  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
32756  CYTHON_FALLTHROUGH;
32757  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
32758  CYTHON_FALLTHROUGH;
32759  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
32760  CYTHON_FALLTHROUGH;
32761  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
32762  CYTHON_FALLTHROUGH;
32763  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
32764  CYTHON_FALLTHROUGH;
32765  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
32766  CYTHON_FALLTHROUGH;
32767  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
32768  CYTHON_FALLTHROUGH;
32769  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
32770  CYTHON_FALLTHROUGH;
32771  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
32772  CYTHON_FALLTHROUGH;
32773  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
32774  CYTHON_FALLTHROUGH;
32775  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
32776  CYTHON_FALLTHROUGH;
32777  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
32778  CYTHON_FALLTHROUGH;
32779  case 0: break;
32780  default: goto __pyx_L5_argtuple_error;
32781  }
32782  kw_args = PyDict_Size(__pyx_kwds);
32783  switch (pos_args) {
32784  case 0:
32785  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_killNonlinearDrag)) != 0)) kw_args--;
32786  else goto __pyx_L5_argtuple_error;
32787  CYTHON_FALLTHROUGH;
32788  case 1:
32789  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_rho)) != 0)) kw_args--;
32790  else {
32791  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 1); __PYX_ERR(0, 6390, __pyx_L3_error)
32792  }
32793  CYTHON_FALLTHROUGH;
32794  case 2:
32795  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_mu)) != 0)) kw_args--;
32796  else {
32797  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 2); __PYX_ERR(0, 6390, __pyx_L3_error)
32798  }
32799  CYTHON_FALLTHROUGH;
32800  case 3:
32801  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
32802  else {
32803  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 3); __PYX_ERR(0, 6390, __pyx_L3_error)
32804  }
32805  CYTHON_FALLTHROUGH;
32806  case 4:
32807  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
32808  else {
32809  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 4); __PYX_ERR(0, 6390, __pyx_L3_error)
32810  }
32811  CYTHON_FALLTHROUGH;
32812  case 5:
32813  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
32814  else {
32815  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 5); __PYX_ERR(0, 6390, __pyx_L3_error)
32816  }
32817  CYTHON_FALLTHROUGH;
32818  case 6:
32819  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
32820  else {
32821  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 6); __PYX_ERR(0, 6390, __pyx_L3_error)
32822  }
32823  CYTHON_FALLTHROUGH;
32824  case 7:
32825  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
32826  else {
32827  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 7); __PYX_ERR(0, 6390, __pyx_L3_error)
32828  }
32829  CYTHON_FALLTHROUGH;
32830  case 8:
32831  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_meanGrainSize)) != 0)) kw_args--;
32832  else {
32833  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 8); __PYX_ERR(0, 6390, __pyx_L3_error)
32834  }
32835  CYTHON_FALLTHROUGH;
32836  case 9:
32837  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
32838  else {
32839  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 9); __PYX_ERR(0, 6390, __pyx_L3_error)
32840  }
32841  CYTHON_FALLTHROUGH;
32842  case 10:
32843  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
32844  else {
32845  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 10); __PYX_ERR(0, 6390, __pyx_L3_error)
32846  }
32847  CYTHON_FALLTHROUGH;
32848  case 11:
32849  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
32850  else {
32851  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 11); __PYX_ERR(0, 6390, __pyx_L3_error)
32852  }
32853  CYTHON_FALLTHROUGH;
32854  case 12:
32855  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kappa)) != 0)) kw_args--;
32856  else {
32857  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 12); __PYX_ERR(0, 6390, __pyx_L3_error)
32858  }
32859  CYTHON_FALLTHROUGH;
32860  case 13:
32861  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
32862  else {
32863  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 13); __PYX_ERR(0, 6390, __pyx_L3_error)
32864  }
32865  CYTHON_FALLTHROUGH;
32866  case 14:
32867  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
32868  else {
32869  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 14); __PYX_ERR(0, 6390, __pyx_L3_error)
32870  }
32871  CYTHON_FALLTHROUGH;
32872  case 15:
32873  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
32874  else {
32875  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 15); __PYX_ERR(0, 6390, __pyx_L3_error)
32876  }
32877  CYTHON_FALLTHROUGH;
32878  case 16:
32879  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
32880  else {
32881  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 16); __PYX_ERR(0, 6390, __pyx_L3_error)
32882  }
32883  CYTHON_FALLTHROUGH;
32884  case 17:
32885  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_porosity)) != 0)) kw_args--;
32886  else {
32887  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 17); __PYX_ERR(0, 6390, __pyx_L3_error)
32888  }
32889  CYTHON_FALLTHROUGH;
32890  case 18:
32891  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
32892  else {
32893  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 18); __PYX_ERR(0, 6390, __pyx_L3_error)
32894  }
32895  CYTHON_FALLTHROUGH;
32896  case 19:
32897  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
32898  else {
32899  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 19); __PYX_ERR(0, 6390, __pyx_L3_error)
32900  }
32901  CYTHON_FALLTHROUGH;
32902  case 20:
32903  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
32904  else {
32905  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 20); __PYX_ERR(0, 6390, __pyx_L3_error)
32906  }
32907  CYTHON_FALLTHROUGH;
32908  case 21:
32909  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
32910  else {
32911  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 21); __PYX_ERR(0, 6390, __pyx_L3_error)
32912  }
32913  CYTHON_FALLTHROUGH;
32914  case 22:
32915  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
32916  else {
32917  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 22); __PYX_ERR(0, 6390, __pyx_L3_error)
32918  }
32919  CYTHON_FALLTHROUGH;
32920  case 23:
32921  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
32922  else {
32923  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 23); __PYX_ERR(0, 6390, __pyx_L3_error)
32924  }
32925  CYTHON_FALLTHROUGH;
32926  case 24:
32927  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
32928  else {
32929  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 24); __PYX_ERR(0, 6390, __pyx_L3_error)
32930  }
32931  CYTHON_FALLTHROUGH;
32932  case 25:
32933  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
32934  else {
32935  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 25); __PYX_ERR(0, 6390, __pyx_L3_error)
32936  }
32937  CYTHON_FALLTHROUGH;
32938  case 26:
32939  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
32940  else {
32941  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 26); __PYX_ERR(0, 6390, __pyx_L3_error)
32942  }
32943  CYTHON_FALLTHROUGH;
32944  case 27:
32945  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
32946  else {
32947  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 27); __PYX_ERR(0, 6390, __pyx_L3_error)
32948  }
32949  CYTHON_FALLTHROUGH;
32950  case 28:
32951  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
32952  else {
32953  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 28); __PYX_ERR(0, 6390, __pyx_L3_error)
32954  }
32955  CYTHON_FALLTHROUGH;
32956  case 29:
32957  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
32958  else {
32959  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 29); __PYX_ERR(0, 6390, __pyx_L3_error)
32960  }
32961  CYTHON_FALLTHROUGH;
32962  case 30:
32963  if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
32964  else {
32965  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 30); __PYX_ERR(0, 6390, __pyx_L3_error)
32966  }
32967  CYTHON_FALLTHROUGH;
32968  case 31:
32969  if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
32970  else {
32971  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 31); __PYX_ERR(0, 6390, __pyx_L3_error)
32972  }
32973  CYTHON_FALLTHROUGH;
32974  case 32:
32975  if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
32976  else {
32977  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 32); __PYX_ERR(0, 6390, __pyx_L3_error)
32978  }
32979  CYTHON_FALLTHROUGH;
32980  case 33:
32981  if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
32982  else {
32983  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 33); __PYX_ERR(0, 6390, __pyx_L3_error)
32984  }
32985  CYTHON_FALLTHROUGH;
32986  case 34:
32987  if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
32988  else {
32989  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 34); __PYX_ERR(0, 6390, __pyx_L3_error)
32990  }
32991  CYTHON_FALLTHROUGH;
32992  case 35:
32993  if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
32994  else {
32995  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 35); __PYX_ERR(0, 6390, __pyx_L3_error)
32996  }
32997  CYTHON_FALLTHROUGH;
32998  case 36:
32999  if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
33000  else {
33001  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 36); __PYX_ERR(0, 6390, __pyx_L3_error)
33002  }
33003  CYTHON_FALLTHROUGH;
33004  case 37:
33005  if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_u)) != 0)) kw_args--;
33006  else {
33007  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 37); __PYX_ERR(0, 6390, __pyx_L3_error)
33008  }
33009  CYTHON_FALLTHROUGH;
33010  case 38:
33011  if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_v)) != 0)) kw_args--;
33012  else {
33013  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 38); __PYX_ERR(0, 6390, __pyx_L3_error)
33014  }
33015  CYTHON_FALLTHROUGH;
33016  case 39:
33017  if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_u)) != 0)) kw_args--;
33018  else {
33019  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 39); __PYX_ERR(0, 6390, __pyx_L3_error)
33020  }
33021  CYTHON_FALLTHROUGH;
33022  case 40:
33023  if (likely((values[40] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_v)) != 0)) kw_args--;
33024  else {
33025  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 40); __PYX_ERR(0, 6390, __pyx_L3_error)
33026  }
33027  CYTHON_FALLTHROUGH;
33028  case 41:
33029  if (likely((values[41] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
33030  else {
33031  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 41); __PYX_ERR(0, 6390, __pyx_L3_error)
33032  }
33033  CYTHON_FALLTHROUGH;
33034  case 42:
33035  if (likely((values[42] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
33036  else {
33037  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 42); __PYX_ERR(0, 6390, __pyx_L3_error)
33038  }
33039  CYTHON_FALLTHROUGH;
33040  case 43:
33041  if (likely((values[43] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
33042  else {
33043  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 43); __PYX_ERR(0, 6390, __pyx_L3_error)
33044  }
33045  CYTHON_FALLTHROUGH;
33046  case 44:
33047  if (likely((values[44] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
33048  else {
33049  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 44); __PYX_ERR(0, 6390, __pyx_L3_error)
33050  }
33051  }
33052  if (unlikely(kw_args > 0)) {
33053  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate") < 0)) __PYX_ERR(0, 6390, __pyx_L3_error)
33054  }
33055  } else if (PyTuple_GET_SIZE(__pyx_args) != 45) {
33056  goto __pyx_L5_argtuple_error;
33057  } else {
33058  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
33059  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
33060  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
33061  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
33062  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
33063  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
33064  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
33065  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
33066  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
33067  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
33068  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
33069  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
33070  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
33071  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
33072  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
33073  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
33074  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
33075  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
33076  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
33077  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
33078  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
33079  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
33080  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
33081  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
33082  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
33083  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
33084  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
33085  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
33086  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
33087  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
33088  values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
33089  values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
33090  values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
33091  values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
33092  values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
33093  values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
33094  values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
33095  values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
33096  values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
33097  values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
33098  values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
33099  values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
33100  values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
33101  values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
33102  values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
33103  }
33104  __pyx_v_killNonlinearDrag = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_killNonlinearDrag == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6390, __pyx_L3_error)
33105  __pyx_v_eps_rho = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_eps_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6391, __pyx_L3_error)
33106  __pyx_v_eps_mu = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_eps_mu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6392, __pyx_L3_error)
33107  __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_sigma == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6393, __pyx_L3_error)
33108  __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_rho_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6394, __pyx_L3_error)
33109  __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_nu_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6395, __pyx_L3_error)
33110  __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_rho_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6396, __pyx_L3_error)
33111  __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[7]); if (unlikely((__pyx_v_nu_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6397, __pyx_L3_error)
33112  __pyx_v_meanGrainSize = ((PyArrayObject *)values[8]);
33113  __pyx_v_g = ((PyArrayObject *)values[9]);
33114  __pyx_v_phi = ((PyArrayObject *)values[10]);
33115  __pyx_v_n = ((PyArrayObject *)values[11]);
33116  __pyx_v_kappa = ((PyArrayObject *)values[12]);
33117  __pyx_v_p = ((PyArrayObject *)values[13]);
33118  __pyx_v_grad_p = ((PyArrayObject *)values[14]);
33119  __pyx_v_u = ((PyArrayObject *)values[15]);
33120  __pyx_v_v = ((PyArrayObject *)values[16]);
33121  __pyx_v_porosity = ((PyArrayObject *)values[17]);
33122  __pyx_v_mom_u_acc = ((PyArrayObject *)values[18]);
33123  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[19]);
33124  __pyx_v_mom_v_acc = ((PyArrayObject *)values[20]);
33125  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[21]);
33126  __pyx_v_mass_adv = ((PyArrayObject *)values[22]);
33127  __pyx_v_dmass_adv_u = ((PyArrayObject *)values[23]);
33128  __pyx_v_dmass_adv_v = ((PyArrayObject *)values[24]);
33129  __pyx_v_mom_u_adv = ((PyArrayObject *)values[25]);
33130  __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[26]);
33131  __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[27]);
33132  __pyx_v_mom_v_adv = ((PyArrayObject *)values[28]);
33133  __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[29]);
33134  __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[30]);
33135  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[31]);
33136  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[32]);
33137  __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[33]);
33138  __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[34]);
33139  __pyx_v_mom_u_source = ((PyArrayObject *)values[35]);
33140  __pyx_v_mom_v_source = ((PyArrayObject *)values[36]);
33141  __pyx_v_dmom_u_source_u = ((PyArrayObject *)values[37]);
33142  __pyx_v_dmom_u_source_v = ((PyArrayObject *)values[38]);
33143  __pyx_v_dmom_v_source_u = ((PyArrayObject *)values[39]);
33144  __pyx_v_dmom_v_source_v = ((PyArrayObject *)values[40]);
33145  __pyx_v_mom_u_ham = ((PyArrayObject *)values[41]);
33146  __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[42]);
33147  __pyx_v_mom_v_ham = ((PyArrayObject *)values[43]);
33148  __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[44]);
33149  }
33150  goto __pyx_L4_argument_unpacking_done;
33151  __pyx_L5_argtuple_error:;
33152  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6390, __pyx_L3_error)
33153  __pyx_L3_error:;
33154  __Pyx_AddTraceback("ctransportCoefficients.VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
33155  __Pyx_RefNannyFinishContext();
33156  return NULL;
33157  __pyx_L4_argument_unpacking_done:;
33158  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_meanGrainSize), __pyx_ptype_5numpy_ndarray, 1, "meanGrainSize", 0))) __PYX_ERR(0, 6398, __pyx_L1_error)
33159  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 6399, __pyx_L1_error)
33160  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 6400, __pyx_L1_error)
33161  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1, "n", 0))) __PYX_ERR(0, 6401, __pyx_L1_error)
33162  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kappa), __pyx_ptype_5numpy_ndarray, 1, "kappa", 0))) __PYX_ERR(0, 6402, __pyx_L1_error)
33163  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 6403, __pyx_L1_error)
33164  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1, "grad_p", 0))) __PYX_ERR(0, 6404, __pyx_L1_error)
33165  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 6405, __pyx_L1_error)
33166  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 6406, __pyx_L1_error)
33167  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_porosity), __pyx_ptype_5numpy_ndarray, 1, "porosity", 0))) __PYX_ERR(0, 6407, __pyx_L1_error)
33168  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 6408, __pyx_L1_error)
33169  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 6409, __pyx_L1_error)
33170  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 6410, __pyx_L1_error)
33171  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 6411, __pyx_L1_error)
33172  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 6412, __pyx_L1_error)
33173  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_u", 0))) __PYX_ERR(0, 6413, __pyx_L1_error)
33174  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_v", 0))) __PYX_ERR(0, 6414, __pyx_L1_error)
33175  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_u_adv", 0))) __PYX_ERR(0, 6415, __pyx_L1_error)
33176  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_u", 0))) __PYX_ERR(0, 6416, __pyx_L1_error)
33177  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_v", 0))) __PYX_ERR(0, 6417, __pyx_L1_error)
33178  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_v_adv", 0))) __PYX_ERR(0, 6418, __pyx_L1_error)
33179  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_u", 0))) __PYX_ERR(0, 6419, __pyx_L1_error)
33180  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_v", 0))) __PYX_ERR(0, 6420, __pyx_L1_error)
33181  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 6421, __pyx_L1_error)
33182  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 6422, __pyx_L1_error)
33183  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uv_diff_ten", 0))) __PYX_ERR(0, 6423, __pyx_L1_error)
33184  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vu_diff_ten", 0))) __PYX_ERR(0, 6424, __pyx_L1_error)
33185  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 6425, __pyx_L1_error)
33186  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 6426, __pyx_L1_error)
33187  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_source_u", 0))) __PYX_ERR(0, 6427, __pyx_L1_error)
33188  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_source_v", 0))) __PYX_ERR(0, 6428, __pyx_L1_error)
33189  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_source_u", 0))) __PYX_ERR(0, 6429, __pyx_L1_error)
33190  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_source_v", 0))) __PYX_ERR(0, 6430, __pyx_L1_error)
33191  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_u_ham", 0))) __PYX_ERR(0, 6431, __pyx_L1_error)
33192  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 6432, __pyx_L1_error)
33193  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_v_ham", 0))) __PYX_ERR(0, 6433, __pyx_L1_error)
33194  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 6434, __pyx_L1_error)
33195  __pyx_r = __pyx_pf_22ctransportCoefficients_170VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate(__pyx_self, __pyx_v_killNonlinearDrag, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_meanGrainSize, __pyx_v_g, __pyx_v_phi, __pyx_v_n, __pyx_v_kappa, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_porosity, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_dmom_u_source_u, __pyx_v_dmom_u_source_v, __pyx_v_dmom_v_source_u, __pyx_v_dmom_v_source_v, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p);
33196 
33197  /* function exit code */
33198  goto __pyx_L0;
33199  __pyx_L1_error:;
33200  __pyx_r = NULL;
33201  __pyx_L0:;
33202  __Pyx_RefNannyFinishContext();
33203  return __pyx_r;
33204 }
33205 
33206 static PyObject *__pyx_pf_22ctransportCoefficients_170VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_killNonlinearDrag, double __pyx_v_eps_rho, double __pyx_v_eps_mu, double __pyx_v_sigma, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_meanGrainSize, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p) {
33207  PyObject *__pyx_r = NULL;
33208  __Pyx_RefNannyDeclarations
33209  PyObject *__pyx_t_1 = NULL;
33210  int __pyx_t_2;
33211  int __pyx_lineno = 0;
33212  const char *__pyx_filename = NULL;
33213  int __pyx_clineno = 0;
33214  __Pyx_RefNannySetupContext("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 0);
33215 
33216  /* "ctransportCoefficients.pyx":6435
33217  * np.ndarray mom_v_ham,
33218  * np.ndarray dmom_v_ham_grad_p):
33219  * cVolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate(p.size, # <<<<<<<<<<<<<<
33220  * killNonlinearDrag,
33221  * eps_rho,
33222  */
33223  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6435, __pyx_L1_error)
33224  __Pyx_GOTREF(__pyx_t_1);
33225  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6435, __pyx_L1_error)
33226  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
33227 
33228  /* "ctransportCoefficients.pyx":6480
33229  * <double*> dmom_u_ham_grad_p.data,
33230  * <double*> mom_v_ham.data,
33231  * <double*> dmom_v_ham_grad_p.data) # <<<<<<<<<<<<<<
33232  * def VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(const int killNonlinearDrag,
33233  * const double eps_rho,
33234  */
33235  VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate(__pyx_t_2, __pyx_v_killNonlinearDrag, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((double *)__pyx_v_meanGrainSize->data), ((double *)__pyx_v_g->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_n->data), ((double *)__pyx_v_kappa->data), ((double *)__pyx_v_p->data), ((double *)__pyx_v_grad_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_porosity->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_v_acc_v->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_u->data), ((double *)__pyx_v_dmass_adv_v->data), ((double *)__pyx_v_mom_u_adv->data), ((double *)__pyx_v_dmom_u_adv_u->data), ((double *)__pyx_v_dmom_u_adv_v->data), ((double *)__pyx_v_mom_v_adv->data), ((double *)__pyx_v_dmom_v_adv_u->data), ((double *)__pyx_v_dmom_v_adv_v->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_uv_diff_ten->data), ((double *)__pyx_v_mom_vu_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_dmom_u_source_u->data), ((double *)__pyx_v_dmom_u_source_v->data), ((double *)__pyx_v_dmom_v_source_u->data), ((double *)__pyx_v_dmom_v_source_v->data), ((double *)__pyx_v_mom_u_ham->data), ((double *)__pyx_v_dmom_u_ham_grad_p->data), ((double *)__pyx_v_mom_v_ham->data), ((double *)__pyx_v_dmom_v_ham_grad_p->data));
33236 
33237  /* "ctransportCoefficients.pyx":6390
33238  * <double*> mom_w_ham.data,
33239  * <double*> dmom_w_ham_grad_p.data)
33240  * def VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate(const int killNonlinearDrag, # <<<<<<<<<<<<<<
33241  * const double eps_rho,
33242  * const double eps_mu,
33243  */
33244 
33245  /* function exit code */
33246  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
33247  goto __pyx_L0;
33248  __pyx_L1_error:;
33249  __Pyx_XDECREF(__pyx_t_1);
33250  __Pyx_AddTraceback("ctransportCoefficients.VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
33251  __pyx_r = NULL;
33252  __pyx_L0:;
33253  __Pyx_XGIVEREF(__pyx_r);
33254  __Pyx_RefNannyFinishContext();
33255  return __pyx_r;
33256 }
33257 
33258 /* "ctransportCoefficients.pyx":6481
33259  * <double*> mom_v_ham.data,
33260  * <double*> dmom_v_ham_grad_p.data)
33261  * def VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(const int killNonlinearDrag, # <<<<<<<<<<<<<<
33262  * const double eps_rho,
33263  * const double eps_mu,
33264  */
33265 
33266 /* Python wrapper */
33267 static PyObject *__pyx_pw_22ctransportCoefficients_173VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
33268 static PyMethodDef __pyx_mdef_22ctransportCoefficients_173VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd = {"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_173VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd, METH_VARARGS|METH_KEYWORDS, 0};
33269 static PyObject *__pyx_pw_22ctransportCoefficients_173VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
33270  int __pyx_v_killNonlinearDrag;
33271  double __pyx_v_eps_rho;
33272  double __pyx_v_eps_mu;
33273  double __pyx_v_sigma;
33274  double __pyx_v_rho_0;
33275  double __pyx_v_nu_0;
33276  double __pyx_v_rho_1;
33277  double __pyx_v_nu_1;
33278  PyArrayObject *__pyx_v_meanGrainSize = 0;
33279  PyArrayObject *__pyx_v_g = 0;
33280  PyArrayObject *__pyx_v_phi = 0;
33281  PyArrayObject *__pyx_v_n = 0;
33282  PyArrayObject *__pyx_v_kappa = 0;
33283  PyArrayObject *__pyx_v_p = 0;
33284  PyArrayObject *__pyx_v_grad_p = 0;
33285  PyArrayObject *__pyx_v_u = 0;
33286  PyArrayObject *__pyx_v_v = 0;
33287  PyArrayObject *__pyx_v_porosity = 0;
33288  PyArrayObject *__pyx_v_mom_u_acc = 0;
33289  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
33290  PyArrayObject *__pyx_v_mom_v_acc = 0;
33291  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
33292  PyArrayObject *__pyx_v_mass_adv = 0;
33293  PyArrayObject *__pyx_v_dmass_adv_u = 0;
33294  PyArrayObject *__pyx_v_dmass_adv_v = 0;
33295  PyArrayObject *__pyx_v_mom_u_adv = 0;
33296  PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
33297  PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
33298  PyArrayObject *__pyx_v_mom_v_adv = 0;
33299  PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
33300  PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
33301  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
33302  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
33303  PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
33304  PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
33305  PyArrayObject *__pyx_v_mom_u_source = 0;
33306  PyArrayObject *__pyx_v_mom_v_source = 0;
33307  PyArrayObject *__pyx_v_dmom_u_source_u = 0;
33308  PyArrayObject *__pyx_v_dmom_u_source_v = 0;
33309  PyArrayObject *__pyx_v_dmom_v_source_u = 0;
33310  PyArrayObject *__pyx_v_dmom_v_source_v = 0;
33311  PyArrayObject *__pyx_v_mom_u_ham = 0;
33312  PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
33313  PyArrayObject *__pyx_v_mom_v_ham = 0;
33314  PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
33315  int __pyx_lineno = 0;
33316  const char *__pyx_filename = NULL;
33317  int __pyx_clineno = 0;
33318  PyObject *__pyx_r = 0;
33319  __Pyx_RefNannyDeclarations
33320  __Pyx_RefNannySetupContext("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd (wrapper)", 0);
33321  {
33322  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_killNonlinearDrag,&__pyx_n_s_eps_rho,&__pyx_n_s_eps_mu,&__pyx_n_s_sigma,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_meanGrainSize,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_n,&__pyx_n_s_kappa,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_porosity,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_dmom_u_source_u,&__pyx_n_s_dmom_u_source_v,&__pyx_n_s_dmom_v_source_u,&__pyx_n_s_dmom_v_source_v,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,0};
33323  PyObject* values[45] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
33324  if (unlikely(__pyx_kwds)) {
33325  Py_ssize_t kw_args;
33326  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
33327  switch (pos_args) {
33328  case 45: values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
33329  CYTHON_FALLTHROUGH;
33330  case 44: values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
33331  CYTHON_FALLTHROUGH;
33332  case 43: values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
33333  CYTHON_FALLTHROUGH;
33334  case 42: values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
33335  CYTHON_FALLTHROUGH;
33336  case 41: values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
33337  CYTHON_FALLTHROUGH;
33338  case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
33339  CYTHON_FALLTHROUGH;
33340  case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
33341  CYTHON_FALLTHROUGH;
33342  case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
33343  CYTHON_FALLTHROUGH;
33344  case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
33345  CYTHON_FALLTHROUGH;
33346  case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
33347  CYTHON_FALLTHROUGH;
33348  case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
33349  CYTHON_FALLTHROUGH;
33350  case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
33351  CYTHON_FALLTHROUGH;
33352  case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
33353  CYTHON_FALLTHROUGH;
33354  case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
33355  CYTHON_FALLTHROUGH;
33356  case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
33357  CYTHON_FALLTHROUGH;
33358  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
33359  CYTHON_FALLTHROUGH;
33360  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
33361  CYTHON_FALLTHROUGH;
33362  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
33363  CYTHON_FALLTHROUGH;
33364  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
33365  CYTHON_FALLTHROUGH;
33366  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
33367  CYTHON_FALLTHROUGH;
33368  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
33369  CYTHON_FALLTHROUGH;
33370  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
33371  CYTHON_FALLTHROUGH;
33372  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
33373  CYTHON_FALLTHROUGH;
33374  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
33375  CYTHON_FALLTHROUGH;
33376  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
33377  CYTHON_FALLTHROUGH;
33378  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
33379  CYTHON_FALLTHROUGH;
33380  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
33381  CYTHON_FALLTHROUGH;
33382  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
33383  CYTHON_FALLTHROUGH;
33384  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
33385  CYTHON_FALLTHROUGH;
33386  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
33387  CYTHON_FALLTHROUGH;
33388  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
33389  CYTHON_FALLTHROUGH;
33390  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
33391  CYTHON_FALLTHROUGH;
33392  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
33393  CYTHON_FALLTHROUGH;
33394  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
33395  CYTHON_FALLTHROUGH;
33396  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
33397  CYTHON_FALLTHROUGH;
33398  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
33399  CYTHON_FALLTHROUGH;
33400  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
33401  CYTHON_FALLTHROUGH;
33402  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
33403  CYTHON_FALLTHROUGH;
33404  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
33405  CYTHON_FALLTHROUGH;
33406  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
33407  CYTHON_FALLTHROUGH;
33408  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
33409  CYTHON_FALLTHROUGH;
33410  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
33411  CYTHON_FALLTHROUGH;
33412  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
33413  CYTHON_FALLTHROUGH;
33414  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
33415  CYTHON_FALLTHROUGH;
33416  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
33417  CYTHON_FALLTHROUGH;
33418  case 0: break;
33419  default: goto __pyx_L5_argtuple_error;
33420  }
33421  kw_args = PyDict_Size(__pyx_kwds);
33422  switch (pos_args) {
33423  case 0:
33424  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_killNonlinearDrag)) != 0)) kw_args--;
33425  else goto __pyx_L5_argtuple_error;
33426  CYTHON_FALLTHROUGH;
33427  case 1:
33428  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_rho)) != 0)) kw_args--;
33429  else {
33430  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 1); __PYX_ERR(0, 6481, __pyx_L3_error)
33431  }
33432  CYTHON_FALLTHROUGH;
33433  case 2:
33434  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_mu)) != 0)) kw_args--;
33435  else {
33436  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 2); __PYX_ERR(0, 6481, __pyx_L3_error)
33437  }
33438  CYTHON_FALLTHROUGH;
33439  case 3:
33440  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
33441  else {
33442  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 3); __PYX_ERR(0, 6481, __pyx_L3_error)
33443  }
33444  CYTHON_FALLTHROUGH;
33445  case 4:
33446  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
33447  else {
33448  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 4); __PYX_ERR(0, 6481, __pyx_L3_error)
33449  }
33450  CYTHON_FALLTHROUGH;
33451  case 5:
33452  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
33453  else {
33454  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 5); __PYX_ERR(0, 6481, __pyx_L3_error)
33455  }
33456  CYTHON_FALLTHROUGH;
33457  case 6:
33458  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
33459  else {
33460  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 6); __PYX_ERR(0, 6481, __pyx_L3_error)
33461  }
33462  CYTHON_FALLTHROUGH;
33463  case 7:
33464  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
33465  else {
33466  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 7); __PYX_ERR(0, 6481, __pyx_L3_error)
33467  }
33468  CYTHON_FALLTHROUGH;
33469  case 8:
33470  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_meanGrainSize)) != 0)) kw_args--;
33471  else {
33472  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 8); __PYX_ERR(0, 6481, __pyx_L3_error)
33473  }
33474  CYTHON_FALLTHROUGH;
33475  case 9:
33476  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
33477  else {
33478  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 9); __PYX_ERR(0, 6481, __pyx_L3_error)
33479  }
33480  CYTHON_FALLTHROUGH;
33481  case 10:
33482  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
33483  else {
33484  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 10); __PYX_ERR(0, 6481, __pyx_L3_error)
33485  }
33486  CYTHON_FALLTHROUGH;
33487  case 11:
33488  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
33489  else {
33490  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 11); __PYX_ERR(0, 6481, __pyx_L3_error)
33491  }
33492  CYTHON_FALLTHROUGH;
33493  case 12:
33494  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kappa)) != 0)) kw_args--;
33495  else {
33496  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 12); __PYX_ERR(0, 6481, __pyx_L3_error)
33497  }
33498  CYTHON_FALLTHROUGH;
33499  case 13:
33500  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
33501  else {
33502  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 13); __PYX_ERR(0, 6481, __pyx_L3_error)
33503  }
33504  CYTHON_FALLTHROUGH;
33505  case 14:
33506  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
33507  else {
33508  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 14); __PYX_ERR(0, 6481, __pyx_L3_error)
33509  }
33510  CYTHON_FALLTHROUGH;
33511  case 15:
33512  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
33513  else {
33514  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 15); __PYX_ERR(0, 6481, __pyx_L3_error)
33515  }
33516  CYTHON_FALLTHROUGH;
33517  case 16:
33518  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
33519  else {
33520  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 16); __PYX_ERR(0, 6481, __pyx_L3_error)
33521  }
33522  CYTHON_FALLTHROUGH;
33523  case 17:
33524  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_porosity)) != 0)) kw_args--;
33525  else {
33526  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 17); __PYX_ERR(0, 6481, __pyx_L3_error)
33527  }
33528  CYTHON_FALLTHROUGH;
33529  case 18:
33530  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
33531  else {
33532  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 18); __PYX_ERR(0, 6481, __pyx_L3_error)
33533  }
33534  CYTHON_FALLTHROUGH;
33535  case 19:
33536  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
33537  else {
33538  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 19); __PYX_ERR(0, 6481, __pyx_L3_error)
33539  }
33540  CYTHON_FALLTHROUGH;
33541  case 20:
33542  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
33543  else {
33544  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 20); __PYX_ERR(0, 6481, __pyx_L3_error)
33545  }
33546  CYTHON_FALLTHROUGH;
33547  case 21:
33548  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
33549  else {
33550  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 21); __PYX_ERR(0, 6481, __pyx_L3_error)
33551  }
33552  CYTHON_FALLTHROUGH;
33553  case 22:
33554  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
33555  else {
33556  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 22); __PYX_ERR(0, 6481, __pyx_L3_error)
33557  }
33558  CYTHON_FALLTHROUGH;
33559  case 23:
33560  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
33561  else {
33562  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 23); __PYX_ERR(0, 6481, __pyx_L3_error)
33563  }
33564  CYTHON_FALLTHROUGH;
33565  case 24:
33566  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
33567  else {
33568  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 24); __PYX_ERR(0, 6481, __pyx_L3_error)
33569  }
33570  CYTHON_FALLTHROUGH;
33571  case 25:
33572  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
33573  else {
33574  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 25); __PYX_ERR(0, 6481, __pyx_L3_error)
33575  }
33576  CYTHON_FALLTHROUGH;
33577  case 26:
33578  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
33579  else {
33580  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 26); __PYX_ERR(0, 6481, __pyx_L3_error)
33581  }
33582  CYTHON_FALLTHROUGH;
33583  case 27:
33584  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
33585  else {
33586  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 27); __PYX_ERR(0, 6481, __pyx_L3_error)
33587  }
33588  CYTHON_FALLTHROUGH;
33589  case 28:
33590  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
33591  else {
33592  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 28); __PYX_ERR(0, 6481, __pyx_L3_error)
33593  }
33594  CYTHON_FALLTHROUGH;
33595  case 29:
33596  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
33597  else {
33598  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 29); __PYX_ERR(0, 6481, __pyx_L3_error)
33599  }
33600  CYTHON_FALLTHROUGH;
33601  case 30:
33602  if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
33603  else {
33604  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 30); __PYX_ERR(0, 6481, __pyx_L3_error)
33605  }
33606  CYTHON_FALLTHROUGH;
33607  case 31:
33608  if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
33609  else {
33610  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 31); __PYX_ERR(0, 6481, __pyx_L3_error)
33611  }
33612  CYTHON_FALLTHROUGH;
33613  case 32:
33614  if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
33615  else {
33616  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 32); __PYX_ERR(0, 6481, __pyx_L3_error)
33617  }
33618  CYTHON_FALLTHROUGH;
33619  case 33:
33620  if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
33621  else {
33622  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 33); __PYX_ERR(0, 6481, __pyx_L3_error)
33623  }
33624  CYTHON_FALLTHROUGH;
33625  case 34:
33626  if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
33627  else {
33628  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 34); __PYX_ERR(0, 6481, __pyx_L3_error)
33629  }
33630  CYTHON_FALLTHROUGH;
33631  case 35:
33632  if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
33633  else {
33634  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 35); __PYX_ERR(0, 6481, __pyx_L3_error)
33635  }
33636  CYTHON_FALLTHROUGH;
33637  case 36:
33638  if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
33639  else {
33640  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 36); __PYX_ERR(0, 6481, __pyx_L3_error)
33641  }
33642  CYTHON_FALLTHROUGH;
33643  case 37:
33644  if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_u)) != 0)) kw_args--;
33645  else {
33646  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 37); __PYX_ERR(0, 6481, __pyx_L3_error)
33647  }
33648  CYTHON_FALLTHROUGH;
33649  case 38:
33650  if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_v)) != 0)) kw_args--;
33651  else {
33652  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 38); __PYX_ERR(0, 6481, __pyx_L3_error)
33653  }
33654  CYTHON_FALLTHROUGH;
33655  case 39:
33656  if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_u)) != 0)) kw_args--;
33657  else {
33658  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 39); __PYX_ERR(0, 6481, __pyx_L3_error)
33659  }
33660  CYTHON_FALLTHROUGH;
33661  case 40:
33662  if (likely((values[40] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_v)) != 0)) kw_args--;
33663  else {
33664  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 40); __PYX_ERR(0, 6481, __pyx_L3_error)
33665  }
33666  CYTHON_FALLTHROUGH;
33667  case 41:
33668  if (likely((values[41] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
33669  else {
33670  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 41); __PYX_ERR(0, 6481, __pyx_L3_error)
33671  }
33672  CYTHON_FALLTHROUGH;
33673  case 42:
33674  if (likely((values[42] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
33675  else {
33676  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 42); __PYX_ERR(0, 6481, __pyx_L3_error)
33677  }
33678  CYTHON_FALLTHROUGH;
33679  case 43:
33680  if (likely((values[43] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
33681  else {
33682  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 43); __PYX_ERR(0, 6481, __pyx_L3_error)
33683  }
33684  CYTHON_FALLTHROUGH;
33685  case 44:
33686  if (likely((values[44] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
33687  else {
33688  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 44); __PYX_ERR(0, 6481, __pyx_L3_error)
33689  }
33690  }
33691  if (unlikely(kw_args > 0)) {
33692  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd") < 0)) __PYX_ERR(0, 6481, __pyx_L3_error)
33693  }
33694  } else if (PyTuple_GET_SIZE(__pyx_args) != 45) {
33695  goto __pyx_L5_argtuple_error;
33696  } else {
33697  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
33698  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
33699  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
33700  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
33701  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
33702  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
33703  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
33704  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
33705  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
33706  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
33707  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
33708  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
33709  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
33710  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
33711  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
33712  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
33713  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
33714  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
33715  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
33716  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
33717  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
33718  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
33719  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
33720  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
33721  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
33722  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
33723  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
33724  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
33725  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
33726  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
33727  values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
33728  values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
33729  values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
33730  values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
33731  values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
33732  values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
33733  values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
33734  values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
33735  values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
33736  values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
33737  values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
33738  values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
33739  values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
33740  values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
33741  values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
33742  }
33743  __pyx_v_killNonlinearDrag = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_killNonlinearDrag == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6481, __pyx_L3_error)
33744  __pyx_v_eps_rho = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_eps_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6482, __pyx_L3_error)
33745  __pyx_v_eps_mu = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_eps_mu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6483, __pyx_L3_error)
33746  __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_sigma == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6484, __pyx_L3_error)
33747  __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_rho_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6485, __pyx_L3_error)
33748  __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_nu_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6486, __pyx_L3_error)
33749  __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_rho_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6487, __pyx_L3_error)
33750  __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[7]); if (unlikely((__pyx_v_nu_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6488, __pyx_L3_error)
33751  __pyx_v_meanGrainSize = ((PyArrayObject *)values[8]);
33752  __pyx_v_g = ((PyArrayObject *)values[9]);
33753  __pyx_v_phi = ((PyArrayObject *)values[10]);
33754  __pyx_v_n = ((PyArrayObject *)values[11]);
33755  __pyx_v_kappa = ((PyArrayObject *)values[12]);
33756  __pyx_v_p = ((PyArrayObject *)values[13]);
33757  __pyx_v_grad_p = ((PyArrayObject *)values[14]);
33758  __pyx_v_u = ((PyArrayObject *)values[15]);
33759  __pyx_v_v = ((PyArrayObject *)values[16]);
33760  __pyx_v_porosity = ((PyArrayObject *)values[17]);
33761  __pyx_v_mom_u_acc = ((PyArrayObject *)values[18]);
33762  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[19]);
33763  __pyx_v_mom_v_acc = ((PyArrayObject *)values[20]);
33764  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[21]);
33765  __pyx_v_mass_adv = ((PyArrayObject *)values[22]);
33766  __pyx_v_dmass_adv_u = ((PyArrayObject *)values[23]);
33767  __pyx_v_dmass_adv_v = ((PyArrayObject *)values[24]);
33768  __pyx_v_mom_u_adv = ((PyArrayObject *)values[25]);
33769  __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[26]);
33770  __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[27]);
33771  __pyx_v_mom_v_adv = ((PyArrayObject *)values[28]);
33772  __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[29]);
33773  __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[30]);
33774  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[31]);
33775  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[32]);
33776  __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[33]);
33777  __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[34]);
33778  __pyx_v_mom_u_source = ((PyArrayObject *)values[35]);
33779  __pyx_v_mom_v_source = ((PyArrayObject *)values[36]);
33780  __pyx_v_dmom_u_source_u = ((PyArrayObject *)values[37]);
33781  __pyx_v_dmom_u_source_v = ((PyArrayObject *)values[38]);
33782  __pyx_v_dmom_v_source_u = ((PyArrayObject *)values[39]);
33783  __pyx_v_dmom_v_source_v = ((PyArrayObject *)values[40]);
33784  __pyx_v_mom_u_ham = ((PyArrayObject *)values[41]);
33785  __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[42]);
33786  __pyx_v_mom_v_ham = ((PyArrayObject *)values[43]);
33787  __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[44]);
33788  }
33789  goto __pyx_L4_argument_unpacking_done;
33790  __pyx_L5_argtuple_error:;
33791  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6481, __pyx_L3_error)
33792  __pyx_L3_error:;
33793  __Pyx_AddTraceback("ctransportCoefficients.VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
33794  __Pyx_RefNannyFinishContext();
33795  return NULL;
33796  __pyx_L4_argument_unpacking_done:;
33797  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_meanGrainSize), __pyx_ptype_5numpy_ndarray, 1, "meanGrainSize", 0))) __PYX_ERR(0, 6489, __pyx_L1_error)
33798  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 6490, __pyx_L1_error)
33799  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 6491, __pyx_L1_error)
33800  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1, "n", 0))) __PYX_ERR(0, 6492, __pyx_L1_error)
33801  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kappa), __pyx_ptype_5numpy_ndarray, 1, "kappa", 0))) __PYX_ERR(0, 6493, __pyx_L1_error)
33802  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 6494, __pyx_L1_error)
33803  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1, "grad_p", 0))) __PYX_ERR(0, 6495, __pyx_L1_error)
33804  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 6496, __pyx_L1_error)
33805  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 6497, __pyx_L1_error)
33806  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_porosity), __pyx_ptype_5numpy_ndarray, 1, "porosity", 0))) __PYX_ERR(0, 6498, __pyx_L1_error)
33807  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 6499, __pyx_L1_error)
33808  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 6500, __pyx_L1_error)
33809  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 6501, __pyx_L1_error)
33810  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 6502, __pyx_L1_error)
33811  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 6503, __pyx_L1_error)
33812  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_u", 0))) __PYX_ERR(0, 6504, __pyx_L1_error)
33813  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_v", 0))) __PYX_ERR(0, 6505, __pyx_L1_error)
33814  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_u_adv", 0))) __PYX_ERR(0, 6506, __pyx_L1_error)
33815  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_u", 0))) __PYX_ERR(0, 6507, __pyx_L1_error)
33816  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_v", 0))) __PYX_ERR(0, 6508, __pyx_L1_error)
33817  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_v_adv", 0))) __PYX_ERR(0, 6509, __pyx_L1_error)
33818  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_u", 0))) __PYX_ERR(0, 6510, __pyx_L1_error)
33819  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_v", 0))) __PYX_ERR(0, 6511, __pyx_L1_error)
33820  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 6512, __pyx_L1_error)
33821  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 6513, __pyx_L1_error)
33822  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uv_diff_ten", 0))) __PYX_ERR(0, 6514, __pyx_L1_error)
33823  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vu_diff_ten", 0))) __PYX_ERR(0, 6515, __pyx_L1_error)
33824  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 6516, __pyx_L1_error)
33825  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 6517, __pyx_L1_error)
33826  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_source_u", 0))) __PYX_ERR(0, 6518, __pyx_L1_error)
33827  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_source_v", 0))) __PYX_ERR(0, 6519, __pyx_L1_error)
33828  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_source_u", 0))) __PYX_ERR(0, 6520, __pyx_L1_error)
33829  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_source_v", 0))) __PYX_ERR(0, 6521, __pyx_L1_error)
33830  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_u_ham", 0))) __PYX_ERR(0, 6522, __pyx_L1_error)
33831  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 6523, __pyx_L1_error)
33832  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_v_ham", 0))) __PYX_ERR(0, 6524, __pyx_L1_error)
33833  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 6525, __pyx_L1_error)
33834  __pyx_r = __pyx_pf_22ctransportCoefficients_172VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(__pyx_self, __pyx_v_killNonlinearDrag, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_meanGrainSize, __pyx_v_g, __pyx_v_phi, __pyx_v_n, __pyx_v_kappa, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_porosity, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_dmom_u_source_u, __pyx_v_dmom_u_source_v, __pyx_v_dmom_v_source_u, __pyx_v_dmom_v_source_v, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p);
33835 
33836  /* function exit code */
33837  goto __pyx_L0;
33838  __pyx_L1_error:;
33839  __pyx_r = NULL;
33840  __pyx_L0:;
33841  __Pyx_RefNannyFinishContext();
33842  return __pyx_r;
33843 }
33844 
33845 static PyObject *__pyx_pf_22ctransportCoefficients_172VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_killNonlinearDrag, double __pyx_v_eps_rho, double __pyx_v_eps_mu, double __pyx_v_sigma, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_meanGrainSize, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p) {
33846  PyObject *__pyx_r = NULL;
33847  __Pyx_RefNannyDeclarations
33848  PyObject *__pyx_t_1 = NULL;
33849  int __pyx_t_2;
33850  int __pyx_lineno = 0;
33851  const char *__pyx_filename = NULL;
33852  int __pyx_clineno = 0;
33853  __Pyx_RefNannySetupContext("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 0);
33854 
33855  /* "ctransportCoefficients.pyx":6526
33856  * np.ndarray mom_v_ham,
33857  * np.ndarray dmom_v_ham_grad_p):
33858  * cVolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(p.size, # <<<<<<<<<<<<<<
33859  * killNonlinearDrag,
33860  * eps_rho,
33861  */
33862  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6526, __pyx_L1_error)
33863  __Pyx_GOTREF(__pyx_t_1);
33864  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6526, __pyx_L1_error)
33865  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
33866 
33867  /* "ctransportCoefficients.pyx":6571
33868  * <double*> dmom_u_ham_grad_p.data,
33869  * <double*> mom_v_ham.data,
33870  * <double*> dmom_v_ham_grad_p.data) # <<<<<<<<<<<<<<
33871  * def VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate(const int killNonlinearDrag,
33872  * const double eps_rho,
33873  */
33874  VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(__pyx_t_2, __pyx_v_killNonlinearDrag, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((double *)__pyx_v_meanGrainSize->data), ((double *)__pyx_v_g->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_n->data), ((double *)__pyx_v_kappa->data), ((double *)__pyx_v_p->data), ((double *)__pyx_v_grad_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_porosity->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_v_acc_v->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_u->data), ((double *)__pyx_v_dmass_adv_v->data), ((double *)__pyx_v_mom_u_adv->data), ((double *)__pyx_v_dmom_u_adv_u->data), ((double *)__pyx_v_dmom_u_adv_v->data), ((double *)__pyx_v_mom_v_adv->data), ((double *)__pyx_v_dmom_v_adv_u->data), ((double *)__pyx_v_dmom_v_adv_v->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_uv_diff_ten->data), ((double *)__pyx_v_mom_vu_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_dmom_u_source_u->data), ((double *)__pyx_v_dmom_u_source_v->data), ((double *)__pyx_v_dmom_v_source_u->data), ((double *)__pyx_v_dmom_v_source_v->data), ((double *)__pyx_v_mom_u_ham->data), ((double *)__pyx_v_dmom_u_ham_grad_p->data), ((double *)__pyx_v_mom_v_ham->data), ((double *)__pyx_v_dmom_v_ham_grad_p->data));
33875 
33876  /* "ctransportCoefficients.pyx":6481
33877  * <double*> mom_v_ham.data,
33878  * <double*> dmom_v_ham_grad_p.data)
33879  * def VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(const int killNonlinearDrag, # <<<<<<<<<<<<<<
33880  * const double eps_rho,
33881  * const double eps_mu,
33882  */
33883 
33884  /* function exit code */
33885  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
33886  goto __pyx_L0;
33887  __pyx_L1_error:;
33888  __Pyx_XDECREF(__pyx_t_1);
33889  __Pyx_AddTraceback("ctransportCoefficients.VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
33890  __pyx_r = NULL;
33891  __pyx_L0:;
33892  __Pyx_XGIVEREF(__pyx_r);
33893  __Pyx_RefNannyFinishContext();
33894  return __pyx_r;
33895 }
33896 
33897 /* "ctransportCoefficients.pyx":6572
33898  * <double*> mom_v_ham.data,
33899  * <double*> dmom_v_ham_grad_p.data)
33900  * def VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate(const int killNonlinearDrag, # <<<<<<<<<<<<<<
33901  * const double eps_rho,
33902  * const double eps_mu,
33903  */
33904 
33905 /* Python wrapper */
33906 static PyObject *__pyx_pw_22ctransportCoefficients_175VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
33907 static PyMethodDef __pyx_mdef_22ctransportCoefficients_175VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate = {"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_175VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
33908 static PyObject *__pyx_pw_22ctransportCoefficients_175VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
33909  int __pyx_v_killNonlinearDrag;
33910  double __pyx_v_eps_rho;
33911  double __pyx_v_eps_mu;
33912  double __pyx_v_sigma;
33913  double __pyx_v_rho_0;
33914  double __pyx_v_nu_0;
33915  double __pyx_v_rho_1;
33916  double __pyx_v_nu_1;
33917  PyArrayObject *__pyx_v_meanGrainSize = 0;
33918  PyArrayObject *__pyx_v_g = 0;
33919  PyArrayObject *__pyx_v_phi = 0;
33920  PyArrayObject *__pyx_v_n = 0;
33921  PyArrayObject *__pyx_v_kappa = 0;
33922  PyArrayObject *__pyx_v_p = 0;
33923  PyArrayObject *__pyx_v_grad_p = 0;
33924  PyArrayObject *__pyx_v_u = 0;
33925  PyArrayObject *__pyx_v_v = 0;
33926  PyArrayObject *__pyx_v_w = 0;
33927  PyArrayObject *__pyx_v_porosity = 0;
33928  PyArrayObject *__pyx_v_mom_u_acc = 0;
33929  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
33930  PyArrayObject *__pyx_v_mom_v_acc = 0;
33931  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
33932  PyArrayObject *__pyx_v_mom_w_acc = 0;
33933  PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
33934  PyArrayObject *__pyx_v_mass_adv = 0;
33935  PyArrayObject *__pyx_v_dmass_adv_u = 0;
33936  PyArrayObject *__pyx_v_dmass_adv_v = 0;
33937  PyArrayObject *__pyx_v_dmass_adv_w = 0;
33938  PyArrayObject *__pyx_v_mom_u_adv = 0;
33939  PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
33940  PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
33941  PyArrayObject *__pyx_v_dmom_u_adv_w = 0;
33942  PyArrayObject *__pyx_v_mom_v_adv = 0;
33943  PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
33944  PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
33945  PyArrayObject *__pyx_v_dmom_v_adv_w = 0;
33946  PyArrayObject *__pyx_v_mom_w_adv = 0;
33947  PyArrayObject *__pyx_v_dmom_w_adv_u = 0;
33948  PyArrayObject *__pyx_v_dmom_w_adv_v = 0;
33949  PyArrayObject *__pyx_v_dmom_w_adv_w = 0;
33950  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
33951  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
33952  PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
33953  PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
33954  PyArrayObject *__pyx_v_mom_uw_diff_ten = 0;
33955  PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
33956  PyArrayObject *__pyx_v_mom_vw_diff_ten = 0;
33957  PyArrayObject *__pyx_v_mom_wu_diff_ten = 0;
33958  PyArrayObject *__pyx_v_mom_wv_diff_ten = 0;
33959  PyArrayObject *__pyx_v_mom_u_source = 0;
33960  PyArrayObject *__pyx_v_mom_v_source = 0;
33961  PyArrayObject *__pyx_v_mom_w_source = 0;
33962  PyArrayObject *__pyx_v_dmom_u_source_u = 0;
33963  PyArrayObject *__pyx_v_dmom_u_source_v = 0;
33964  PyArrayObject *__pyx_v_dmom_u_source_w = 0;
33965  PyArrayObject *__pyx_v_dmom_v_source_u = 0;
33966  PyArrayObject *__pyx_v_dmom_v_source_v = 0;
33967  PyArrayObject *__pyx_v_dmom_v_source_w = 0;
33968  PyArrayObject *__pyx_v_dmom_w_source_u = 0;
33969  PyArrayObject *__pyx_v_dmom_w_source_v = 0;
33970  PyArrayObject *__pyx_v_dmom_w_source_w = 0;
33971  PyArrayObject *__pyx_v_mom_u_ham = 0;
33972  PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
33973  PyArrayObject *__pyx_v_mom_v_ham = 0;
33974  PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
33975  PyArrayObject *__pyx_v_mom_w_ham = 0;
33976  PyArrayObject *__pyx_v_dmom_w_ham_grad_p = 0;
33977  int __pyx_lineno = 0;
33978  const char *__pyx_filename = NULL;
33979  int __pyx_clineno = 0;
33980  PyObject *__pyx_r = 0;
33981  __Pyx_RefNannyDeclarations
33982  __Pyx_RefNannySetupContext("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate (wrapper)", 0);
33983  {
33984  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_killNonlinearDrag,&__pyx_n_s_eps_rho,&__pyx_n_s_eps_mu,&__pyx_n_s_sigma,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_meanGrainSize,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_n,&__pyx_n_s_kappa,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_porosity,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_w_acc_w,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_dmass_adv_w,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_dmom_u_adv_w,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_dmom_v_adv_w,&__pyx_n_s_mom_w_adv,&__pyx_n_s_dmom_w_adv_u,&__pyx_n_s_dmom_w_adv_v,&__pyx_n_s_dmom_w_adv_w,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_uw_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_vw_diff_ten,&__pyx_n_s_mom_wu_diff_ten,&__pyx_n_s_mom_wv_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,&__pyx_n_s_dmom_u_source_u,&__pyx_n_s_dmom_u_source_v,&__pyx_n_s_dmom_u_source_w,&__pyx_n_s_dmom_v_source_u,&__pyx_n_s_dmom_v_source_v,&__pyx_n_s_dmom_v_source_w,&__pyx_n_s_dmom_w_source_u,&__pyx_n_s_dmom_w_source_v,&__pyx_n_s_dmom_w_source_w,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,&__pyx_n_s_mom_w_ham,&__pyx_n_s_dmom_w_ham_grad_p,0};
33985  PyObject* values[68] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
33986  if (unlikely(__pyx_kwds)) {
33987  Py_ssize_t kw_args;
33988  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
33989  switch (pos_args) {
33990  case 68: values[67] = PyTuple_GET_ITEM(__pyx_args, 67);
33991  CYTHON_FALLTHROUGH;
33992  case 67: values[66] = PyTuple_GET_ITEM(__pyx_args, 66);
33993  CYTHON_FALLTHROUGH;
33994  case 66: values[65] = PyTuple_GET_ITEM(__pyx_args, 65);
33995  CYTHON_FALLTHROUGH;
33996  case 65: values[64] = PyTuple_GET_ITEM(__pyx_args, 64);
33997  CYTHON_FALLTHROUGH;
33998  case 64: values[63] = PyTuple_GET_ITEM(__pyx_args, 63);
33999  CYTHON_FALLTHROUGH;
34000  case 63: values[62] = PyTuple_GET_ITEM(__pyx_args, 62);
34001  CYTHON_FALLTHROUGH;
34002  case 62: values[61] = PyTuple_GET_ITEM(__pyx_args, 61);
34003  CYTHON_FALLTHROUGH;
34004  case 61: values[60] = PyTuple_GET_ITEM(__pyx_args, 60);
34005  CYTHON_FALLTHROUGH;
34006  case 60: values[59] = PyTuple_GET_ITEM(__pyx_args, 59);
34007  CYTHON_FALLTHROUGH;
34008  case 59: values[58] = PyTuple_GET_ITEM(__pyx_args, 58);
34009  CYTHON_FALLTHROUGH;
34010  case 58: values[57] = PyTuple_GET_ITEM(__pyx_args, 57);
34011  CYTHON_FALLTHROUGH;
34012  case 57: values[56] = PyTuple_GET_ITEM(__pyx_args, 56);
34013  CYTHON_FALLTHROUGH;
34014  case 56: values[55] = PyTuple_GET_ITEM(__pyx_args, 55);
34015  CYTHON_FALLTHROUGH;
34016  case 55: values[54] = PyTuple_GET_ITEM(__pyx_args, 54);
34017  CYTHON_FALLTHROUGH;
34018  case 54: values[53] = PyTuple_GET_ITEM(__pyx_args, 53);
34019  CYTHON_FALLTHROUGH;
34020  case 53: values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
34021  CYTHON_FALLTHROUGH;
34022  case 52: values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
34023  CYTHON_FALLTHROUGH;
34024  case 51: values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
34025  CYTHON_FALLTHROUGH;
34026  case 50: values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
34027  CYTHON_FALLTHROUGH;
34028  case 49: values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
34029  CYTHON_FALLTHROUGH;
34030  case 48: values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
34031  CYTHON_FALLTHROUGH;
34032  case 47: values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
34033  CYTHON_FALLTHROUGH;
34034  case 46: values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
34035  CYTHON_FALLTHROUGH;
34036  case 45: values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
34037  CYTHON_FALLTHROUGH;
34038  case 44: values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
34039  CYTHON_FALLTHROUGH;
34040  case 43: values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
34041  CYTHON_FALLTHROUGH;
34042  case 42: values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
34043  CYTHON_FALLTHROUGH;
34044  case 41: values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
34045  CYTHON_FALLTHROUGH;
34046  case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
34047  CYTHON_FALLTHROUGH;
34048  case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
34049  CYTHON_FALLTHROUGH;
34050  case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
34051  CYTHON_FALLTHROUGH;
34052  case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
34053  CYTHON_FALLTHROUGH;
34054  case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
34055  CYTHON_FALLTHROUGH;
34056  case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
34057  CYTHON_FALLTHROUGH;
34058  case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
34059  CYTHON_FALLTHROUGH;
34060  case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
34061  CYTHON_FALLTHROUGH;
34062  case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
34063  CYTHON_FALLTHROUGH;
34064  case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
34065  CYTHON_FALLTHROUGH;
34066  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
34067  CYTHON_FALLTHROUGH;
34068  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
34069  CYTHON_FALLTHROUGH;
34070  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
34071  CYTHON_FALLTHROUGH;
34072  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
34073  CYTHON_FALLTHROUGH;
34074  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
34075  CYTHON_FALLTHROUGH;
34076  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
34077  CYTHON_FALLTHROUGH;
34078  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
34079  CYTHON_FALLTHROUGH;
34080  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
34081  CYTHON_FALLTHROUGH;
34082  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
34083  CYTHON_FALLTHROUGH;
34084  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
34085  CYTHON_FALLTHROUGH;
34086  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
34087  CYTHON_FALLTHROUGH;
34088  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
34089  CYTHON_FALLTHROUGH;
34090  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
34091  CYTHON_FALLTHROUGH;
34092  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
34093  CYTHON_FALLTHROUGH;
34094  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
34095  CYTHON_FALLTHROUGH;
34096  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
34097  CYTHON_FALLTHROUGH;
34098  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
34099  CYTHON_FALLTHROUGH;
34100  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
34101  CYTHON_FALLTHROUGH;
34102  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
34103  CYTHON_FALLTHROUGH;
34104  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
34105  CYTHON_FALLTHROUGH;
34106  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
34107  CYTHON_FALLTHROUGH;
34108  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
34109  CYTHON_FALLTHROUGH;
34110  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
34111  CYTHON_FALLTHROUGH;
34112  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
34113  CYTHON_FALLTHROUGH;
34114  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
34115  CYTHON_FALLTHROUGH;
34116  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
34117  CYTHON_FALLTHROUGH;
34118  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
34119  CYTHON_FALLTHROUGH;
34120  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
34121  CYTHON_FALLTHROUGH;
34122  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
34123  CYTHON_FALLTHROUGH;
34124  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
34125  CYTHON_FALLTHROUGH;
34126  case 0: break;
34127  default: goto __pyx_L5_argtuple_error;
34128  }
34129  kw_args = PyDict_Size(__pyx_kwds);
34130  switch (pos_args) {
34131  case 0:
34132  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_killNonlinearDrag)) != 0)) kw_args--;
34133  else goto __pyx_L5_argtuple_error;
34134  CYTHON_FALLTHROUGH;
34135  case 1:
34136  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_rho)) != 0)) kw_args--;
34137  else {
34138  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 1); __PYX_ERR(0, 6572, __pyx_L3_error)
34139  }
34140  CYTHON_FALLTHROUGH;
34141  case 2:
34142  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_mu)) != 0)) kw_args--;
34143  else {
34144  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 2); __PYX_ERR(0, 6572, __pyx_L3_error)
34145  }
34146  CYTHON_FALLTHROUGH;
34147  case 3:
34148  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
34149  else {
34150  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 3); __PYX_ERR(0, 6572, __pyx_L3_error)
34151  }
34152  CYTHON_FALLTHROUGH;
34153  case 4:
34154  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
34155  else {
34156  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 4); __PYX_ERR(0, 6572, __pyx_L3_error)
34157  }
34158  CYTHON_FALLTHROUGH;
34159  case 5:
34160  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
34161  else {
34162  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 5); __PYX_ERR(0, 6572, __pyx_L3_error)
34163  }
34164  CYTHON_FALLTHROUGH;
34165  case 6:
34166  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
34167  else {
34168  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 6); __PYX_ERR(0, 6572, __pyx_L3_error)
34169  }
34170  CYTHON_FALLTHROUGH;
34171  case 7:
34172  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
34173  else {
34174  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 7); __PYX_ERR(0, 6572, __pyx_L3_error)
34175  }
34176  CYTHON_FALLTHROUGH;
34177  case 8:
34178  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_meanGrainSize)) != 0)) kw_args--;
34179  else {
34180  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 8); __PYX_ERR(0, 6572, __pyx_L3_error)
34181  }
34182  CYTHON_FALLTHROUGH;
34183  case 9:
34184  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
34185  else {
34186  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 9); __PYX_ERR(0, 6572, __pyx_L3_error)
34187  }
34188  CYTHON_FALLTHROUGH;
34189  case 10:
34190  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
34191  else {
34192  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 10); __PYX_ERR(0, 6572, __pyx_L3_error)
34193  }
34194  CYTHON_FALLTHROUGH;
34195  case 11:
34196  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
34197  else {
34198  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 11); __PYX_ERR(0, 6572, __pyx_L3_error)
34199  }
34200  CYTHON_FALLTHROUGH;
34201  case 12:
34202  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kappa)) != 0)) kw_args--;
34203  else {
34204  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 12); __PYX_ERR(0, 6572, __pyx_L3_error)
34205  }
34206  CYTHON_FALLTHROUGH;
34207  case 13:
34208  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
34209  else {
34210  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 13); __PYX_ERR(0, 6572, __pyx_L3_error)
34211  }
34212  CYTHON_FALLTHROUGH;
34213  case 14:
34214  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
34215  else {
34216  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 14); __PYX_ERR(0, 6572, __pyx_L3_error)
34217  }
34218  CYTHON_FALLTHROUGH;
34219  case 15:
34220  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
34221  else {
34222  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 15); __PYX_ERR(0, 6572, __pyx_L3_error)
34223  }
34224  CYTHON_FALLTHROUGH;
34225  case 16:
34226  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
34227  else {
34228  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 16); __PYX_ERR(0, 6572, __pyx_L3_error)
34229  }
34230  CYTHON_FALLTHROUGH;
34231  case 17:
34232  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
34233  else {
34234  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 17); __PYX_ERR(0, 6572, __pyx_L3_error)
34235  }
34236  CYTHON_FALLTHROUGH;
34237  case 18:
34238  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_porosity)) != 0)) kw_args--;
34239  else {
34240  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 18); __PYX_ERR(0, 6572, __pyx_L3_error)
34241  }
34242  CYTHON_FALLTHROUGH;
34243  case 19:
34244  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
34245  else {
34246  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 19); __PYX_ERR(0, 6572, __pyx_L3_error)
34247  }
34248  CYTHON_FALLTHROUGH;
34249  case 20:
34250  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
34251  else {
34252  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 20); __PYX_ERR(0, 6572, __pyx_L3_error)
34253  }
34254  CYTHON_FALLTHROUGH;
34255  case 21:
34256  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
34257  else {
34258  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 21); __PYX_ERR(0, 6572, __pyx_L3_error)
34259  }
34260  CYTHON_FALLTHROUGH;
34261  case 22:
34262  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
34263  else {
34264  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 22); __PYX_ERR(0, 6572, __pyx_L3_error)
34265  }
34266  CYTHON_FALLTHROUGH;
34267  case 23:
34268  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
34269  else {
34270  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 23); __PYX_ERR(0, 6572, __pyx_L3_error)
34271  }
34272  CYTHON_FALLTHROUGH;
34273  case 24:
34274  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
34275  else {
34276  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 24); __PYX_ERR(0, 6572, __pyx_L3_error)
34277  }
34278  CYTHON_FALLTHROUGH;
34279  case 25:
34280  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
34281  else {
34282  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 25); __PYX_ERR(0, 6572, __pyx_L3_error)
34283  }
34284  CYTHON_FALLTHROUGH;
34285  case 26:
34286  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
34287  else {
34288  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 26); __PYX_ERR(0, 6572, __pyx_L3_error)
34289  }
34290  CYTHON_FALLTHROUGH;
34291  case 27:
34292  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
34293  else {
34294  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 27); __PYX_ERR(0, 6572, __pyx_L3_error)
34295  }
34296  CYTHON_FALLTHROUGH;
34297  case 28:
34298  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_w)) != 0)) kw_args--;
34299  else {
34300  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 28); __PYX_ERR(0, 6572, __pyx_L3_error)
34301  }
34302  CYTHON_FALLTHROUGH;
34303  case 29:
34304  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
34305  else {
34306  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 29); __PYX_ERR(0, 6572, __pyx_L3_error)
34307  }
34308  CYTHON_FALLTHROUGH;
34309  case 30:
34310  if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
34311  else {
34312  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 30); __PYX_ERR(0, 6572, __pyx_L3_error)
34313  }
34314  CYTHON_FALLTHROUGH;
34315  case 31:
34316  if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
34317  else {
34318  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 31); __PYX_ERR(0, 6572, __pyx_L3_error)
34319  }
34320  CYTHON_FALLTHROUGH;
34321  case 32:
34322  if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_w)) != 0)) kw_args--;
34323  else {
34324  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 32); __PYX_ERR(0, 6572, __pyx_L3_error)
34325  }
34326  CYTHON_FALLTHROUGH;
34327  case 33:
34328  if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
34329  else {
34330  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 33); __PYX_ERR(0, 6572, __pyx_L3_error)
34331  }
34332  CYTHON_FALLTHROUGH;
34333  case 34:
34334  if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
34335  else {
34336  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 34); __PYX_ERR(0, 6572, __pyx_L3_error)
34337  }
34338  CYTHON_FALLTHROUGH;
34339  case 35:
34340  if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
34341  else {
34342  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 35); __PYX_ERR(0, 6572, __pyx_L3_error)
34343  }
34344  CYTHON_FALLTHROUGH;
34345  case 36:
34346  if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_w)) != 0)) kw_args--;
34347  else {
34348  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 36); __PYX_ERR(0, 6572, __pyx_L3_error)
34349  }
34350  CYTHON_FALLTHROUGH;
34351  case 37:
34352  if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_adv)) != 0)) kw_args--;
34353  else {
34354  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 37); __PYX_ERR(0, 6572, __pyx_L3_error)
34355  }
34356  CYTHON_FALLTHROUGH;
34357  case 38:
34358  if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_u)) != 0)) kw_args--;
34359  else {
34360  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 38); __PYX_ERR(0, 6572, __pyx_L3_error)
34361  }
34362  CYTHON_FALLTHROUGH;
34363  case 39:
34364  if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_v)) != 0)) kw_args--;
34365  else {
34366  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 39); __PYX_ERR(0, 6572, __pyx_L3_error)
34367  }
34368  CYTHON_FALLTHROUGH;
34369  case 40:
34370  if (likely((values[40] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_w)) != 0)) kw_args--;
34371  else {
34372  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 40); __PYX_ERR(0, 6572, __pyx_L3_error)
34373  }
34374  CYTHON_FALLTHROUGH;
34375  case 41:
34376  if (likely((values[41] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
34377  else {
34378  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 41); __PYX_ERR(0, 6572, __pyx_L3_error)
34379  }
34380  CYTHON_FALLTHROUGH;
34381  case 42:
34382  if (likely((values[42] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
34383  else {
34384  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 42); __PYX_ERR(0, 6572, __pyx_L3_error)
34385  }
34386  CYTHON_FALLTHROUGH;
34387  case 43:
34388  if (likely((values[43] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
34389  else {
34390  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 43); __PYX_ERR(0, 6572, __pyx_L3_error)
34391  }
34392  CYTHON_FALLTHROUGH;
34393  case 44:
34394  if (likely((values[44] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
34395  else {
34396  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 44); __PYX_ERR(0, 6572, __pyx_L3_error)
34397  }
34398  CYTHON_FALLTHROUGH;
34399  case 45:
34400  if (likely((values[45] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uw_diff_ten)) != 0)) kw_args--;
34401  else {
34402  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 45); __PYX_ERR(0, 6572, __pyx_L3_error)
34403  }
34404  CYTHON_FALLTHROUGH;
34405  case 46:
34406  if (likely((values[46] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
34407  else {
34408  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 46); __PYX_ERR(0, 6572, __pyx_L3_error)
34409  }
34410  CYTHON_FALLTHROUGH;
34411  case 47:
34412  if (likely((values[47] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vw_diff_ten)) != 0)) kw_args--;
34413  else {
34414  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 47); __PYX_ERR(0, 6572, __pyx_L3_error)
34415  }
34416  CYTHON_FALLTHROUGH;
34417  case 48:
34418  if (likely((values[48] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wu_diff_ten)) != 0)) kw_args--;
34419  else {
34420  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 48); __PYX_ERR(0, 6572, __pyx_L3_error)
34421  }
34422  CYTHON_FALLTHROUGH;
34423  case 49:
34424  if (likely((values[49] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wv_diff_ten)) != 0)) kw_args--;
34425  else {
34426  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 49); __PYX_ERR(0, 6572, __pyx_L3_error)
34427  }
34428  CYTHON_FALLTHROUGH;
34429  case 50:
34430  if (likely((values[50] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
34431  else {
34432  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 50); __PYX_ERR(0, 6572, __pyx_L3_error)
34433  }
34434  CYTHON_FALLTHROUGH;
34435  case 51:
34436  if (likely((values[51] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
34437  else {
34438  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 51); __PYX_ERR(0, 6572, __pyx_L3_error)
34439  }
34440  CYTHON_FALLTHROUGH;
34441  case 52:
34442  if (likely((values[52] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
34443  else {
34444  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 52); __PYX_ERR(0, 6572, __pyx_L3_error)
34445  }
34446  CYTHON_FALLTHROUGH;
34447  case 53:
34448  if (likely((values[53] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_u)) != 0)) kw_args--;
34449  else {
34450  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 53); __PYX_ERR(0, 6572, __pyx_L3_error)
34451  }
34452  CYTHON_FALLTHROUGH;
34453  case 54:
34454  if (likely((values[54] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_v)) != 0)) kw_args--;
34455  else {
34456  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 54); __PYX_ERR(0, 6572, __pyx_L3_error)
34457  }
34458  CYTHON_FALLTHROUGH;
34459  case 55:
34460  if (likely((values[55] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_w)) != 0)) kw_args--;
34461  else {
34462  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 55); __PYX_ERR(0, 6572, __pyx_L3_error)
34463  }
34464  CYTHON_FALLTHROUGH;
34465  case 56:
34466  if (likely((values[56] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_u)) != 0)) kw_args--;
34467  else {
34468  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 56); __PYX_ERR(0, 6572, __pyx_L3_error)
34469  }
34470  CYTHON_FALLTHROUGH;
34471  case 57:
34472  if (likely((values[57] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_v)) != 0)) kw_args--;
34473  else {
34474  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 57); __PYX_ERR(0, 6572, __pyx_L3_error)
34475  }
34476  CYTHON_FALLTHROUGH;
34477  case 58:
34478  if (likely((values[58] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_w)) != 0)) kw_args--;
34479  else {
34480  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 58); __PYX_ERR(0, 6572, __pyx_L3_error)
34481  }
34482  CYTHON_FALLTHROUGH;
34483  case 59:
34484  if (likely((values[59] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_source_u)) != 0)) kw_args--;
34485  else {
34486  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 59); __PYX_ERR(0, 6572, __pyx_L3_error)
34487  }
34488  CYTHON_FALLTHROUGH;
34489  case 60:
34490  if (likely((values[60] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_source_v)) != 0)) kw_args--;
34491  else {
34492  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 60); __PYX_ERR(0, 6572, __pyx_L3_error)
34493  }
34494  CYTHON_FALLTHROUGH;
34495  case 61:
34496  if (likely((values[61] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_source_w)) != 0)) kw_args--;
34497  else {
34498  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 61); __PYX_ERR(0, 6572, __pyx_L3_error)
34499  }
34500  CYTHON_FALLTHROUGH;
34501  case 62:
34502  if (likely((values[62] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
34503  else {
34504  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 62); __PYX_ERR(0, 6572, __pyx_L3_error)
34505  }
34506  CYTHON_FALLTHROUGH;
34507  case 63:
34508  if (likely((values[63] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
34509  else {
34510  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 63); __PYX_ERR(0, 6572, __pyx_L3_error)
34511  }
34512  CYTHON_FALLTHROUGH;
34513  case 64:
34514  if (likely((values[64] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
34515  else {
34516  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 64); __PYX_ERR(0, 6572, __pyx_L3_error)
34517  }
34518  CYTHON_FALLTHROUGH;
34519  case 65:
34520  if (likely((values[65] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
34521  else {
34522  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 65); __PYX_ERR(0, 6572, __pyx_L3_error)
34523  }
34524  CYTHON_FALLTHROUGH;
34525  case 66:
34526  if (likely((values[66] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_ham)) != 0)) kw_args--;
34527  else {
34528  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 66); __PYX_ERR(0, 6572, __pyx_L3_error)
34529  }
34530  CYTHON_FALLTHROUGH;
34531  case 67:
34532  if (likely((values[67] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_ham_grad_p)) != 0)) kw_args--;
34533  else {
34534  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 67); __PYX_ERR(0, 6572, __pyx_L3_error)
34535  }
34536  }
34537  if (unlikely(kw_args > 0)) {
34538  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate") < 0)) __PYX_ERR(0, 6572, __pyx_L3_error)
34539  }
34540  } else if (PyTuple_GET_SIZE(__pyx_args) != 68) {
34541  goto __pyx_L5_argtuple_error;
34542  } else {
34543  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
34544  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
34545  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
34546  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
34547  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
34548  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
34549  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
34550  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
34551  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
34552  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
34553  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
34554  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
34555  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
34556  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
34557  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
34558  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
34559  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
34560  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
34561  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
34562  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
34563  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
34564  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
34565  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
34566  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
34567  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
34568  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
34569  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
34570  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
34571  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
34572  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
34573  values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
34574  values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
34575  values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
34576  values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
34577  values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
34578  values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
34579  values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
34580  values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
34581  values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
34582  values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
34583  values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
34584  values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
34585  values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
34586  values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
34587  values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
34588  values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
34589  values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
34590  values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
34591  values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
34592  values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
34593  values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
34594  values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
34595  values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
34596  values[53] = PyTuple_GET_ITEM(__pyx_args, 53);
34597  values[54] = PyTuple_GET_ITEM(__pyx_args, 54);
34598  values[55] = PyTuple_GET_ITEM(__pyx_args, 55);
34599  values[56] = PyTuple_GET_ITEM(__pyx_args, 56);
34600  values[57] = PyTuple_GET_ITEM(__pyx_args, 57);
34601  values[58] = PyTuple_GET_ITEM(__pyx_args, 58);
34602  values[59] = PyTuple_GET_ITEM(__pyx_args, 59);
34603  values[60] = PyTuple_GET_ITEM(__pyx_args, 60);
34604  values[61] = PyTuple_GET_ITEM(__pyx_args, 61);
34605  values[62] = PyTuple_GET_ITEM(__pyx_args, 62);
34606  values[63] = PyTuple_GET_ITEM(__pyx_args, 63);
34607  values[64] = PyTuple_GET_ITEM(__pyx_args, 64);
34608  values[65] = PyTuple_GET_ITEM(__pyx_args, 65);
34609  values[66] = PyTuple_GET_ITEM(__pyx_args, 66);
34610  values[67] = PyTuple_GET_ITEM(__pyx_args, 67);
34611  }
34612  __pyx_v_killNonlinearDrag = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_killNonlinearDrag == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6572, __pyx_L3_error)
34613  __pyx_v_eps_rho = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_eps_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6573, __pyx_L3_error)
34614  __pyx_v_eps_mu = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_eps_mu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6574, __pyx_L3_error)
34615  __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_sigma == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6575, __pyx_L3_error)
34616  __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_rho_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6576, __pyx_L3_error)
34617  __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_nu_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6577, __pyx_L3_error)
34618  __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_rho_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6578, __pyx_L3_error)
34619  __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[7]); if (unlikely((__pyx_v_nu_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6579, __pyx_L3_error)
34620  __pyx_v_meanGrainSize = ((PyArrayObject *)values[8]);
34621  __pyx_v_g = ((PyArrayObject *)values[9]);
34622  __pyx_v_phi = ((PyArrayObject *)values[10]);
34623  __pyx_v_n = ((PyArrayObject *)values[11]);
34624  __pyx_v_kappa = ((PyArrayObject *)values[12]);
34625  __pyx_v_p = ((PyArrayObject *)values[13]);
34626  __pyx_v_grad_p = ((PyArrayObject *)values[14]);
34627  __pyx_v_u = ((PyArrayObject *)values[15]);
34628  __pyx_v_v = ((PyArrayObject *)values[16]);
34629  __pyx_v_w = ((PyArrayObject *)values[17]);
34630  __pyx_v_porosity = ((PyArrayObject *)values[18]);
34631  __pyx_v_mom_u_acc = ((PyArrayObject *)values[19]);
34632  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[20]);
34633  __pyx_v_mom_v_acc = ((PyArrayObject *)values[21]);
34634  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[22]);
34635  __pyx_v_mom_w_acc = ((PyArrayObject *)values[23]);
34636  __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[24]);
34637  __pyx_v_mass_adv = ((PyArrayObject *)values[25]);
34638  __pyx_v_dmass_adv_u = ((PyArrayObject *)values[26]);
34639  __pyx_v_dmass_adv_v = ((PyArrayObject *)values[27]);
34640  __pyx_v_dmass_adv_w = ((PyArrayObject *)values[28]);
34641  __pyx_v_mom_u_adv = ((PyArrayObject *)values[29]);
34642  __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[30]);
34643  __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[31]);
34644  __pyx_v_dmom_u_adv_w = ((PyArrayObject *)values[32]);
34645  __pyx_v_mom_v_adv = ((PyArrayObject *)values[33]);
34646  __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[34]);
34647  __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[35]);
34648  __pyx_v_dmom_v_adv_w = ((PyArrayObject *)values[36]);
34649  __pyx_v_mom_w_adv = ((PyArrayObject *)values[37]);
34650  __pyx_v_dmom_w_adv_u = ((PyArrayObject *)values[38]);
34651  __pyx_v_dmom_w_adv_v = ((PyArrayObject *)values[39]);
34652  __pyx_v_dmom_w_adv_w = ((PyArrayObject *)values[40]);
34653  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[41]);
34654  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[42]);
34655  __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[43]);
34656  __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[44]);
34657  __pyx_v_mom_uw_diff_ten = ((PyArrayObject *)values[45]);
34658  __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[46]);
34659  __pyx_v_mom_vw_diff_ten = ((PyArrayObject *)values[47]);
34660  __pyx_v_mom_wu_diff_ten = ((PyArrayObject *)values[48]);
34661  __pyx_v_mom_wv_diff_ten = ((PyArrayObject *)values[49]);
34662  __pyx_v_mom_u_source = ((PyArrayObject *)values[50]);
34663  __pyx_v_mom_v_source = ((PyArrayObject *)values[51]);
34664  __pyx_v_mom_w_source = ((PyArrayObject *)values[52]);
34665  __pyx_v_dmom_u_source_u = ((PyArrayObject *)values[53]);
34666  __pyx_v_dmom_u_source_v = ((PyArrayObject *)values[54]);
34667  __pyx_v_dmom_u_source_w = ((PyArrayObject *)values[55]);
34668  __pyx_v_dmom_v_source_u = ((PyArrayObject *)values[56]);
34669  __pyx_v_dmom_v_source_v = ((PyArrayObject *)values[57]);
34670  __pyx_v_dmom_v_source_w = ((PyArrayObject *)values[58]);
34671  __pyx_v_dmom_w_source_u = ((PyArrayObject *)values[59]);
34672  __pyx_v_dmom_w_source_v = ((PyArrayObject *)values[60]);
34673  __pyx_v_dmom_w_source_w = ((PyArrayObject *)values[61]);
34674  __pyx_v_mom_u_ham = ((PyArrayObject *)values[62]);
34675  __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[63]);
34676  __pyx_v_mom_v_ham = ((PyArrayObject *)values[64]);
34677  __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[65]);
34678  __pyx_v_mom_w_ham = ((PyArrayObject *)values[66]);
34679  __pyx_v_dmom_w_ham_grad_p = ((PyArrayObject *)values[67]);
34680  }
34681  goto __pyx_L4_argument_unpacking_done;
34682  __pyx_L5_argtuple_error:;
34683  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6572, __pyx_L3_error)
34684  __pyx_L3_error:;
34685  __Pyx_AddTraceback("ctransportCoefficients.VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
34686  __Pyx_RefNannyFinishContext();
34687  return NULL;
34688  __pyx_L4_argument_unpacking_done:;
34689  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_meanGrainSize), __pyx_ptype_5numpy_ndarray, 1, "meanGrainSize", 0))) __PYX_ERR(0, 6580, __pyx_L1_error)
34690  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 6581, __pyx_L1_error)
34691  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 6582, __pyx_L1_error)
34692  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1, "n", 0))) __PYX_ERR(0, 6583, __pyx_L1_error)
34693  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kappa), __pyx_ptype_5numpy_ndarray, 1, "kappa", 0))) __PYX_ERR(0, 6584, __pyx_L1_error)
34694  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 6585, __pyx_L1_error)
34695  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1, "grad_p", 0))) __PYX_ERR(0, 6586, __pyx_L1_error)
34696  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 6587, __pyx_L1_error)
34697  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 6588, __pyx_L1_error)
34698  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1, "w", 0))) __PYX_ERR(0, 6589, __pyx_L1_error)
34699  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_porosity), __pyx_ptype_5numpy_ndarray, 1, "porosity", 0))) __PYX_ERR(0, 6590, __pyx_L1_error)
34700  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 6591, __pyx_L1_error)
34701  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 6592, __pyx_L1_error)
34702  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 6593, __pyx_L1_error)
34703  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 6594, __pyx_L1_error)
34704  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_w_acc", 0))) __PYX_ERR(0, 6595, __pyx_L1_error)
34705  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_acc_w", 0))) __PYX_ERR(0, 6596, __pyx_L1_error)
34706  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 6597, __pyx_L1_error)
34707  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_u", 0))) __PYX_ERR(0, 6598, __pyx_L1_error)
34708  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_v", 0))) __PYX_ERR(0, 6599, __pyx_L1_error)
34709  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_w", 0))) __PYX_ERR(0, 6600, __pyx_L1_error)
34710  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_u_adv", 0))) __PYX_ERR(0, 6601, __pyx_L1_error)
34711  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_u", 0))) __PYX_ERR(0, 6602, __pyx_L1_error)
34712  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_v", 0))) __PYX_ERR(0, 6603, __pyx_L1_error)
34713  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_w", 0))) __PYX_ERR(0, 6604, __pyx_L1_error)
34714  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_v_adv", 0))) __PYX_ERR(0, 6605, __pyx_L1_error)
34715  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_u", 0))) __PYX_ERR(0, 6606, __pyx_L1_error)
34716  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_v", 0))) __PYX_ERR(0, 6607, __pyx_L1_error)
34717  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_w", 0))) __PYX_ERR(0, 6608, __pyx_L1_error)
34718  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_w_adv", 0))) __PYX_ERR(0, 6609, __pyx_L1_error)
34719  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_u", 0))) __PYX_ERR(0, 6610, __pyx_L1_error)
34720  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_v", 0))) __PYX_ERR(0, 6611, __pyx_L1_error)
34721  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_w", 0))) __PYX_ERR(0, 6612, __pyx_L1_error)
34722  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 6613, __pyx_L1_error)
34723  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 6614, __pyx_L1_error)
34724  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_w_diff_ten", 0))) __PYX_ERR(0, 6615, __pyx_L1_error)
34725  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uv_diff_ten", 0))) __PYX_ERR(0, 6616, __pyx_L1_error)
34726  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uw_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uw_diff_ten", 0))) __PYX_ERR(0, 6617, __pyx_L1_error)
34727  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vu_diff_ten", 0))) __PYX_ERR(0, 6618, __pyx_L1_error)
34728  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vw_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vw_diff_ten", 0))) __PYX_ERR(0, 6619, __pyx_L1_error)
34729  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_wu_diff_ten", 0))) __PYX_ERR(0, 6620, __pyx_L1_error)
34730  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_wv_diff_ten", 0))) __PYX_ERR(0, 6621, __pyx_L1_error)
34731  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 6622, __pyx_L1_error)
34732  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 6623, __pyx_L1_error)
34733  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1, "mom_w_source", 0))) __PYX_ERR(0, 6624, __pyx_L1_error)
34734  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_source_u", 0))) __PYX_ERR(0, 6625, __pyx_L1_error)
34735  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_source_v", 0))) __PYX_ERR(0, 6626, __pyx_L1_error)
34736  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_source_w", 0))) __PYX_ERR(0, 6627, __pyx_L1_error)
34737  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_source_u", 0))) __PYX_ERR(0, 6628, __pyx_L1_error)
34738  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_source_v", 0))) __PYX_ERR(0, 6629, __pyx_L1_error)
34739  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_source_w", 0))) __PYX_ERR(0, 6630, __pyx_L1_error)
34740  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_source_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_source_u", 0))) __PYX_ERR(0, 6631, __pyx_L1_error)
34741  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_source_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_source_v", 0))) __PYX_ERR(0, 6632, __pyx_L1_error)
34742  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_source_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_source_w", 0))) __PYX_ERR(0, 6633, __pyx_L1_error)
34743  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_u_ham", 0))) __PYX_ERR(0, 6634, __pyx_L1_error)
34744  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 6635, __pyx_L1_error)
34745  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_v_ham", 0))) __PYX_ERR(0, 6636, __pyx_L1_error)
34746  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 6637, __pyx_L1_error)
34747  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_w_ham", 0))) __PYX_ERR(0, 6638, __pyx_L1_error)
34748  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_ham_grad_p", 0))) __PYX_ERR(0, 6639, __pyx_L1_error)
34749  __pyx_r = __pyx_pf_22ctransportCoefficients_174VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate(__pyx_self, __pyx_v_killNonlinearDrag, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_meanGrainSize, __pyx_v_g, __pyx_v_phi, __pyx_v_n, __pyx_v_kappa, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_porosity, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mom_w_acc, __pyx_v_dmom_w_acc_w, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_dmass_adv_w, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_dmom_u_adv_w, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_dmom_v_adv_w, __pyx_v_mom_w_adv, __pyx_v_dmom_w_adv_u, __pyx_v_dmom_w_adv_v, __pyx_v_dmom_w_adv_w, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_uw_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_vw_diff_ten, __pyx_v_mom_wu_diff_ten, __pyx_v_mom_wv_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source, __pyx_v_dmom_u_source_u, __pyx_v_dmom_u_source_v, __pyx_v_dmom_u_source_w, __pyx_v_dmom_v_source_u, __pyx_v_dmom_v_source_v, __pyx_v_dmom_v_source_w, __pyx_v_dmom_w_source_u, __pyx_v_dmom_w_source_v, __pyx_v_dmom_w_source_w, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p, __pyx_v_mom_w_ham, __pyx_v_dmom_w_ham_grad_p);
34750 
34751  /* function exit code */
34752  goto __pyx_L0;
34753  __pyx_L1_error:;
34754  __pyx_r = NULL;
34755  __pyx_L0:;
34756  __Pyx_RefNannyFinishContext();
34757  return __pyx_r;
34758 }
34759 
34760 static PyObject *__pyx_pf_22ctransportCoefficients_174VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_killNonlinearDrag, double __pyx_v_eps_rho, double __pyx_v_eps_mu, double __pyx_v_sigma, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_meanGrainSize, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_u_source_w, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_dmom_v_source_w, PyArrayObject *__pyx_v_dmom_w_source_u, PyArrayObject *__pyx_v_dmom_w_source_v, PyArrayObject *__pyx_v_dmom_w_source_w, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p) {
34761  PyObject *__pyx_r = NULL;
34762  __Pyx_RefNannyDeclarations
34763  PyObject *__pyx_t_1 = NULL;
34764  int __pyx_t_2;
34765  int __pyx_lineno = 0;
34766  const char *__pyx_filename = NULL;
34767  int __pyx_clineno = 0;
34768  __Pyx_RefNannySetupContext("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 0);
34769 
34770  /* "ctransportCoefficients.pyx":6640
34771  * np.ndarray mom_w_ham,
34772  * np.ndarray dmom_w_ham_grad_p):
34773  * cVolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate(p.size, # <<<<<<<<<<<<<<
34774  * killNonlinearDrag,
34775  * eps_rho,
34776  */
34777  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6640, __pyx_L1_error)
34778  __Pyx_GOTREF(__pyx_t_1);
34779  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6640, __pyx_L1_error)
34780  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
34781 
34782  /* "ctransportCoefficients.pyx":6708
34783  * <double*> dmom_v_ham_grad_p.data,
34784  * <double*> mom_w_ham.data,
34785  * <double*> dmom_w_ham_grad_p.data) # <<<<<<<<<<<<<<
34786  * def VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(const int killNonlinearDrag,
34787  * const double eps_rho,
34788  */
34789  VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate(__pyx_t_2, __pyx_v_killNonlinearDrag, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((double *)__pyx_v_meanGrainSize->data), ((double *)__pyx_v_g->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_n->data), ((double *)__pyx_v_kappa->data), ((double *)__pyx_v_p->data), ((double *)__pyx_v_grad_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_w->data), ((double *)__pyx_v_porosity->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_v_acc_v->data), ((double *)__pyx_v_mom_w_acc->data), ((double *)__pyx_v_dmom_w_acc_w->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_u->data), ((double *)__pyx_v_dmass_adv_v->data), ((double *)__pyx_v_dmass_adv_w->data), ((double *)__pyx_v_mom_u_adv->data), ((double *)__pyx_v_dmom_u_adv_u->data), ((double *)__pyx_v_dmom_u_adv_v->data), ((double *)__pyx_v_dmom_u_adv_w->data), ((double *)__pyx_v_mom_v_adv->data), ((double *)__pyx_v_dmom_v_adv_u->data), ((double *)__pyx_v_dmom_v_adv_v->data), ((double *)__pyx_v_dmom_v_adv_w->data), ((double *)__pyx_v_mom_w_adv->data), ((double *)__pyx_v_dmom_w_adv_u->data), ((double *)__pyx_v_dmom_w_adv_v->data), ((double *)__pyx_v_dmom_w_adv_w->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_w_diff_ten->data), ((double *)__pyx_v_mom_uv_diff_ten->data), ((double *)__pyx_v_mom_uw_diff_ten->data), ((double *)__pyx_v_mom_vu_diff_ten->data), ((double *)__pyx_v_mom_vw_diff_ten->data), ((double *)__pyx_v_mom_wu_diff_ten->data), ((double *)__pyx_v_mom_wv_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_mom_w_source->data), ((double *)__pyx_v_dmom_u_source_u->data), ((double *)__pyx_v_dmom_u_source_v->data), ((double *)__pyx_v_dmom_u_source_w->data), ((double *)__pyx_v_dmom_v_source_u->data), ((double *)__pyx_v_dmom_v_source_v->data), ((double *)__pyx_v_dmom_v_source_w->data), ((double *)__pyx_v_dmom_w_source_u->data), ((double *)__pyx_v_dmom_w_source_v->data), ((double *)__pyx_v_dmom_w_source_w->data), ((double *)__pyx_v_mom_u_ham->data), ((double *)__pyx_v_dmom_u_ham_grad_p->data), ((double *)__pyx_v_mom_v_ham->data), ((double *)__pyx_v_dmom_v_ham_grad_p->data), ((double *)__pyx_v_mom_w_ham->data), ((double *)__pyx_v_dmom_w_ham_grad_p->data));
34790 
34791  /* "ctransportCoefficients.pyx":6572
34792  * <double*> mom_v_ham.data,
34793  * <double*> dmom_v_ham_grad_p.data)
34794  * def VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate(const int killNonlinearDrag, # <<<<<<<<<<<<<<
34795  * const double eps_rho,
34796  * const double eps_mu,
34797  */
34798 
34799  /* function exit code */
34800  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
34801  goto __pyx_L0;
34802  __pyx_L1_error:;
34803  __Pyx_XDECREF(__pyx_t_1);
34804  __Pyx_AddTraceback("ctransportCoefficients.VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
34805  __pyx_r = NULL;
34806  __pyx_L0:;
34807  __Pyx_XGIVEREF(__pyx_r);
34808  __Pyx_RefNannyFinishContext();
34809  return __pyx_r;
34810 }
34811 
34812 /* "ctransportCoefficients.pyx":6709
34813  * <double*> mom_w_ham.data,
34814  * <double*> dmom_w_ham_grad_p.data)
34815  * def VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(const int killNonlinearDrag, # <<<<<<<<<<<<<<
34816  * const double eps_rho,
34817  * const double eps_mu,
34818  */
34819 
34820 /* Python wrapper */
34821 static PyObject *__pyx_pw_22ctransportCoefficients_177VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
34822 static PyMethodDef __pyx_mdef_22ctransportCoefficients_177VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd = {"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_177VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd, METH_VARARGS|METH_KEYWORDS, 0};
34823 static PyObject *__pyx_pw_22ctransportCoefficients_177VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
34824  int __pyx_v_killNonlinearDrag;
34825  double __pyx_v_eps_rho;
34826  double __pyx_v_eps_mu;
34827  double __pyx_v_sigma;
34828  double __pyx_v_rho_0;
34829  double __pyx_v_nu_0;
34830  double __pyx_v_rho_1;
34831  double __pyx_v_nu_1;
34832  PyArrayObject *__pyx_v_meanGrainSize = 0;
34833  PyArrayObject *__pyx_v_g = 0;
34834  PyArrayObject *__pyx_v_phi = 0;
34835  PyArrayObject *__pyx_v_n = 0;
34836  PyArrayObject *__pyx_v_kappa = 0;
34837  PyArrayObject *__pyx_v_p = 0;
34838  PyArrayObject *__pyx_v_grad_p = 0;
34839  PyArrayObject *__pyx_v_u = 0;
34840  PyArrayObject *__pyx_v_v = 0;
34841  PyArrayObject *__pyx_v_w = 0;
34842  PyArrayObject *__pyx_v_porosity = 0;
34843  PyArrayObject *__pyx_v_mom_u_acc = 0;
34844  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
34845  PyArrayObject *__pyx_v_mom_v_acc = 0;
34846  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
34847  PyArrayObject *__pyx_v_mom_w_acc = 0;
34848  PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
34849  PyArrayObject *__pyx_v_mass_adv = 0;
34850  PyArrayObject *__pyx_v_dmass_adv_u = 0;
34851  PyArrayObject *__pyx_v_dmass_adv_v = 0;
34852  PyArrayObject *__pyx_v_dmass_adv_w = 0;
34853  PyArrayObject *__pyx_v_mom_u_adv = 0;
34854  PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
34855  PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
34856  PyArrayObject *__pyx_v_dmom_u_adv_w = 0;
34857  PyArrayObject *__pyx_v_mom_v_adv = 0;
34858  PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
34859  PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
34860  PyArrayObject *__pyx_v_dmom_v_adv_w = 0;
34861  PyArrayObject *__pyx_v_mom_w_adv = 0;
34862  PyArrayObject *__pyx_v_dmom_w_adv_u = 0;
34863  PyArrayObject *__pyx_v_dmom_w_adv_v = 0;
34864  PyArrayObject *__pyx_v_dmom_w_adv_w = 0;
34865  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
34866  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
34867  PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
34868  PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
34869  PyArrayObject *__pyx_v_mom_uw_diff_ten = 0;
34870  PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
34871  PyArrayObject *__pyx_v_mom_vw_diff_ten = 0;
34872  PyArrayObject *__pyx_v_mom_wu_diff_ten = 0;
34873  PyArrayObject *__pyx_v_mom_wv_diff_ten = 0;
34874  PyArrayObject *__pyx_v_mom_u_source = 0;
34875  PyArrayObject *__pyx_v_mom_v_source = 0;
34876  PyArrayObject *__pyx_v_mom_w_source = 0;
34877  PyArrayObject *__pyx_v_dmom_u_source_u = 0;
34878  PyArrayObject *__pyx_v_dmom_u_source_v = 0;
34879  PyArrayObject *__pyx_v_dmom_u_source_w = 0;
34880  PyArrayObject *__pyx_v_dmom_v_source_u = 0;
34881  PyArrayObject *__pyx_v_dmom_v_source_v = 0;
34882  PyArrayObject *__pyx_v_dmom_v_source_w = 0;
34883  PyArrayObject *__pyx_v_dmom_w_source_u = 0;
34884  PyArrayObject *__pyx_v_dmom_w_source_v = 0;
34885  PyArrayObject *__pyx_v_dmom_w_source_w = 0;
34886  PyArrayObject *__pyx_v_mom_u_ham = 0;
34887  PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
34888  PyArrayObject *__pyx_v_mom_v_ham = 0;
34889  PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
34890  PyArrayObject *__pyx_v_mom_w_ham = 0;
34891  PyArrayObject *__pyx_v_dmom_w_ham_grad_p = 0;
34892  int __pyx_lineno = 0;
34893  const char *__pyx_filename = NULL;
34894  int __pyx_clineno = 0;
34895  PyObject *__pyx_r = 0;
34896  __Pyx_RefNannyDeclarations
34897  __Pyx_RefNannySetupContext("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd (wrapper)", 0);
34898  {
34899  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_killNonlinearDrag,&__pyx_n_s_eps_rho,&__pyx_n_s_eps_mu,&__pyx_n_s_sigma,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_meanGrainSize,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_n,&__pyx_n_s_kappa,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_porosity,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_w_acc_w,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_dmass_adv_w,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_dmom_u_adv_w,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_dmom_v_adv_w,&__pyx_n_s_mom_w_adv,&__pyx_n_s_dmom_w_adv_u,&__pyx_n_s_dmom_w_adv_v,&__pyx_n_s_dmom_w_adv_w,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_uw_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_vw_diff_ten,&__pyx_n_s_mom_wu_diff_ten,&__pyx_n_s_mom_wv_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,&__pyx_n_s_dmom_u_source_u,&__pyx_n_s_dmom_u_source_v,&__pyx_n_s_dmom_u_source_w,&__pyx_n_s_dmom_v_source_u,&__pyx_n_s_dmom_v_source_v,&__pyx_n_s_dmom_v_source_w,&__pyx_n_s_dmom_w_source_u,&__pyx_n_s_dmom_w_source_v,&__pyx_n_s_dmom_w_source_w,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,&__pyx_n_s_mom_w_ham,&__pyx_n_s_dmom_w_ham_grad_p,0};
34900  PyObject* values[68] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
34901  if (unlikely(__pyx_kwds)) {
34902  Py_ssize_t kw_args;
34903  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
34904  switch (pos_args) {
34905  case 68: values[67] = PyTuple_GET_ITEM(__pyx_args, 67);
34906  CYTHON_FALLTHROUGH;
34907  case 67: values[66] = PyTuple_GET_ITEM(__pyx_args, 66);
34908  CYTHON_FALLTHROUGH;
34909  case 66: values[65] = PyTuple_GET_ITEM(__pyx_args, 65);
34910  CYTHON_FALLTHROUGH;
34911  case 65: values[64] = PyTuple_GET_ITEM(__pyx_args, 64);
34912  CYTHON_FALLTHROUGH;
34913  case 64: values[63] = PyTuple_GET_ITEM(__pyx_args, 63);
34914  CYTHON_FALLTHROUGH;
34915  case 63: values[62] = PyTuple_GET_ITEM(__pyx_args, 62);
34916  CYTHON_FALLTHROUGH;
34917  case 62: values[61] = PyTuple_GET_ITEM(__pyx_args, 61);
34918  CYTHON_FALLTHROUGH;
34919  case 61: values[60] = PyTuple_GET_ITEM(__pyx_args, 60);
34920  CYTHON_FALLTHROUGH;
34921  case 60: values[59] = PyTuple_GET_ITEM(__pyx_args, 59);
34922  CYTHON_FALLTHROUGH;
34923  case 59: values[58] = PyTuple_GET_ITEM(__pyx_args, 58);
34924  CYTHON_FALLTHROUGH;
34925  case 58: values[57] = PyTuple_GET_ITEM(__pyx_args, 57);
34926  CYTHON_FALLTHROUGH;
34927  case 57: values[56] = PyTuple_GET_ITEM(__pyx_args, 56);
34928  CYTHON_FALLTHROUGH;
34929  case 56: values[55] = PyTuple_GET_ITEM(__pyx_args, 55);
34930  CYTHON_FALLTHROUGH;
34931  case 55: values[54] = PyTuple_GET_ITEM(__pyx_args, 54);
34932  CYTHON_FALLTHROUGH;
34933  case 54: values[53] = PyTuple_GET_ITEM(__pyx_args, 53);
34934  CYTHON_FALLTHROUGH;
34935  case 53: values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
34936  CYTHON_FALLTHROUGH;
34937  case 52: values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
34938  CYTHON_FALLTHROUGH;
34939  case 51: values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
34940  CYTHON_FALLTHROUGH;
34941  case 50: values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
34942  CYTHON_FALLTHROUGH;
34943  case 49: values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
34944  CYTHON_FALLTHROUGH;
34945  case 48: values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
34946  CYTHON_FALLTHROUGH;
34947  case 47: values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
34948  CYTHON_FALLTHROUGH;
34949  case 46: values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
34950  CYTHON_FALLTHROUGH;
34951  case 45: values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
34952  CYTHON_FALLTHROUGH;
34953  case 44: values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
34954  CYTHON_FALLTHROUGH;
34955  case 43: values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
34956  CYTHON_FALLTHROUGH;
34957  case 42: values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
34958  CYTHON_FALLTHROUGH;
34959  case 41: values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
34960  CYTHON_FALLTHROUGH;
34961  case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
34962  CYTHON_FALLTHROUGH;
34963  case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
34964  CYTHON_FALLTHROUGH;
34965  case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
34966  CYTHON_FALLTHROUGH;
34967  case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
34968  CYTHON_FALLTHROUGH;
34969  case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
34970  CYTHON_FALLTHROUGH;
34971  case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
34972  CYTHON_FALLTHROUGH;
34973  case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
34974  CYTHON_FALLTHROUGH;
34975  case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
34976  CYTHON_FALLTHROUGH;
34977  case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
34978  CYTHON_FALLTHROUGH;
34979  case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
34980  CYTHON_FALLTHROUGH;
34981  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
34982  CYTHON_FALLTHROUGH;
34983  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
34984  CYTHON_FALLTHROUGH;
34985  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
34986  CYTHON_FALLTHROUGH;
34987  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
34988  CYTHON_FALLTHROUGH;
34989  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
34990  CYTHON_FALLTHROUGH;
34991  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
34992  CYTHON_FALLTHROUGH;
34993  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
34994  CYTHON_FALLTHROUGH;
34995  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
34996  CYTHON_FALLTHROUGH;
34997  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
34998  CYTHON_FALLTHROUGH;
34999  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
35000  CYTHON_FALLTHROUGH;
35001  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
35002  CYTHON_FALLTHROUGH;
35003  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
35004  CYTHON_FALLTHROUGH;
35005  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
35006  CYTHON_FALLTHROUGH;
35007  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
35008  CYTHON_FALLTHROUGH;
35009  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
35010  CYTHON_FALLTHROUGH;
35011  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
35012  CYTHON_FALLTHROUGH;
35013  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
35014  CYTHON_FALLTHROUGH;
35015  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
35016  CYTHON_FALLTHROUGH;
35017  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
35018  CYTHON_FALLTHROUGH;
35019  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
35020  CYTHON_FALLTHROUGH;
35021  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
35022  CYTHON_FALLTHROUGH;
35023  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
35024  CYTHON_FALLTHROUGH;
35025  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
35026  CYTHON_FALLTHROUGH;
35027  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
35028  CYTHON_FALLTHROUGH;
35029  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
35030  CYTHON_FALLTHROUGH;
35031  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
35032  CYTHON_FALLTHROUGH;
35033  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
35034  CYTHON_FALLTHROUGH;
35035  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
35036  CYTHON_FALLTHROUGH;
35037  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
35038  CYTHON_FALLTHROUGH;
35039  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
35040  CYTHON_FALLTHROUGH;
35041  case 0: break;
35042  default: goto __pyx_L5_argtuple_error;
35043  }
35044  kw_args = PyDict_Size(__pyx_kwds);
35045  switch (pos_args) {
35046  case 0:
35047  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_killNonlinearDrag)) != 0)) kw_args--;
35048  else goto __pyx_L5_argtuple_error;
35049  CYTHON_FALLTHROUGH;
35050  case 1:
35051  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_rho)) != 0)) kw_args--;
35052  else {
35053  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 1); __PYX_ERR(0, 6709, __pyx_L3_error)
35054  }
35055  CYTHON_FALLTHROUGH;
35056  case 2:
35057  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_mu)) != 0)) kw_args--;
35058  else {
35059  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 2); __PYX_ERR(0, 6709, __pyx_L3_error)
35060  }
35061  CYTHON_FALLTHROUGH;
35062  case 3:
35063  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
35064  else {
35065  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 3); __PYX_ERR(0, 6709, __pyx_L3_error)
35066  }
35067  CYTHON_FALLTHROUGH;
35068  case 4:
35069  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
35070  else {
35071  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 4); __PYX_ERR(0, 6709, __pyx_L3_error)
35072  }
35073  CYTHON_FALLTHROUGH;
35074  case 5:
35075  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
35076  else {
35077  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 5); __PYX_ERR(0, 6709, __pyx_L3_error)
35078  }
35079  CYTHON_FALLTHROUGH;
35080  case 6:
35081  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
35082  else {
35083  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 6); __PYX_ERR(0, 6709, __pyx_L3_error)
35084  }
35085  CYTHON_FALLTHROUGH;
35086  case 7:
35087  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
35088  else {
35089  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 7); __PYX_ERR(0, 6709, __pyx_L3_error)
35090  }
35091  CYTHON_FALLTHROUGH;
35092  case 8:
35093  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_meanGrainSize)) != 0)) kw_args--;
35094  else {
35095  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 8); __PYX_ERR(0, 6709, __pyx_L3_error)
35096  }
35097  CYTHON_FALLTHROUGH;
35098  case 9:
35099  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
35100  else {
35101  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 9); __PYX_ERR(0, 6709, __pyx_L3_error)
35102  }
35103  CYTHON_FALLTHROUGH;
35104  case 10:
35105  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
35106  else {
35107  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 10); __PYX_ERR(0, 6709, __pyx_L3_error)
35108  }
35109  CYTHON_FALLTHROUGH;
35110  case 11:
35111  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
35112  else {
35113  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 11); __PYX_ERR(0, 6709, __pyx_L3_error)
35114  }
35115  CYTHON_FALLTHROUGH;
35116  case 12:
35117  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kappa)) != 0)) kw_args--;
35118  else {
35119  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 12); __PYX_ERR(0, 6709, __pyx_L3_error)
35120  }
35121  CYTHON_FALLTHROUGH;
35122  case 13:
35123  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
35124  else {
35125  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 13); __PYX_ERR(0, 6709, __pyx_L3_error)
35126  }
35127  CYTHON_FALLTHROUGH;
35128  case 14:
35129  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
35130  else {
35131  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 14); __PYX_ERR(0, 6709, __pyx_L3_error)
35132  }
35133  CYTHON_FALLTHROUGH;
35134  case 15:
35135  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
35136  else {
35137  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 15); __PYX_ERR(0, 6709, __pyx_L3_error)
35138  }
35139  CYTHON_FALLTHROUGH;
35140  case 16:
35141  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
35142  else {
35143  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 16); __PYX_ERR(0, 6709, __pyx_L3_error)
35144  }
35145  CYTHON_FALLTHROUGH;
35146  case 17:
35147  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
35148  else {
35149  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 17); __PYX_ERR(0, 6709, __pyx_L3_error)
35150  }
35151  CYTHON_FALLTHROUGH;
35152  case 18:
35153  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_porosity)) != 0)) kw_args--;
35154  else {
35155  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 18); __PYX_ERR(0, 6709, __pyx_L3_error)
35156  }
35157  CYTHON_FALLTHROUGH;
35158  case 19:
35159  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
35160  else {
35161  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 19); __PYX_ERR(0, 6709, __pyx_L3_error)
35162  }
35163  CYTHON_FALLTHROUGH;
35164  case 20:
35165  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
35166  else {
35167  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 20); __PYX_ERR(0, 6709, __pyx_L3_error)
35168  }
35169  CYTHON_FALLTHROUGH;
35170  case 21:
35171  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
35172  else {
35173  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 21); __PYX_ERR(0, 6709, __pyx_L3_error)
35174  }
35175  CYTHON_FALLTHROUGH;
35176  case 22:
35177  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
35178  else {
35179  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 22); __PYX_ERR(0, 6709, __pyx_L3_error)
35180  }
35181  CYTHON_FALLTHROUGH;
35182  case 23:
35183  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
35184  else {
35185  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 23); __PYX_ERR(0, 6709, __pyx_L3_error)
35186  }
35187  CYTHON_FALLTHROUGH;
35188  case 24:
35189  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
35190  else {
35191  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 24); __PYX_ERR(0, 6709, __pyx_L3_error)
35192  }
35193  CYTHON_FALLTHROUGH;
35194  case 25:
35195  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
35196  else {
35197  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 25); __PYX_ERR(0, 6709, __pyx_L3_error)
35198  }
35199  CYTHON_FALLTHROUGH;
35200  case 26:
35201  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
35202  else {
35203  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 26); __PYX_ERR(0, 6709, __pyx_L3_error)
35204  }
35205  CYTHON_FALLTHROUGH;
35206  case 27:
35207  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
35208  else {
35209  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 27); __PYX_ERR(0, 6709, __pyx_L3_error)
35210  }
35211  CYTHON_FALLTHROUGH;
35212  case 28:
35213  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_w)) != 0)) kw_args--;
35214  else {
35215  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 28); __PYX_ERR(0, 6709, __pyx_L3_error)
35216  }
35217  CYTHON_FALLTHROUGH;
35218  case 29:
35219  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
35220  else {
35221  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 29); __PYX_ERR(0, 6709, __pyx_L3_error)
35222  }
35223  CYTHON_FALLTHROUGH;
35224  case 30:
35225  if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
35226  else {
35227  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 30); __PYX_ERR(0, 6709, __pyx_L3_error)
35228  }
35229  CYTHON_FALLTHROUGH;
35230  case 31:
35231  if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
35232  else {
35233  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 31); __PYX_ERR(0, 6709, __pyx_L3_error)
35234  }
35235  CYTHON_FALLTHROUGH;
35236  case 32:
35237  if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_w)) != 0)) kw_args--;
35238  else {
35239  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 32); __PYX_ERR(0, 6709, __pyx_L3_error)
35240  }
35241  CYTHON_FALLTHROUGH;
35242  case 33:
35243  if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
35244  else {
35245  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 33); __PYX_ERR(0, 6709, __pyx_L3_error)
35246  }
35247  CYTHON_FALLTHROUGH;
35248  case 34:
35249  if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
35250  else {
35251  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 34); __PYX_ERR(0, 6709, __pyx_L3_error)
35252  }
35253  CYTHON_FALLTHROUGH;
35254  case 35:
35255  if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
35256  else {
35257  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 35); __PYX_ERR(0, 6709, __pyx_L3_error)
35258  }
35259  CYTHON_FALLTHROUGH;
35260  case 36:
35261  if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_w)) != 0)) kw_args--;
35262  else {
35263  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 36); __PYX_ERR(0, 6709, __pyx_L3_error)
35264  }
35265  CYTHON_FALLTHROUGH;
35266  case 37:
35267  if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_adv)) != 0)) kw_args--;
35268  else {
35269  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 37); __PYX_ERR(0, 6709, __pyx_L3_error)
35270  }
35271  CYTHON_FALLTHROUGH;
35272  case 38:
35273  if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_u)) != 0)) kw_args--;
35274  else {
35275  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 38); __PYX_ERR(0, 6709, __pyx_L3_error)
35276  }
35277  CYTHON_FALLTHROUGH;
35278  case 39:
35279  if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_v)) != 0)) kw_args--;
35280  else {
35281  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 39); __PYX_ERR(0, 6709, __pyx_L3_error)
35282  }
35283  CYTHON_FALLTHROUGH;
35284  case 40:
35285  if (likely((values[40] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_w)) != 0)) kw_args--;
35286  else {
35287  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 40); __PYX_ERR(0, 6709, __pyx_L3_error)
35288  }
35289  CYTHON_FALLTHROUGH;
35290  case 41:
35291  if (likely((values[41] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
35292  else {
35293  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 41); __PYX_ERR(0, 6709, __pyx_L3_error)
35294  }
35295  CYTHON_FALLTHROUGH;
35296  case 42:
35297  if (likely((values[42] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
35298  else {
35299  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 42); __PYX_ERR(0, 6709, __pyx_L3_error)
35300  }
35301  CYTHON_FALLTHROUGH;
35302  case 43:
35303  if (likely((values[43] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
35304  else {
35305  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 43); __PYX_ERR(0, 6709, __pyx_L3_error)
35306  }
35307  CYTHON_FALLTHROUGH;
35308  case 44:
35309  if (likely((values[44] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
35310  else {
35311  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 44); __PYX_ERR(0, 6709, __pyx_L3_error)
35312  }
35313  CYTHON_FALLTHROUGH;
35314  case 45:
35315  if (likely((values[45] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uw_diff_ten)) != 0)) kw_args--;
35316  else {
35317  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 45); __PYX_ERR(0, 6709, __pyx_L3_error)
35318  }
35319  CYTHON_FALLTHROUGH;
35320  case 46:
35321  if (likely((values[46] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
35322  else {
35323  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 46); __PYX_ERR(0, 6709, __pyx_L3_error)
35324  }
35325  CYTHON_FALLTHROUGH;
35326  case 47:
35327  if (likely((values[47] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vw_diff_ten)) != 0)) kw_args--;
35328  else {
35329  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 47); __PYX_ERR(0, 6709, __pyx_L3_error)
35330  }
35331  CYTHON_FALLTHROUGH;
35332  case 48:
35333  if (likely((values[48] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wu_diff_ten)) != 0)) kw_args--;
35334  else {
35335  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 48); __PYX_ERR(0, 6709, __pyx_L3_error)
35336  }
35337  CYTHON_FALLTHROUGH;
35338  case 49:
35339  if (likely((values[49] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wv_diff_ten)) != 0)) kw_args--;
35340  else {
35341  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 49); __PYX_ERR(0, 6709, __pyx_L3_error)
35342  }
35343  CYTHON_FALLTHROUGH;
35344  case 50:
35345  if (likely((values[50] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
35346  else {
35347  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 50); __PYX_ERR(0, 6709, __pyx_L3_error)
35348  }
35349  CYTHON_FALLTHROUGH;
35350  case 51:
35351  if (likely((values[51] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
35352  else {
35353  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 51); __PYX_ERR(0, 6709, __pyx_L3_error)
35354  }
35355  CYTHON_FALLTHROUGH;
35356  case 52:
35357  if (likely((values[52] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
35358  else {
35359  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 52); __PYX_ERR(0, 6709, __pyx_L3_error)
35360  }
35361  CYTHON_FALLTHROUGH;
35362  case 53:
35363  if (likely((values[53] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_u)) != 0)) kw_args--;
35364  else {
35365  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 53); __PYX_ERR(0, 6709, __pyx_L3_error)
35366  }
35367  CYTHON_FALLTHROUGH;
35368  case 54:
35369  if (likely((values[54] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_v)) != 0)) kw_args--;
35370  else {
35371  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 54); __PYX_ERR(0, 6709, __pyx_L3_error)
35372  }
35373  CYTHON_FALLTHROUGH;
35374  case 55:
35375  if (likely((values[55] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_w)) != 0)) kw_args--;
35376  else {
35377  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 55); __PYX_ERR(0, 6709, __pyx_L3_error)
35378  }
35379  CYTHON_FALLTHROUGH;
35380  case 56:
35381  if (likely((values[56] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_u)) != 0)) kw_args--;
35382  else {
35383  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 56); __PYX_ERR(0, 6709, __pyx_L3_error)
35384  }
35385  CYTHON_FALLTHROUGH;
35386  case 57:
35387  if (likely((values[57] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_v)) != 0)) kw_args--;
35388  else {
35389  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 57); __PYX_ERR(0, 6709, __pyx_L3_error)
35390  }
35391  CYTHON_FALLTHROUGH;
35392  case 58:
35393  if (likely((values[58] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_w)) != 0)) kw_args--;
35394  else {
35395  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 58); __PYX_ERR(0, 6709, __pyx_L3_error)
35396  }
35397  CYTHON_FALLTHROUGH;
35398  case 59:
35399  if (likely((values[59] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_source_u)) != 0)) kw_args--;
35400  else {
35401  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 59); __PYX_ERR(0, 6709, __pyx_L3_error)
35402  }
35403  CYTHON_FALLTHROUGH;
35404  case 60:
35405  if (likely((values[60] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_source_v)) != 0)) kw_args--;
35406  else {
35407  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 60); __PYX_ERR(0, 6709, __pyx_L3_error)
35408  }
35409  CYTHON_FALLTHROUGH;
35410  case 61:
35411  if (likely((values[61] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_source_w)) != 0)) kw_args--;
35412  else {
35413  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 61); __PYX_ERR(0, 6709, __pyx_L3_error)
35414  }
35415  CYTHON_FALLTHROUGH;
35416  case 62:
35417  if (likely((values[62] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
35418  else {
35419  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 62); __PYX_ERR(0, 6709, __pyx_L3_error)
35420  }
35421  CYTHON_FALLTHROUGH;
35422  case 63:
35423  if (likely((values[63] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
35424  else {
35425  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 63); __PYX_ERR(0, 6709, __pyx_L3_error)
35426  }
35427  CYTHON_FALLTHROUGH;
35428  case 64:
35429  if (likely((values[64] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
35430  else {
35431  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 64); __PYX_ERR(0, 6709, __pyx_L3_error)
35432  }
35433  CYTHON_FALLTHROUGH;
35434  case 65:
35435  if (likely((values[65] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
35436  else {
35437  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 65); __PYX_ERR(0, 6709, __pyx_L3_error)
35438  }
35439  CYTHON_FALLTHROUGH;
35440  case 66:
35441  if (likely((values[66] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_ham)) != 0)) kw_args--;
35442  else {
35443  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 66); __PYX_ERR(0, 6709, __pyx_L3_error)
35444  }
35445  CYTHON_FALLTHROUGH;
35446  case 67:
35447  if (likely((values[67] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_ham_grad_p)) != 0)) kw_args--;
35448  else {
35449  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 67); __PYX_ERR(0, 6709, __pyx_L3_error)
35450  }
35451  }
35452  if (unlikely(kw_args > 0)) {
35453  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd") < 0)) __PYX_ERR(0, 6709, __pyx_L3_error)
35454  }
35455  } else if (PyTuple_GET_SIZE(__pyx_args) != 68) {
35456  goto __pyx_L5_argtuple_error;
35457  } else {
35458  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
35459  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
35460  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
35461  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
35462  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
35463  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
35464  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
35465  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
35466  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
35467  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
35468  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
35469  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
35470  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
35471  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
35472  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
35473  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
35474  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
35475  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
35476  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
35477  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
35478  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
35479  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
35480  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
35481  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
35482  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
35483  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
35484  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
35485  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
35486  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
35487  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
35488  values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
35489  values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
35490  values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
35491  values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
35492  values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
35493  values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
35494  values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
35495  values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
35496  values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
35497  values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
35498  values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
35499  values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
35500  values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
35501  values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
35502  values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
35503  values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
35504  values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
35505  values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
35506  values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
35507  values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
35508  values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
35509  values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
35510  values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
35511  values[53] = PyTuple_GET_ITEM(__pyx_args, 53);
35512  values[54] = PyTuple_GET_ITEM(__pyx_args, 54);
35513  values[55] = PyTuple_GET_ITEM(__pyx_args, 55);
35514  values[56] = PyTuple_GET_ITEM(__pyx_args, 56);
35515  values[57] = PyTuple_GET_ITEM(__pyx_args, 57);
35516  values[58] = PyTuple_GET_ITEM(__pyx_args, 58);
35517  values[59] = PyTuple_GET_ITEM(__pyx_args, 59);
35518  values[60] = PyTuple_GET_ITEM(__pyx_args, 60);
35519  values[61] = PyTuple_GET_ITEM(__pyx_args, 61);
35520  values[62] = PyTuple_GET_ITEM(__pyx_args, 62);
35521  values[63] = PyTuple_GET_ITEM(__pyx_args, 63);
35522  values[64] = PyTuple_GET_ITEM(__pyx_args, 64);
35523  values[65] = PyTuple_GET_ITEM(__pyx_args, 65);
35524  values[66] = PyTuple_GET_ITEM(__pyx_args, 66);
35525  values[67] = PyTuple_GET_ITEM(__pyx_args, 67);
35526  }
35527  __pyx_v_killNonlinearDrag = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_killNonlinearDrag == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6709, __pyx_L3_error)
35528  __pyx_v_eps_rho = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_eps_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6710, __pyx_L3_error)
35529  __pyx_v_eps_mu = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_eps_mu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6711, __pyx_L3_error)
35530  __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_sigma == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6712, __pyx_L3_error)
35531  __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_rho_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6713, __pyx_L3_error)
35532  __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_nu_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6714, __pyx_L3_error)
35533  __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_rho_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6715, __pyx_L3_error)
35534  __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[7]); if (unlikely((__pyx_v_nu_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6716, __pyx_L3_error)
35535  __pyx_v_meanGrainSize = ((PyArrayObject *)values[8]);
35536  __pyx_v_g = ((PyArrayObject *)values[9]);
35537  __pyx_v_phi = ((PyArrayObject *)values[10]);
35538  __pyx_v_n = ((PyArrayObject *)values[11]);
35539  __pyx_v_kappa = ((PyArrayObject *)values[12]);
35540  __pyx_v_p = ((PyArrayObject *)values[13]);
35541  __pyx_v_grad_p = ((PyArrayObject *)values[14]);
35542  __pyx_v_u = ((PyArrayObject *)values[15]);
35543  __pyx_v_v = ((PyArrayObject *)values[16]);
35544  __pyx_v_w = ((PyArrayObject *)values[17]);
35545  __pyx_v_porosity = ((PyArrayObject *)values[18]);
35546  __pyx_v_mom_u_acc = ((PyArrayObject *)values[19]);
35547  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[20]);
35548  __pyx_v_mom_v_acc = ((PyArrayObject *)values[21]);
35549  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[22]);
35550  __pyx_v_mom_w_acc = ((PyArrayObject *)values[23]);
35551  __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[24]);
35552  __pyx_v_mass_adv = ((PyArrayObject *)values[25]);
35553  __pyx_v_dmass_adv_u = ((PyArrayObject *)values[26]);
35554  __pyx_v_dmass_adv_v = ((PyArrayObject *)values[27]);
35555  __pyx_v_dmass_adv_w = ((PyArrayObject *)values[28]);
35556  __pyx_v_mom_u_adv = ((PyArrayObject *)values[29]);
35557  __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[30]);
35558  __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[31]);
35559  __pyx_v_dmom_u_adv_w = ((PyArrayObject *)values[32]);
35560  __pyx_v_mom_v_adv = ((PyArrayObject *)values[33]);
35561  __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[34]);
35562  __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[35]);
35563  __pyx_v_dmom_v_adv_w = ((PyArrayObject *)values[36]);
35564  __pyx_v_mom_w_adv = ((PyArrayObject *)values[37]);
35565  __pyx_v_dmom_w_adv_u = ((PyArrayObject *)values[38]);
35566  __pyx_v_dmom_w_adv_v = ((PyArrayObject *)values[39]);
35567  __pyx_v_dmom_w_adv_w = ((PyArrayObject *)values[40]);
35568  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[41]);
35569  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[42]);
35570  __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[43]);
35571  __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[44]);
35572  __pyx_v_mom_uw_diff_ten = ((PyArrayObject *)values[45]);
35573  __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[46]);
35574  __pyx_v_mom_vw_diff_ten = ((PyArrayObject *)values[47]);
35575  __pyx_v_mom_wu_diff_ten = ((PyArrayObject *)values[48]);
35576  __pyx_v_mom_wv_diff_ten = ((PyArrayObject *)values[49]);
35577  __pyx_v_mom_u_source = ((PyArrayObject *)values[50]);
35578  __pyx_v_mom_v_source = ((PyArrayObject *)values[51]);
35579  __pyx_v_mom_w_source = ((PyArrayObject *)values[52]);
35580  __pyx_v_dmom_u_source_u = ((PyArrayObject *)values[53]);
35581  __pyx_v_dmom_u_source_v = ((PyArrayObject *)values[54]);
35582  __pyx_v_dmom_u_source_w = ((PyArrayObject *)values[55]);
35583  __pyx_v_dmom_v_source_u = ((PyArrayObject *)values[56]);
35584  __pyx_v_dmom_v_source_v = ((PyArrayObject *)values[57]);
35585  __pyx_v_dmom_v_source_w = ((PyArrayObject *)values[58]);
35586  __pyx_v_dmom_w_source_u = ((PyArrayObject *)values[59]);
35587  __pyx_v_dmom_w_source_v = ((PyArrayObject *)values[60]);
35588  __pyx_v_dmom_w_source_w = ((PyArrayObject *)values[61]);
35589  __pyx_v_mom_u_ham = ((PyArrayObject *)values[62]);
35590  __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[63]);
35591  __pyx_v_mom_v_ham = ((PyArrayObject *)values[64]);
35592  __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[65]);
35593  __pyx_v_mom_w_ham = ((PyArrayObject *)values[66]);
35594  __pyx_v_dmom_w_ham_grad_p = ((PyArrayObject *)values[67]);
35595  }
35596  goto __pyx_L4_argument_unpacking_done;
35597  __pyx_L5_argtuple_error:;
35598  __Pyx_RaiseArgtupleInvalid("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6709, __pyx_L3_error)
35599  __pyx_L3_error:;
35600  __Pyx_AddTraceback("ctransportCoefficients.VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
35601  __Pyx_RefNannyFinishContext();
35602  return NULL;
35603  __pyx_L4_argument_unpacking_done:;
35604  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_meanGrainSize), __pyx_ptype_5numpy_ndarray, 1, "meanGrainSize", 0))) __PYX_ERR(0, 6717, __pyx_L1_error)
35605  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1, "g", 0))) __PYX_ERR(0, 6718, __pyx_L1_error)
35606  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 6719, __pyx_L1_error)
35607  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1, "n", 0))) __PYX_ERR(0, 6720, __pyx_L1_error)
35608  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kappa), __pyx_ptype_5numpy_ndarray, 1, "kappa", 0))) __PYX_ERR(0, 6721, __pyx_L1_error)
35609  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 6722, __pyx_L1_error)
35610  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1, "grad_p", 0))) __PYX_ERR(0, 6723, __pyx_L1_error)
35611  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 6724, __pyx_L1_error)
35612  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 6725, __pyx_L1_error)
35613  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1, "w", 0))) __PYX_ERR(0, 6726, __pyx_L1_error)
35614  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_porosity), __pyx_ptype_5numpy_ndarray, 1, "porosity", 0))) __PYX_ERR(0, 6727, __pyx_L1_error)
35615  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 6728, __pyx_L1_error)
35616  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 6729, __pyx_L1_error)
35617  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 6730, __pyx_L1_error)
35618  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 6731, __pyx_L1_error)
35619  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_w_acc", 0))) __PYX_ERR(0, 6732, __pyx_L1_error)
35620  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_acc_w", 0))) __PYX_ERR(0, 6733, __pyx_L1_error)
35621  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 6734, __pyx_L1_error)
35622  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_u", 0))) __PYX_ERR(0, 6735, __pyx_L1_error)
35623  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_v", 0))) __PYX_ERR(0, 6736, __pyx_L1_error)
35624  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_w", 0))) __PYX_ERR(0, 6737, __pyx_L1_error)
35625  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_u_adv", 0))) __PYX_ERR(0, 6738, __pyx_L1_error)
35626  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_u", 0))) __PYX_ERR(0, 6739, __pyx_L1_error)
35627  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_v", 0))) __PYX_ERR(0, 6740, __pyx_L1_error)
35628  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_w", 0))) __PYX_ERR(0, 6741, __pyx_L1_error)
35629  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_v_adv", 0))) __PYX_ERR(0, 6742, __pyx_L1_error)
35630  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_u", 0))) __PYX_ERR(0, 6743, __pyx_L1_error)
35631  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_v", 0))) __PYX_ERR(0, 6744, __pyx_L1_error)
35632  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_w", 0))) __PYX_ERR(0, 6745, __pyx_L1_error)
35633  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_w_adv", 0))) __PYX_ERR(0, 6746, __pyx_L1_error)
35634  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_u", 0))) __PYX_ERR(0, 6747, __pyx_L1_error)
35635  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_v", 0))) __PYX_ERR(0, 6748, __pyx_L1_error)
35636  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_adv_w", 0))) __PYX_ERR(0, 6749, __pyx_L1_error)
35637  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 6750, __pyx_L1_error)
35638  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 6751, __pyx_L1_error)
35639  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_w_diff_ten", 0))) __PYX_ERR(0, 6752, __pyx_L1_error)
35640  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uv_diff_ten", 0))) __PYX_ERR(0, 6753, __pyx_L1_error)
35641  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uw_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uw_diff_ten", 0))) __PYX_ERR(0, 6754, __pyx_L1_error)
35642  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vu_diff_ten", 0))) __PYX_ERR(0, 6755, __pyx_L1_error)
35643  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vw_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vw_diff_ten", 0))) __PYX_ERR(0, 6756, __pyx_L1_error)
35644  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_wu_diff_ten", 0))) __PYX_ERR(0, 6757, __pyx_L1_error)
35645  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_wv_diff_ten", 0))) __PYX_ERR(0, 6758, __pyx_L1_error)
35646  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 6759, __pyx_L1_error)
35647  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 6760, __pyx_L1_error)
35648  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1, "mom_w_source", 0))) __PYX_ERR(0, 6761, __pyx_L1_error)
35649  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_source_u", 0))) __PYX_ERR(0, 6762, __pyx_L1_error)
35650  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_source_v", 0))) __PYX_ERR(0, 6763, __pyx_L1_error)
35651  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_source_w", 0))) __PYX_ERR(0, 6764, __pyx_L1_error)
35652  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_source_u", 0))) __PYX_ERR(0, 6765, __pyx_L1_error)
35653  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_source_v", 0))) __PYX_ERR(0, 6766, __pyx_L1_error)
35654  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_source_w", 0))) __PYX_ERR(0, 6767, __pyx_L1_error)
35655  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_source_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_source_u", 0))) __PYX_ERR(0, 6768, __pyx_L1_error)
35656  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_source_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_source_v", 0))) __PYX_ERR(0, 6769, __pyx_L1_error)
35657  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_source_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_source_w", 0))) __PYX_ERR(0, 6770, __pyx_L1_error)
35658  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_u_ham", 0))) __PYX_ERR(0, 6771, __pyx_L1_error)
35659  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 6772, __pyx_L1_error)
35660  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_v_ham", 0))) __PYX_ERR(0, 6773, __pyx_L1_error)
35661  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 6774, __pyx_L1_error)
35662  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_ham), __pyx_ptype_5numpy_ndarray, 1, "mom_w_ham", 0))) __PYX_ERR(0, 6775, __pyx_L1_error)
35663  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_ham_grad_p", 0))) __PYX_ERR(0, 6776, __pyx_L1_error)
35664  __pyx_r = __pyx_pf_22ctransportCoefficients_176VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(__pyx_self, __pyx_v_killNonlinearDrag, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_meanGrainSize, __pyx_v_g, __pyx_v_phi, __pyx_v_n, __pyx_v_kappa, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_porosity, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mom_w_acc, __pyx_v_dmom_w_acc_w, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_dmass_adv_w, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_dmom_u_adv_w, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_dmom_v_adv_w, __pyx_v_mom_w_adv, __pyx_v_dmom_w_adv_u, __pyx_v_dmom_w_adv_v, __pyx_v_dmom_w_adv_w, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_uw_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_vw_diff_ten, __pyx_v_mom_wu_diff_ten, __pyx_v_mom_wv_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source, __pyx_v_dmom_u_source_u, __pyx_v_dmom_u_source_v, __pyx_v_dmom_u_source_w, __pyx_v_dmom_v_source_u, __pyx_v_dmom_v_source_v, __pyx_v_dmom_v_source_w, __pyx_v_dmom_w_source_u, __pyx_v_dmom_w_source_v, __pyx_v_dmom_w_source_w, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p, __pyx_v_mom_w_ham, __pyx_v_dmom_w_ham_grad_p);
35665 
35666  /* function exit code */
35667  goto __pyx_L0;
35668  __pyx_L1_error:;
35669  __pyx_r = NULL;
35670  __pyx_L0:;
35671  __Pyx_RefNannyFinishContext();
35672  return __pyx_r;
35673 }
35674 
35675 static PyObject *__pyx_pf_22ctransportCoefficients_176VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_killNonlinearDrag, double __pyx_v_eps_rho, double __pyx_v_eps_mu, double __pyx_v_sigma, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_meanGrainSize, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_u_source_w, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_dmom_v_source_w, PyArrayObject *__pyx_v_dmom_w_source_u, PyArrayObject *__pyx_v_dmom_w_source_v, PyArrayObject *__pyx_v_dmom_w_source_w, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p) {
35676  PyObject *__pyx_r = NULL;
35677  __Pyx_RefNannyDeclarations
35678  PyObject *__pyx_t_1 = NULL;
35679  int __pyx_t_2;
35680  int __pyx_lineno = 0;
35681  const char *__pyx_filename = NULL;
35682  int __pyx_clineno = 0;
35683  __Pyx_RefNannySetupContext("VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 0);
35684 
35685  /* "ctransportCoefficients.pyx":6777
35686  * np.ndarray mom_w_ham,
35687  * np.ndarray dmom_w_ham_grad_p):
35688  * cVolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(p.size, # <<<<<<<<<<<<<<
35689  * killNonlinearDrag,
35690  * eps_rho,
35691  */
35692  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6777, __pyx_L1_error)
35693  __Pyx_GOTREF(__pyx_t_1);
35694  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6777, __pyx_L1_error)
35695  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
35696 
35697  /* "ctransportCoefficients.pyx":6845
35698  * <double*> dmom_v_ham_grad_p.data,
35699  * <double*> mom_w_ham.data,
35700  * <double*> dmom_w_ham_grad_p.data) # <<<<<<<<<<<<<<
35701  * def VolumeAveragedVOFCoefficientsEvaluate(double eps,
35702  * np.ndarray v,
35703  */
35704  VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(__pyx_t_2, __pyx_v_killNonlinearDrag, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((double *)__pyx_v_meanGrainSize->data), ((double *)__pyx_v_g->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_n->data), ((double *)__pyx_v_kappa->data), ((double *)__pyx_v_p->data), ((double *)__pyx_v_grad_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_w->data), ((double *)__pyx_v_porosity->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_v_acc_v->data), ((double *)__pyx_v_mom_w_acc->data), ((double *)__pyx_v_dmom_w_acc_w->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_u->data), ((double *)__pyx_v_dmass_adv_v->data), ((double *)__pyx_v_dmass_adv_w->data), ((double *)__pyx_v_mom_u_adv->data), ((double *)__pyx_v_dmom_u_adv_u->data), ((double *)__pyx_v_dmom_u_adv_v->data), ((double *)__pyx_v_dmom_u_adv_w->data), ((double *)__pyx_v_mom_v_adv->data), ((double *)__pyx_v_dmom_v_adv_u->data), ((double *)__pyx_v_dmom_v_adv_v->data), ((double *)__pyx_v_dmom_v_adv_w->data), ((double *)__pyx_v_mom_w_adv->data), ((double *)__pyx_v_dmom_w_adv_u->data), ((double *)__pyx_v_dmom_w_adv_v->data), ((double *)__pyx_v_dmom_w_adv_w->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_w_diff_ten->data), ((double *)__pyx_v_mom_uv_diff_ten->data), ((double *)__pyx_v_mom_uw_diff_ten->data), ((double *)__pyx_v_mom_vu_diff_ten->data), ((double *)__pyx_v_mom_vw_diff_ten->data), ((double *)__pyx_v_mom_wu_diff_ten->data), ((double *)__pyx_v_mom_wv_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_mom_w_source->data), ((double *)__pyx_v_dmom_u_source_u->data), ((double *)__pyx_v_dmom_u_source_v->data), ((double *)__pyx_v_dmom_u_source_w->data), ((double *)__pyx_v_dmom_v_source_u->data), ((double *)__pyx_v_dmom_v_source_v->data), ((double *)__pyx_v_dmom_v_source_w->data), ((double *)__pyx_v_dmom_w_source_u->data), ((double *)__pyx_v_dmom_w_source_v->data), ((double *)__pyx_v_dmom_w_source_w->data), ((double *)__pyx_v_mom_u_ham->data), ((double *)__pyx_v_dmom_u_ham_grad_p->data), ((double *)__pyx_v_mom_v_ham->data), ((double *)__pyx_v_dmom_v_ham_grad_p->data), ((double *)__pyx_v_mom_w_ham->data), ((double *)__pyx_v_dmom_w_ham_grad_p->data));
35705 
35706  /* "ctransportCoefficients.pyx":6709
35707  * <double*> mom_w_ham.data,
35708  * <double*> dmom_w_ham_grad_p.data)
35709  * def VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(const int killNonlinearDrag, # <<<<<<<<<<<<<<
35710  * const double eps_rho,
35711  * const double eps_mu,
35712  */
35713 
35714  /* function exit code */
35715  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
35716  goto __pyx_L0;
35717  __pyx_L1_error:;
35718  __Pyx_XDECREF(__pyx_t_1);
35719  __Pyx_AddTraceback("ctransportCoefficients.VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
35720  __pyx_r = NULL;
35721  __pyx_L0:;
35722  __Pyx_XGIVEREF(__pyx_r);
35723  __Pyx_RefNannyFinishContext();
35724  return __pyx_r;
35725 }
35726 
35727 /* "ctransportCoefficients.pyx":6846
35728  * <double*> mom_w_ham.data,
35729  * <double*> dmom_w_ham_grad_p.data)
35730  * def VolumeAveragedVOFCoefficientsEvaluate(double eps, # <<<<<<<<<<<<<<
35731  * np.ndarray v,
35732  * np.ndarray phi,
35733  */
35734 
35735 /* Python wrapper */
35736 static PyObject *__pyx_pw_22ctransportCoefficients_179VolumeAveragedVOFCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
35737 static PyMethodDef __pyx_mdef_22ctransportCoefficients_179VolumeAveragedVOFCoefficientsEvaluate = {"VolumeAveragedVOFCoefficientsEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_179VolumeAveragedVOFCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
35738 static PyObject *__pyx_pw_22ctransportCoefficients_179VolumeAveragedVOFCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
35739  double __pyx_v_eps;
35740  PyArrayObject *__pyx_v_v = 0;
35741  PyArrayObject *__pyx_v_phi = 0;
35742  PyArrayObject *__pyx_v_porosity = 0;
35743  PyArrayObject *__pyx_v_u = 0;
35744  PyArrayObject *__pyx_v_m = 0;
35745  PyArrayObject *__pyx_v_dm = 0;
35746  PyArrayObject *__pyx_v_f = 0;
35747  PyArrayObject *__pyx_v_df = 0;
35748  int __pyx_lineno = 0;
35749  const char *__pyx_filename = NULL;
35750  int __pyx_clineno = 0;
35751  PyObject *__pyx_r = 0;
35752  __Pyx_RefNannyDeclarations
35753  __Pyx_RefNannySetupContext("VolumeAveragedVOFCoefficientsEvaluate (wrapper)", 0);
35754  {
35755  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_v,&__pyx_n_s_phi,&__pyx_n_s_porosity,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,0};
35756  PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
35757  if (unlikely(__pyx_kwds)) {
35758  Py_ssize_t kw_args;
35759  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
35760  switch (pos_args) {
35761  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
35762  CYTHON_FALLTHROUGH;
35763  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
35764  CYTHON_FALLTHROUGH;
35765  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
35766  CYTHON_FALLTHROUGH;
35767  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
35768  CYTHON_FALLTHROUGH;
35769  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
35770  CYTHON_FALLTHROUGH;
35771  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
35772  CYTHON_FALLTHROUGH;
35773  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
35774  CYTHON_FALLTHROUGH;
35775  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
35776  CYTHON_FALLTHROUGH;
35777  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
35778  CYTHON_FALLTHROUGH;
35779  case 0: break;
35780  default: goto __pyx_L5_argtuple_error;
35781  }
35782  kw_args = PyDict_Size(__pyx_kwds);
35783  switch (pos_args) {
35784  case 0:
35785  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
35786  else goto __pyx_L5_argtuple_error;
35787  CYTHON_FALLTHROUGH;
35788  case 1:
35789  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
35790  else {
35791  __Pyx_RaiseArgtupleInvalid("VolumeAveragedVOFCoefficientsEvaluate", 1, 9, 9, 1); __PYX_ERR(0, 6846, __pyx_L3_error)
35792  }
35793  CYTHON_FALLTHROUGH;
35794  case 2:
35795  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
35796  else {
35797  __Pyx_RaiseArgtupleInvalid("VolumeAveragedVOFCoefficientsEvaluate", 1, 9, 9, 2); __PYX_ERR(0, 6846, __pyx_L3_error)
35798  }
35799  CYTHON_FALLTHROUGH;
35800  case 3:
35801  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_porosity)) != 0)) kw_args--;
35802  else {
35803  __Pyx_RaiseArgtupleInvalid("VolumeAveragedVOFCoefficientsEvaluate", 1, 9, 9, 3); __PYX_ERR(0, 6846, __pyx_L3_error)
35804  }
35805  CYTHON_FALLTHROUGH;
35806  case 4:
35807  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
35808  else {
35809  __Pyx_RaiseArgtupleInvalid("VolumeAveragedVOFCoefficientsEvaluate", 1, 9, 9, 4); __PYX_ERR(0, 6846, __pyx_L3_error)
35810  }
35811  CYTHON_FALLTHROUGH;
35812  case 5:
35813  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
35814  else {
35815  __Pyx_RaiseArgtupleInvalid("VolumeAveragedVOFCoefficientsEvaluate", 1, 9, 9, 5); __PYX_ERR(0, 6846, __pyx_L3_error)
35816  }
35817  CYTHON_FALLTHROUGH;
35818  case 6:
35819  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
35820  else {
35821  __Pyx_RaiseArgtupleInvalid("VolumeAveragedVOFCoefficientsEvaluate", 1, 9, 9, 6); __PYX_ERR(0, 6846, __pyx_L3_error)
35822  }
35823  CYTHON_FALLTHROUGH;
35824  case 7:
35825  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
35826  else {
35827  __Pyx_RaiseArgtupleInvalid("VolumeAveragedVOFCoefficientsEvaluate", 1, 9, 9, 7); __PYX_ERR(0, 6846, __pyx_L3_error)
35828  }
35829  CYTHON_FALLTHROUGH;
35830  case 8:
35831  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
35832  else {
35833  __Pyx_RaiseArgtupleInvalid("VolumeAveragedVOFCoefficientsEvaluate", 1, 9, 9, 8); __PYX_ERR(0, 6846, __pyx_L3_error)
35834  }
35835  }
35836  if (unlikely(kw_args > 0)) {
35837  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "VolumeAveragedVOFCoefficientsEvaluate") < 0)) __PYX_ERR(0, 6846, __pyx_L3_error)
35838  }
35839  } else if (PyTuple_GET_SIZE(__pyx_args) != 9) {
35840  goto __pyx_L5_argtuple_error;
35841  } else {
35842  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
35843  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
35844  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
35845  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
35846  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
35847  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
35848  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
35849  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
35850  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
35851  }
35852  __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6846, __pyx_L3_error)
35853  __pyx_v_v = ((PyArrayObject *)values[1]);
35854  __pyx_v_phi = ((PyArrayObject *)values[2]);
35855  __pyx_v_porosity = ((PyArrayObject *)values[3]);
35856  __pyx_v_u = ((PyArrayObject *)values[4]);
35857  __pyx_v_m = ((PyArrayObject *)values[5]);
35858  __pyx_v_dm = ((PyArrayObject *)values[6]);
35859  __pyx_v_f = ((PyArrayObject *)values[7]);
35860  __pyx_v_df = ((PyArrayObject *)values[8]);
35861  }
35862  goto __pyx_L4_argument_unpacking_done;
35863  __pyx_L5_argtuple_error:;
35864  __Pyx_RaiseArgtupleInvalid("VolumeAveragedVOFCoefficientsEvaluate", 1, 9, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6846, __pyx_L3_error)
35865  __pyx_L3_error:;
35866  __Pyx_AddTraceback("ctransportCoefficients.VolumeAveragedVOFCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
35867  __Pyx_RefNannyFinishContext();
35868  return NULL;
35869  __pyx_L4_argument_unpacking_done:;
35870  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 6847, __pyx_L1_error)
35871  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 6848, __pyx_L1_error)
35872  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_porosity), __pyx_ptype_5numpy_ndarray, 1, "porosity", 0))) __PYX_ERR(0, 6849, __pyx_L1_error)
35873  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 6850, __pyx_L1_error)
35874  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 6851, __pyx_L1_error)
35875  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 6852, __pyx_L1_error)
35876  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 6853, __pyx_L1_error)
35877  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 6854, __pyx_L1_error)
35878  __pyx_r = __pyx_pf_22ctransportCoefficients_178VolumeAveragedVOFCoefficientsEvaluate(__pyx_self, __pyx_v_eps, __pyx_v_v, __pyx_v_phi, __pyx_v_porosity, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df);
35879 
35880  /* function exit code */
35881  goto __pyx_L0;
35882  __pyx_L1_error:;
35883  __pyx_r = NULL;
35884  __pyx_L0:;
35885  __Pyx_RefNannyFinishContext();
35886  return __pyx_r;
35887 }
35888 
35889 static PyObject *__pyx_pf_22ctransportCoefficients_178VolumeAveragedVOFCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df) {
35890  PyObject *__pyx_r = NULL;
35891  __Pyx_RefNannyDeclarations
35892  PyObject *__pyx_t_1 = NULL;
35893  int __pyx_t_2;
35894  int __pyx_lineno = 0;
35895  const char *__pyx_filename = NULL;
35896  int __pyx_clineno = 0;
35897  __Pyx_RefNannySetupContext("VolumeAveragedVOFCoefficientsEvaluate", 0);
35898 
35899  /* "ctransportCoefficients.pyx":6855
35900  * np.ndarray f,
35901  * np.ndarray df):
35902  * cVolumeAveragedVOFCoefficientsEvaluate(u.size, # <<<<<<<<<<<<<<
35903  * f.shape[f.ndim-1],
35904  * eps,
35905  */
35906  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6855, __pyx_L1_error)
35907  __Pyx_GOTREF(__pyx_t_1);
35908  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6855, __pyx_L1_error)
35909  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
35910 
35911  /* "ctransportCoefficients.pyx":6865
35912  * <double*> dm.data,
35913  * <double*> f.data,
35914  * <double*> df.data) # <<<<<<<<<<<<<<
35915  * def kEpsilon_2D_Evaluate(double sigma_k,
35916  * double sigma_e,
35917  */
35918  VolumeAveragedVOFCoefficientsEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_eps, ((double *)__pyx_v_v->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_porosity->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data));
35919 
35920  /* "ctransportCoefficients.pyx":6846
35921  * <double*> mom_w_ham.data,
35922  * <double*> dmom_w_ham_grad_p.data)
35923  * def VolumeAveragedVOFCoefficientsEvaluate(double eps, # <<<<<<<<<<<<<<
35924  * np.ndarray v,
35925  * np.ndarray phi,
35926  */
35927 
35928  /* function exit code */
35929  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
35930  goto __pyx_L0;
35931  __pyx_L1_error:;
35932  __Pyx_XDECREF(__pyx_t_1);
35933  __Pyx_AddTraceback("ctransportCoefficients.VolumeAveragedVOFCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
35934  __pyx_r = NULL;
35935  __pyx_L0:;
35936  __Pyx_XGIVEREF(__pyx_r);
35937  __Pyx_RefNannyFinishContext();
35938  return __pyx_r;
35939 }
35940 
35941 /* "ctransportCoefficients.pyx":6866
35942  * <double*> f.data,
35943  * <double*> df.data)
35944  * def kEpsilon_2D_Evaluate(double sigma_k, # <<<<<<<<<<<<<<
35945  * double sigma_e,
35946  * double c_1,
35947  */
35948 
35949 /* Python wrapper */
35950 static PyObject *__pyx_pw_22ctransportCoefficients_181kEpsilon_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
35951 static PyMethodDef __pyx_mdef_22ctransportCoefficients_181kEpsilon_2D_Evaluate = {"kEpsilon_2D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_181kEpsilon_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
35952 static PyObject *__pyx_pw_22ctransportCoefficients_181kEpsilon_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
35953  double __pyx_v_sigma_k;
35954  double __pyx_v_sigma_e;
35955  double __pyx_v_c_1;
35956  double __pyx_v_c_2;
35957  double __pyx_v_c_mu;
35958  double __pyx_v_c_e;
35959  double __pyx_v_nu;
35960  PyArrayObject *__pyx_v_velocity = 0;
35961  PyArrayObject *__pyx_v_gradu = 0;
35962  PyArrayObject *__pyx_v_gradv = 0;
35963  PyArrayObject *__pyx_v_k = 0;
35964  PyArrayObject *__pyx_v_epsilon = 0;
35965  PyArrayObject *__pyx_v_m_k = 0;
35966  PyArrayObject *__pyx_v_dm_k = 0;
35967  PyArrayObject *__pyx_v_m_e = 0;
35968  PyArrayObject *__pyx_v_dm_e = 0;
35969  PyArrayObject *__pyx_v_phi_k = 0;
35970  PyArrayObject *__pyx_v_dphi_k = 0;
35971  PyArrayObject *__pyx_v_phi_e = 0;
35972  PyArrayObject *__pyx_v_dphi_e = 0;
35973  PyArrayObject *__pyx_v_f_k = 0;
35974  PyArrayObject *__pyx_v_df_k = 0;
35975  PyArrayObject *__pyx_v_f_e = 0;
35976  PyArrayObject *__pyx_v_df_e = 0;
35977  PyArrayObject *__pyx_v_a_k = 0;
35978  PyArrayObject *__pyx_v_da_k_dk = 0;
35979  PyArrayObject *__pyx_v_da_k_de = 0;
35980  PyArrayObject *__pyx_v_a_e = 0;
35981  PyArrayObject *__pyx_v_da_e_dk = 0;
35982  PyArrayObject *__pyx_v_da_e_de = 0;
35983  PyArrayObject *__pyx_v_r_k = 0;
35984  PyArrayObject *__pyx_v_dr_k_dk = 0;
35985  PyArrayObject *__pyx_v_dr_k_de = 0;
35986  PyArrayObject *__pyx_v_r_e = 0;
35987  PyArrayObject *__pyx_v_dr_e_dk = 0;
35988  PyArrayObject *__pyx_v_dr_e_de = 0;
35989  int __pyx_lineno = 0;
35990  const char *__pyx_filename = NULL;
35991  int __pyx_clineno = 0;
35992  PyObject *__pyx_r = 0;
35993  __Pyx_RefNannyDeclarations
35994  __Pyx_RefNannySetupContext("kEpsilon_2D_Evaluate (wrapper)", 0);
35995  {
35996  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_sigma_k,&__pyx_n_s_sigma_e,&__pyx_n_s_c_1,&__pyx_n_s_c_2,&__pyx_n_s_c_mu,&__pyx_n_s_c_e,&__pyx_n_s_nu,&__pyx_n_s_velocity,&__pyx_n_s_gradu,&__pyx_n_s_gradv,&__pyx_n_s_k,&__pyx_n_s_epsilon,&__pyx_n_s_m_k,&__pyx_n_s_dm_k,&__pyx_n_s_m_e,&__pyx_n_s_dm_e,&__pyx_n_s_phi_k,&__pyx_n_s_dphi_k,&__pyx_n_s_phi_e,&__pyx_n_s_dphi_e,&__pyx_n_s_f_k,&__pyx_n_s_df_k,&__pyx_n_s_f_e,&__pyx_n_s_df_e,&__pyx_n_s_a_k,&__pyx_n_s_da_k_dk,&__pyx_n_s_da_k_de,&__pyx_n_s_a_e,&__pyx_n_s_da_e_dk,&__pyx_n_s_da_e_de,&__pyx_n_s_r_k,&__pyx_n_s_dr_k_dk,&__pyx_n_s_dr_k_de,&__pyx_n_s_r_e,&__pyx_n_s_dr_e_dk,&__pyx_n_s_dr_e_de,0};
35997  PyObject* values[36] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
35998  if (unlikely(__pyx_kwds)) {
35999  Py_ssize_t kw_args;
36000  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
36001  switch (pos_args) {
36002  case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
36003  CYTHON_FALLTHROUGH;
36004  case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
36005  CYTHON_FALLTHROUGH;
36006  case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
36007  CYTHON_FALLTHROUGH;
36008  case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
36009  CYTHON_FALLTHROUGH;
36010  case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
36011  CYTHON_FALLTHROUGH;
36012  case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
36013  CYTHON_FALLTHROUGH;
36014  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
36015  CYTHON_FALLTHROUGH;
36016  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
36017  CYTHON_FALLTHROUGH;
36018  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
36019  CYTHON_FALLTHROUGH;
36020  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
36021  CYTHON_FALLTHROUGH;
36022  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
36023  CYTHON_FALLTHROUGH;
36024  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
36025  CYTHON_FALLTHROUGH;
36026  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
36027  CYTHON_FALLTHROUGH;
36028  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
36029  CYTHON_FALLTHROUGH;
36030  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
36031  CYTHON_FALLTHROUGH;
36032  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
36033  CYTHON_FALLTHROUGH;
36034  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
36035  CYTHON_FALLTHROUGH;
36036  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
36037  CYTHON_FALLTHROUGH;
36038  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
36039  CYTHON_FALLTHROUGH;
36040  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
36041  CYTHON_FALLTHROUGH;
36042  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
36043  CYTHON_FALLTHROUGH;
36044  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
36045  CYTHON_FALLTHROUGH;
36046  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
36047  CYTHON_FALLTHROUGH;
36048  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
36049  CYTHON_FALLTHROUGH;
36050  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
36051  CYTHON_FALLTHROUGH;
36052  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
36053  CYTHON_FALLTHROUGH;
36054  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
36055  CYTHON_FALLTHROUGH;
36056  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
36057  CYTHON_FALLTHROUGH;
36058  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
36059  CYTHON_FALLTHROUGH;
36060  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
36061  CYTHON_FALLTHROUGH;
36062  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
36063  CYTHON_FALLTHROUGH;
36064  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
36065  CYTHON_FALLTHROUGH;
36066  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
36067  CYTHON_FALLTHROUGH;
36068  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
36069  CYTHON_FALLTHROUGH;
36070  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
36071  CYTHON_FALLTHROUGH;
36072  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
36073  CYTHON_FALLTHROUGH;
36074  case 0: break;
36075  default: goto __pyx_L5_argtuple_error;
36076  }
36077  kw_args = PyDict_Size(__pyx_kwds);
36078  switch (pos_args) {
36079  case 0:
36080  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma_k)) != 0)) kw_args--;
36081  else goto __pyx_L5_argtuple_error;
36082  CYTHON_FALLTHROUGH;
36083  case 1:
36084  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma_e)) != 0)) kw_args--;
36085  else {
36086  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 1); __PYX_ERR(0, 6866, __pyx_L3_error)
36087  }
36088  CYTHON_FALLTHROUGH;
36089  case 2:
36090  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_1)) != 0)) kw_args--;
36091  else {
36092  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 2); __PYX_ERR(0, 6866, __pyx_L3_error)
36093  }
36094  CYTHON_FALLTHROUGH;
36095  case 3:
36096  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_2)) != 0)) kw_args--;
36097  else {
36098  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 3); __PYX_ERR(0, 6866, __pyx_L3_error)
36099  }
36100  CYTHON_FALLTHROUGH;
36101  case 4:
36102  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_mu)) != 0)) kw_args--;
36103  else {
36104  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 4); __PYX_ERR(0, 6866, __pyx_L3_error)
36105  }
36106  CYTHON_FALLTHROUGH;
36107  case 5:
36108  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_e)) != 0)) kw_args--;
36109  else {
36110  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 5); __PYX_ERR(0, 6866, __pyx_L3_error)
36111  }
36112  CYTHON_FALLTHROUGH;
36113  case 6:
36114  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
36115  else {
36116  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 6); __PYX_ERR(0, 6866, __pyx_L3_error)
36117  }
36118  CYTHON_FALLTHROUGH;
36119  case 7:
36120  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
36121  else {
36122  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 7); __PYX_ERR(0, 6866, __pyx_L3_error)
36123  }
36124  CYTHON_FALLTHROUGH;
36125  case 8:
36126  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
36127  else {
36128  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 8); __PYX_ERR(0, 6866, __pyx_L3_error)
36129  }
36130  CYTHON_FALLTHROUGH;
36131  case 9:
36132  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradv)) != 0)) kw_args--;
36133  else {
36134  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 9); __PYX_ERR(0, 6866, __pyx_L3_error)
36135  }
36136  CYTHON_FALLTHROUGH;
36137  case 10:
36138  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_k)) != 0)) kw_args--;
36139  else {
36140  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 10); __PYX_ERR(0, 6866, __pyx_L3_error)
36141  }
36142  CYTHON_FALLTHROUGH;
36143  case 11:
36144  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
36145  else {
36146  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 11); __PYX_ERR(0, 6866, __pyx_L3_error)
36147  }
36148  CYTHON_FALLTHROUGH;
36149  case 12:
36150  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_k)) != 0)) kw_args--;
36151  else {
36152  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 12); __PYX_ERR(0, 6866, __pyx_L3_error)
36153  }
36154  CYTHON_FALLTHROUGH;
36155  case 13:
36156  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_k)) != 0)) kw_args--;
36157  else {
36158  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 13); __PYX_ERR(0, 6866, __pyx_L3_error)
36159  }
36160  CYTHON_FALLTHROUGH;
36161  case 14:
36162  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_e)) != 0)) kw_args--;
36163  else {
36164  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 14); __PYX_ERR(0, 6866, __pyx_L3_error)
36165  }
36166  CYTHON_FALLTHROUGH;
36167  case 15:
36168  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_e)) != 0)) kw_args--;
36169  else {
36170  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 15); __PYX_ERR(0, 6866, __pyx_L3_error)
36171  }
36172  CYTHON_FALLTHROUGH;
36173  case 16:
36174  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_k)) != 0)) kw_args--;
36175  else {
36176  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 16); __PYX_ERR(0, 6866, __pyx_L3_error)
36177  }
36178  CYTHON_FALLTHROUGH;
36179  case 17:
36180  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_k)) != 0)) kw_args--;
36181  else {
36182  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 17); __PYX_ERR(0, 6866, __pyx_L3_error)
36183  }
36184  CYTHON_FALLTHROUGH;
36185  case 18:
36186  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_e)) != 0)) kw_args--;
36187  else {
36188  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 18); __PYX_ERR(0, 6866, __pyx_L3_error)
36189  }
36190  CYTHON_FALLTHROUGH;
36191  case 19:
36192  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_e)) != 0)) kw_args--;
36193  else {
36194  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 19); __PYX_ERR(0, 6866, __pyx_L3_error)
36195  }
36196  CYTHON_FALLTHROUGH;
36197  case 20:
36198  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_k)) != 0)) kw_args--;
36199  else {
36200  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 20); __PYX_ERR(0, 6866, __pyx_L3_error)
36201  }
36202  CYTHON_FALLTHROUGH;
36203  case 21:
36204  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_k)) != 0)) kw_args--;
36205  else {
36206  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 21); __PYX_ERR(0, 6866, __pyx_L3_error)
36207  }
36208  CYTHON_FALLTHROUGH;
36209  case 22:
36210  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_e)) != 0)) kw_args--;
36211  else {
36212  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 22); __PYX_ERR(0, 6866, __pyx_L3_error)
36213  }
36214  CYTHON_FALLTHROUGH;
36215  case 23:
36216  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_e)) != 0)) kw_args--;
36217  else {
36218  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 23); __PYX_ERR(0, 6866, __pyx_L3_error)
36219  }
36220  CYTHON_FALLTHROUGH;
36221  case 24:
36222  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_k)) != 0)) kw_args--;
36223  else {
36224  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 24); __PYX_ERR(0, 6866, __pyx_L3_error)
36225  }
36226  CYTHON_FALLTHROUGH;
36227  case 25:
36228  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_k_dk)) != 0)) kw_args--;
36229  else {
36230  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 25); __PYX_ERR(0, 6866, __pyx_L3_error)
36231  }
36232  CYTHON_FALLTHROUGH;
36233  case 26:
36234  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_k_de)) != 0)) kw_args--;
36235  else {
36236  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 26); __PYX_ERR(0, 6866, __pyx_L3_error)
36237  }
36238  CYTHON_FALLTHROUGH;
36239  case 27:
36240  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_e)) != 0)) kw_args--;
36241  else {
36242  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 27); __PYX_ERR(0, 6866, __pyx_L3_error)
36243  }
36244  CYTHON_FALLTHROUGH;
36245  case 28:
36246  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_e_dk)) != 0)) kw_args--;
36247  else {
36248  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 28); __PYX_ERR(0, 6866, __pyx_L3_error)
36249  }
36250  CYTHON_FALLTHROUGH;
36251  case 29:
36252  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_e_de)) != 0)) kw_args--;
36253  else {
36254  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 29); __PYX_ERR(0, 6866, __pyx_L3_error)
36255  }
36256  CYTHON_FALLTHROUGH;
36257  case 30:
36258  if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_k)) != 0)) kw_args--;
36259  else {
36260  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 30); __PYX_ERR(0, 6866, __pyx_L3_error)
36261  }
36262  CYTHON_FALLTHROUGH;
36263  case 31:
36264  if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_k_dk)) != 0)) kw_args--;
36265  else {
36266  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 31); __PYX_ERR(0, 6866, __pyx_L3_error)
36267  }
36268  CYTHON_FALLTHROUGH;
36269  case 32:
36270  if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_k_de)) != 0)) kw_args--;
36271  else {
36272  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 32); __PYX_ERR(0, 6866, __pyx_L3_error)
36273  }
36274  CYTHON_FALLTHROUGH;
36275  case 33:
36276  if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_e)) != 0)) kw_args--;
36277  else {
36278  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 33); __PYX_ERR(0, 6866, __pyx_L3_error)
36279  }
36280  CYTHON_FALLTHROUGH;
36281  case 34:
36282  if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_e_dk)) != 0)) kw_args--;
36283  else {
36284  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 34); __PYX_ERR(0, 6866, __pyx_L3_error)
36285  }
36286  CYTHON_FALLTHROUGH;
36287  case 35:
36288  if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_e_de)) != 0)) kw_args--;
36289  else {
36290  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, 35); __PYX_ERR(0, 6866, __pyx_L3_error)
36291  }
36292  }
36293  if (unlikely(kw_args > 0)) {
36294  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "kEpsilon_2D_Evaluate") < 0)) __PYX_ERR(0, 6866, __pyx_L3_error)
36295  }
36296  } else if (PyTuple_GET_SIZE(__pyx_args) != 36) {
36297  goto __pyx_L5_argtuple_error;
36298  } else {
36299  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
36300  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
36301  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
36302  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
36303  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
36304  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
36305  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
36306  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
36307  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
36308  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
36309  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
36310  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
36311  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
36312  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
36313  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
36314  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
36315  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
36316  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
36317  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
36318  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
36319  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
36320  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
36321  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
36322  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
36323  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
36324  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
36325  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
36326  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
36327  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
36328  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
36329  values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
36330  values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
36331  values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
36332  values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
36333  values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
36334  values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
36335  }
36336  __pyx_v_sigma_k = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_sigma_k == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6866, __pyx_L3_error)
36337  __pyx_v_sigma_e = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_sigma_e == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6867, __pyx_L3_error)
36338  __pyx_v_c_1 = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_c_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6868, __pyx_L3_error)
36339  __pyx_v_c_2 = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_c_2 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6869, __pyx_L3_error)
36340  __pyx_v_c_mu = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_c_mu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6870, __pyx_L3_error)
36341  __pyx_v_c_e = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_c_e == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6871, __pyx_L3_error)
36342  __pyx_v_nu = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_nu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6872, __pyx_L3_error)
36343  __pyx_v_velocity = ((PyArrayObject *)values[7]);
36344  __pyx_v_gradu = ((PyArrayObject *)values[8]);
36345  __pyx_v_gradv = ((PyArrayObject *)values[9]);
36346  __pyx_v_k = ((PyArrayObject *)values[10]);
36347  __pyx_v_epsilon = ((PyArrayObject *)values[11]);
36348  __pyx_v_m_k = ((PyArrayObject *)values[12]);
36349  __pyx_v_dm_k = ((PyArrayObject *)values[13]);
36350  __pyx_v_m_e = ((PyArrayObject *)values[14]);
36351  __pyx_v_dm_e = ((PyArrayObject *)values[15]);
36352  __pyx_v_phi_k = ((PyArrayObject *)values[16]);
36353  __pyx_v_dphi_k = ((PyArrayObject *)values[17]);
36354  __pyx_v_phi_e = ((PyArrayObject *)values[18]);
36355  __pyx_v_dphi_e = ((PyArrayObject *)values[19]);
36356  __pyx_v_f_k = ((PyArrayObject *)values[20]);
36357  __pyx_v_df_k = ((PyArrayObject *)values[21]);
36358  __pyx_v_f_e = ((PyArrayObject *)values[22]);
36359  __pyx_v_df_e = ((PyArrayObject *)values[23]);
36360  __pyx_v_a_k = ((PyArrayObject *)values[24]);
36361  __pyx_v_da_k_dk = ((PyArrayObject *)values[25]);
36362  __pyx_v_da_k_de = ((PyArrayObject *)values[26]);
36363  __pyx_v_a_e = ((PyArrayObject *)values[27]);
36364  __pyx_v_da_e_dk = ((PyArrayObject *)values[28]);
36365  __pyx_v_da_e_de = ((PyArrayObject *)values[29]);
36366  __pyx_v_r_k = ((PyArrayObject *)values[30]);
36367  __pyx_v_dr_k_dk = ((PyArrayObject *)values[31]);
36368  __pyx_v_dr_k_de = ((PyArrayObject *)values[32]);
36369  __pyx_v_r_e = ((PyArrayObject *)values[33]);
36370  __pyx_v_dr_e_dk = ((PyArrayObject *)values[34]);
36371  __pyx_v_dr_e_de = ((PyArrayObject *)values[35]);
36372  }
36373  goto __pyx_L4_argument_unpacking_done;
36374  __pyx_L5_argtuple_error:;
36375  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate", 1, 36, 36, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6866, __pyx_L3_error)
36376  __pyx_L3_error:;
36377  __Pyx_AddTraceback("ctransportCoefficients.kEpsilon_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
36378  __Pyx_RefNannyFinishContext();
36379  return NULL;
36380  __pyx_L4_argument_unpacking_done:;
36381  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1, "velocity", 0))) __PYX_ERR(0, 6873, __pyx_L1_error)
36382  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1, "gradu", 0))) __PYX_ERR(0, 6874, __pyx_L1_error)
36383  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradv), __pyx_ptype_5numpy_ndarray, 1, "gradv", 0))) __PYX_ERR(0, 6875, __pyx_L1_error)
36384  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_k), __pyx_ptype_5numpy_ndarray, 1, "k", 0))) __PYX_ERR(0, 6876, __pyx_L1_error)
36385  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_epsilon), __pyx_ptype_5numpy_ndarray, 1, "epsilon", 0))) __PYX_ERR(0, 6877, __pyx_L1_error)
36386  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_k), __pyx_ptype_5numpy_ndarray, 1, "m_k", 0))) __PYX_ERR(0, 6878, __pyx_L1_error)
36387  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_k), __pyx_ptype_5numpy_ndarray, 1, "dm_k", 0))) __PYX_ERR(0, 6879, __pyx_L1_error)
36388  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_e), __pyx_ptype_5numpy_ndarray, 1, "m_e", 0))) __PYX_ERR(0, 6880, __pyx_L1_error)
36389  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_e), __pyx_ptype_5numpy_ndarray, 1, "dm_e", 0))) __PYX_ERR(0, 6881, __pyx_L1_error)
36390  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_k), __pyx_ptype_5numpy_ndarray, 1, "phi_k", 0))) __PYX_ERR(0, 6882, __pyx_L1_error)
36391  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_k), __pyx_ptype_5numpy_ndarray, 1, "dphi_k", 0))) __PYX_ERR(0, 6883, __pyx_L1_error)
36392  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_e), __pyx_ptype_5numpy_ndarray, 1, "phi_e", 0))) __PYX_ERR(0, 6884, __pyx_L1_error)
36393  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_e), __pyx_ptype_5numpy_ndarray, 1, "dphi_e", 0))) __PYX_ERR(0, 6885, __pyx_L1_error)
36394  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_k), __pyx_ptype_5numpy_ndarray, 1, "f_k", 0))) __PYX_ERR(0, 6886, __pyx_L1_error)
36395  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_k), __pyx_ptype_5numpy_ndarray, 1, "df_k", 0))) __PYX_ERR(0, 6887, __pyx_L1_error)
36396  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_e), __pyx_ptype_5numpy_ndarray, 1, "f_e", 0))) __PYX_ERR(0, 6888, __pyx_L1_error)
36397  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_e), __pyx_ptype_5numpy_ndarray, 1, "df_e", 0))) __PYX_ERR(0, 6889, __pyx_L1_error)
36398  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_k), __pyx_ptype_5numpy_ndarray, 1, "a_k", 0))) __PYX_ERR(0, 6890, __pyx_L1_error)
36399  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_k_dk), __pyx_ptype_5numpy_ndarray, 1, "da_k_dk", 0))) __PYX_ERR(0, 6891, __pyx_L1_error)
36400  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_k_de), __pyx_ptype_5numpy_ndarray, 1, "da_k_de", 0))) __PYX_ERR(0, 6892, __pyx_L1_error)
36401  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_e), __pyx_ptype_5numpy_ndarray, 1, "a_e", 0))) __PYX_ERR(0, 6893, __pyx_L1_error)
36402  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_e_dk), __pyx_ptype_5numpy_ndarray, 1, "da_e_dk", 0))) __PYX_ERR(0, 6894, __pyx_L1_error)
36403  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_e_de), __pyx_ptype_5numpy_ndarray, 1, "da_e_de", 0))) __PYX_ERR(0, 6895, __pyx_L1_error)
36404  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_k), __pyx_ptype_5numpy_ndarray, 1, "r_k", 0))) __PYX_ERR(0, 6896, __pyx_L1_error)
36405  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_k_dk), __pyx_ptype_5numpy_ndarray, 1, "dr_k_dk", 0))) __PYX_ERR(0, 6897, __pyx_L1_error)
36406  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_k_de), __pyx_ptype_5numpy_ndarray, 1, "dr_k_de", 0))) __PYX_ERR(0, 6898, __pyx_L1_error)
36407  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_e), __pyx_ptype_5numpy_ndarray, 1, "r_e", 0))) __PYX_ERR(0, 6899, __pyx_L1_error)
36408  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_e_dk), __pyx_ptype_5numpy_ndarray, 1, "dr_e_dk", 0))) __PYX_ERR(0, 6900, __pyx_L1_error)
36409  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_e_de), __pyx_ptype_5numpy_ndarray, 1, "dr_e_de", 0))) __PYX_ERR(0, 6901, __pyx_L1_error)
36410  __pyx_r = __pyx_pf_22ctransportCoefficients_180kEpsilon_2D_Evaluate(__pyx_self, __pyx_v_sigma_k, __pyx_v_sigma_e, __pyx_v_c_1, __pyx_v_c_2, __pyx_v_c_mu, __pyx_v_c_e, __pyx_v_nu, __pyx_v_velocity, __pyx_v_gradu, __pyx_v_gradv, __pyx_v_k, __pyx_v_epsilon, __pyx_v_m_k, __pyx_v_dm_k, __pyx_v_m_e, __pyx_v_dm_e, __pyx_v_phi_k, __pyx_v_dphi_k, __pyx_v_phi_e, __pyx_v_dphi_e, __pyx_v_f_k, __pyx_v_df_k, __pyx_v_f_e, __pyx_v_df_e, __pyx_v_a_k, __pyx_v_da_k_dk, __pyx_v_da_k_de, __pyx_v_a_e, __pyx_v_da_e_dk, __pyx_v_da_e_de, __pyx_v_r_k, __pyx_v_dr_k_dk, __pyx_v_dr_k_de, __pyx_v_r_e, __pyx_v_dr_e_dk, __pyx_v_dr_e_de);
36411 
36412  /* function exit code */
36413  goto __pyx_L0;
36414  __pyx_L1_error:;
36415  __pyx_r = NULL;
36416  __pyx_L0:;
36417  __Pyx_RefNannyFinishContext();
36418  return __pyx_r;
36419 }
36420 
36421 static PyObject *__pyx_pf_22ctransportCoefficients_180kEpsilon_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_sigma_k, double __pyx_v_sigma_e, double __pyx_v_c_1, double __pyx_v_c_2, double __pyx_v_c_mu, double __pyx_v_c_e, double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_k, PyArrayObject *__pyx_v_dm_k, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_phi_k, PyArrayObject *__pyx_v_dphi_k, PyArrayObject *__pyx_v_phi_e, PyArrayObject *__pyx_v_dphi_e, PyArrayObject *__pyx_v_f_k, PyArrayObject *__pyx_v_df_k, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_k, PyArrayObject *__pyx_v_da_k_dk, PyArrayObject *__pyx_v_da_k_de, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_da_e_dk, PyArrayObject *__pyx_v_da_e_de, PyArrayObject *__pyx_v_r_k, PyArrayObject *__pyx_v_dr_k_dk, PyArrayObject *__pyx_v_dr_k_de, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_dk, PyArrayObject *__pyx_v_dr_e_de) {
36422  PyObject *__pyx_r = NULL;
36423  __Pyx_RefNannyDeclarations
36424  PyObject *__pyx_t_1 = NULL;
36425  int __pyx_t_2;
36426  int __pyx_lineno = 0;
36427  const char *__pyx_filename = NULL;
36428  int __pyx_clineno = 0;
36429  __Pyx_RefNannySetupContext("kEpsilon_2D_Evaluate", 0);
36430 
36431  /* "ctransportCoefficients.pyx":6902
36432  * np.ndarray dr_e_dk,
36433  * np.ndarray dr_e_de):
36434  * ckEpsilon_2D_Evaluate(k.size, # <<<<<<<<<<<<<<
36435  * f_k.shape[f_k.ndim-1],
36436  * sigma_k,
36437  */
36438  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_k), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6902, __pyx_L1_error)
36439  __Pyx_GOTREF(__pyx_t_1);
36440  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6902, __pyx_L1_error)
36441  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
36442 
36443  /* "ctransportCoefficients.pyx":6939
36444  * <double*> r_e.data,
36445  * <double*> dr_e_dk.data,
36446  * <double*> dr_e_de.data) # <<<<<<<<<<<<<<
36447  * def kEpsilon_2D_Evaluate_sd(double sigma_k,
36448  * double sigma_e,
36449  */
36450  kEpsilon_2D_Evaluate(__pyx_t_2, (__pyx_v_f_k->dimensions[(__pyx_v_f_k->nd - 1)]), __pyx_v_sigma_k, __pyx_v_sigma_e, __pyx_v_c_1, __pyx_v_c_2, __pyx_v_c_mu, __pyx_v_c_e, __pyx_v_nu, ((double *)__pyx_v_velocity->data), ((double *)__pyx_v_gradu->data), ((double *)__pyx_v_gradv->data), ((double *)__pyx_v_k->data), ((double *)__pyx_v_epsilon->data), ((double *)__pyx_v_m_k->data), ((double *)__pyx_v_dm_k->data), ((double *)__pyx_v_m_e->data), ((double *)__pyx_v_dm_e->data), ((double *)__pyx_v_phi_k->data), ((double *)__pyx_v_dphi_k->data), ((double *)__pyx_v_phi_e->data), ((double *)__pyx_v_dphi_e->data), ((double *)__pyx_v_f_k->data), ((double *)__pyx_v_df_k->data), ((double *)__pyx_v_f_e->data), ((double *)__pyx_v_df_e->data), ((double *)__pyx_v_a_k->data), ((double *)__pyx_v_da_k_dk->data), ((double *)__pyx_v_da_k_de->data), ((double *)__pyx_v_a_e->data), ((double *)__pyx_v_da_e_dk->data), ((double *)__pyx_v_da_e_de->data), ((double *)__pyx_v_r_k->data), ((double *)__pyx_v_dr_k_dk->data), ((double *)__pyx_v_dr_k_de->data), ((double *)__pyx_v_r_e->data), ((double *)__pyx_v_dr_e_dk->data), ((double *)__pyx_v_dr_e_de->data));
36451 
36452  /* "ctransportCoefficients.pyx":6866
36453  * <double*> f.data,
36454  * <double*> df.data)
36455  * def kEpsilon_2D_Evaluate(double sigma_k, # <<<<<<<<<<<<<<
36456  * double sigma_e,
36457  * double c_1,
36458  */
36459 
36460  /* function exit code */
36461  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
36462  goto __pyx_L0;
36463  __pyx_L1_error:;
36464  __Pyx_XDECREF(__pyx_t_1);
36465  __Pyx_AddTraceback("ctransportCoefficients.kEpsilon_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
36466  __pyx_r = NULL;
36467  __pyx_L0:;
36468  __Pyx_XGIVEREF(__pyx_r);
36469  __Pyx_RefNannyFinishContext();
36470  return __pyx_r;
36471 }
36472 
36473 /* "ctransportCoefficients.pyx":6940
36474  * <double*> dr_e_dk.data,
36475  * <double*> dr_e_de.data)
36476  * def kEpsilon_2D_Evaluate_sd(double sigma_k, # <<<<<<<<<<<<<<
36477  * double sigma_e,
36478  * double c_1,
36479  */
36480 
36481 /* Python wrapper */
36482 static PyObject *__pyx_pw_22ctransportCoefficients_183kEpsilon_2D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
36483 static PyMethodDef __pyx_mdef_22ctransportCoefficients_183kEpsilon_2D_Evaluate_sd = {"kEpsilon_2D_Evaluate_sd", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_183kEpsilon_2D_Evaluate_sd, METH_VARARGS|METH_KEYWORDS, 0};
36484 static PyObject *__pyx_pw_22ctransportCoefficients_183kEpsilon_2D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
36485  double __pyx_v_sigma_k;
36486  double __pyx_v_sigma_e;
36487  double __pyx_v_c_1;
36488  double __pyx_v_c_2;
36489  double __pyx_v_c_mu;
36490  double __pyx_v_c_e;
36491  double __pyx_v_nu;
36492  PyArrayObject *__pyx_v_velocity = 0;
36493  PyArrayObject *__pyx_v_gradu = 0;
36494  PyArrayObject *__pyx_v_gradv = 0;
36495  PyArrayObject *__pyx_v_k = 0;
36496  PyArrayObject *__pyx_v_epsilon = 0;
36497  PyArrayObject *__pyx_v_m_k = 0;
36498  PyArrayObject *__pyx_v_dm_k = 0;
36499  PyArrayObject *__pyx_v_m_e = 0;
36500  PyArrayObject *__pyx_v_dm_e = 0;
36501  PyArrayObject *__pyx_v_phi_k = 0;
36502  PyArrayObject *__pyx_v_dphi_k = 0;
36503  PyArrayObject *__pyx_v_phi_e = 0;
36504  PyArrayObject *__pyx_v_dphi_e = 0;
36505  PyArrayObject *__pyx_v_f_k = 0;
36506  PyArrayObject *__pyx_v_df_k = 0;
36507  PyArrayObject *__pyx_v_f_e = 0;
36508  PyArrayObject *__pyx_v_df_e = 0;
36509  PyArrayObject *__pyx_v_a_k = 0;
36510  PyArrayObject *__pyx_v_da_k_dk = 0;
36511  PyArrayObject *__pyx_v_da_k_de = 0;
36512  PyArrayObject *__pyx_v_a_e = 0;
36513  PyArrayObject *__pyx_v_da_e_dk = 0;
36514  PyArrayObject *__pyx_v_da_e_de = 0;
36515  PyArrayObject *__pyx_v_r_k = 0;
36516  PyArrayObject *__pyx_v_dr_k_dk = 0;
36517  PyArrayObject *__pyx_v_dr_k_de = 0;
36518  PyArrayObject *__pyx_v_r_e = 0;
36519  PyArrayObject *__pyx_v_dr_e_dk = 0;
36520  PyArrayObject *__pyx_v_dr_e_de = 0;
36521  int __pyx_lineno = 0;
36522  const char *__pyx_filename = NULL;
36523  int __pyx_clineno = 0;
36524  PyObject *__pyx_r = 0;
36525  __Pyx_RefNannyDeclarations
36526  __Pyx_RefNannySetupContext("kEpsilon_2D_Evaluate_sd (wrapper)", 0);
36527  {
36528  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_sigma_k,&__pyx_n_s_sigma_e,&__pyx_n_s_c_1,&__pyx_n_s_c_2,&__pyx_n_s_c_mu,&__pyx_n_s_c_e,&__pyx_n_s_nu,&__pyx_n_s_velocity,&__pyx_n_s_gradu,&__pyx_n_s_gradv,&__pyx_n_s_k,&__pyx_n_s_epsilon,&__pyx_n_s_m_k,&__pyx_n_s_dm_k,&__pyx_n_s_m_e,&__pyx_n_s_dm_e,&__pyx_n_s_phi_k,&__pyx_n_s_dphi_k,&__pyx_n_s_phi_e,&__pyx_n_s_dphi_e,&__pyx_n_s_f_k,&__pyx_n_s_df_k,&__pyx_n_s_f_e,&__pyx_n_s_df_e,&__pyx_n_s_a_k,&__pyx_n_s_da_k_dk,&__pyx_n_s_da_k_de,&__pyx_n_s_a_e,&__pyx_n_s_da_e_dk,&__pyx_n_s_da_e_de,&__pyx_n_s_r_k,&__pyx_n_s_dr_k_dk,&__pyx_n_s_dr_k_de,&__pyx_n_s_r_e,&__pyx_n_s_dr_e_dk,&__pyx_n_s_dr_e_de,0};
36529  PyObject* values[36] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
36530  if (unlikely(__pyx_kwds)) {
36531  Py_ssize_t kw_args;
36532  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
36533  switch (pos_args) {
36534  case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
36535  CYTHON_FALLTHROUGH;
36536  case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
36537  CYTHON_FALLTHROUGH;
36538  case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
36539  CYTHON_FALLTHROUGH;
36540  case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
36541  CYTHON_FALLTHROUGH;
36542  case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
36543  CYTHON_FALLTHROUGH;
36544  case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
36545  CYTHON_FALLTHROUGH;
36546  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
36547  CYTHON_FALLTHROUGH;
36548  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
36549  CYTHON_FALLTHROUGH;
36550  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
36551  CYTHON_FALLTHROUGH;
36552  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
36553  CYTHON_FALLTHROUGH;
36554  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
36555  CYTHON_FALLTHROUGH;
36556  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
36557  CYTHON_FALLTHROUGH;
36558  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
36559  CYTHON_FALLTHROUGH;
36560  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
36561  CYTHON_FALLTHROUGH;
36562  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
36563  CYTHON_FALLTHROUGH;
36564  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
36565  CYTHON_FALLTHROUGH;
36566  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
36567  CYTHON_FALLTHROUGH;
36568  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
36569  CYTHON_FALLTHROUGH;
36570  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
36571  CYTHON_FALLTHROUGH;
36572  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
36573  CYTHON_FALLTHROUGH;
36574  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
36575  CYTHON_FALLTHROUGH;
36576  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
36577  CYTHON_FALLTHROUGH;
36578  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
36579  CYTHON_FALLTHROUGH;
36580  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
36581  CYTHON_FALLTHROUGH;
36582  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
36583  CYTHON_FALLTHROUGH;
36584  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
36585  CYTHON_FALLTHROUGH;
36586  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
36587  CYTHON_FALLTHROUGH;
36588  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
36589  CYTHON_FALLTHROUGH;
36590  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
36591  CYTHON_FALLTHROUGH;
36592  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
36593  CYTHON_FALLTHROUGH;
36594  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
36595  CYTHON_FALLTHROUGH;
36596  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
36597  CYTHON_FALLTHROUGH;
36598  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
36599  CYTHON_FALLTHROUGH;
36600  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
36601  CYTHON_FALLTHROUGH;
36602  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
36603  CYTHON_FALLTHROUGH;
36604  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
36605  CYTHON_FALLTHROUGH;
36606  case 0: break;
36607  default: goto __pyx_L5_argtuple_error;
36608  }
36609  kw_args = PyDict_Size(__pyx_kwds);
36610  switch (pos_args) {
36611  case 0:
36612  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma_k)) != 0)) kw_args--;
36613  else goto __pyx_L5_argtuple_error;
36614  CYTHON_FALLTHROUGH;
36615  case 1:
36616  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma_e)) != 0)) kw_args--;
36617  else {
36618  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 1); __PYX_ERR(0, 6940, __pyx_L3_error)
36619  }
36620  CYTHON_FALLTHROUGH;
36621  case 2:
36622  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_1)) != 0)) kw_args--;
36623  else {
36624  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 2); __PYX_ERR(0, 6940, __pyx_L3_error)
36625  }
36626  CYTHON_FALLTHROUGH;
36627  case 3:
36628  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_2)) != 0)) kw_args--;
36629  else {
36630  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 3); __PYX_ERR(0, 6940, __pyx_L3_error)
36631  }
36632  CYTHON_FALLTHROUGH;
36633  case 4:
36634  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_mu)) != 0)) kw_args--;
36635  else {
36636  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 4); __PYX_ERR(0, 6940, __pyx_L3_error)
36637  }
36638  CYTHON_FALLTHROUGH;
36639  case 5:
36640  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_e)) != 0)) kw_args--;
36641  else {
36642  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 5); __PYX_ERR(0, 6940, __pyx_L3_error)
36643  }
36644  CYTHON_FALLTHROUGH;
36645  case 6:
36646  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
36647  else {
36648  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 6); __PYX_ERR(0, 6940, __pyx_L3_error)
36649  }
36650  CYTHON_FALLTHROUGH;
36651  case 7:
36652  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
36653  else {
36654  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 7); __PYX_ERR(0, 6940, __pyx_L3_error)
36655  }
36656  CYTHON_FALLTHROUGH;
36657  case 8:
36658  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
36659  else {
36660  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 8); __PYX_ERR(0, 6940, __pyx_L3_error)
36661  }
36662  CYTHON_FALLTHROUGH;
36663  case 9:
36664  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradv)) != 0)) kw_args--;
36665  else {
36666  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 9); __PYX_ERR(0, 6940, __pyx_L3_error)
36667  }
36668  CYTHON_FALLTHROUGH;
36669  case 10:
36670  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_k)) != 0)) kw_args--;
36671  else {
36672  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 10); __PYX_ERR(0, 6940, __pyx_L3_error)
36673  }
36674  CYTHON_FALLTHROUGH;
36675  case 11:
36676  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
36677  else {
36678  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 11); __PYX_ERR(0, 6940, __pyx_L3_error)
36679  }
36680  CYTHON_FALLTHROUGH;
36681  case 12:
36682  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_k)) != 0)) kw_args--;
36683  else {
36684  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 12); __PYX_ERR(0, 6940, __pyx_L3_error)
36685  }
36686  CYTHON_FALLTHROUGH;
36687  case 13:
36688  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_k)) != 0)) kw_args--;
36689  else {
36690  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 13); __PYX_ERR(0, 6940, __pyx_L3_error)
36691  }
36692  CYTHON_FALLTHROUGH;
36693  case 14:
36694  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_e)) != 0)) kw_args--;
36695  else {
36696  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 14); __PYX_ERR(0, 6940, __pyx_L3_error)
36697  }
36698  CYTHON_FALLTHROUGH;
36699  case 15:
36700  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_e)) != 0)) kw_args--;
36701  else {
36702  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 15); __PYX_ERR(0, 6940, __pyx_L3_error)
36703  }
36704  CYTHON_FALLTHROUGH;
36705  case 16:
36706  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_k)) != 0)) kw_args--;
36707  else {
36708  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 16); __PYX_ERR(0, 6940, __pyx_L3_error)
36709  }
36710  CYTHON_FALLTHROUGH;
36711  case 17:
36712  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_k)) != 0)) kw_args--;
36713  else {
36714  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 17); __PYX_ERR(0, 6940, __pyx_L3_error)
36715  }
36716  CYTHON_FALLTHROUGH;
36717  case 18:
36718  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_e)) != 0)) kw_args--;
36719  else {
36720  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 18); __PYX_ERR(0, 6940, __pyx_L3_error)
36721  }
36722  CYTHON_FALLTHROUGH;
36723  case 19:
36724  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_e)) != 0)) kw_args--;
36725  else {
36726  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 19); __PYX_ERR(0, 6940, __pyx_L3_error)
36727  }
36728  CYTHON_FALLTHROUGH;
36729  case 20:
36730  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_k)) != 0)) kw_args--;
36731  else {
36732  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 20); __PYX_ERR(0, 6940, __pyx_L3_error)
36733  }
36734  CYTHON_FALLTHROUGH;
36735  case 21:
36736  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_k)) != 0)) kw_args--;
36737  else {
36738  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 21); __PYX_ERR(0, 6940, __pyx_L3_error)
36739  }
36740  CYTHON_FALLTHROUGH;
36741  case 22:
36742  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_e)) != 0)) kw_args--;
36743  else {
36744  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 22); __PYX_ERR(0, 6940, __pyx_L3_error)
36745  }
36746  CYTHON_FALLTHROUGH;
36747  case 23:
36748  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_e)) != 0)) kw_args--;
36749  else {
36750  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 23); __PYX_ERR(0, 6940, __pyx_L3_error)
36751  }
36752  CYTHON_FALLTHROUGH;
36753  case 24:
36754  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_k)) != 0)) kw_args--;
36755  else {
36756  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 24); __PYX_ERR(0, 6940, __pyx_L3_error)
36757  }
36758  CYTHON_FALLTHROUGH;
36759  case 25:
36760  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_k_dk)) != 0)) kw_args--;
36761  else {
36762  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 25); __PYX_ERR(0, 6940, __pyx_L3_error)
36763  }
36764  CYTHON_FALLTHROUGH;
36765  case 26:
36766  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_k_de)) != 0)) kw_args--;
36767  else {
36768  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 26); __PYX_ERR(0, 6940, __pyx_L3_error)
36769  }
36770  CYTHON_FALLTHROUGH;
36771  case 27:
36772  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_e)) != 0)) kw_args--;
36773  else {
36774  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 27); __PYX_ERR(0, 6940, __pyx_L3_error)
36775  }
36776  CYTHON_FALLTHROUGH;
36777  case 28:
36778  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_e_dk)) != 0)) kw_args--;
36779  else {
36780  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 28); __PYX_ERR(0, 6940, __pyx_L3_error)
36781  }
36782  CYTHON_FALLTHROUGH;
36783  case 29:
36784  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_e_de)) != 0)) kw_args--;
36785  else {
36786  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 29); __PYX_ERR(0, 6940, __pyx_L3_error)
36787  }
36788  CYTHON_FALLTHROUGH;
36789  case 30:
36790  if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_k)) != 0)) kw_args--;
36791  else {
36792  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 30); __PYX_ERR(0, 6940, __pyx_L3_error)
36793  }
36794  CYTHON_FALLTHROUGH;
36795  case 31:
36796  if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_k_dk)) != 0)) kw_args--;
36797  else {
36798  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 31); __PYX_ERR(0, 6940, __pyx_L3_error)
36799  }
36800  CYTHON_FALLTHROUGH;
36801  case 32:
36802  if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_k_de)) != 0)) kw_args--;
36803  else {
36804  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 32); __PYX_ERR(0, 6940, __pyx_L3_error)
36805  }
36806  CYTHON_FALLTHROUGH;
36807  case 33:
36808  if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_e)) != 0)) kw_args--;
36809  else {
36810  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 33); __PYX_ERR(0, 6940, __pyx_L3_error)
36811  }
36812  CYTHON_FALLTHROUGH;
36813  case 34:
36814  if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_e_dk)) != 0)) kw_args--;
36815  else {
36816  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 34); __PYX_ERR(0, 6940, __pyx_L3_error)
36817  }
36818  CYTHON_FALLTHROUGH;
36819  case 35:
36820  if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_e_de)) != 0)) kw_args--;
36821  else {
36822  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, 35); __PYX_ERR(0, 6940, __pyx_L3_error)
36823  }
36824  }
36825  if (unlikely(kw_args > 0)) {
36826  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "kEpsilon_2D_Evaluate_sd") < 0)) __PYX_ERR(0, 6940, __pyx_L3_error)
36827  }
36828  } else if (PyTuple_GET_SIZE(__pyx_args) != 36) {
36829  goto __pyx_L5_argtuple_error;
36830  } else {
36831  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
36832  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
36833  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
36834  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
36835  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
36836  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
36837  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
36838  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
36839  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
36840  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
36841  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
36842  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
36843  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
36844  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
36845  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
36846  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
36847  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
36848  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
36849  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
36850  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
36851  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
36852  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
36853  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
36854  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
36855  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
36856  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
36857  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
36858  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
36859  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
36860  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
36861  values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
36862  values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
36863  values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
36864  values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
36865  values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
36866  values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
36867  }
36868  __pyx_v_sigma_k = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_sigma_k == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6940, __pyx_L3_error)
36869  __pyx_v_sigma_e = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_sigma_e == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6941, __pyx_L3_error)
36870  __pyx_v_c_1 = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_c_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6942, __pyx_L3_error)
36871  __pyx_v_c_2 = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_c_2 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6943, __pyx_L3_error)
36872  __pyx_v_c_mu = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_c_mu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6944, __pyx_L3_error)
36873  __pyx_v_c_e = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_c_e == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6945, __pyx_L3_error)
36874  __pyx_v_nu = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_nu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6946, __pyx_L3_error)
36875  __pyx_v_velocity = ((PyArrayObject *)values[7]);
36876  __pyx_v_gradu = ((PyArrayObject *)values[8]);
36877  __pyx_v_gradv = ((PyArrayObject *)values[9]);
36878  __pyx_v_k = ((PyArrayObject *)values[10]);
36879  __pyx_v_epsilon = ((PyArrayObject *)values[11]);
36880  __pyx_v_m_k = ((PyArrayObject *)values[12]);
36881  __pyx_v_dm_k = ((PyArrayObject *)values[13]);
36882  __pyx_v_m_e = ((PyArrayObject *)values[14]);
36883  __pyx_v_dm_e = ((PyArrayObject *)values[15]);
36884  __pyx_v_phi_k = ((PyArrayObject *)values[16]);
36885  __pyx_v_dphi_k = ((PyArrayObject *)values[17]);
36886  __pyx_v_phi_e = ((PyArrayObject *)values[18]);
36887  __pyx_v_dphi_e = ((PyArrayObject *)values[19]);
36888  __pyx_v_f_k = ((PyArrayObject *)values[20]);
36889  __pyx_v_df_k = ((PyArrayObject *)values[21]);
36890  __pyx_v_f_e = ((PyArrayObject *)values[22]);
36891  __pyx_v_df_e = ((PyArrayObject *)values[23]);
36892  __pyx_v_a_k = ((PyArrayObject *)values[24]);
36893  __pyx_v_da_k_dk = ((PyArrayObject *)values[25]);
36894  __pyx_v_da_k_de = ((PyArrayObject *)values[26]);
36895  __pyx_v_a_e = ((PyArrayObject *)values[27]);
36896  __pyx_v_da_e_dk = ((PyArrayObject *)values[28]);
36897  __pyx_v_da_e_de = ((PyArrayObject *)values[29]);
36898  __pyx_v_r_k = ((PyArrayObject *)values[30]);
36899  __pyx_v_dr_k_dk = ((PyArrayObject *)values[31]);
36900  __pyx_v_dr_k_de = ((PyArrayObject *)values[32]);
36901  __pyx_v_r_e = ((PyArrayObject *)values[33]);
36902  __pyx_v_dr_e_dk = ((PyArrayObject *)values[34]);
36903  __pyx_v_dr_e_de = ((PyArrayObject *)values[35]);
36904  }
36905  goto __pyx_L4_argument_unpacking_done;
36906  __pyx_L5_argtuple_error:;
36907  __Pyx_RaiseArgtupleInvalid("kEpsilon_2D_Evaluate_sd", 1, 36, 36, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6940, __pyx_L3_error)
36908  __pyx_L3_error:;
36909  __Pyx_AddTraceback("ctransportCoefficients.kEpsilon_2D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
36910  __Pyx_RefNannyFinishContext();
36911  return NULL;
36912  __pyx_L4_argument_unpacking_done:;
36913  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1, "velocity", 0))) __PYX_ERR(0, 6947, __pyx_L1_error)
36914  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1, "gradu", 0))) __PYX_ERR(0, 6948, __pyx_L1_error)
36915  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradv), __pyx_ptype_5numpy_ndarray, 1, "gradv", 0))) __PYX_ERR(0, 6949, __pyx_L1_error)
36916  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_k), __pyx_ptype_5numpy_ndarray, 1, "k", 0))) __PYX_ERR(0, 6950, __pyx_L1_error)
36917  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_epsilon), __pyx_ptype_5numpy_ndarray, 1, "epsilon", 0))) __PYX_ERR(0, 6951, __pyx_L1_error)
36918  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_k), __pyx_ptype_5numpy_ndarray, 1, "m_k", 0))) __PYX_ERR(0, 6952, __pyx_L1_error)
36919  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_k), __pyx_ptype_5numpy_ndarray, 1, "dm_k", 0))) __PYX_ERR(0, 6953, __pyx_L1_error)
36920  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_e), __pyx_ptype_5numpy_ndarray, 1, "m_e", 0))) __PYX_ERR(0, 6954, __pyx_L1_error)
36921  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_e), __pyx_ptype_5numpy_ndarray, 1, "dm_e", 0))) __PYX_ERR(0, 6955, __pyx_L1_error)
36922  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_k), __pyx_ptype_5numpy_ndarray, 1, "phi_k", 0))) __PYX_ERR(0, 6956, __pyx_L1_error)
36923  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_k), __pyx_ptype_5numpy_ndarray, 1, "dphi_k", 0))) __PYX_ERR(0, 6957, __pyx_L1_error)
36924  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_e), __pyx_ptype_5numpy_ndarray, 1, "phi_e", 0))) __PYX_ERR(0, 6958, __pyx_L1_error)
36925  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_e), __pyx_ptype_5numpy_ndarray, 1, "dphi_e", 0))) __PYX_ERR(0, 6959, __pyx_L1_error)
36926  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_k), __pyx_ptype_5numpy_ndarray, 1, "f_k", 0))) __PYX_ERR(0, 6960, __pyx_L1_error)
36927  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_k), __pyx_ptype_5numpy_ndarray, 1, "df_k", 0))) __PYX_ERR(0, 6961, __pyx_L1_error)
36928  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_e), __pyx_ptype_5numpy_ndarray, 1, "f_e", 0))) __PYX_ERR(0, 6962, __pyx_L1_error)
36929  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_e), __pyx_ptype_5numpy_ndarray, 1, "df_e", 0))) __PYX_ERR(0, 6963, __pyx_L1_error)
36930  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_k), __pyx_ptype_5numpy_ndarray, 1, "a_k", 0))) __PYX_ERR(0, 6964, __pyx_L1_error)
36931  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_k_dk), __pyx_ptype_5numpy_ndarray, 1, "da_k_dk", 0))) __PYX_ERR(0, 6965, __pyx_L1_error)
36932  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_k_de), __pyx_ptype_5numpy_ndarray, 1, "da_k_de", 0))) __PYX_ERR(0, 6966, __pyx_L1_error)
36933  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_e), __pyx_ptype_5numpy_ndarray, 1, "a_e", 0))) __PYX_ERR(0, 6967, __pyx_L1_error)
36934  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_e_dk), __pyx_ptype_5numpy_ndarray, 1, "da_e_dk", 0))) __PYX_ERR(0, 6968, __pyx_L1_error)
36935  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_e_de), __pyx_ptype_5numpy_ndarray, 1, "da_e_de", 0))) __PYX_ERR(0, 6969, __pyx_L1_error)
36936  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_k), __pyx_ptype_5numpy_ndarray, 1, "r_k", 0))) __PYX_ERR(0, 6970, __pyx_L1_error)
36937  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_k_dk), __pyx_ptype_5numpy_ndarray, 1, "dr_k_dk", 0))) __PYX_ERR(0, 6971, __pyx_L1_error)
36938  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_k_de), __pyx_ptype_5numpy_ndarray, 1, "dr_k_de", 0))) __PYX_ERR(0, 6972, __pyx_L1_error)
36939  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_e), __pyx_ptype_5numpy_ndarray, 1, "r_e", 0))) __PYX_ERR(0, 6973, __pyx_L1_error)
36940  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_e_dk), __pyx_ptype_5numpy_ndarray, 1, "dr_e_dk", 0))) __PYX_ERR(0, 6974, __pyx_L1_error)
36941  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_e_de), __pyx_ptype_5numpy_ndarray, 1, "dr_e_de", 0))) __PYX_ERR(0, 6975, __pyx_L1_error)
36942  __pyx_r = __pyx_pf_22ctransportCoefficients_182kEpsilon_2D_Evaluate_sd(__pyx_self, __pyx_v_sigma_k, __pyx_v_sigma_e, __pyx_v_c_1, __pyx_v_c_2, __pyx_v_c_mu, __pyx_v_c_e, __pyx_v_nu, __pyx_v_velocity, __pyx_v_gradu, __pyx_v_gradv, __pyx_v_k, __pyx_v_epsilon, __pyx_v_m_k, __pyx_v_dm_k, __pyx_v_m_e, __pyx_v_dm_e, __pyx_v_phi_k, __pyx_v_dphi_k, __pyx_v_phi_e, __pyx_v_dphi_e, __pyx_v_f_k, __pyx_v_df_k, __pyx_v_f_e, __pyx_v_df_e, __pyx_v_a_k, __pyx_v_da_k_dk, __pyx_v_da_k_de, __pyx_v_a_e, __pyx_v_da_e_dk, __pyx_v_da_e_de, __pyx_v_r_k, __pyx_v_dr_k_dk, __pyx_v_dr_k_de, __pyx_v_r_e, __pyx_v_dr_e_dk, __pyx_v_dr_e_de);
36943 
36944  /* function exit code */
36945  goto __pyx_L0;
36946  __pyx_L1_error:;
36947  __pyx_r = NULL;
36948  __pyx_L0:;
36949  __Pyx_RefNannyFinishContext();
36950  return __pyx_r;
36951 }
36952 
36953 static PyObject *__pyx_pf_22ctransportCoefficients_182kEpsilon_2D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_sigma_k, double __pyx_v_sigma_e, double __pyx_v_c_1, double __pyx_v_c_2, double __pyx_v_c_mu, double __pyx_v_c_e, double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_k, PyArrayObject *__pyx_v_dm_k, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_phi_k, PyArrayObject *__pyx_v_dphi_k, PyArrayObject *__pyx_v_phi_e, PyArrayObject *__pyx_v_dphi_e, PyArrayObject *__pyx_v_f_k, PyArrayObject *__pyx_v_df_k, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_k, PyArrayObject *__pyx_v_da_k_dk, PyArrayObject *__pyx_v_da_k_de, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_da_e_dk, PyArrayObject *__pyx_v_da_e_de, PyArrayObject *__pyx_v_r_k, PyArrayObject *__pyx_v_dr_k_dk, PyArrayObject *__pyx_v_dr_k_de, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_dk, PyArrayObject *__pyx_v_dr_e_de) {
36954  PyObject *__pyx_r = NULL;
36955  __Pyx_RefNannyDeclarations
36956  PyObject *__pyx_t_1 = NULL;
36957  int __pyx_t_2;
36958  int __pyx_lineno = 0;
36959  const char *__pyx_filename = NULL;
36960  int __pyx_clineno = 0;
36961  __Pyx_RefNannySetupContext("kEpsilon_2D_Evaluate_sd", 0);
36962 
36963  /* "ctransportCoefficients.pyx":6976
36964  * np.ndarray dr_e_dk,
36965  * np.ndarray dr_e_de):
36966  * ckEpsilon_2D_Evaluate_sd(k.size, # <<<<<<<<<<<<<<
36967  * f_k.shape[f_k.ndim-1],
36968  * sigma_k,
36969  */
36970  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_k), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6976, __pyx_L1_error)
36971  __Pyx_GOTREF(__pyx_t_1);
36972  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6976, __pyx_L1_error)
36973  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
36974 
36975  /* "ctransportCoefficients.pyx":7013
36976  * <double*> r_e.data,
36977  * <double*> dr_e_dk.data,
36978  * <double*> dr_e_de.data) # <<<<<<<<<<<<<<
36979  * def kEpsilon_3D_Evaluate_sd(double sigma_k,
36980  * double sigma_e,
36981  */
36982  kEpsilon_2D_Evaluate_sd(__pyx_t_2, (__pyx_v_f_k->dimensions[(__pyx_v_f_k->nd - 1)]), __pyx_v_sigma_k, __pyx_v_sigma_e, __pyx_v_c_1, __pyx_v_c_2, __pyx_v_c_mu, __pyx_v_c_e, __pyx_v_nu, ((double *)__pyx_v_velocity->data), ((double *)__pyx_v_gradu->data), ((double *)__pyx_v_gradv->data), ((double *)__pyx_v_k->data), ((double *)__pyx_v_epsilon->data), ((double *)__pyx_v_m_k->data), ((double *)__pyx_v_dm_k->data), ((double *)__pyx_v_m_e->data), ((double *)__pyx_v_dm_e->data), ((double *)__pyx_v_phi_k->data), ((double *)__pyx_v_dphi_k->data), ((double *)__pyx_v_phi_e->data), ((double *)__pyx_v_dphi_e->data), ((double *)__pyx_v_f_k->data), ((double *)__pyx_v_df_k->data), ((double *)__pyx_v_f_e->data), ((double *)__pyx_v_df_e->data), ((double *)__pyx_v_a_k->data), ((double *)__pyx_v_da_k_dk->data), ((double *)__pyx_v_da_k_de->data), ((double *)__pyx_v_a_e->data), ((double *)__pyx_v_da_e_dk->data), ((double *)__pyx_v_da_e_de->data), ((double *)__pyx_v_r_k->data), ((double *)__pyx_v_dr_k_dk->data), ((double *)__pyx_v_dr_k_de->data), ((double *)__pyx_v_r_e->data), ((double *)__pyx_v_dr_e_dk->data), ((double *)__pyx_v_dr_e_de->data));
36983 
36984  /* "ctransportCoefficients.pyx":6940
36985  * <double*> dr_e_dk.data,
36986  * <double*> dr_e_de.data)
36987  * def kEpsilon_2D_Evaluate_sd(double sigma_k, # <<<<<<<<<<<<<<
36988  * double sigma_e,
36989  * double c_1,
36990  */
36991 
36992  /* function exit code */
36993  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
36994  goto __pyx_L0;
36995  __pyx_L1_error:;
36996  __Pyx_XDECREF(__pyx_t_1);
36997  __Pyx_AddTraceback("ctransportCoefficients.kEpsilon_2D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
36998  __pyx_r = NULL;
36999  __pyx_L0:;
37000  __Pyx_XGIVEREF(__pyx_r);
37001  __Pyx_RefNannyFinishContext();
37002  return __pyx_r;
37003 }
37004 
37005 /* "ctransportCoefficients.pyx":7014
37006  * <double*> dr_e_dk.data,
37007  * <double*> dr_e_de.data)
37008  * def kEpsilon_3D_Evaluate_sd(double sigma_k, # <<<<<<<<<<<<<<
37009  * double sigma_e,
37010  * double c_1,
37011  */
37012 
37013 /* Python wrapper */
37014 static PyObject *__pyx_pw_22ctransportCoefficients_185kEpsilon_3D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
37015 static PyMethodDef __pyx_mdef_22ctransportCoefficients_185kEpsilon_3D_Evaluate_sd = {"kEpsilon_3D_Evaluate_sd", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_185kEpsilon_3D_Evaluate_sd, METH_VARARGS|METH_KEYWORDS, 0};
37016 static PyObject *__pyx_pw_22ctransportCoefficients_185kEpsilon_3D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
37017  double __pyx_v_sigma_k;
37018  double __pyx_v_sigma_e;
37019  double __pyx_v_c_1;
37020  double __pyx_v_c_2;
37021  double __pyx_v_c_mu;
37022  double __pyx_v_c_e;
37023  double __pyx_v_nu;
37024  PyArrayObject *__pyx_v_velocity = 0;
37025  PyArrayObject *__pyx_v_gradu = 0;
37026  PyArrayObject *__pyx_v_gradv = 0;
37027  PyArrayObject *__pyx_v_gradw = 0;
37028  PyArrayObject *__pyx_v_k = 0;
37029  PyArrayObject *__pyx_v_epsilon = 0;
37030  PyArrayObject *__pyx_v_m_k = 0;
37031  PyArrayObject *__pyx_v_dm_k = 0;
37032  PyArrayObject *__pyx_v_m_e = 0;
37033  PyArrayObject *__pyx_v_dm_e = 0;
37034  PyArrayObject *__pyx_v_phi_k = 0;
37035  PyArrayObject *__pyx_v_dphi_k = 0;
37036  PyArrayObject *__pyx_v_phi_e = 0;
37037  PyArrayObject *__pyx_v_dphi_e = 0;
37038  PyArrayObject *__pyx_v_f_k = 0;
37039  PyArrayObject *__pyx_v_df_k = 0;
37040  PyArrayObject *__pyx_v_f_e = 0;
37041  PyArrayObject *__pyx_v_df_e = 0;
37042  PyArrayObject *__pyx_v_a_k = 0;
37043  PyArrayObject *__pyx_v_da_k_dk = 0;
37044  PyArrayObject *__pyx_v_da_k_de = 0;
37045  PyArrayObject *__pyx_v_a_e = 0;
37046  PyArrayObject *__pyx_v_da_e_dk = 0;
37047  PyArrayObject *__pyx_v_da_e_de = 0;
37048  PyArrayObject *__pyx_v_r_k = 0;
37049  PyArrayObject *__pyx_v_dr_k_dk = 0;
37050  PyArrayObject *__pyx_v_dr_k_de = 0;
37051  PyArrayObject *__pyx_v_r_e = 0;
37052  PyArrayObject *__pyx_v_dr_e_dk = 0;
37053  PyArrayObject *__pyx_v_dr_e_de = 0;
37054  int __pyx_lineno = 0;
37055  const char *__pyx_filename = NULL;
37056  int __pyx_clineno = 0;
37057  PyObject *__pyx_r = 0;
37058  __Pyx_RefNannyDeclarations
37059  __Pyx_RefNannySetupContext("kEpsilon_3D_Evaluate_sd (wrapper)", 0);
37060  {
37061  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_sigma_k,&__pyx_n_s_sigma_e,&__pyx_n_s_c_1,&__pyx_n_s_c_2,&__pyx_n_s_c_mu,&__pyx_n_s_c_e,&__pyx_n_s_nu,&__pyx_n_s_velocity,&__pyx_n_s_gradu,&__pyx_n_s_gradv,&__pyx_n_s_gradw,&__pyx_n_s_k,&__pyx_n_s_epsilon,&__pyx_n_s_m_k,&__pyx_n_s_dm_k,&__pyx_n_s_m_e,&__pyx_n_s_dm_e,&__pyx_n_s_phi_k,&__pyx_n_s_dphi_k,&__pyx_n_s_phi_e,&__pyx_n_s_dphi_e,&__pyx_n_s_f_k,&__pyx_n_s_df_k,&__pyx_n_s_f_e,&__pyx_n_s_df_e,&__pyx_n_s_a_k,&__pyx_n_s_da_k_dk,&__pyx_n_s_da_k_de,&__pyx_n_s_a_e,&__pyx_n_s_da_e_dk,&__pyx_n_s_da_e_de,&__pyx_n_s_r_k,&__pyx_n_s_dr_k_dk,&__pyx_n_s_dr_k_de,&__pyx_n_s_r_e,&__pyx_n_s_dr_e_dk,&__pyx_n_s_dr_e_de,0};
37062  PyObject* values[37] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
37063  if (unlikely(__pyx_kwds)) {
37064  Py_ssize_t kw_args;
37065  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
37066  switch (pos_args) {
37067  case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
37068  CYTHON_FALLTHROUGH;
37069  case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
37070  CYTHON_FALLTHROUGH;
37071  case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
37072  CYTHON_FALLTHROUGH;
37073  case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
37074  CYTHON_FALLTHROUGH;
37075  case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
37076  CYTHON_FALLTHROUGH;
37077  case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
37078  CYTHON_FALLTHROUGH;
37079  case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
37080  CYTHON_FALLTHROUGH;
37081  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
37082  CYTHON_FALLTHROUGH;
37083  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
37084  CYTHON_FALLTHROUGH;
37085  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
37086  CYTHON_FALLTHROUGH;
37087  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
37088  CYTHON_FALLTHROUGH;
37089  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
37090  CYTHON_FALLTHROUGH;
37091  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
37092  CYTHON_FALLTHROUGH;
37093  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
37094  CYTHON_FALLTHROUGH;
37095  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
37096  CYTHON_FALLTHROUGH;
37097  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
37098  CYTHON_FALLTHROUGH;
37099  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
37100  CYTHON_FALLTHROUGH;
37101  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
37102  CYTHON_FALLTHROUGH;
37103  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
37104  CYTHON_FALLTHROUGH;
37105  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
37106  CYTHON_FALLTHROUGH;
37107  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
37108  CYTHON_FALLTHROUGH;
37109  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
37110  CYTHON_FALLTHROUGH;
37111  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
37112  CYTHON_FALLTHROUGH;
37113  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
37114  CYTHON_FALLTHROUGH;
37115  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
37116  CYTHON_FALLTHROUGH;
37117  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
37118  CYTHON_FALLTHROUGH;
37119  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
37120  CYTHON_FALLTHROUGH;
37121  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
37122  CYTHON_FALLTHROUGH;
37123  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
37124  CYTHON_FALLTHROUGH;
37125  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
37126  CYTHON_FALLTHROUGH;
37127  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
37128  CYTHON_FALLTHROUGH;
37129  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
37130  CYTHON_FALLTHROUGH;
37131  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
37132  CYTHON_FALLTHROUGH;
37133  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
37134  CYTHON_FALLTHROUGH;
37135  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
37136  CYTHON_FALLTHROUGH;
37137  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
37138  CYTHON_FALLTHROUGH;
37139  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
37140  CYTHON_FALLTHROUGH;
37141  case 0: break;
37142  default: goto __pyx_L5_argtuple_error;
37143  }
37144  kw_args = PyDict_Size(__pyx_kwds);
37145  switch (pos_args) {
37146  case 0:
37147  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma_k)) != 0)) kw_args--;
37148  else goto __pyx_L5_argtuple_error;
37149  CYTHON_FALLTHROUGH;
37150  case 1:
37151  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma_e)) != 0)) kw_args--;
37152  else {
37153  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 1); __PYX_ERR(0, 7014, __pyx_L3_error)
37154  }
37155  CYTHON_FALLTHROUGH;
37156  case 2:
37157  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_1)) != 0)) kw_args--;
37158  else {
37159  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 2); __PYX_ERR(0, 7014, __pyx_L3_error)
37160  }
37161  CYTHON_FALLTHROUGH;
37162  case 3:
37163  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_2)) != 0)) kw_args--;
37164  else {
37165  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 3); __PYX_ERR(0, 7014, __pyx_L3_error)
37166  }
37167  CYTHON_FALLTHROUGH;
37168  case 4:
37169  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_mu)) != 0)) kw_args--;
37170  else {
37171  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 4); __PYX_ERR(0, 7014, __pyx_L3_error)
37172  }
37173  CYTHON_FALLTHROUGH;
37174  case 5:
37175  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_e)) != 0)) kw_args--;
37176  else {
37177  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 5); __PYX_ERR(0, 7014, __pyx_L3_error)
37178  }
37179  CYTHON_FALLTHROUGH;
37180  case 6:
37181  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
37182  else {
37183  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 6); __PYX_ERR(0, 7014, __pyx_L3_error)
37184  }
37185  CYTHON_FALLTHROUGH;
37186  case 7:
37187  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
37188  else {
37189  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 7); __PYX_ERR(0, 7014, __pyx_L3_error)
37190  }
37191  CYTHON_FALLTHROUGH;
37192  case 8:
37193  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
37194  else {
37195  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 8); __PYX_ERR(0, 7014, __pyx_L3_error)
37196  }
37197  CYTHON_FALLTHROUGH;
37198  case 9:
37199  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradv)) != 0)) kw_args--;
37200  else {
37201  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 9); __PYX_ERR(0, 7014, __pyx_L3_error)
37202  }
37203  CYTHON_FALLTHROUGH;
37204  case 10:
37205  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradw)) != 0)) kw_args--;
37206  else {
37207  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 10); __PYX_ERR(0, 7014, __pyx_L3_error)
37208  }
37209  CYTHON_FALLTHROUGH;
37210  case 11:
37211  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_k)) != 0)) kw_args--;
37212  else {
37213  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 11); __PYX_ERR(0, 7014, __pyx_L3_error)
37214  }
37215  CYTHON_FALLTHROUGH;
37216  case 12:
37217  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
37218  else {
37219  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 12); __PYX_ERR(0, 7014, __pyx_L3_error)
37220  }
37221  CYTHON_FALLTHROUGH;
37222  case 13:
37223  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_k)) != 0)) kw_args--;
37224  else {
37225  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 13); __PYX_ERR(0, 7014, __pyx_L3_error)
37226  }
37227  CYTHON_FALLTHROUGH;
37228  case 14:
37229  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_k)) != 0)) kw_args--;
37230  else {
37231  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 14); __PYX_ERR(0, 7014, __pyx_L3_error)
37232  }
37233  CYTHON_FALLTHROUGH;
37234  case 15:
37235  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_e)) != 0)) kw_args--;
37236  else {
37237  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 15); __PYX_ERR(0, 7014, __pyx_L3_error)
37238  }
37239  CYTHON_FALLTHROUGH;
37240  case 16:
37241  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_e)) != 0)) kw_args--;
37242  else {
37243  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 16); __PYX_ERR(0, 7014, __pyx_L3_error)
37244  }
37245  CYTHON_FALLTHROUGH;
37246  case 17:
37247  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_k)) != 0)) kw_args--;
37248  else {
37249  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 17); __PYX_ERR(0, 7014, __pyx_L3_error)
37250  }
37251  CYTHON_FALLTHROUGH;
37252  case 18:
37253  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_k)) != 0)) kw_args--;
37254  else {
37255  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 18); __PYX_ERR(0, 7014, __pyx_L3_error)
37256  }
37257  CYTHON_FALLTHROUGH;
37258  case 19:
37259  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_e)) != 0)) kw_args--;
37260  else {
37261  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 19); __PYX_ERR(0, 7014, __pyx_L3_error)
37262  }
37263  CYTHON_FALLTHROUGH;
37264  case 20:
37265  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_e)) != 0)) kw_args--;
37266  else {
37267  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 20); __PYX_ERR(0, 7014, __pyx_L3_error)
37268  }
37269  CYTHON_FALLTHROUGH;
37270  case 21:
37271  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_k)) != 0)) kw_args--;
37272  else {
37273  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 21); __PYX_ERR(0, 7014, __pyx_L3_error)
37274  }
37275  CYTHON_FALLTHROUGH;
37276  case 22:
37277  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_k)) != 0)) kw_args--;
37278  else {
37279  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 22); __PYX_ERR(0, 7014, __pyx_L3_error)
37280  }
37281  CYTHON_FALLTHROUGH;
37282  case 23:
37283  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_e)) != 0)) kw_args--;
37284  else {
37285  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 23); __PYX_ERR(0, 7014, __pyx_L3_error)
37286  }
37287  CYTHON_FALLTHROUGH;
37288  case 24:
37289  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_e)) != 0)) kw_args--;
37290  else {
37291  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 24); __PYX_ERR(0, 7014, __pyx_L3_error)
37292  }
37293  CYTHON_FALLTHROUGH;
37294  case 25:
37295  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_k)) != 0)) kw_args--;
37296  else {
37297  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 25); __PYX_ERR(0, 7014, __pyx_L3_error)
37298  }
37299  CYTHON_FALLTHROUGH;
37300  case 26:
37301  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_k_dk)) != 0)) kw_args--;
37302  else {
37303  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 26); __PYX_ERR(0, 7014, __pyx_L3_error)
37304  }
37305  CYTHON_FALLTHROUGH;
37306  case 27:
37307  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_k_de)) != 0)) kw_args--;
37308  else {
37309  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 27); __PYX_ERR(0, 7014, __pyx_L3_error)
37310  }
37311  CYTHON_FALLTHROUGH;
37312  case 28:
37313  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_e)) != 0)) kw_args--;
37314  else {
37315  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 28); __PYX_ERR(0, 7014, __pyx_L3_error)
37316  }
37317  CYTHON_FALLTHROUGH;
37318  case 29:
37319  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_e_dk)) != 0)) kw_args--;
37320  else {
37321  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 29); __PYX_ERR(0, 7014, __pyx_L3_error)
37322  }
37323  CYTHON_FALLTHROUGH;
37324  case 30:
37325  if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_e_de)) != 0)) kw_args--;
37326  else {
37327  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 30); __PYX_ERR(0, 7014, __pyx_L3_error)
37328  }
37329  CYTHON_FALLTHROUGH;
37330  case 31:
37331  if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_k)) != 0)) kw_args--;
37332  else {
37333  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 31); __PYX_ERR(0, 7014, __pyx_L3_error)
37334  }
37335  CYTHON_FALLTHROUGH;
37336  case 32:
37337  if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_k_dk)) != 0)) kw_args--;
37338  else {
37339  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 32); __PYX_ERR(0, 7014, __pyx_L3_error)
37340  }
37341  CYTHON_FALLTHROUGH;
37342  case 33:
37343  if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_k_de)) != 0)) kw_args--;
37344  else {
37345  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 33); __PYX_ERR(0, 7014, __pyx_L3_error)
37346  }
37347  CYTHON_FALLTHROUGH;
37348  case 34:
37349  if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_e)) != 0)) kw_args--;
37350  else {
37351  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 34); __PYX_ERR(0, 7014, __pyx_L3_error)
37352  }
37353  CYTHON_FALLTHROUGH;
37354  case 35:
37355  if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_e_dk)) != 0)) kw_args--;
37356  else {
37357  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 35); __PYX_ERR(0, 7014, __pyx_L3_error)
37358  }
37359  CYTHON_FALLTHROUGH;
37360  case 36:
37361  if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_e_de)) != 0)) kw_args--;
37362  else {
37363  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, 36); __PYX_ERR(0, 7014, __pyx_L3_error)
37364  }
37365  }
37366  if (unlikely(kw_args > 0)) {
37367  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "kEpsilon_3D_Evaluate_sd") < 0)) __PYX_ERR(0, 7014, __pyx_L3_error)
37368  }
37369  } else if (PyTuple_GET_SIZE(__pyx_args) != 37) {
37370  goto __pyx_L5_argtuple_error;
37371  } else {
37372  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
37373  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
37374  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
37375  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
37376  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
37377  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
37378  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
37379  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
37380  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
37381  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
37382  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
37383  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
37384  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
37385  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
37386  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
37387  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
37388  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
37389  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
37390  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
37391  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
37392  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
37393  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
37394  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
37395  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
37396  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
37397  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
37398  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
37399  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
37400  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
37401  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
37402  values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
37403  values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
37404  values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
37405  values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
37406  values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
37407  values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
37408  values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
37409  }
37410  __pyx_v_sigma_k = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_sigma_k == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7014, __pyx_L3_error)
37411  __pyx_v_sigma_e = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_sigma_e == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7015, __pyx_L3_error)
37412  __pyx_v_c_1 = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_c_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7016, __pyx_L3_error)
37413  __pyx_v_c_2 = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_c_2 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7017, __pyx_L3_error)
37414  __pyx_v_c_mu = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_c_mu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7018, __pyx_L3_error)
37415  __pyx_v_c_e = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_c_e == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7019, __pyx_L3_error)
37416  __pyx_v_nu = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_nu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7020, __pyx_L3_error)
37417  __pyx_v_velocity = ((PyArrayObject *)values[7]);
37418  __pyx_v_gradu = ((PyArrayObject *)values[8]);
37419  __pyx_v_gradv = ((PyArrayObject *)values[9]);
37420  __pyx_v_gradw = ((PyArrayObject *)values[10]);
37421  __pyx_v_k = ((PyArrayObject *)values[11]);
37422  __pyx_v_epsilon = ((PyArrayObject *)values[12]);
37423  __pyx_v_m_k = ((PyArrayObject *)values[13]);
37424  __pyx_v_dm_k = ((PyArrayObject *)values[14]);
37425  __pyx_v_m_e = ((PyArrayObject *)values[15]);
37426  __pyx_v_dm_e = ((PyArrayObject *)values[16]);
37427  __pyx_v_phi_k = ((PyArrayObject *)values[17]);
37428  __pyx_v_dphi_k = ((PyArrayObject *)values[18]);
37429  __pyx_v_phi_e = ((PyArrayObject *)values[19]);
37430  __pyx_v_dphi_e = ((PyArrayObject *)values[20]);
37431  __pyx_v_f_k = ((PyArrayObject *)values[21]);
37432  __pyx_v_df_k = ((PyArrayObject *)values[22]);
37433  __pyx_v_f_e = ((PyArrayObject *)values[23]);
37434  __pyx_v_df_e = ((PyArrayObject *)values[24]);
37435  __pyx_v_a_k = ((PyArrayObject *)values[25]);
37436  __pyx_v_da_k_dk = ((PyArrayObject *)values[26]);
37437  __pyx_v_da_k_de = ((PyArrayObject *)values[27]);
37438  __pyx_v_a_e = ((PyArrayObject *)values[28]);
37439  __pyx_v_da_e_dk = ((PyArrayObject *)values[29]);
37440  __pyx_v_da_e_de = ((PyArrayObject *)values[30]);
37441  __pyx_v_r_k = ((PyArrayObject *)values[31]);
37442  __pyx_v_dr_k_dk = ((PyArrayObject *)values[32]);
37443  __pyx_v_dr_k_de = ((PyArrayObject *)values[33]);
37444  __pyx_v_r_e = ((PyArrayObject *)values[34]);
37445  __pyx_v_dr_e_dk = ((PyArrayObject *)values[35]);
37446  __pyx_v_dr_e_de = ((PyArrayObject *)values[36]);
37447  }
37448  goto __pyx_L4_argument_unpacking_done;
37449  __pyx_L5_argtuple_error:;
37450  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate_sd", 1, 37, 37, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7014, __pyx_L3_error)
37451  __pyx_L3_error:;
37452  __Pyx_AddTraceback("ctransportCoefficients.kEpsilon_3D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
37453  __Pyx_RefNannyFinishContext();
37454  return NULL;
37455  __pyx_L4_argument_unpacking_done:;
37456  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1, "velocity", 0))) __PYX_ERR(0, 7021, __pyx_L1_error)
37457  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1, "gradu", 0))) __PYX_ERR(0, 7022, __pyx_L1_error)
37458  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradv), __pyx_ptype_5numpy_ndarray, 1, "gradv", 0))) __PYX_ERR(0, 7023, __pyx_L1_error)
37459  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradw), __pyx_ptype_5numpy_ndarray, 1, "gradw", 0))) __PYX_ERR(0, 7024, __pyx_L1_error)
37460  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_k), __pyx_ptype_5numpy_ndarray, 1, "k", 0))) __PYX_ERR(0, 7025, __pyx_L1_error)
37461  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_epsilon), __pyx_ptype_5numpy_ndarray, 1, "epsilon", 0))) __PYX_ERR(0, 7026, __pyx_L1_error)
37462  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_k), __pyx_ptype_5numpy_ndarray, 1, "m_k", 0))) __PYX_ERR(0, 7027, __pyx_L1_error)
37463  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_k), __pyx_ptype_5numpy_ndarray, 1, "dm_k", 0))) __PYX_ERR(0, 7028, __pyx_L1_error)
37464  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_e), __pyx_ptype_5numpy_ndarray, 1, "m_e", 0))) __PYX_ERR(0, 7029, __pyx_L1_error)
37465  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_e), __pyx_ptype_5numpy_ndarray, 1, "dm_e", 0))) __PYX_ERR(0, 7030, __pyx_L1_error)
37466  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_k), __pyx_ptype_5numpy_ndarray, 1, "phi_k", 0))) __PYX_ERR(0, 7031, __pyx_L1_error)
37467  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_k), __pyx_ptype_5numpy_ndarray, 1, "dphi_k", 0))) __PYX_ERR(0, 7032, __pyx_L1_error)
37468  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_e), __pyx_ptype_5numpy_ndarray, 1, "phi_e", 0))) __PYX_ERR(0, 7033, __pyx_L1_error)
37469  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_e), __pyx_ptype_5numpy_ndarray, 1, "dphi_e", 0))) __PYX_ERR(0, 7034, __pyx_L1_error)
37470  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_k), __pyx_ptype_5numpy_ndarray, 1, "f_k", 0))) __PYX_ERR(0, 7035, __pyx_L1_error)
37471  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_k), __pyx_ptype_5numpy_ndarray, 1, "df_k", 0))) __PYX_ERR(0, 7036, __pyx_L1_error)
37472  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_e), __pyx_ptype_5numpy_ndarray, 1, "f_e", 0))) __PYX_ERR(0, 7037, __pyx_L1_error)
37473  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_e), __pyx_ptype_5numpy_ndarray, 1, "df_e", 0))) __PYX_ERR(0, 7038, __pyx_L1_error)
37474  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_k), __pyx_ptype_5numpy_ndarray, 1, "a_k", 0))) __PYX_ERR(0, 7039, __pyx_L1_error)
37475  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_k_dk), __pyx_ptype_5numpy_ndarray, 1, "da_k_dk", 0))) __PYX_ERR(0, 7040, __pyx_L1_error)
37476  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_k_de), __pyx_ptype_5numpy_ndarray, 1, "da_k_de", 0))) __PYX_ERR(0, 7041, __pyx_L1_error)
37477  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_e), __pyx_ptype_5numpy_ndarray, 1, "a_e", 0))) __PYX_ERR(0, 7042, __pyx_L1_error)
37478  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_e_dk), __pyx_ptype_5numpy_ndarray, 1, "da_e_dk", 0))) __PYX_ERR(0, 7043, __pyx_L1_error)
37479  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_e_de), __pyx_ptype_5numpy_ndarray, 1, "da_e_de", 0))) __PYX_ERR(0, 7044, __pyx_L1_error)
37480  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_k), __pyx_ptype_5numpy_ndarray, 1, "r_k", 0))) __PYX_ERR(0, 7045, __pyx_L1_error)
37481  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_k_dk), __pyx_ptype_5numpy_ndarray, 1, "dr_k_dk", 0))) __PYX_ERR(0, 7046, __pyx_L1_error)
37482  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_k_de), __pyx_ptype_5numpy_ndarray, 1, "dr_k_de", 0))) __PYX_ERR(0, 7047, __pyx_L1_error)
37483  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_e), __pyx_ptype_5numpy_ndarray, 1, "r_e", 0))) __PYX_ERR(0, 7048, __pyx_L1_error)
37484  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_e_dk), __pyx_ptype_5numpy_ndarray, 1, "dr_e_dk", 0))) __PYX_ERR(0, 7049, __pyx_L1_error)
37485  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_e_de), __pyx_ptype_5numpy_ndarray, 1, "dr_e_de", 0))) __PYX_ERR(0, 7050, __pyx_L1_error)
37486  __pyx_r = __pyx_pf_22ctransportCoefficients_184kEpsilon_3D_Evaluate_sd(__pyx_self, __pyx_v_sigma_k, __pyx_v_sigma_e, __pyx_v_c_1, __pyx_v_c_2, __pyx_v_c_mu, __pyx_v_c_e, __pyx_v_nu, __pyx_v_velocity, __pyx_v_gradu, __pyx_v_gradv, __pyx_v_gradw, __pyx_v_k, __pyx_v_epsilon, __pyx_v_m_k, __pyx_v_dm_k, __pyx_v_m_e, __pyx_v_dm_e, __pyx_v_phi_k, __pyx_v_dphi_k, __pyx_v_phi_e, __pyx_v_dphi_e, __pyx_v_f_k, __pyx_v_df_k, __pyx_v_f_e, __pyx_v_df_e, __pyx_v_a_k, __pyx_v_da_k_dk, __pyx_v_da_k_de, __pyx_v_a_e, __pyx_v_da_e_dk, __pyx_v_da_e_de, __pyx_v_r_k, __pyx_v_dr_k_dk, __pyx_v_dr_k_de, __pyx_v_r_e, __pyx_v_dr_e_dk, __pyx_v_dr_e_de);
37487 
37488  /* function exit code */
37489  goto __pyx_L0;
37490  __pyx_L1_error:;
37491  __pyx_r = NULL;
37492  __pyx_L0:;
37493  __Pyx_RefNannyFinishContext();
37494  return __pyx_r;
37495 }
37496 
37497 static PyObject *__pyx_pf_22ctransportCoefficients_184kEpsilon_3D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_sigma_k, double __pyx_v_sigma_e, double __pyx_v_c_1, double __pyx_v_c_2, double __pyx_v_c_mu, double __pyx_v_c_e, double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_gradw, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_k, PyArrayObject *__pyx_v_dm_k, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_phi_k, PyArrayObject *__pyx_v_dphi_k, PyArrayObject *__pyx_v_phi_e, PyArrayObject *__pyx_v_dphi_e, PyArrayObject *__pyx_v_f_k, PyArrayObject *__pyx_v_df_k, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_k, PyArrayObject *__pyx_v_da_k_dk, PyArrayObject *__pyx_v_da_k_de, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_da_e_dk, PyArrayObject *__pyx_v_da_e_de, PyArrayObject *__pyx_v_r_k, PyArrayObject *__pyx_v_dr_k_dk, PyArrayObject *__pyx_v_dr_k_de, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_dk, PyArrayObject *__pyx_v_dr_e_de) {
37498  PyObject *__pyx_r = NULL;
37499  __Pyx_RefNannyDeclarations
37500  PyObject *__pyx_t_1 = NULL;
37501  int __pyx_t_2;
37502  int __pyx_lineno = 0;
37503  const char *__pyx_filename = NULL;
37504  int __pyx_clineno = 0;
37505  __Pyx_RefNannySetupContext("kEpsilon_3D_Evaluate_sd", 0);
37506 
37507  /* "ctransportCoefficients.pyx":7051
37508  * np.ndarray dr_e_dk,
37509  * np.ndarray dr_e_de):
37510  * ckEpsilon_3D_Evaluate_sd(k.size, # <<<<<<<<<<<<<<
37511  * f_k.shape[f_k.ndim-1],
37512  * sigma_k,
37513  */
37514  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_k), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7051, __pyx_L1_error)
37515  __Pyx_GOTREF(__pyx_t_1);
37516  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7051, __pyx_L1_error)
37517  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
37518 
37519  /* "ctransportCoefficients.pyx":7089
37520  * <double*> r_e.data,
37521  * <double*> dr_e_dk.data,
37522  * <double*> dr_e_de.data) # <<<<<<<<<<<<<<
37523  * def kEpsilon_3D_Evaluate(double sigma_k,
37524  * double sigma_e,
37525  */
37526  kEpsilon_3D_Evaluate_sd(__pyx_t_2, (__pyx_v_f_k->dimensions[(__pyx_v_f_k->nd - 1)]), __pyx_v_sigma_k, __pyx_v_sigma_e, __pyx_v_c_1, __pyx_v_c_2, __pyx_v_c_mu, __pyx_v_c_e, __pyx_v_nu, ((double *)__pyx_v_velocity->data), ((double *)__pyx_v_gradu->data), ((double *)__pyx_v_gradv->data), ((double *)__pyx_v_gradw->data), ((double *)__pyx_v_k->data), ((double *)__pyx_v_epsilon->data), ((double *)__pyx_v_m_k->data), ((double *)__pyx_v_dm_k->data), ((double *)__pyx_v_m_e->data), ((double *)__pyx_v_dm_e->data), ((double *)__pyx_v_phi_k->data), ((double *)__pyx_v_dphi_k->data), ((double *)__pyx_v_phi_e->data), ((double *)__pyx_v_dphi_e->data), ((double *)__pyx_v_f_k->data), ((double *)__pyx_v_df_k->data), ((double *)__pyx_v_f_e->data), ((double *)__pyx_v_df_e->data), ((double *)__pyx_v_a_k->data), ((double *)__pyx_v_da_k_dk->data), ((double *)__pyx_v_da_k_de->data), ((double *)__pyx_v_a_e->data), ((double *)__pyx_v_da_e_dk->data), ((double *)__pyx_v_da_e_de->data), ((double *)__pyx_v_r_k->data), ((double *)__pyx_v_dr_k_dk->data), ((double *)__pyx_v_dr_k_de->data), ((double *)__pyx_v_r_e->data), ((double *)__pyx_v_dr_e_dk->data), ((double *)__pyx_v_dr_e_de->data));
37527 
37528  /* "ctransportCoefficients.pyx":7014
37529  * <double*> dr_e_dk.data,
37530  * <double*> dr_e_de.data)
37531  * def kEpsilon_3D_Evaluate_sd(double sigma_k, # <<<<<<<<<<<<<<
37532  * double sigma_e,
37533  * double c_1,
37534  */
37535 
37536  /* function exit code */
37537  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
37538  goto __pyx_L0;
37539  __pyx_L1_error:;
37540  __Pyx_XDECREF(__pyx_t_1);
37541  __Pyx_AddTraceback("ctransportCoefficients.kEpsilon_3D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
37542  __pyx_r = NULL;
37543  __pyx_L0:;
37544  __Pyx_XGIVEREF(__pyx_r);
37545  __Pyx_RefNannyFinishContext();
37546  return __pyx_r;
37547 }
37548 
37549 /* "ctransportCoefficients.pyx":7090
37550  * <double*> dr_e_dk.data,
37551  * <double*> dr_e_de.data)
37552  * def kEpsilon_3D_Evaluate(double sigma_k, # <<<<<<<<<<<<<<
37553  * double sigma_e,
37554  * double c_1,
37555  */
37556 
37557 /* Python wrapper */
37558 static PyObject *__pyx_pw_22ctransportCoefficients_187kEpsilon_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
37559 static PyMethodDef __pyx_mdef_22ctransportCoefficients_187kEpsilon_3D_Evaluate = {"kEpsilon_3D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_187kEpsilon_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
37560 static PyObject *__pyx_pw_22ctransportCoefficients_187kEpsilon_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
37561  double __pyx_v_sigma_k;
37562  double __pyx_v_sigma_e;
37563  double __pyx_v_c_1;
37564  double __pyx_v_c_2;
37565  double __pyx_v_c_mu;
37566  double __pyx_v_c_e;
37567  double __pyx_v_nu;
37568  PyArrayObject *__pyx_v_velocity = 0;
37569  PyArrayObject *__pyx_v_gradu = 0;
37570  PyArrayObject *__pyx_v_gradv = 0;
37571  PyArrayObject *__pyx_v_gradw = 0;
37572  PyArrayObject *__pyx_v_k = 0;
37573  PyArrayObject *__pyx_v_epsilon = 0;
37574  PyArrayObject *__pyx_v_m_k = 0;
37575  PyArrayObject *__pyx_v_dm_k = 0;
37576  PyArrayObject *__pyx_v_m_e = 0;
37577  PyArrayObject *__pyx_v_dm_e = 0;
37578  PyArrayObject *__pyx_v_phi_k = 0;
37579  PyArrayObject *__pyx_v_dphi_k = 0;
37580  PyArrayObject *__pyx_v_phi_e = 0;
37581  PyArrayObject *__pyx_v_dphi_e = 0;
37582  PyArrayObject *__pyx_v_f_k = 0;
37583  PyArrayObject *__pyx_v_df_k = 0;
37584  PyArrayObject *__pyx_v_f_e = 0;
37585  PyArrayObject *__pyx_v_df_e = 0;
37586  PyArrayObject *__pyx_v_a_k = 0;
37587  PyArrayObject *__pyx_v_da_k_dk = 0;
37588  PyArrayObject *__pyx_v_da_k_de = 0;
37589  PyArrayObject *__pyx_v_a_e = 0;
37590  PyArrayObject *__pyx_v_da_e_dk = 0;
37591  PyArrayObject *__pyx_v_da_e_de = 0;
37592  PyArrayObject *__pyx_v_r_k = 0;
37593  PyArrayObject *__pyx_v_dr_k_dk = 0;
37594  PyArrayObject *__pyx_v_dr_k_de = 0;
37595  PyArrayObject *__pyx_v_r_e = 0;
37596  PyArrayObject *__pyx_v_dr_e_dk = 0;
37597  PyArrayObject *__pyx_v_dr_e_de = 0;
37598  int __pyx_lineno = 0;
37599  const char *__pyx_filename = NULL;
37600  int __pyx_clineno = 0;
37601  PyObject *__pyx_r = 0;
37602  __Pyx_RefNannyDeclarations
37603  __Pyx_RefNannySetupContext("kEpsilon_3D_Evaluate (wrapper)", 0);
37604  {
37605  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_sigma_k,&__pyx_n_s_sigma_e,&__pyx_n_s_c_1,&__pyx_n_s_c_2,&__pyx_n_s_c_mu,&__pyx_n_s_c_e,&__pyx_n_s_nu,&__pyx_n_s_velocity,&__pyx_n_s_gradu,&__pyx_n_s_gradv,&__pyx_n_s_gradw,&__pyx_n_s_k,&__pyx_n_s_epsilon,&__pyx_n_s_m_k,&__pyx_n_s_dm_k,&__pyx_n_s_m_e,&__pyx_n_s_dm_e,&__pyx_n_s_phi_k,&__pyx_n_s_dphi_k,&__pyx_n_s_phi_e,&__pyx_n_s_dphi_e,&__pyx_n_s_f_k,&__pyx_n_s_df_k,&__pyx_n_s_f_e,&__pyx_n_s_df_e,&__pyx_n_s_a_k,&__pyx_n_s_da_k_dk,&__pyx_n_s_da_k_de,&__pyx_n_s_a_e,&__pyx_n_s_da_e_dk,&__pyx_n_s_da_e_de,&__pyx_n_s_r_k,&__pyx_n_s_dr_k_dk,&__pyx_n_s_dr_k_de,&__pyx_n_s_r_e,&__pyx_n_s_dr_e_dk,&__pyx_n_s_dr_e_de,0};
37606  PyObject* values[37] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
37607  if (unlikely(__pyx_kwds)) {
37608  Py_ssize_t kw_args;
37609  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
37610  switch (pos_args) {
37611  case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
37612  CYTHON_FALLTHROUGH;
37613  case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
37614  CYTHON_FALLTHROUGH;
37615  case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
37616  CYTHON_FALLTHROUGH;
37617  case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
37618  CYTHON_FALLTHROUGH;
37619  case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
37620  CYTHON_FALLTHROUGH;
37621  case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
37622  CYTHON_FALLTHROUGH;
37623  case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
37624  CYTHON_FALLTHROUGH;
37625  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
37626  CYTHON_FALLTHROUGH;
37627  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
37628  CYTHON_FALLTHROUGH;
37629  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
37630  CYTHON_FALLTHROUGH;
37631  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
37632  CYTHON_FALLTHROUGH;
37633  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
37634  CYTHON_FALLTHROUGH;
37635  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
37636  CYTHON_FALLTHROUGH;
37637  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
37638  CYTHON_FALLTHROUGH;
37639  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
37640  CYTHON_FALLTHROUGH;
37641  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
37642  CYTHON_FALLTHROUGH;
37643  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
37644  CYTHON_FALLTHROUGH;
37645  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
37646  CYTHON_FALLTHROUGH;
37647  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
37648  CYTHON_FALLTHROUGH;
37649  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
37650  CYTHON_FALLTHROUGH;
37651  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
37652  CYTHON_FALLTHROUGH;
37653  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
37654  CYTHON_FALLTHROUGH;
37655  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
37656  CYTHON_FALLTHROUGH;
37657  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
37658  CYTHON_FALLTHROUGH;
37659  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
37660  CYTHON_FALLTHROUGH;
37661  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
37662  CYTHON_FALLTHROUGH;
37663  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
37664  CYTHON_FALLTHROUGH;
37665  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
37666  CYTHON_FALLTHROUGH;
37667  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
37668  CYTHON_FALLTHROUGH;
37669  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
37670  CYTHON_FALLTHROUGH;
37671  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
37672  CYTHON_FALLTHROUGH;
37673  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
37674  CYTHON_FALLTHROUGH;
37675  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
37676  CYTHON_FALLTHROUGH;
37677  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
37678  CYTHON_FALLTHROUGH;
37679  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
37680  CYTHON_FALLTHROUGH;
37681  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
37682  CYTHON_FALLTHROUGH;
37683  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
37684  CYTHON_FALLTHROUGH;
37685  case 0: break;
37686  default: goto __pyx_L5_argtuple_error;
37687  }
37688  kw_args = PyDict_Size(__pyx_kwds);
37689  switch (pos_args) {
37690  case 0:
37691  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma_k)) != 0)) kw_args--;
37692  else goto __pyx_L5_argtuple_error;
37693  CYTHON_FALLTHROUGH;
37694  case 1:
37695  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma_e)) != 0)) kw_args--;
37696  else {
37697  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 1); __PYX_ERR(0, 7090, __pyx_L3_error)
37698  }
37699  CYTHON_FALLTHROUGH;
37700  case 2:
37701  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_1)) != 0)) kw_args--;
37702  else {
37703  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 2); __PYX_ERR(0, 7090, __pyx_L3_error)
37704  }
37705  CYTHON_FALLTHROUGH;
37706  case 3:
37707  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_2)) != 0)) kw_args--;
37708  else {
37709  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 3); __PYX_ERR(0, 7090, __pyx_L3_error)
37710  }
37711  CYTHON_FALLTHROUGH;
37712  case 4:
37713  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_mu)) != 0)) kw_args--;
37714  else {
37715  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 4); __PYX_ERR(0, 7090, __pyx_L3_error)
37716  }
37717  CYTHON_FALLTHROUGH;
37718  case 5:
37719  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_e)) != 0)) kw_args--;
37720  else {
37721  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 5); __PYX_ERR(0, 7090, __pyx_L3_error)
37722  }
37723  CYTHON_FALLTHROUGH;
37724  case 6:
37725  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
37726  else {
37727  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 6); __PYX_ERR(0, 7090, __pyx_L3_error)
37728  }
37729  CYTHON_FALLTHROUGH;
37730  case 7:
37731  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
37732  else {
37733  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 7); __PYX_ERR(0, 7090, __pyx_L3_error)
37734  }
37735  CYTHON_FALLTHROUGH;
37736  case 8:
37737  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
37738  else {
37739  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 8); __PYX_ERR(0, 7090, __pyx_L3_error)
37740  }
37741  CYTHON_FALLTHROUGH;
37742  case 9:
37743  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradv)) != 0)) kw_args--;
37744  else {
37745  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 9); __PYX_ERR(0, 7090, __pyx_L3_error)
37746  }
37747  CYTHON_FALLTHROUGH;
37748  case 10:
37749  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradw)) != 0)) kw_args--;
37750  else {
37751  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 10); __PYX_ERR(0, 7090, __pyx_L3_error)
37752  }
37753  CYTHON_FALLTHROUGH;
37754  case 11:
37755  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_k)) != 0)) kw_args--;
37756  else {
37757  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 11); __PYX_ERR(0, 7090, __pyx_L3_error)
37758  }
37759  CYTHON_FALLTHROUGH;
37760  case 12:
37761  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
37762  else {
37763  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 12); __PYX_ERR(0, 7090, __pyx_L3_error)
37764  }
37765  CYTHON_FALLTHROUGH;
37766  case 13:
37767  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_k)) != 0)) kw_args--;
37768  else {
37769  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 13); __PYX_ERR(0, 7090, __pyx_L3_error)
37770  }
37771  CYTHON_FALLTHROUGH;
37772  case 14:
37773  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_k)) != 0)) kw_args--;
37774  else {
37775  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 14); __PYX_ERR(0, 7090, __pyx_L3_error)
37776  }
37777  CYTHON_FALLTHROUGH;
37778  case 15:
37779  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_e)) != 0)) kw_args--;
37780  else {
37781  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 15); __PYX_ERR(0, 7090, __pyx_L3_error)
37782  }
37783  CYTHON_FALLTHROUGH;
37784  case 16:
37785  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_e)) != 0)) kw_args--;
37786  else {
37787  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 16); __PYX_ERR(0, 7090, __pyx_L3_error)
37788  }
37789  CYTHON_FALLTHROUGH;
37790  case 17:
37791  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_k)) != 0)) kw_args--;
37792  else {
37793  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 17); __PYX_ERR(0, 7090, __pyx_L3_error)
37794  }
37795  CYTHON_FALLTHROUGH;
37796  case 18:
37797  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_k)) != 0)) kw_args--;
37798  else {
37799  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 18); __PYX_ERR(0, 7090, __pyx_L3_error)
37800  }
37801  CYTHON_FALLTHROUGH;
37802  case 19:
37803  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_e)) != 0)) kw_args--;
37804  else {
37805  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 19); __PYX_ERR(0, 7090, __pyx_L3_error)
37806  }
37807  CYTHON_FALLTHROUGH;
37808  case 20:
37809  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_e)) != 0)) kw_args--;
37810  else {
37811  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 20); __PYX_ERR(0, 7090, __pyx_L3_error)
37812  }
37813  CYTHON_FALLTHROUGH;
37814  case 21:
37815  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_k)) != 0)) kw_args--;
37816  else {
37817  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 21); __PYX_ERR(0, 7090, __pyx_L3_error)
37818  }
37819  CYTHON_FALLTHROUGH;
37820  case 22:
37821  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_k)) != 0)) kw_args--;
37822  else {
37823  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 22); __PYX_ERR(0, 7090, __pyx_L3_error)
37824  }
37825  CYTHON_FALLTHROUGH;
37826  case 23:
37827  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_e)) != 0)) kw_args--;
37828  else {
37829  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 23); __PYX_ERR(0, 7090, __pyx_L3_error)
37830  }
37831  CYTHON_FALLTHROUGH;
37832  case 24:
37833  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_e)) != 0)) kw_args--;
37834  else {
37835  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 24); __PYX_ERR(0, 7090, __pyx_L3_error)
37836  }
37837  CYTHON_FALLTHROUGH;
37838  case 25:
37839  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_k)) != 0)) kw_args--;
37840  else {
37841  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 25); __PYX_ERR(0, 7090, __pyx_L3_error)
37842  }
37843  CYTHON_FALLTHROUGH;
37844  case 26:
37845  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_k_dk)) != 0)) kw_args--;
37846  else {
37847  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 26); __PYX_ERR(0, 7090, __pyx_L3_error)
37848  }
37849  CYTHON_FALLTHROUGH;
37850  case 27:
37851  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_k_de)) != 0)) kw_args--;
37852  else {
37853  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 27); __PYX_ERR(0, 7090, __pyx_L3_error)
37854  }
37855  CYTHON_FALLTHROUGH;
37856  case 28:
37857  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_e)) != 0)) kw_args--;
37858  else {
37859  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 28); __PYX_ERR(0, 7090, __pyx_L3_error)
37860  }
37861  CYTHON_FALLTHROUGH;
37862  case 29:
37863  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_e_dk)) != 0)) kw_args--;
37864  else {
37865  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 29); __PYX_ERR(0, 7090, __pyx_L3_error)
37866  }
37867  CYTHON_FALLTHROUGH;
37868  case 30:
37869  if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_e_de)) != 0)) kw_args--;
37870  else {
37871  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 30); __PYX_ERR(0, 7090, __pyx_L3_error)
37872  }
37873  CYTHON_FALLTHROUGH;
37874  case 31:
37875  if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_k)) != 0)) kw_args--;
37876  else {
37877  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 31); __PYX_ERR(0, 7090, __pyx_L3_error)
37878  }
37879  CYTHON_FALLTHROUGH;
37880  case 32:
37881  if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_k_dk)) != 0)) kw_args--;
37882  else {
37883  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 32); __PYX_ERR(0, 7090, __pyx_L3_error)
37884  }
37885  CYTHON_FALLTHROUGH;
37886  case 33:
37887  if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_k_de)) != 0)) kw_args--;
37888  else {
37889  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 33); __PYX_ERR(0, 7090, __pyx_L3_error)
37890  }
37891  CYTHON_FALLTHROUGH;
37892  case 34:
37893  if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_e)) != 0)) kw_args--;
37894  else {
37895  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 34); __PYX_ERR(0, 7090, __pyx_L3_error)
37896  }
37897  CYTHON_FALLTHROUGH;
37898  case 35:
37899  if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_e_dk)) != 0)) kw_args--;
37900  else {
37901  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 35); __PYX_ERR(0, 7090, __pyx_L3_error)
37902  }
37903  CYTHON_FALLTHROUGH;
37904  case 36:
37905  if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_e_de)) != 0)) kw_args--;
37906  else {
37907  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, 36); __PYX_ERR(0, 7090, __pyx_L3_error)
37908  }
37909  }
37910  if (unlikely(kw_args > 0)) {
37911  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "kEpsilon_3D_Evaluate") < 0)) __PYX_ERR(0, 7090, __pyx_L3_error)
37912  }
37913  } else if (PyTuple_GET_SIZE(__pyx_args) != 37) {
37914  goto __pyx_L5_argtuple_error;
37915  } else {
37916  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
37917  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
37918  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
37919  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
37920  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
37921  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
37922  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
37923  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
37924  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
37925  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
37926  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
37927  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
37928  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
37929  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
37930  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
37931  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
37932  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
37933  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
37934  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
37935  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
37936  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
37937  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
37938  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
37939  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
37940  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
37941  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
37942  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
37943  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
37944  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
37945  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
37946  values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
37947  values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
37948  values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
37949  values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
37950  values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
37951  values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
37952  values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
37953  }
37954  __pyx_v_sigma_k = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_sigma_k == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7090, __pyx_L3_error)
37955  __pyx_v_sigma_e = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_sigma_e == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7091, __pyx_L3_error)
37956  __pyx_v_c_1 = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_c_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7092, __pyx_L3_error)
37957  __pyx_v_c_2 = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_c_2 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7093, __pyx_L3_error)
37958  __pyx_v_c_mu = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_c_mu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7094, __pyx_L3_error)
37959  __pyx_v_c_e = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_c_e == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7095, __pyx_L3_error)
37960  __pyx_v_nu = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_nu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7096, __pyx_L3_error)
37961  __pyx_v_velocity = ((PyArrayObject *)values[7]);
37962  __pyx_v_gradu = ((PyArrayObject *)values[8]);
37963  __pyx_v_gradv = ((PyArrayObject *)values[9]);
37964  __pyx_v_gradw = ((PyArrayObject *)values[10]);
37965  __pyx_v_k = ((PyArrayObject *)values[11]);
37966  __pyx_v_epsilon = ((PyArrayObject *)values[12]);
37967  __pyx_v_m_k = ((PyArrayObject *)values[13]);
37968  __pyx_v_dm_k = ((PyArrayObject *)values[14]);
37969  __pyx_v_m_e = ((PyArrayObject *)values[15]);
37970  __pyx_v_dm_e = ((PyArrayObject *)values[16]);
37971  __pyx_v_phi_k = ((PyArrayObject *)values[17]);
37972  __pyx_v_dphi_k = ((PyArrayObject *)values[18]);
37973  __pyx_v_phi_e = ((PyArrayObject *)values[19]);
37974  __pyx_v_dphi_e = ((PyArrayObject *)values[20]);
37975  __pyx_v_f_k = ((PyArrayObject *)values[21]);
37976  __pyx_v_df_k = ((PyArrayObject *)values[22]);
37977  __pyx_v_f_e = ((PyArrayObject *)values[23]);
37978  __pyx_v_df_e = ((PyArrayObject *)values[24]);
37979  __pyx_v_a_k = ((PyArrayObject *)values[25]);
37980  __pyx_v_da_k_dk = ((PyArrayObject *)values[26]);
37981  __pyx_v_da_k_de = ((PyArrayObject *)values[27]);
37982  __pyx_v_a_e = ((PyArrayObject *)values[28]);
37983  __pyx_v_da_e_dk = ((PyArrayObject *)values[29]);
37984  __pyx_v_da_e_de = ((PyArrayObject *)values[30]);
37985  __pyx_v_r_k = ((PyArrayObject *)values[31]);
37986  __pyx_v_dr_k_dk = ((PyArrayObject *)values[32]);
37987  __pyx_v_dr_k_de = ((PyArrayObject *)values[33]);
37988  __pyx_v_r_e = ((PyArrayObject *)values[34]);
37989  __pyx_v_dr_e_dk = ((PyArrayObject *)values[35]);
37990  __pyx_v_dr_e_de = ((PyArrayObject *)values[36]);
37991  }
37992  goto __pyx_L4_argument_unpacking_done;
37993  __pyx_L5_argtuple_error:;
37994  __Pyx_RaiseArgtupleInvalid("kEpsilon_3D_Evaluate", 1, 37, 37, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7090, __pyx_L3_error)
37995  __pyx_L3_error:;
37996  __Pyx_AddTraceback("ctransportCoefficients.kEpsilon_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
37997  __Pyx_RefNannyFinishContext();
37998  return NULL;
37999  __pyx_L4_argument_unpacking_done:;
38000  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1, "velocity", 0))) __PYX_ERR(0, 7097, __pyx_L1_error)
38001  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1, "gradu", 0))) __PYX_ERR(0, 7098, __pyx_L1_error)
38002  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradv), __pyx_ptype_5numpy_ndarray, 1, "gradv", 0))) __PYX_ERR(0, 7099, __pyx_L1_error)
38003  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradw), __pyx_ptype_5numpy_ndarray, 1, "gradw", 0))) __PYX_ERR(0, 7100, __pyx_L1_error)
38004  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_k), __pyx_ptype_5numpy_ndarray, 1, "k", 0))) __PYX_ERR(0, 7101, __pyx_L1_error)
38005  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_epsilon), __pyx_ptype_5numpy_ndarray, 1, "epsilon", 0))) __PYX_ERR(0, 7102, __pyx_L1_error)
38006  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_k), __pyx_ptype_5numpy_ndarray, 1, "m_k", 0))) __PYX_ERR(0, 7103, __pyx_L1_error)
38007  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_k), __pyx_ptype_5numpy_ndarray, 1, "dm_k", 0))) __PYX_ERR(0, 7104, __pyx_L1_error)
38008  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_e), __pyx_ptype_5numpy_ndarray, 1, "m_e", 0))) __PYX_ERR(0, 7105, __pyx_L1_error)
38009  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_e), __pyx_ptype_5numpy_ndarray, 1, "dm_e", 0))) __PYX_ERR(0, 7106, __pyx_L1_error)
38010  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_k), __pyx_ptype_5numpy_ndarray, 1, "phi_k", 0))) __PYX_ERR(0, 7107, __pyx_L1_error)
38011  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_k), __pyx_ptype_5numpy_ndarray, 1, "dphi_k", 0))) __PYX_ERR(0, 7108, __pyx_L1_error)
38012  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_e), __pyx_ptype_5numpy_ndarray, 1, "phi_e", 0))) __PYX_ERR(0, 7109, __pyx_L1_error)
38013  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_e), __pyx_ptype_5numpy_ndarray, 1, "dphi_e", 0))) __PYX_ERR(0, 7110, __pyx_L1_error)
38014  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_k), __pyx_ptype_5numpy_ndarray, 1, "f_k", 0))) __PYX_ERR(0, 7111, __pyx_L1_error)
38015  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_k), __pyx_ptype_5numpy_ndarray, 1, "df_k", 0))) __PYX_ERR(0, 7112, __pyx_L1_error)
38016  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_e), __pyx_ptype_5numpy_ndarray, 1, "f_e", 0))) __PYX_ERR(0, 7113, __pyx_L1_error)
38017  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_e), __pyx_ptype_5numpy_ndarray, 1, "df_e", 0))) __PYX_ERR(0, 7114, __pyx_L1_error)
38018  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_k), __pyx_ptype_5numpy_ndarray, 1, "a_k", 0))) __PYX_ERR(0, 7115, __pyx_L1_error)
38019  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_k_dk), __pyx_ptype_5numpy_ndarray, 1, "da_k_dk", 0))) __PYX_ERR(0, 7116, __pyx_L1_error)
38020  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_k_de), __pyx_ptype_5numpy_ndarray, 1, "da_k_de", 0))) __PYX_ERR(0, 7117, __pyx_L1_error)
38021  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_e), __pyx_ptype_5numpy_ndarray, 1, "a_e", 0))) __PYX_ERR(0, 7118, __pyx_L1_error)
38022  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_e_dk), __pyx_ptype_5numpy_ndarray, 1, "da_e_dk", 0))) __PYX_ERR(0, 7119, __pyx_L1_error)
38023  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_e_de), __pyx_ptype_5numpy_ndarray, 1, "da_e_de", 0))) __PYX_ERR(0, 7120, __pyx_L1_error)
38024  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_k), __pyx_ptype_5numpy_ndarray, 1, "r_k", 0))) __PYX_ERR(0, 7121, __pyx_L1_error)
38025  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_k_dk), __pyx_ptype_5numpy_ndarray, 1, "dr_k_dk", 0))) __PYX_ERR(0, 7122, __pyx_L1_error)
38026  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_k_de), __pyx_ptype_5numpy_ndarray, 1, "dr_k_de", 0))) __PYX_ERR(0, 7123, __pyx_L1_error)
38027  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_e), __pyx_ptype_5numpy_ndarray, 1, "r_e", 0))) __PYX_ERR(0, 7124, __pyx_L1_error)
38028  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_e_dk), __pyx_ptype_5numpy_ndarray, 1, "dr_e_dk", 0))) __PYX_ERR(0, 7125, __pyx_L1_error)
38029  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_e_de), __pyx_ptype_5numpy_ndarray, 1, "dr_e_de", 0))) __PYX_ERR(0, 7126, __pyx_L1_error)
38030  __pyx_r = __pyx_pf_22ctransportCoefficients_186kEpsilon_3D_Evaluate(__pyx_self, __pyx_v_sigma_k, __pyx_v_sigma_e, __pyx_v_c_1, __pyx_v_c_2, __pyx_v_c_mu, __pyx_v_c_e, __pyx_v_nu, __pyx_v_velocity, __pyx_v_gradu, __pyx_v_gradv, __pyx_v_gradw, __pyx_v_k, __pyx_v_epsilon, __pyx_v_m_k, __pyx_v_dm_k, __pyx_v_m_e, __pyx_v_dm_e, __pyx_v_phi_k, __pyx_v_dphi_k, __pyx_v_phi_e, __pyx_v_dphi_e, __pyx_v_f_k, __pyx_v_df_k, __pyx_v_f_e, __pyx_v_df_e, __pyx_v_a_k, __pyx_v_da_k_dk, __pyx_v_da_k_de, __pyx_v_a_e, __pyx_v_da_e_dk, __pyx_v_da_e_de, __pyx_v_r_k, __pyx_v_dr_k_dk, __pyx_v_dr_k_de, __pyx_v_r_e, __pyx_v_dr_e_dk, __pyx_v_dr_e_de);
38031 
38032  /* function exit code */
38033  goto __pyx_L0;
38034  __pyx_L1_error:;
38035  __pyx_r = NULL;
38036  __pyx_L0:;
38037  __Pyx_RefNannyFinishContext();
38038  return __pyx_r;
38039 }
38040 
38041 static PyObject *__pyx_pf_22ctransportCoefficients_186kEpsilon_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_sigma_k, double __pyx_v_sigma_e, double __pyx_v_c_1, double __pyx_v_c_2, double __pyx_v_c_mu, double __pyx_v_c_e, double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_gradw, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_k, PyArrayObject *__pyx_v_dm_k, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_phi_k, PyArrayObject *__pyx_v_dphi_k, PyArrayObject *__pyx_v_phi_e, PyArrayObject *__pyx_v_dphi_e, PyArrayObject *__pyx_v_f_k, PyArrayObject *__pyx_v_df_k, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_k, PyArrayObject *__pyx_v_da_k_dk, PyArrayObject *__pyx_v_da_k_de, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_da_e_dk, PyArrayObject *__pyx_v_da_e_de, PyArrayObject *__pyx_v_r_k, PyArrayObject *__pyx_v_dr_k_dk, PyArrayObject *__pyx_v_dr_k_de, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_dk, PyArrayObject *__pyx_v_dr_e_de) {
38042  PyObject *__pyx_r = NULL;
38043  __Pyx_RefNannyDeclarations
38044  PyObject *__pyx_t_1 = NULL;
38045  int __pyx_t_2;
38046  int __pyx_lineno = 0;
38047  const char *__pyx_filename = NULL;
38048  int __pyx_clineno = 0;
38049  __Pyx_RefNannySetupContext("kEpsilon_3D_Evaluate", 0);
38050 
38051  /* "ctransportCoefficients.pyx":7127
38052  * np.ndarray dr_e_dk,
38053  * np.ndarray dr_e_de):
38054  * ckEpsilon_3D_Evaluate(k.size, # <<<<<<<<<<<<<<
38055  * f_k.shape[f_k.ndim-1],
38056  * sigma_k,
38057  */
38058  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_k), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7127, __pyx_L1_error)
38059  __Pyx_GOTREF(__pyx_t_1);
38060  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7127, __pyx_L1_error)
38061  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
38062 
38063  /* "ctransportCoefficients.pyx":7165
38064  * <double*> r_e.data,
38065  * <double*> dr_e_dk.data,
38066  * <double*> dr_e_de.data) # <<<<<<<<<<<<<<
38067  * def kEpsilon_k_2D_Evaluate_sd(double sigma_k,
38068  * double c_mu,
38069  */
38070  kEpsilon_3D_Evaluate(__pyx_t_2, (__pyx_v_f_k->dimensions[(__pyx_v_f_k->nd - 1)]), __pyx_v_sigma_k, __pyx_v_sigma_e, __pyx_v_c_1, __pyx_v_c_2, __pyx_v_c_mu, __pyx_v_c_e, __pyx_v_nu, ((double *)__pyx_v_velocity->data), ((double *)__pyx_v_gradu->data), ((double *)__pyx_v_gradv->data), ((double *)__pyx_v_gradw->data), ((double *)__pyx_v_k->data), ((double *)__pyx_v_epsilon->data), ((double *)__pyx_v_m_k->data), ((double *)__pyx_v_dm_k->data), ((double *)__pyx_v_m_e->data), ((double *)__pyx_v_dm_e->data), ((double *)__pyx_v_phi_k->data), ((double *)__pyx_v_dphi_k->data), ((double *)__pyx_v_phi_e->data), ((double *)__pyx_v_dphi_e->data), ((double *)__pyx_v_f_k->data), ((double *)__pyx_v_df_k->data), ((double *)__pyx_v_f_e->data), ((double *)__pyx_v_df_e->data), ((double *)__pyx_v_a_k->data), ((double *)__pyx_v_da_k_dk->data), ((double *)__pyx_v_da_k_de->data), ((double *)__pyx_v_a_e->data), ((double *)__pyx_v_da_e_dk->data), ((double *)__pyx_v_da_e_de->data), ((double *)__pyx_v_r_k->data), ((double *)__pyx_v_dr_k_dk->data), ((double *)__pyx_v_dr_k_de->data), ((double *)__pyx_v_r_e->data), ((double *)__pyx_v_dr_e_dk->data), ((double *)__pyx_v_dr_e_de->data));
38071 
38072  /* "ctransportCoefficients.pyx":7090
38073  * <double*> dr_e_dk.data,
38074  * <double*> dr_e_de.data)
38075  * def kEpsilon_3D_Evaluate(double sigma_k, # <<<<<<<<<<<<<<
38076  * double sigma_e,
38077  * double c_1,
38078  */
38079 
38080  /* function exit code */
38081  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
38082  goto __pyx_L0;
38083  __pyx_L1_error:;
38084  __Pyx_XDECREF(__pyx_t_1);
38085  __Pyx_AddTraceback("ctransportCoefficients.kEpsilon_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
38086  __pyx_r = NULL;
38087  __pyx_L0:;
38088  __Pyx_XGIVEREF(__pyx_r);
38089  __Pyx_RefNannyFinishContext();
38090  return __pyx_r;
38091 }
38092 
38093 /* "ctransportCoefficients.pyx":7166
38094  * <double*> dr_e_dk.data,
38095  * <double*> dr_e_de.data)
38096  * def kEpsilon_k_2D_Evaluate_sd(double sigma_k, # <<<<<<<<<<<<<<
38097  * double c_mu,
38098  * double nu,
38099  */
38100 
38101 /* Python wrapper */
38102 static PyObject *__pyx_pw_22ctransportCoefficients_189kEpsilon_k_2D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
38103 static PyMethodDef __pyx_mdef_22ctransportCoefficients_189kEpsilon_k_2D_Evaluate_sd = {"kEpsilon_k_2D_Evaluate_sd", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_189kEpsilon_k_2D_Evaluate_sd, METH_VARARGS|METH_KEYWORDS, 0};
38104 static PyObject *__pyx_pw_22ctransportCoefficients_189kEpsilon_k_2D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
38105  double __pyx_v_sigma_k;
38106  double __pyx_v_c_mu;
38107  double __pyx_v_nu;
38108  PyArrayObject *__pyx_v_velocity = 0;
38109  PyArrayObject *__pyx_v_gradu = 0;
38110  PyArrayObject *__pyx_v_gradv = 0;
38111  PyArrayObject *__pyx_v_k = 0;
38112  PyArrayObject *__pyx_v_epsilon = 0;
38113  PyArrayObject *__pyx_v_m_k = 0;
38114  PyArrayObject *__pyx_v_dm_k = 0;
38115  PyArrayObject *__pyx_v_phi_k = 0;
38116  PyArrayObject *__pyx_v_dphi_k = 0;
38117  PyArrayObject *__pyx_v_f_k = 0;
38118  PyArrayObject *__pyx_v_df_k = 0;
38119  PyArrayObject *__pyx_v_a_k = 0;
38120  PyArrayObject *__pyx_v_da_k_dk = 0;
38121  PyArrayObject *__pyx_v_r_k = 0;
38122  PyArrayObject *__pyx_v_dr_k_dk = 0;
38123  int __pyx_lineno = 0;
38124  const char *__pyx_filename = NULL;
38125  int __pyx_clineno = 0;
38126  PyObject *__pyx_r = 0;
38127  __Pyx_RefNannyDeclarations
38128  __Pyx_RefNannySetupContext("kEpsilon_k_2D_Evaluate_sd (wrapper)", 0);
38129  {
38130  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_sigma_k,&__pyx_n_s_c_mu,&__pyx_n_s_nu,&__pyx_n_s_velocity,&__pyx_n_s_gradu,&__pyx_n_s_gradv,&__pyx_n_s_k,&__pyx_n_s_epsilon,&__pyx_n_s_m_k,&__pyx_n_s_dm_k,&__pyx_n_s_phi_k,&__pyx_n_s_dphi_k,&__pyx_n_s_f_k,&__pyx_n_s_df_k,&__pyx_n_s_a_k,&__pyx_n_s_da_k_dk,&__pyx_n_s_r_k,&__pyx_n_s_dr_k_dk,0};
38131  PyObject* values[18] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
38132  if (unlikely(__pyx_kwds)) {
38133  Py_ssize_t kw_args;
38134  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
38135  switch (pos_args) {
38136  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
38137  CYTHON_FALLTHROUGH;
38138  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
38139  CYTHON_FALLTHROUGH;
38140  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
38141  CYTHON_FALLTHROUGH;
38142  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
38143  CYTHON_FALLTHROUGH;
38144  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
38145  CYTHON_FALLTHROUGH;
38146  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
38147  CYTHON_FALLTHROUGH;
38148  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
38149  CYTHON_FALLTHROUGH;
38150  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
38151  CYTHON_FALLTHROUGH;
38152  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
38153  CYTHON_FALLTHROUGH;
38154  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
38155  CYTHON_FALLTHROUGH;
38156  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
38157  CYTHON_FALLTHROUGH;
38158  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
38159  CYTHON_FALLTHROUGH;
38160  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
38161  CYTHON_FALLTHROUGH;
38162  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
38163  CYTHON_FALLTHROUGH;
38164  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
38165  CYTHON_FALLTHROUGH;
38166  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
38167  CYTHON_FALLTHROUGH;
38168  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
38169  CYTHON_FALLTHROUGH;
38170  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
38171  CYTHON_FALLTHROUGH;
38172  case 0: break;
38173  default: goto __pyx_L5_argtuple_error;
38174  }
38175  kw_args = PyDict_Size(__pyx_kwds);
38176  switch (pos_args) {
38177  case 0:
38178  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma_k)) != 0)) kw_args--;
38179  else goto __pyx_L5_argtuple_error;
38180  CYTHON_FALLTHROUGH;
38181  case 1:
38182  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_mu)) != 0)) kw_args--;
38183  else {
38184  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 1); __PYX_ERR(0, 7166, __pyx_L3_error)
38185  }
38186  CYTHON_FALLTHROUGH;
38187  case 2:
38188  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
38189  else {
38190  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 2); __PYX_ERR(0, 7166, __pyx_L3_error)
38191  }
38192  CYTHON_FALLTHROUGH;
38193  case 3:
38194  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
38195  else {
38196  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 3); __PYX_ERR(0, 7166, __pyx_L3_error)
38197  }
38198  CYTHON_FALLTHROUGH;
38199  case 4:
38200  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
38201  else {
38202  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 4); __PYX_ERR(0, 7166, __pyx_L3_error)
38203  }
38204  CYTHON_FALLTHROUGH;
38205  case 5:
38206  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradv)) != 0)) kw_args--;
38207  else {
38208  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 5); __PYX_ERR(0, 7166, __pyx_L3_error)
38209  }
38210  CYTHON_FALLTHROUGH;
38211  case 6:
38212  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_k)) != 0)) kw_args--;
38213  else {
38214  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 6); __PYX_ERR(0, 7166, __pyx_L3_error)
38215  }
38216  CYTHON_FALLTHROUGH;
38217  case 7:
38218  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
38219  else {
38220  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 7); __PYX_ERR(0, 7166, __pyx_L3_error)
38221  }
38222  CYTHON_FALLTHROUGH;
38223  case 8:
38224  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_k)) != 0)) kw_args--;
38225  else {
38226  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 8); __PYX_ERR(0, 7166, __pyx_L3_error)
38227  }
38228  CYTHON_FALLTHROUGH;
38229  case 9:
38230  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_k)) != 0)) kw_args--;
38231  else {
38232  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 9); __PYX_ERR(0, 7166, __pyx_L3_error)
38233  }
38234  CYTHON_FALLTHROUGH;
38235  case 10:
38236  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_k)) != 0)) kw_args--;
38237  else {
38238  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 10); __PYX_ERR(0, 7166, __pyx_L3_error)
38239  }
38240  CYTHON_FALLTHROUGH;
38241  case 11:
38242  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_k)) != 0)) kw_args--;
38243  else {
38244  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 11); __PYX_ERR(0, 7166, __pyx_L3_error)
38245  }
38246  CYTHON_FALLTHROUGH;
38247  case 12:
38248  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_k)) != 0)) kw_args--;
38249  else {
38250  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 12); __PYX_ERR(0, 7166, __pyx_L3_error)
38251  }
38252  CYTHON_FALLTHROUGH;
38253  case 13:
38254  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_k)) != 0)) kw_args--;
38255  else {
38256  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 13); __PYX_ERR(0, 7166, __pyx_L3_error)
38257  }
38258  CYTHON_FALLTHROUGH;
38259  case 14:
38260  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_k)) != 0)) kw_args--;
38261  else {
38262  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 14); __PYX_ERR(0, 7166, __pyx_L3_error)
38263  }
38264  CYTHON_FALLTHROUGH;
38265  case 15:
38266  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_k_dk)) != 0)) kw_args--;
38267  else {
38268  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 15); __PYX_ERR(0, 7166, __pyx_L3_error)
38269  }
38270  CYTHON_FALLTHROUGH;
38271  case 16:
38272  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_k)) != 0)) kw_args--;
38273  else {
38274  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 16); __PYX_ERR(0, 7166, __pyx_L3_error)
38275  }
38276  CYTHON_FALLTHROUGH;
38277  case 17:
38278  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_k_dk)) != 0)) kw_args--;
38279  else {
38280  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 17); __PYX_ERR(0, 7166, __pyx_L3_error)
38281  }
38282  }
38283  if (unlikely(kw_args > 0)) {
38284  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "kEpsilon_k_2D_Evaluate_sd") < 0)) __PYX_ERR(0, 7166, __pyx_L3_error)
38285  }
38286  } else if (PyTuple_GET_SIZE(__pyx_args) != 18) {
38287  goto __pyx_L5_argtuple_error;
38288  } else {
38289  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
38290  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
38291  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
38292  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
38293  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
38294  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
38295  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
38296  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
38297  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
38298  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
38299  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
38300  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
38301  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
38302  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
38303  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
38304  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
38305  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
38306  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
38307  }
38308  __pyx_v_sigma_k = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_sigma_k == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7166, __pyx_L3_error)
38309  __pyx_v_c_mu = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_c_mu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7167, __pyx_L3_error)
38310  __pyx_v_nu = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_nu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7168, __pyx_L3_error)
38311  __pyx_v_velocity = ((PyArrayObject *)values[3]);
38312  __pyx_v_gradu = ((PyArrayObject *)values[4]);
38313  __pyx_v_gradv = ((PyArrayObject *)values[5]);
38314  __pyx_v_k = ((PyArrayObject *)values[6]);
38315  __pyx_v_epsilon = ((PyArrayObject *)values[7]);
38316  __pyx_v_m_k = ((PyArrayObject *)values[8]);
38317  __pyx_v_dm_k = ((PyArrayObject *)values[9]);
38318  __pyx_v_phi_k = ((PyArrayObject *)values[10]);
38319  __pyx_v_dphi_k = ((PyArrayObject *)values[11]);
38320  __pyx_v_f_k = ((PyArrayObject *)values[12]);
38321  __pyx_v_df_k = ((PyArrayObject *)values[13]);
38322  __pyx_v_a_k = ((PyArrayObject *)values[14]);
38323  __pyx_v_da_k_dk = ((PyArrayObject *)values[15]);
38324  __pyx_v_r_k = ((PyArrayObject *)values[16]);
38325  __pyx_v_dr_k_dk = ((PyArrayObject *)values[17]);
38326  }
38327  goto __pyx_L4_argument_unpacking_done;
38328  __pyx_L5_argtuple_error:;
38329  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7166, __pyx_L3_error)
38330  __pyx_L3_error:;
38331  __Pyx_AddTraceback("ctransportCoefficients.kEpsilon_k_2D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
38332  __Pyx_RefNannyFinishContext();
38333  return NULL;
38334  __pyx_L4_argument_unpacking_done:;
38335  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1, "velocity", 0))) __PYX_ERR(0, 7169, __pyx_L1_error)
38336  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1, "gradu", 0))) __PYX_ERR(0, 7170, __pyx_L1_error)
38337  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradv), __pyx_ptype_5numpy_ndarray, 1, "gradv", 0))) __PYX_ERR(0, 7171, __pyx_L1_error)
38338  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_k), __pyx_ptype_5numpy_ndarray, 1, "k", 0))) __PYX_ERR(0, 7172, __pyx_L1_error)
38339  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_epsilon), __pyx_ptype_5numpy_ndarray, 1, "epsilon", 0))) __PYX_ERR(0, 7173, __pyx_L1_error)
38340  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_k), __pyx_ptype_5numpy_ndarray, 1, "m_k", 0))) __PYX_ERR(0, 7174, __pyx_L1_error)
38341  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_k), __pyx_ptype_5numpy_ndarray, 1, "dm_k", 0))) __PYX_ERR(0, 7175, __pyx_L1_error)
38342  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_k), __pyx_ptype_5numpy_ndarray, 1, "phi_k", 0))) __PYX_ERR(0, 7176, __pyx_L1_error)
38343  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_k), __pyx_ptype_5numpy_ndarray, 1, "dphi_k", 0))) __PYX_ERR(0, 7177, __pyx_L1_error)
38344  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_k), __pyx_ptype_5numpy_ndarray, 1, "f_k", 0))) __PYX_ERR(0, 7178, __pyx_L1_error)
38345  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_k), __pyx_ptype_5numpy_ndarray, 1, "df_k", 0))) __PYX_ERR(0, 7179, __pyx_L1_error)
38346  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_k), __pyx_ptype_5numpy_ndarray, 1, "a_k", 0))) __PYX_ERR(0, 7180, __pyx_L1_error)
38347  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_k_dk), __pyx_ptype_5numpy_ndarray, 1, "da_k_dk", 0))) __PYX_ERR(0, 7181, __pyx_L1_error)
38348  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_k), __pyx_ptype_5numpy_ndarray, 1, "r_k", 0))) __PYX_ERR(0, 7182, __pyx_L1_error)
38349  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_k_dk), __pyx_ptype_5numpy_ndarray, 1, "dr_k_dk", 0))) __PYX_ERR(0, 7183, __pyx_L1_error)
38350  __pyx_r = __pyx_pf_22ctransportCoefficients_188kEpsilon_k_2D_Evaluate_sd(__pyx_self, __pyx_v_sigma_k, __pyx_v_c_mu, __pyx_v_nu, __pyx_v_velocity, __pyx_v_gradu, __pyx_v_gradv, __pyx_v_k, __pyx_v_epsilon, __pyx_v_m_k, __pyx_v_dm_k, __pyx_v_phi_k, __pyx_v_dphi_k, __pyx_v_f_k, __pyx_v_df_k, __pyx_v_a_k, __pyx_v_da_k_dk, __pyx_v_r_k, __pyx_v_dr_k_dk);
38351 
38352  /* function exit code */
38353  goto __pyx_L0;
38354  __pyx_L1_error:;
38355  __pyx_r = NULL;
38356  __pyx_L0:;
38357  __Pyx_RefNannyFinishContext();
38358  return __pyx_r;
38359 }
38360 
38361 static PyObject *__pyx_pf_22ctransportCoefficients_188kEpsilon_k_2D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_sigma_k, double __pyx_v_c_mu, double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_k, PyArrayObject *__pyx_v_dm_k, PyArrayObject *__pyx_v_phi_k, PyArrayObject *__pyx_v_dphi_k, PyArrayObject *__pyx_v_f_k, PyArrayObject *__pyx_v_df_k, PyArrayObject *__pyx_v_a_k, PyArrayObject *__pyx_v_da_k_dk, PyArrayObject *__pyx_v_r_k, PyArrayObject *__pyx_v_dr_k_dk) {
38362  PyObject *__pyx_r = NULL;
38363  __Pyx_RefNannyDeclarations
38364  PyObject *__pyx_t_1 = NULL;
38365  int __pyx_t_2;
38366  int __pyx_lineno = 0;
38367  const char *__pyx_filename = NULL;
38368  int __pyx_clineno = 0;
38369  __Pyx_RefNannySetupContext("kEpsilon_k_2D_Evaluate_sd", 0);
38370 
38371  /* "ctransportCoefficients.pyx":7184
38372  * np.ndarray r_k,
38373  * np.ndarray dr_k_dk):
38374  * ckEpsilon_k_2D_Evaluate_sd(k.size, # <<<<<<<<<<<<<<
38375  * f_k.shape[f_k.ndim-1],
38376  * sigma_k,
38377  */
38378  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_k), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7184, __pyx_L1_error)
38379  __Pyx_GOTREF(__pyx_t_1);
38380  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7184, __pyx_L1_error)
38381  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
38382 
38383  /* "ctransportCoefficients.pyx":7203
38384  * <double*> da_k_dk.data,
38385  * <double*> r_k.data,
38386  * <double*> dr_k_dk.data) # <<<<<<<<<<<<<<
38387  * def kEpsilon_epsilon_2D_Evaluate_sd(double sigma_e,
38388  * double c_1,
38389  */
38390  kEpsilon_k_2D_Evaluate_sd(__pyx_t_2, (__pyx_v_f_k->dimensions[(__pyx_v_f_k->nd - 1)]), __pyx_v_sigma_k, __pyx_v_c_mu, __pyx_v_nu, ((double *)__pyx_v_velocity->data), ((double *)__pyx_v_gradu->data), ((double *)__pyx_v_gradv->data), ((double *)__pyx_v_k->data), ((double *)__pyx_v_epsilon->data), ((double *)__pyx_v_m_k->data), ((double *)__pyx_v_dm_k->data), ((double *)__pyx_v_phi_k->data), ((double *)__pyx_v_dphi_k->data), ((double *)__pyx_v_f_k->data), ((double *)__pyx_v_df_k->data), ((double *)__pyx_v_a_k->data), ((double *)__pyx_v_da_k_dk->data), ((double *)__pyx_v_r_k->data), ((double *)__pyx_v_dr_k_dk->data));
38391 
38392  /* "ctransportCoefficients.pyx":7166
38393  * <double*> dr_e_dk.data,
38394  * <double*> dr_e_de.data)
38395  * def kEpsilon_k_2D_Evaluate_sd(double sigma_k, # <<<<<<<<<<<<<<
38396  * double c_mu,
38397  * double nu,
38398  */
38399 
38400  /* function exit code */
38401  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
38402  goto __pyx_L0;
38403  __pyx_L1_error:;
38404  __Pyx_XDECREF(__pyx_t_1);
38405  __Pyx_AddTraceback("ctransportCoefficients.kEpsilon_k_2D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
38406  __pyx_r = NULL;
38407  __pyx_L0:;
38408  __Pyx_XGIVEREF(__pyx_r);
38409  __Pyx_RefNannyFinishContext();
38410  return __pyx_r;
38411 }
38412 
38413 /* "ctransportCoefficients.pyx":7204
38414  * <double*> r_k.data,
38415  * <double*> dr_k_dk.data)
38416  * def kEpsilon_epsilon_2D_Evaluate_sd(double sigma_e, # <<<<<<<<<<<<<<
38417  * double c_1,
38418  * double c_2,
38419  */
38420 
38421 /* Python wrapper */
38422 static PyObject *__pyx_pw_22ctransportCoefficients_191kEpsilon_epsilon_2D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
38423 static PyMethodDef __pyx_mdef_22ctransportCoefficients_191kEpsilon_epsilon_2D_Evaluate_sd = {"kEpsilon_epsilon_2D_Evaluate_sd", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_191kEpsilon_epsilon_2D_Evaluate_sd, METH_VARARGS|METH_KEYWORDS, 0};
38424 static PyObject *__pyx_pw_22ctransportCoefficients_191kEpsilon_epsilon_2D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
38425  double __pyx_v_sigma_e;
38426  double __pyx_v_c_1;
38427  double __pyx_v_c_2;
38428  double __pyx_v_c_mu;
38429  double __pyx_v_c_e;
38430  double __pyx_v_nu;
38431  PyArrayObject *__pyx_v_velocity = 0;
38432  PyArrayObject *__pyx_v_gradu = 0;
38433  PyArrayObject *__pyx_v_gradv = 0;
38434  PyArrayObject *__pyx_v_k = 0;
38435  PyArrayObject *__pyx_v_epsilon = 0;
38436  PyArrayObject *__pyx_v_m_e = 0;
38437  PyArrayObject *__pyx_v_dm_e = 0;
38438  PyArrayObject *__pyx_v_phi_e = 0;
38439  PyArrayObject *__pyx_v_dphi_e = 0;
38440  PyArrayObject *__pyx_v_f_e = 0;
38441  PyArrayObject *__pyx_v_df_e = 0;
38442  PyArrayObject *__pyx_v_a_e = 0;
38443  PyArrayObject *__pyx_v_da_e_de = 0;
38444  PyArrayObject *__pyx_v_r_e = 0;
38445  PyArrayObject *__pyx_v_dr_e_de = 0;
38446  int __pyx_lineno = 0;
38447  const char *__pyx_filename = NULL;
38448  int __pyx_clineno = 0;
38449  PyObject *__pyx_r = 0;
38450  __Pyx_RefNannyDeclarations
38451  __Pyx_RefNannySetupContext("kEpsilon_epsilon_2D_Evaluate_sd (wrapper)", 0);
38452  {
38453  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_sigma_e,&__pyx_n_s_c_1,&__pyx_n_s_c_2,&__pyx_n_s_c_mu,&__pyx_n_s_c_e,&__pyx_n_s_nu,&__pyx_n_s_velocity,&__pyx_n_s_gradu,&__pyx_n_s_gradv,&__pyx_n_s_k,&__pyx_n_s_epsilon,&__pyx_n_s_m_e,&__pyx_n_s_dm_e,&__pyx_n_s_phi_e,&__pyx_n_s_dphi_e,&__pyx_n_s_f_e,&__pyx_n_s_df_e,&__pyx_n_s_a_e,&__pyx_n_s_da_e_de,&__pyx_n_s_r_e,&__pyx_n_s_dr_e_de,0};
38454  PyObject* values[21] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
38455  if (unlikely(__pyx_kwds)) {
38456  Py_ssize_t kw_args;
38457  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
38458  switch (pos_args) {
38459  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
38460  CYTHON_FALLTHROUGH;
38461  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
38462  CYTHON_FALLTHROUGH;
38463  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
38464  CYTHON_FALLTHROUGH;
38465  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
38466  CYTHON_FALLTHROUGH;
38467  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
38468  CYTHON_FALLTHROUGH;
38469  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
38470  CYTHON_FALLTHROUGH;
38471  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
38472  CYTHON_FALLTHROUGH;
38473  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
38474  CYTHON_FALLTHROUGH;
38475  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
38476  CYTHON_FALLTHROUGH;
38477  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
38478  CYTHON_FALLTHROUGH;
38479  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
38480  CYTHON_FALLTHROUGH;
38481  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
38482  CYTHON_FALLTHROUGH;
38483  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
38484  CYTHON_FALLTHROUGH;
38485  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
38486  CYTHON_FALLTHROUGH;
38487  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
38488  CYTHON_FALLTHROUGH;
38489  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
38490  CYTHON_FALLTHROUGH;
38491  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
38492  CYTHON_FALLTHROUGH;
38493  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
38494  CYTHON_FALLTHROUGH;
38495  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
38496  CYTHON_FALLTHROUGH;
38497  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
38498  CYTHON_FALLTHROUGH;
38499  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
38500  CYTHON_FALLTHROUGH;
38501  case 0: break;
38502  default: goto __pyx_L5_argtuple_error;
38503  }
38504  kw_args = PyDict_Size(__pyx_kwds);
38505  switch (pos_args) {
38506  case 0:
38507  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma_e)) != 0)) kw_args--;
38508  else goto __pyx_L5_argtuple_error;
38509  CYTHON_FALLTHROUGH;
38510  case 1:
38511  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_1)) != 0)) kw_args--;
38512  else {
38513  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 1); __PYX_ERR(0, 7204, __pyx_L3_error)
38514  }
38515  CYTHON_FALLTHROUGH;
38516  case 2:
38517  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_2)) != 0)) kw_args--;
38518  else {
38519  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 2); __PYX_ERR(0, 7204, __pyx_L3_error)
38520  }
38521  CYTHON_FALLTHROUGH;
38522  case 3:
38523  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_mu)) != 0)) kw_args--;
38524  else {
38525  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 3); __PYX_ERR(0, 7204, __pyx_L3_error)
38526  }
38527  CYTHON_FALLTHROUGH;
38528  case 4:
38529  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_e)) != 0)) kw_args--;
38530  else {
38531  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 4); __PYX_ERR(0, 7204, __pyx_L3_error)
38532  }
38533  CYTHON_FALLTHROUGH;
38534  case 5:
38535  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
38536  else {
38537  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 5); __PYX_ERR(0, 7204, __pyx_L3_error)
38538  }
38539  CYTHON_FALLTHROUGH;
38540  case 6:
38541  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
38542  else {
38543  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 6); __PYX_ERR(0, 7204, __pyx_L3_error)
38544  }
38545  CYTHON_FALLTHROUGH;
38546  case 7:
38547  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
38548  else {
38549  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 7); __PYX_ERR(0, 7204, __pyx_L3_error)
38550  }
38551  CYTHON_FALLTHROUGH;
38552  case 8:
38553  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradv)) != 0)) kw_args--;
38554  else {
38555  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 8); __PYX_ERR(0, 7204, __pyx_L3_error)
38556  }
38557  CYTHON_FALLTHROUGH;
38558  case 9:
38559  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_k)) != 0)) kw_args--;
38560  else {
38561  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 9); __PYX_ERR(0, 7204, __pyx_L3_error)
38562  }
38563  CYTHON_FALLTHROUGH;
38564  case 10:
38565  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
38566  else {
38567  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 10); __PYX_ERR(0, 7204, __pyx_L3_error)
38568  }
38569  CYTHON_FALLTHROUGH;
38570  case 11:
38571  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_e)) != 0)) kw_args--;
38572  else {
38573  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 11); __PYX_ERR(0, 7204, __pyx_L3_error)
38574  }
38575  CYTHON_FALLTHROUGH;
38576  case 12:
38577  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_e)) != 0)) kw_args--;
38578  else {
38579  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 12); __PYX_ERR(0, 7204, __pyx_L3_error)
38580  }
38581  CYTHON_FALLTHROUGH;
38582  case 13:
38583  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_e)) != 0)) kw_args--;
38584  else {
38585  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 13); __PYX_ERR(0, 7204, __pyx_L3_error)
38586  }
38587  CYTHON_FALLTHROUGH;
38588  case 14:
38589  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_e)) != 0)) kw_args--;
38590  else {
38591  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 14); __PYX_ERR(0, 7204, __pyx_L3_error)
38592  }
38593  CYTHON_FALLTHROUGH;
38594  case 15:
38595  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_e)) != 0)) kw_args--;
38596  else {
38597  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 15); __PYX_ERR(0, 7204, __pyx_L3_error)
38598  }
38599  CYTHON_FALLTHROUGH;
38600  case 16:
38601  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_e)) != 0)) kw_args--;
38602  else {
38603  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 16); __PYX_ERR(0, 7204, __pyx_L3_error)
38604  }
38605  CYTHON_FALLTHROUGH;
38606  case 17:
38607  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_e)) != 0)) kw_args--;
38608  else {
38609  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 17); __PYX_ERR(0, 7204, __pyx_L3_error)
38610  }
38611  CYTHON_FALLTHROUGH;
38612  case 18:
38613  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_e_de)) != 0)) kw_args--;
38614  else {
38615  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 18); __PYX_ERR(0, 7204, __pyx_L3_error)
38616  }
38617  CYTHON_FALLTHROUGH;
38618  case 19:
38619  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_e)) != 0)) kw_args--;
38620  else {
38621  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 19); __PYX_ERR(0, 7204, __pyx_L3_error)
38622  }
38623  CYTHON_FALLTHROUGH;
38624  case 20:
38625  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_e_de)) != 0)) kw_args--;
38626  else {
38627  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 20); __PYX_ERR(0, 7204, __pyx_L3_error)
38628  }
38629  }
38630  if (unlikely(kw_args > 0)) {
38631  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "kEpsilon_epsilon_2D_Evaluate_sd") < 0)) __PYX_ERR(0, 7204, __pyx_L3_error)
38632  }
38633  } else if (PyTuple_GET_SIZE(__pyx_args) != 21) {
38634  goto __pyx_L5_argtuple_error;
38635  } else {
38636  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
38637  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
38638  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
38639  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
38640  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
38641  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
38642  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
38643  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
38644  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
38645  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
38646  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
38647  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
38648  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
38649  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
38650  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
38651  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
38652  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
38653  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
38654  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
38655  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
38656  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
38657  }
38658  __pyx_v_sigma_e = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_sigma_e == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7204, __pyx_L3_error)
38659  __pyx_v_c_1 = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_c_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7205, __pyx_L3_error)
38660  __pyx_v_c_2 = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_c_2 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7206, __pyx_L3_error)
38661  __pyx_v_c_mu = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_c_mu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7207, __pyx_L3_error)
38662  __pyx_v_c_e = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_c_e == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7208, __pyx_L3_error)
38663  __pyx_v_nu = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_nu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7209, __pyx_L3_error)
38664  __pyx_v_velocity = ((PyArrayObject *)values[6]);
38665  __pyx_v_gradu = ((PyArrayObject *)values[7]);
38666  __pyx_v_gradv = ((PyArrayObject *)values[8]);
38667  __pyx_v_k = ((PyArrayObject *)values[9]);
38668  __pyx_v_epsilon = ((PyArrayObject *)values[10]);
38669  __pyx_v_m_e = ((PyArrayObject *)values[11]);
38670  __pyx_v_dm_e = ((PyArrayObject *)values[12]);
38671  __pyx_v_phi_e = ((PyArrayObject *)values[13]);
38672  __pyx_v_dphi_e = ((PyArrayObject *)values[14]);
38673  __pyx_v_f_e = ((PyArrayObject *)values[15]);
38674  __pyx_v_df_e = ((PyArrayObject *)values[16]);
38675  __pyx_v_a_e = ((PyArrayObject *)values[17]);
38676  __pyx_v_da_e_de = ((PyArrayObject *)values[18]);
38677  __pyx_v_r_e = ((PyArrayObject *)values[19]);
38678  __pyx_v_dr_e_de = ((PyArrayObject *)values[20]);
38679  }
38680  goto __pyx_L4_argument_unpacking_done;
38681  __pyx_L5_argtuple_error:;
38682  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7204, __pyx_L3_error)
38683  __pyx_L3_error:;
38684  __Pyx_AddTraceback("ctransportCoefficients.kEpsilon_epsilon_2D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
38685  __Pyx_RefNannyFinishContext();
38686  return NULL;
38687  __pyx_L4_argument_unpacking_done:;
38688  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1, "velocity", 0))) __PYX_ERR(0, 7210, __pyx_L1_error)
38689  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1, "gradu", 0))) __PYX_ERR(0, 7211, __pyx_L1_error)
38690  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradv), __pyx_ptype_5numpy_ndarray, 1, "gradv", 0))) __PYX_ERR(0, 7212, __pyx_L1_error)
38691  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_k), __pyx_ptype_5numpy_ndarray, 1, "k", 0))) __PYX_ERR(0, 7213, __pyx_L1_error)
38692  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_epsilon), __pyx_ptype_5numpy_ndarray, 1, "epsilon", 0))) __PYX_ERR(0, 7214, __pyx_L1_error)
38693  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_e), __pyx_ptype_5numpy_ndarray, 1, "m_e", 0))) __PYX_ERR(0, 7215, __pyx_L1_error)
38694  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_e), __pyx_ptype_5numpy_ndarray, 1, "dm_e", 0))) __PYX_ERR(0, 7216, __pyx_L1_error)
38695  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_e), __pyx_ptype_5numpy_ndarray, 1, "phi_e", 0))) __PYX_ERR(0, 7217, __pyx_L1_error)
38696  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_e), __pyx_ptype_5numpy_ndarray, 1, "dphi_e", 0))) __PYX_ERR(0, 7218, __pyx_L1_error)
38697  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_e), __pyx_ptype_5numpy_ndarray, 1, "f_e", 0))) __PYX_ERR(0, 7219, __pyx_L1_error)
38698  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_e), __pyx_ptype_5numpy_ndarray, 1, "df_e", 0))) __PYX_ERR(0, 7220, __pyx_L1_error)
38699  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_e), __pyx_ptype_5numpy_ndarray, 1, "a_e", 0))) __PYX_ERR(0, 7221, __pyx_L1_error)
38700  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_e_de), __pyx_ptype_5numpy_ndarray, 1, "da_e_de", 0))) __PYX_ERR(0, 7222, __pyx_L1_error)
38701  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_e), __pyx_ptype_5numpy_ndarray, 1, "r_e", 0))) __PYX_ERR(0, 7223, __pyx_L1_error)
38702  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_e_de), __pyx_ptype_5numpy_ndarray, 1, "dr_e_de", 0))) __PYX_ERR(0, 7224, __pyx_L1_error)
38703  __pyx_r = __pyx_pf_22ctransportCoefficients_190kEpsilon_epsilon_2D_Evaluate_sd(__pyx_self, __pyx_v_sigma_e, __pyx_v_c_1, __pyx_v_c_2, __pyx_v_c_mu, __pyx_v_c_e, __pyx_v_nu, __pyx_v_velocity, __pyx_v_gradu, __pyx_v_gradv, __pyx_v_k, __pyx_v_epsilon, __pyx_v_m_e, __pyx_v_dm_e, __pyx_v_phi_e, __pyx_v_dphi_e, __pyx_v_f_e, __pyx_v_df_e, __pyx_v_a_e, __pyx_v_da_e_de, __pyx_v_r_e, __pyx_v_dr_e_de);
38704 
38705  /* function exit code */
38706  goto __pyx_L0;
38707  __pyx_L1_error:;
38708  __pyx_r = NULL;
38709  __pyx_L0:;
38710  __Pyx_RefNannyFinishContext();
38711  return __pyx_r;
38712 }
38713 
38714 static PyObject *__pyx_pf_22ctransportCoefficients_190kEpsilon_epsilon_2D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_sigma_e, double __pyx_v_c_1, double __pyx_v_c_2, double __pyx_v_c_mu, double __pyx_v_c_e, double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_phi_e, PyArrayObject *__pyx_v_dphi_e, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_da_e_de, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_de) {
38715  PyObject *__pyx_r = NULL;
38716  __Pyx_RefNannyDeclarations
38717  PyObject *__pyx_t_1 = NULL;
38718  int __pyx_t_2;
38719  int __pyx_lineno = 0;
38720  const char *__pyx_filename = NULL;
38721  int __pyx_clineno = 0;
38722  __Pyx_RefNannySetupContext("kEpsilon_epsilon_2D_Evaluate_sd", 0);
38723 
38724  /* "ctransportCoefficients.pyx":7225
38725  * np.ndarray r_e,
38726  * np.ndarray dr_e_de):
38727  * ckEpsilon_epsilon_2D_Evaluate_sd(epsilon.size, # <<<<<<<<<<<<<<
38728  * f_e.shape[f_e.ndim-1],
38729  * sigma_e,
38730  */
38731  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_epsilon), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7225, __pyx_L1_error)
38732  __Pyx_GOTREF(__pyx_t_1);
38733  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7225, __pyx_L1_error)
38734  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
38735 
38736  /* "ctransportCoefficients.pyx":7247
38737  * <double*> da_e_de.data,
38738  * <double*> r_e.data,
38739  * <double*> dr_e_de.data) # <<<<<<<<<<<<<<
38740  * def kEpsilon_k_3D_Evaluate_sd(double sigma_k,
38741  * double c_mu,
38742  */
38743  kEpsilon_epsilon_2D_Evaluate_sd(__pyx_t_2, (__pyx_v_f_e->dimensions[(__pyx_v_f_e->nd - 1)]), __pyx_v_sigma_e, __pyx_v_c_1, __pyx_v_c_2, __pyx_v_c_mu, __pyx_v_c_e, __pyx_v_nu, ((double *)__pyx_v_velocity->data), ((double *)__pyx_v_gradu->data), ((double *)__pyx_v_gradv->data), ((double *)__pyx_v_k->data), ((double *)__pyx_v_epsilon->data), ((double *)__pyx_v_m_e->data), ((double *)__pyx_v_dm_e->data), ((double *)__pyx_v_phi_e->data), ((double *)__pyx_v_dphi_e->data), ((double *)__pyx_v_f_e->data), ((double *)__pyx_v_df_e->data), ((double *)__pyx_v_a_e->data), ((double *)__pyx_v_da_e_de->data), ((double *)__pyx_v_r_e->data), ((double *)__pyx_v_dr_e_de->data));
38744 
38745  /* "ctransportCoefficients.pyx":7204
38746  * <double*> r_k.data,
38747  * <double*> dr_k_dk.data)
38748  * def kEpsilon_epsilon_2D_Evaluate_sd(double sigma_e, # <<<<<<<<<<<<<<
38749  * double c_1,
38750  * double c_2,
38751  */
38752 
38753  /* function exit code */
38754  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
38755  goto __pyx_L0;
38756  __pyx_L1_error:;
38757  __Pyx_XDECREF(__pyx_t_1);
38758  __Pyx_AddTraceback("ctransportCoefficients.kEpsilon_epsilon_2D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
38759  __pyx_r = NULL;
38760  __pyx_L0:;
38761  __Pyx_XGIVEREF(__pyx_r);
38762  __Pyx_RefNannyFinishContext();
38763  return __pyx_r;
38764 }
38765 
38766 /* "ctransportCoefficients.pyx":7248
38767  * <double*> r_e.data,
38768  * <double*> dr_e_de.data)
38769  * def kEpsilon_k_3D_Evaluate_sd(double sigma_k, # <<<<<<<<<<<<<<
38770  * double c_mu,
38771  * double nu,
38772  */
38773 
38774 /* Python wrapper */
38775 static PyObject *__pyx_pw_22ctransportCoefficients_193kEpsilon_k_3D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
38776 static PyMethodDef __pyx_mdef_22ctransportCoefficients_193kEpsilon_k_3D_Evaluate_sd = {"kEpsilon_k_3D_Evaluate_sd", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_193kEpsilon_k_3D_Evaluate_sd, METH_VARARGS|METH_KEYWORDS, 0};
38777 static PyObject *__pyx_pw_22ctransportCoefficients_193kEpsilon_k_3D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
38778  double __pyx_v_sigma_k;
38779  double __pyx_v_c_mu;
38780  double __pyx_v_nu;
38781  PyArrayObject *__pyx_v_velocity = 0;
38782  PyArrayObject *__pyx_v_gradu = 0;
38783  PyArrayObject *__pyx_v_gradv = 0;
38784  PyArrayObject *__pyx_v_gradw = 0;
38785  PyArrayObject *__pyx_v_k = 0;
38786  PyArrayObject *__pyx_v_epsilon = 0;
38787  PyArrayObject *__pyx_v_m_k = 0;
38788  PyArrayObject *__pyx_v_dm_k = 0;
38789  PyArrayObject *__pyx_v_phi_k = 0;
38790  PyArrayObject *__pyx_v_dphi_k = 0;
38791  PyArrayObject *__pyx_v_f_k = 0;
38792  PyArrayObject *__pyx_v_df_k = 0;
38793  PyArrayObject *__pyx_v_a_k = 0;
38794  PyArrayObject *__pyx_v_da_k_dk = 0;
38795  PyArrayObject *__pyx_v_r_k = 0;
38796  PyArrayObject *__pyx_v_dr_k_dk = 0;
38797  int __pyx_lineno = 0;
38798  const char *__pyx_filename = NULL;
38799  int __pyx_clineno = 0;
38800  PyObject *__pyx_r = 0;
38801  __Pyx_RefNannyDeclarations
38802  __Pyx_RefNannySetupContext("kEpsilon_k_3D_Evaluate_sd (wrapper)", 0);
38803  {
38804  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_sigma_k,&__pyx_n_s_c_mu,&__pyx_n_s_nu,&__pyx_n_s_velocity,&__pyx_n_s_gradu,&__pyx_n_s_gradv,&__pyx_n_s_gradw,&__pyx_n_s_k,&__pyx_n_s_epsilon,&__pyx_n_s_m_k,&__pyx_n_s_dm_k,&__pyx_n_s_phi_k,&__pyx_n_s_dphi_k,&__pyx_n_s_f_k,&__pyx_n_s_df_k,&__pyx_n_s_a_k,&__pyx_n_s_da_k_dk,&__pyx_n_s_r_k,&__pyx_n_s_dr_k_dk,0};
38805  PyObject* values[19] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
38806  if (unlikely(__pyx_kwds)) {
38807  Py_ssize_t kw_args;
38808  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
38809  switch (pos_args) {
38810  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
38811  CYTHON_FALLTHROUGH;
38812  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
38813  CYTHON_FALLTHROUGH;
38814  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
38815  CYTHON_FALLTHROUGH;
38816  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
38817  CYTHON_FALLTHROUGH;
38818  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
38819  CYTHON_FALLTHROUGH;
38820  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
38821  CYTHON_FALLTHROUGH;
38822  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
38823  CYTHON_FALLTHROUGH;
38824  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
38825  CYTHON_FALLTHROUGH;
38826  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
38827  CYTHON_FALLTHROUGH;
38828  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
38829  CYTHON_FALLTHROUGH;
38830  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
38831  CYTHON_FALLTHROUGH;
38832  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
38833  CYTHON_FALLTHROUGH;
38834  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
38835  CYTHON_FALLTHROUGH;
38836  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
38837  CYTHON_FALLTHROUGH;
38838  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
38839  CYTHON_FALLTHROUGH;
38840  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
38841  CYTHON_FALLTHROUGH;
38842  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
38843  CYTHON_FALLTHROUGH;
38844  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
38845  CYTHON_FALLTHROUGH;
38846  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
38847  CYTHON_FALLTHROUGH;
38848  case 0: break;
38849  default: goto __pyx_L5_argtuple_error;
38850  }
38851  kw_args = PyDict_Size(__pyx_kwds);
38852  switch (pos_args) {
38853  case 0:
38854  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma_k)) != 0)) kw_args--;
38855  else goto __pyx_L5_argtuple_error;
38856  CYTHON_FALLTHROUGH;
38857  case 1:
38858  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_mu)) != 0)) kw_args--;
38859  else {
38860  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 1); __PYX_ERR(0, 7248, __pyx_L3_error)
38861  }
38862  CYTHON_FALLTHROUGH;
38863  case 2:
38864  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
38865  else {
38866  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 2); __PYX_ERR(0, 7248, __pyx_L3_error)
38867  }
38868  CYTHON_FALLTHROUGH;
38869  case 3:
38870  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
38871  else {
38872  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 3); __PYX_ERR(0, 7248, __pyx_L3_error)
38873  }
38874  CYTHON_FALLTHROUGH;
38875  case 4:
38876  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
38877  else {
38878  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 4); __PYX_ERR(0, 7248, __pyx_L3_error)
38879  }
38880  CYTHON_FALLTHROUGH;
38881  case 5:
38882  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradv)) != 0)) kw_args--;
38883  else {
38884  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 5); __PYX_ERR(0, 7248, __pyx_L3_error)
38885  }
38886  CYTHON_FALLTHROUGH;
38887  case 6:
38888  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradw)) != 0)) kw_args--;
38889  else {
38890  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 6); __PYX_ERR(0, 7248, __pyx_L3_error)
38891  }
38892  CYTHON_FALLTHROUGH;
38893  case 7:
38894  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_k)) != 0)) kw_args--;
38895  else {
38896  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 7); __PYX_ERR(0, 7248, __pyx_L3_error)
38897  }
38898  CYTHON_FALLTHROUGH;
38899  case 8:
38900  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
38901  else {
38902  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 8); __PYX_ERR(0, 7248, __pyx_L3_error)
38903  }
38904  CYTHON_FALLTHROUGH;
38905  case 9:
38906  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_k)) != 0)) kw_args--;
38907  else {
38908  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 9); __PYX_ERR(0, 7248, __pyx_L3_error)
38909  }
38910  CYTHON_FALLTHROUGH;
38911  case 10:
38912  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_k)) != 0)) kw_args--;
38913  else {
38914  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 10); __PYX_ERR(0, 7248, __pyx_L3_error)
38915  }
38916  CYTHON_FALLTHROUGH;
38917  case 11:
38918  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_k)) != 0)) kw_args--;
38919  else {
38920  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 11); __PYX_ERR(0, 7248, __pyx_L3_error)
38921  }
38922  CYTHON_FALLTHROUGH;
38923  case 12:
38924  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_k)) != 0)) kw_args--;
38925  else {
38926  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 12); __PYX_ERR(0, 7248, __pyx_L3_error)
38927  }
38928  CYTHON_FALLTHROUGH;
38929  case 13:
38930  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_k)) != 0)) kw_args--;
38931  else {
38932  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 13); __PYX_ERR(0, 7248, __pyx_L3_error)
38933  }
38934  CYTHON_FALLTHROUGH;
38935  case 14:
38936  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_k)) != 0)) kw_args--;
38937  else {
38938  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 14); __PYX_ERR(0, 7248, __pyx_L3_error)
38939  }
38940  CYTHON_FALLTHROUGH;
38941  case 15:
38942  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_k)) != 0)) kw_args--;
38943  else {
38944  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 15); __PYX_ERR(0, 7248, __pyx_L3_error)
38945  }
38946  CYTHON_FALLTHROUGH;
38947  case 16:
38948  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_k_dk)) != 0)) kw_args--;
38949  else {
38950  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 16); __PYX_ERR(0, 7248, __pyx_L3_error)
38951  }
38952  CYTHON_FALLTHROUGH;
38953  case 17:
38954  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_k)) != 0)) kw_args--;
38955  else {
38956  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 17); __PYX_ERR(0, 7248, __pyx_L3_error)
38957  }
38958  CYTHON_FALLTHROUGH;
38959  case 18:
38960  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_k_dk)) != 0)) kw_args--;
38961  else {
38962  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 18); __PYX_ERR(0, 7248, __pyx_L3_error)
38963  }
38964  }
38965  if (unlikely(kw_args > 0)) {
38966  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "kEpsilon_k_3D_Evaluate_sd") < 0)) __PYX_ERR(0, 7248, __pyx_L3_error)
38967  }
38968  } else if (PyTuple_GET_SIZE(__pyx_args) != 19) {
38969  goto __pyx_L5_argtuple_error;
38970  } else {
38971  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
38972  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
38973  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
38974  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
38975  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
38976  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
38977  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
38978  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
38979  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
38980  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
38981  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
38982  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
38983  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
38984  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
38985  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
38986  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
38987  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
38988  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
38989  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
38990  }
38991  __pyx_v_sigma_k = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_sigma_k == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7248, __pyx_L3_error)
38992  __pyx_v_c_mu = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_c_mu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7249, __pyx_L3_error)
38993  __pyx_v_nu = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_nu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7250, __pyx_L3_error)
38994  __pyx_v_velocity = ((PyArrayObject *)values[3]);
38995  __pyx_v_gradu = ((PyArrayObject *)values[4]);
38996  __pyx_v_gradv = ((PyArrayObject *)values[5]);
38997  __pyx_v_gradw = ((PyArrayObject *)values[6]);
38998  __pyx_v_k = ((PyArrayObject *)values[7]);
38999  __pyx_v_epsilon = ((PyArrayObject *)values[8]);
39000  __pyx_v_m_k = ((PyArrayObject *)values[9]);
39001  __pyx_v_dm_k = ((PyArrayObject *)values[10]);
39002  __pyx_v_phi_k = ((PyArrayObject *)values[11]);
39003  __pyx_v_dphi_k = ((PyArrayObject *)values[12]);
39004  __pyx_v_f_k = ((PyArrayObject *)values[13]);
39005  __pyx_v_df_k = ((PyArrayObject *)values[14]);
39006  __pyx_v_a_k = ((PyArrayObject *)values[15]);
39007  __pyx_v_da_k_dk = ((PyArrayObject *)values[16]);
39008  __pyx_v_r_k = ((PyArrayObject *)values[17]);
39009  __pyx_v_dr_k_dk = ((PyArrayObject *)values[18]);
39010  }
39011  goto __pyx_L4_argument_unpacking_done;
39012  __pyx_L5_argtuple_error:;
39013  __Pyx_RaiseArgtupleInvalid("kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7248, __pyx_L3_error)
39014  __pyx_L3_error:;
39015  __Pyx_AddTraceback("ctransportCoefficients.kEpsilon_k_3D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
39016  __Pyx_RefNannyFinishContext();
39017  return NULL;
39018  __pyx_L4_argument_unpacking_done:;
39019  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1, "velocity", 0))) __PYX_ERR(0, 7251, __pyx_L1_error)
39020  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1, "gradu", 0))) __PYX_ERR(0, 7252, __pyx_L1_error)
39021  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradv), __pyx_ptype_5numpy_ndarray, 1, "gradv", 0))) __PYX_ERR(0, 7253, __pyx_L1_error)
39022  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradw), __pyx_ptype_5numpy_ndarray, 1, "gradw", 0))) __PYX_ERR(0, 7254, __pyx_L1_error)
39023  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_k), __pyx_ptype_5numpy_ndarray, 1, "k", 0))) __PYX_ERR(0, 7255, __pyx_L1_error)
39024  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_epsilon), __pyx_ptype_5numpy_ndarray, 1, "epsilon", 0))) __PYX_ERR(0, 7256, __pyx_L1_error)
39025  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_k), __pyx_ptype_5numpy_ndarray, 1, "m_k", 0))) __PYX_ERR(0, 7257, __pyx_L1_error)
39026  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_k), __pyx_ptype_5numpy_ndarray, 1, "dm_k", 0))) __PYX_ERR(0, 7258, __pyx_L1_error)
39027  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_k), __pyx_ptype_5numpy_ndarray, 1, "phi_k", 0))) __PYX_ERR(0, 7259, __pyx_L1_error)
39028  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_k), __pyx_ptype_5numpy_ndarray, 1, "dphi_k", 0))) __PYX_ERR(0, 7260, __pyx_L1_error)
39029  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_k), __pyx_ptype_5numpy_ndarray, 1, "f_k", 0))) __PYX_ERR(0, 7261, __pyx_L1_error)
39030  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_k), __pyx_ptype_5numpy_ndarray, 1, "df_k", 0))) __PYX_ERR(0, 7262, __pyx_L1_error)
39031  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_k), __pyx_ptype_5numpy_ndarray, 1, "a_k", 0))) __PYX_ERR(0, 7263, __pyx_L1_error)
39032  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_k_dk), __pyx_ptype_5numpy_ndarray, 1, "da_k_dk", 0))) __PYX_ERR(0, 7264, __pyx_L1_error)
39033  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_k), __pyx_ptype_5numpy_ndarray, 1, "r_k", 0))) __PYX_ERR(0, 7265, __pyx_L1_error)
39034  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_k_dk), __pyx_ptype_5numpy_ndarray, 1, "dr_k_dk", 0))) __PYX_ERR(0, 7266, __pyx_L1_error)
39035  __pyx_r = __pyx_pf_22ctransportCoefficients_192kEpsilon_k_3D_Evaluate_sd(__pyx_self, __pyx_v_sigma_k, __pyx_v_c_mu, __pyx_v_nu, __pyx_v_velocity, __pyx_v_gradu, __pyx_v_gradv, __pyx_v_gradw, __pyx_v_k, __pyx_v_epsilon, __pyx_v_m_k, __pyx_v_dm_k, __pyx_v_phi_k, __pyx_v_dphi_k, __pyx_v_f_k, __pyx_v_df_k, __pyx_v_a_k, __pyx_v_da_k_dk, __pyx_v_r_k, __pyx_v_dr_k_dk);
39036 
39037  /* function exit code */
39038  goto __pyx_L0;
39039  __pyx_L1_error:;
39040  __pyx_r = NULL;
39041  __pyx_L0:;
39042  __Pyx_RefNannyFinishContext();
39043  return __pyx_r;
39044 }
39045 
39046 static PyObject *__pyx_pf_22ctransportCoefficients_192kEpsilon_k_3D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_sigma_k, double __pyx_v_c_mu, double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_gradw, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_k, PyArrayObject *__pyx_v_dm_k, PyArrayObject *__pyx_v_phi_k, PyArrayObject *__pyx_v_dphi_k, PyArrayObject *__pyx_v_f_k, PyArrayObject *__pyx_v_df_k, PyArrayObject *__pyx_v_a_k, PyArrayObject *__pyx_v_da_k_dk, PyArrayObject *__pyx_v_r_k, PyArrayObject *__pyx_v_dr_k_dk) {
39047  PyObject *__pyx_r = NULL;
39048  __Pyx_RefNannyDeclarations
39049  PyObject *__pyx_t_1 = NULL;
39050  int __pyx_t_2;
39051  int __pyx_lineno = 0;
39052  const char *__pyx_filename = NULL;
39053  int __pyx_clineno = 0;
39054  __Pyx_RefNannySetupContext("kEpsilon_k_3D_Evaluate_sd", 0);
39055 
39056  /* "ctransportCoefficients.pyx":7267
39057  * np.ndarray r_k,
39058  * np.ndarray dr_k_dk):
39059  * ckEpsilon_k_3D_Evaluate_sd(k.size, # <<<<<<<<<<<<<<
39060  * f_k.shape[f_k.ndim-1],
39061  * sigma_k,
39062  */
39063  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_k), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7267, __pyx_L1_error)
39064  __Pyx_GOTREF(__pyx_t_1);
39065  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7267, __pyx_L1_error)
39066  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
39067 
39068  /* "ctransportCoefficients.pyx":7287
39069  * <double*> da_k_dk.data,
39070  * <double*> r_k.data,
39071  * <double*> dr_k_dk.data) # <<<<<<<<<<<<<<
39072  * def kEpsilon_epsilon_3D_Evaluate_sd(double sigma_e,
39073  * double c_1,
39074  */
39075  kEpsilon_k_3D_Evaluate_sd(__pyx_t_2, (__pyx_v_f_k->dimensions[(__pyx_v_f_k->nd - 1)]), __pyx_v_sigma_k, __pyx_v_c_mu, __pyx_v_nu, ((double *)__pyx_v_velocity->data), ((double *)__pyx_v_gradu->data), ((double *)__pyx_v_gradv->data), ((double *)__pyx_v_gradw->data), ((double *)__pyx_v_k->data), ((double *)__pyx_v_epsilon->data), ((double *)__pyx_v_m_k->data), ((double *)__pyx_v_dm_k->data), ((double *)__pyx_v_phi_k->data), ((double *)__pyx_v_dphi_k->data), ((double *)__pyx_v_f_k->data), ((double *)__pyx_v_df_k->data), ((double *)__pyx_v_a_k->data), ((double *)__pyx_v_da_k_dk->data), ((double *)__pyx_v_r_k->data), ((double *)__pyx_v_dr_k_dk->data));
39076 
39077  /* "ctransportCoefficients.pyx":7248
39078  * <double*> r_e.data,
39079  * <double*> dr_e_de.data)
39080  * def kEpsilon_k_3D_Evaluate_sd(double sigma_k, # <<<<<<<<<<<<<<
39081  * double c_mu,
39082  * double nu,
39083  */
39084 
39085  /* function exit code */
39086  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
39087  goto __pyx_L0;
39088  __pyx_L1_error:;
39089  __Pyx_XDECREF(__pyx_t_1);
39090  __Pyx_AddTraceback("ctransportCoefficients.kEpsilon_k_3D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
39091  __pyx_r = NULL;
39092  __pyx_L0:;
39093  __Pyx_XGIVEREF(__pyx_r);
39094  __Pyx_RefNannyFinishContext();
39095  return __pyx_r;
39096 }
39097 
39098 /* "ctransportCoefficients.pyx":7288
39099  * <double*> r_k.data,
39100  * <double*> dr_k_dk.data)
39101  * def kEpsilon_epsilon_3D_Evaluate_sd(double sigma_e, # <<<<<<<<<<<<<<
39102  * double c_1,
39103  * double c_2,
39104  */
39105 
39106 /* Python wrapper */
39107 static PyObject *__pyx_pw_22ctransportCoefficients_195kEpsilon_epsilon_3D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
39108 static PyMethodDef __pyx_mdef_22ctransportCoefficients_195kEpsilon_epsilon_3D_Evaluate_sd = {"kEpsilon_epsilon_3D_Evaluate_sd", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_195kEpsilon_epsilon_3D_Evaluate_sd, METH_VARARGS|METH_KEYWORDS, 0};
39109 static PyObject *__pyx_pw_22ctransportCoefficients_195kEpsilon_epsilon_3D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
39110  double __pyx_v_sigma_e;
39111  double __pyx_v_c_1;
39112  double __pyx_v_c_2;
39113  double __pyx_v_c_mu;
39114  double __pyx_v_c_e;
39115  double __pyx_v_nu;
39116  PyArrayObject *__pyx_v_velocity = 0;
39117  PyArrayObject *__pyx_v_gradu = 0;
39118  PyArrayObject *__pyx_v_gradv = 0;
39119  PyArrayObject *__pyx_v_gradw = 0;
39120  PyArrayObject *__pyx_v_k = 0;
39121  PyArrayObject *__pyx_v_epsilon = 0;
39122  PyArrayObject *__pyx_v_m_e = 0;
39123  PyArrayObject *__pyx_v_dm_e = 0;
39124  PyArrayObject *__pyx_v_phi_e = 0;
39125  PyArrayObject *__pyx_v_dphi_e = 0;
39126  PyArrayObject *__pyx_v_f_e = 0;
39127  PyArrayObject *__pyx_v_df_e = 0;
39128  PyArrayObject *__pyx_v_a_e = 0;
39129  PyArrayObject *__pyx_v_da_e_de = 0;
39130  PyArrayObject *__pyx_v_r_e = 0;
39131  PyArrayObject *__pyx_v_dr_e_de = 0;
39132  int __pyx_lineno = 0;
39133  const char *__pyx_filename = NULL;
39134  int __pyx_clineno = 0;
39135  PyObject *__pyx_r = 0;
39136  __Pyx_RefNannyDeclarations
39137  __Pyx_RefNannySetupContext("kEpsilon_epsilon_3D_Evaluate_sd (wrapper)", 0);
39138  {
39139  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_sigma_e,&__pyx_n_s_c_1,&__pyx_n_s_c_2,&__pyx_n_s_c_mu,&__pyx_n_s_c_e,&__pyx_n_s_nu,&__pyx_n_s_velocity,&__pyx_n_s_gradu,&__pyx_n_s_gradv,&__pyx_n_s_gradw,&__pyx_n_s_k,&__pyx_n_s_epsilon,&__pyx_n_s_m_e,&__pyx_n_s_dm_e,&__pyx_n_s_phi_e,&__pyx_n_s_dphi_e,&__pyx_n_s_f_e,&__pyx_n_s_df_e,&__pyx_n_s_a_e,&__pyx_n_s_da_e_de,&__pyx_n_s_r_e,&__pyx_n_s_dr_e_de,0};
39140  PyObject* values[22] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
39141  if (unlikely(__pyx_kwds)) {
39142  Py_ssize_t kw_args;
39143  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
39144  switch (pos_args) {
39145  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
39146  CYTHON_FALLTHROUGH;
39147  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
39148  CYTHON_FALLTHROUGH;
39149  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
39150  CYTHON_FALLTHROUGH;
39151  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
39152  CYTHON_FALLTHROUGH;
39153  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
39154  CYTHON_FALLTHROUGH;
39155  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
39156  CYTHON_FALLTHROUGH;
39157  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
39158  CYTHON_FALLTHROUGH;
39159  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
39160  CYTHON_FALLTHROUGH;
39161  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
39162  CYTHON_FALLTHROUGH;
39163  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
39164  CYTHON_FALLTHROUGH;
39165  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
39166  CYTHON_FALLTHROUGH;
39167  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
39168  CYTHON_FALLTHROUGH;
39169  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
39170  CYTHON_FALLTHROUGH;
39171  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
39172  CYTHON_FALLTHROUGH;
39173  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
39174  CYTHON_FALLTHROUGH;
39175  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
39176  CYTHON_FALLTHROUGH;
39177  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
39178  CYTHON_FALLTHROUGH;
39179  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
39180  CYTHON_FALLTHROUGH;
39181  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
39182  CYTHON_FALLTHROUGH;
39183  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
39184  CYTHON_FALLTHROUGH;
39185  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
39186  CYTHON_FALLTHROUGH;
39187  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
39188  CYTHON_FALLTHROUGH;
39189  case 0: break;
39190  default: goto __pyx_L5_argtuple_error;
39191  }
39192  kw_args = PyDict_Size(__pyx_kwds);
39193  switch (pos_args) {
39194  case 0:
39195  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma_e)) != 0)) kw_args--;
39196  else goto __pyx_L5_argtuple_error;
39197  CYTHON_FALLTHROUGH;
39198  case 1:
39199  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_1)) != 0)) kw_args--;
39200  else {
39201  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 1); __PYX_ERR(0, 7288, __pyx_L3_error)
39202  }
39203  CYTHON_FALLTHROUGH;
39204  case 2:
39205  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_2)) != 0)) kw_args--;
39206  else {
39207  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 2); __PYX_ERR(0, 7288, __pyx_L3_error)
39208  }
39209  CYTHON_FALLTHROUGH;
39210  case 3:
39211  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_mu)) != 0)) kw_args--;
39212  else {
39213  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 3); __PYX_ERR(0, 7288, __pyx_L3_error)
39214  }
39215  CYTHON_FALLTHROUGH;
39216  case 4:
39217  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_e)) != 0)) kw_args--;
39218  else {
39219  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 4); __PYX_ERR(0, 7288, __pyx_L3_error)
39220  }
39221  CYTHON_FALLTHROUGH;
39222  case 5:
39223  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
39224  else {
39225  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 5); __PYX_ERR(0, 7288, __pyx_L3_error)
39226  }
39227  CYTHON_FALLTHROUGH;
39228  case 6:
39229  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
39230  else {
39231  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 6); __PYX_ERR(0, 7288, __pyx_L3_error)
39232  }
39233  CYTHON_FALLTHROUGH;
39234  case 7:
39235  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
39236  else {
39237  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 7); __PYX_ERR(0, 7288, __pyx_L3_error)
39238  }
39239  CYTHON_FALLTHROUGH;
39240  case 8:
39241  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradv)) != 0)) kw_args--;
39242  else {
39243  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 8); __PYX_ERR(0, 7288, __pyx_L3_error)
39244  }
39245  CYTHON_FALLTHROUGH;
39246  case 9:
39247  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradw)) != 0)) kw_args--;
39248  else {
39249  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 9); __PYX_ERR(0, 7288, __pyx_L3_error)
39250  }
39251  CYTHON_FALLTHROUGH;
39252  case 10:
39253  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_k)) != 0)) kw_args--;
39254  else {
39255  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 10); __PYX_ERR(0, 7288, __pyx_L3_error)
39256  }
39257  CYTHON_FALLTHROUGH;
39258  case 11:
39259  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
39260  else {
39261  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 11); __PYX_ERR(0, 7288, __pyx_L3_error)
39262  }
39263  CYTHON_FALLTHROUGH;
39264  case 12:
39265  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_e)) != 0)) kw_args--;
39266  else {
39267  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 12); __PYX_ERR(0, 7288, __pyx_L3_error)
39268  }
39269  CYTHON_FALLTHROUGH;
39270  case 13:
39271  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_e)) != 0)) kw_args--;
39272  else {
39273  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 13); __PYX_ERR(0, 7288, __pyx_L3_error)
39274  }
39275  CYTHON_FALLTHROUGH;
39276  case 14:
39277  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_e)) != 0)) kw_args--;
39278  else {
39279  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 14); __PYX_ERR(0, 7288, __pyx_L3_error)
39280  }
39281  CYTHON_FALLTHROUGH;
39282  case 15:
39283  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_e)) != 0)) kw_args--;
39284  else {
39285  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 15); __PYX_ERR(0, 7288, __pyx_L3_error)
39286  }
39287  CYTHON_FALLTHROUGH;
39288  case 16:
39289  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_e)) != 0)) kw_args--;
39290  else {
39291  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 16); __PYX_ERR(0, 7288, __pyx_L3_error)
39292  }
39293  CYTHON_FALLTHROUGH;
39294  case 17:
39295  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_e)) != 0)) kw_args--;
39296  else {
39297  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 17); __PYX_ERR(0, 7288, __pyx_L3_error)
39298  }
39299  CYTHON_FALLTHROUGH;
39300  case 18:
39301  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_e)) != 0)) kw_args--;
39302  else {
39303  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 18); __PYX_ERR(0, 7288, __pyx_L3_error)
39304  }
39305  CYTHON_FALLTHROUGH;
39306  case 19:
39307  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_e_de)) != 0)) kw_args--;
39308  else {
39309  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 19); __PYX_ERR(0, 7288, __pyx_L3_error)
39310  }
39311  CYTHON_FALLTHROUGH;
39312  case 20:
39313  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_e)) != 0)) kw_args--;
39314  else {
39315  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 20); __PYX_ERR(0, 7288, __pyx_L3_error)
39316  }
39317  CYTHON_FALLTHROUGH;
39318  case 21:
39319  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_e_de)) != 0)) kw_args--;
39320  else {
39321  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 21); __PYX_ERR(0, 7288, __pyx_L3_error)
39322  }
39323  }
39324  if (unlikely(kw_args > 0)) {
39325  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "kEpsilon_epsilon_3D_Evaluate_sd") < 0)) __PYX_ERR(0, 7288, __pyx_L3_error)
39326  }
39327  } else if (PyTuple_GET_SIZE(__pyx_args) != 22) {
39328  goto __pyx_L5_argtuple_error;
39329  } else {
39330  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
39331  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
39332  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
39333  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
39334  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
39335  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
39336  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
39337  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
39338  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
39339  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
39340  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
39341  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
39342  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
39343  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
39344  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
39345  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
39346  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
39347  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
39348  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
39349  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
39350  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
39351  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
39352  }
39353  __pyx_v_sigma_e = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_sigma_e == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7288, __pyx_L3_error)
39354  __pyx_v_c_1 = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_c_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7289, __pyx_L3_error)
39355  __pyx_v_c_2 = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_c_2 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7290, __pyx_L3_error)
39356  __pyx_v_c_mu = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_c_mu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7291, __pyx_L3_error)
39357  __pyx_v_c_e = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_c_e == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7292, __pyx_L3_error)
39358  __pyx_v_nu = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_nu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7293, __pyx_L3_error)
39359  __pyx_v_velocity = ((PyArrayObject *)values[6]);
39360  __pyx_v_gradu = ((PyArrayObject *)values[7]);
39361  __pyx_v_gradv = ((PyArrayObject *)values[8]);
39362  __pyx_v_gradw = ((PyArrayObject *)values[9]);
39363  __pyx_v_k = ((PyArrayObject *)values[10]);
39364  __pyx_v_epsilon = ((PyArrayObject *)values[11]);
39365  __pyx_v_m_e = ((PyArrayObject *)values[12]);
39366  __pyx_v_dm_e = ((PyArrayObject *)values[13]);
39367  __pyx_v_phi_e = ((PyArrayObject *)values[14]);
39368  __pyx_v_dphi_e = ((PyArrayObject *)values[15]);
39369  __pyx_v_f_e = ((PyArrayObject *)values[16]);
39370  __pyx_v_df_e = ((PyArrayObject *)values[17]);
39371  __pyx_v_a_e = ((PyArrayObject *)values[18]);
39372  __pyx_v_da_e_de = ((PyArrayObject *)values[19]);
39373  __pyx_v_r_e = ((PyArrayObject *)values[20]);
39374  __pyx_v_dr_e_de = ((PyArrayObject *)values[21]);
39375  }
39376  goto __pyx_L4_argument_unpacking_done;
39377  __pyx_L5_argtuple_error:;
39378  __Pyx_RaiseArgtupleInvalid("kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7288, __pyx_L3_error)
39379  __pyx_L3_error:;
39380  __Pyx_AddTraceback("ctransportCoefficients.kEpsilon_epsilon_3D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
39381  __Pyx_RefNannyFinishContext();
39382  return NULL;
39383  __pyx_L4_argument_unpacking_done:;
39384  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1, "velocity", 0))) __PYX_ERR(0, 7294, __pyx_L1_error)
39385  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1, "gradu", 0))) __PYX_ERR(0, 7295, __pyx_L1_error)
39386  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradv), __pyx_ptype_5numpy_ndarray, 1, "gradv", 0))) __PYX_ERR(0, 7296, __pyx_L1_error)
39387  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradw), __pyx_ptype_5numpy_ndarray, 1, "gradw", 0))) __PYX_ERR(0, 7297, __pyx_L1_error)
39388  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_k), __pyx_ptype_5numpy_ndarray, 1, "k", 0))) __PYX_ERR(0, 7298, __pyx_L1_error)
39389  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_epsilon), __pyx_ptype_5numpy_ndarray, 1, "epsilon", 0))) __PYX_ERR(0, 7299, __pyx_L1_error)
39390  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_e), __pyx_ptype_5numpy_ndarray, 1, "m_e", 0))) __PYX_ERR(0, 7300, __pyx_L1_error)
39391  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_e), __pyx_ptype_5numpy_ndarray, 1, "dm_e", 0))) __PYX_ERR(0, 7301, __pyx_L1_error)
39392  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_e), __pyx_ptype_5numpy_ndarray, 1, "phi_e", 0))) __PYX_ERR(0, 7302, __pyx_L1_error)
39393  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_e), __pyx_ptype_5numpy_ndarray, 1, "dphi_e", 0))) __PYX_ERR(0, 7303, __pyx_L1_error)
39394  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_e), __pyx_ptype_5numpy_ndarray, 1, "f_e", 0))) __PYX_ERR(0, 7304, __pyx_L1_error)
39395  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_e), __pyx_ptype_5numpy_ndarray, 1, "df_e", 0))) __PYX_ERR(0, 7305, __pyx_L1_error)
39396  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_e), __pyx_ptype_5numpy_ndarray, 1, "a_e", 0))) __PYX_ERR(0, 7306, __pyx_L1_error)
39397  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_e_de), __pyx_ptype_5numpy_ndarray, 1, "da_e_de", 0))) __PYX_ERR(0, 7307, __pyx_L1_error)
39398  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_e), __pyx_ptype_5numpy_ndarray, 1, "r_e", 0))) __PYX_ERR(0, 7308, __pyx_L1_error)
39399  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_e_de), __pyx_ptype_5numpy_ndarray, 1, "dr_e_de", 0))) __PYX_ERR(0, 7309, __pyx_L1_error)
39400  __pyx_r = __pyx_pf_22ctransportCoefficients_194kEpsilon_epsilon_3D_Evaluate_sd(__pyx_self, __pyx_v_sigma_e, __pyx_v_c_1, __pyx_v_c_2, __pyx_v_c_mu, __pyx_v_c_e, __pyx_v_nu, __pyx_v_velocity, __pyx_v_gradu, __pyx_v_gradv, __pyx_v_gradw, __pyx_v_k, __pyx_v_epsilon, __pyx_v_m_e, __pyx_v_dm_e, __pyx_v_phi_e, __pyx_v_dphi_e, __pyx_v_f_e, __pyx_v_df_e, __pyx_v_a_e, __pyx_v_da_e_de, __pyx_v_r_e, __pyx_v_dr_e_de);
39401 
39402  /* function exit code */
39403  goto __pyx_L0;
39404  __pyx_L1_error:;
39405  __pyx_r = NULL;
39406  __pyx_L0:;
39407  __Pyx_RefNannyFinishContext();
39408  return __pyx_r;
39409 }
39410 
39411 static PyObject *__pyx_pf_22ctransportCoefficients_194kEpsilon_epsilon_3D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_sigma_e, double __pyx_v_c_1, double __pyx_v_c_2, double __pyx_v_c_mu, double __pyx_v_c_e, double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_gradw, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_phi_e, PyArrayObject *__pyx_v_dphi_e, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_da_e_de, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_de) {
39412  PyObject *__pyx_r = NULL;
39413  __Pyx_RefNannyDeclarations
39414  PyObject *__pyx_t_1 = NULL;
39415  int __pyx_t_2;
39416  int __pyx_lineno = 0;
39417  const char *__pyx_filename = NULL;
39418  int __pyx_clineno = 0;
39419  __Pyx_RefNannySetupContext("kEpsilon_epsilon_3D_Evaluate_sd", 0);
39420 
39421  /* "ctransportCoefficients.pyx":7310
39422  * np.ndarray r_e,
39423  * np.ndarray dr_e_de):
39424  * ckEpsilon_epsilon_3D_Evaluate_sd(epsilon.size, # <<<<<<<<<<<<<<
39425  * f_e.shape[f_e.ndim-1],
39426  * sigma_e,
39427  */
39428  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_epsilon), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7310, __pyx_L1_error)
39429  __Pyx_GOTREF(__pyx_t_1);
39430  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7310, __pyx_L1_error)
39431  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
39432 
39433  /* "ctransportCoefficients.pyx":7333
39434  * <double*> da_e_de.data,
39435  * <double*> r_e.data,
39436  * <double*> dr_e_de.data) # <<<<<<<<<<<<<<
39437  * def ReynoldsAveragedNavierStokes_kEpsilon_2D_Update(const double nu,
39438  * const double c_mu,
39439  */
39440  kEpsilon_epsilon_3D_Evaluate_sd(__pyx_t_2, (__pyx_v_f_e->dimensions[(__pyx_v_f_e->nd - 1)]), __pyx_v_sigma_e, __pyx_v_c_1, __pyx_v_c_2, __pyx_v_c_mu, __pyx_v_c_e, __pyx_v_nu, ((double *)__pyx_v_velocity->data), ((double *)__pyx_v_gradu->data), ((double *)__pyx_v_gradv->data), ((double *)__pyx_v_gradw->data), ((double *)__pyx_v_k->data), ((double *)__pyx_v_epsilon->data), ((double *)__pyx_v_m_e->data), ((double *)__pyx_v_dm_e->data), ((double *)__pyx_v_phi_e->data), ((double *)__pyx_v_dphi_e->data), ((double *)__pyx_v_f_e->data), ((double *)__pyx_v_df_e->data), ((double *)__pyx_v_a_e->data), ((double *)__pyx_v_da_e_de->data), ((double *)__pyx_v_r_e->data), ((double *)__pyx_v_dr_e_de->data));
39441 
39442  /* "ctransportCoefficients.pyx":7288
39443  * <double*> r_k.data,
39444  * <double*> dr_k_dk.data)
39445  * def kEpsilon_epsilon_3D_Evaluate_sd(double sigma_e, # <<<<<<<<<<<<<<
39446  * double c_1,
39447  * double c_2,
39448  */
39449 
39450  /* function exit code */
39451  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
39452  goto __pyx_L0;
39453  __pyx_L1_error:;
39454  __Pyx_XDECREF(__pyx_t_1);
39455  __Pyx_AddTraceback("ctransportCoefficients.kEpsilon_epsilon_3D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
39456  __pyx_r = NULL;
39457  __pyx_L0:;
39458  __Pyx_XGIVEREF(__pyx_r);
39459  __Pyx_RefNannyFinishContext();
39460  return __pyx_r;
39461 }
39462 
39463 /* "ctransportCoefficients.pyx":7334
39464  * <double*> r_e.data,
39465  * <double*> dr_e_de.data)
39466  * def ReynoldsAveragedNavierStokes_kEpsilon_2D_Update(const double nu, # <<<<<<<<<<<<<<
39467  * const double c_mu,
39468  * np.ndarray k,
39469  */
39470 
39471 /* Python wrapper */
39472 static PyObject *__pyx_pw_22ctransportCoefficients_197ReynoldsAveragedNavierStokes_kEpsilon_2D_Update(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
39473 static PyMethodDef __pyx_mdef_22ctransportCoefficients_197ReynoldsAveragedNavierStokes_kEpsilon_2D_Update = {"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_197ReynoldsAveragedNavierStokes_kEpsilon_2D_Update, METH_VARARGS|METH_KEYWORDS, 0};
39474 static PyObject *__pyx_pw_22ctransportCoefficients_197ReynoldsAveragedNavierStokes_kEpsilon_2D_Update(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
39475  double __pyx_v_nu;
39476  double __pyx_v_c_mu;
39477  PyArrayObject *__pyx_v_k = 0;
39478  PyArrayObject *__pyx_v_grad_k = 0;
39479  PyArrayObject *__pyx_v_epsilon = 0;
39480  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
39481  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
39482  PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
39483  PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
39484  PyArrayObject *__pyx_v_mom_u_source = 0;
39485  PyArrayObject *__pyx_v_mom_v_source = 0;
39486  int __pyx_lineno = 0;
39487  const char *__pyx_filename = NULL;
39488  int __pyx_clineno = 0;
39489  PyObject *__pyx_r = 0;
39490  __Pyx_RefNannyDeclarations
39491  __Pyx_RefNannySetupContext("ReynoldsAveragedNavierStokes_kEpsilon_2D_Update (wrapper)", 0);
39492  {
39493  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nu,&__pyx_n_s_c_mu,&__pyx_n_s_k,&__pyx_n_s_grad_k,&__pyx_n_s_epsilon,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,0};
39494  PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0};
39495  if (unlikely(__pyx_kwds)) {
39496  Py_ssize_t kw_args;
39497  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
39498  switch (pos_args) {
39499  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
39500  CYTHON_FALLTHROUGH;
39501  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
39502  CYTHON_FALLTHROUGH;
39503  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
39504  CYTHON_FALLTHROUGH;
39505  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
39506  CYTHON_FALLTHROUGH;
39507  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
39508  CYTHON_FALLTHROUGH;
39509  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
39510  CYTHON_FALLTHROUGH;
39511  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
39512  CYTHON_FALLTHROUGH;
39513  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
39514  CYTHON_FALLTHROUGH;
39515  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
39516  CYTHON_FALLTHROUGH;
39517  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
39518  CYTHON_FALLTHROUGH;
39519  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
39520  CYTHON_FALLTHROUGH;
39521  case 0: break;
39522  default: goto __pyx_L5_argtuple_error;
39523  }
39524  kw_args = PyDict_Size(__pyx_kwds);
39525  switch (pos_args) {
39526  case 0:
39527  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
39528  else goto __pyx_L5_argtuple_error;
39529  CYTHON_FALLTHROUGH;
39530  case 1:
39531  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_mu)) != 0)) kw_args--;
39532  else {
39533  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", 1, 11, 11, 1); __PYX_ERR(0, 7334, __pyx_L3_error)
39534  }
39535  CYTHON_FALLTHROUGH;
39536  case 2:
39537  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_k)) != 0)) kw_args--;
39538  else {
39539  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", 1, 11, 11, 2); __PYX_ERR(0, 7334, __pyx_L3_error)
39540  }
39541  CYTHON_FALLTHROUGH;
39542  case 3:
39543  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_k)) != 0)) kw_args--;
39544  else {
39545  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", 1, 11, 11, 3); __PYX_ERR(0, 7334, __pyx_L3_error)
39546  }
39547  CYTHON_FALLTHROUGH;
39548  case 4:
39549  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
39550  else {
39551  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", 1, 11, 11, 4); __PYX_ERR(0, 7334, __pyx_L3_error)
39552  }
39553  CYTHON_FALLTHROUGH;
39554  case 5:
39555  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
39556  else {
39557  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", 1, 11, 11, 5); __PYX_ERR(0, 7334, __pyx_L3_error)
39558  }
39559  CYTHON_FALLTHROUGH;
39560  case 6:
39561  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
39562  else {
39563  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", 1, 11, 11, 6); __PYX_ERR(0, 7334, __pyx_L3_error)
39564  }
39565  CYTHON_FALLTHROUGH;
39566  case 7:
39567  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
39568  else {
39569  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", 1, 11, 11, 7); __PYX_ERR(0, 7334, __pyx_L3_error)
39570  }
39571  CYTHON_FALLTHROUGH;
39572  case 8:
39573  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
39574  else {
39575  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", 1, 11, 11, 8); __PYX_ERR(0, 7334, __pyx_L3_error)
39576  }
39577  CYTHON_FALLTHROUGH;
39578  case 9:
39579  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
39580  else {
39581  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", 1, 11, 11, 9); __PYX_ERR(0, 7334, __pyx_L3_error)
39582  }
39583  CYTHON_FALLTHROUGH;
39584  case 10:
39585  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
39586  else {
39587  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", 1, 11, 11, 10); __PYX_ERR(0, 7334, __pyx_L3_error)
39588  }
39589  }
39590  if (unlikely(kw_args > 0)) {
39591  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "ReynoldsAveragedNavierStokes_kEpsilon_2D_Update") < 0)) __PYX_ERR(0, 7334, __pyx_L3_error)
39592  }
39593  } else if (PyTuple_GET_SIZE(__pyx_args) != 11) {
39594  goto __pyx_L5_argtuple_error;
39595  } else {
39596  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
39597  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
39598  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
39599  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
39600  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
39601  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
39602  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
39603  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
39604  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
39605  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
39606  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
39607  }
39608  __pyx_v_nu = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_nu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7334, __pyx_L3_error)
39609  __pyx_v_c_mu = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_c_mu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7335, __pyx_L3_error)
39610  __pyx_v_k = ((PyArrayObject *)values[2]);
39611  __pyx_v_grad_k = ((PyArrayObject *)values[3]);
39612  __pyx_v_epsilon = ((PyArrayObject *)values[4]);
39613  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[5]);
39614  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[6]);
39615  __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[7]);
39616  __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[8]);
39617  __pyx_v_mom_u_source = ((PyArrayObject *)values[9]);
39618  __pyx_v_mom_v_source = ((PyArrayObject *)values[10]);
39619  }
39620  goto __pyx_L4_argument_unpacking_done;
39621  __pyx_L5_argtuple_error:;
39622  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", 1, 11, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7334, __pyx_L3_error)
39623  __pyx_L3_error:;
39624  __Pyx_AddTraceback("ctransportCoefficients.ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", __pyx_clineno, __pyx_lineno, __pyx_filename);
39625  __Pyx_RefNannyFinishContext();
39626  return NULL;
39627  __pyx_L4_argument_unpacking_done:;
39628  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_k), __pyx_ptype_5numpy_ndarray, 1, "k", 0))) __PYX_ERR(0, 7336, __pyx_L1_error)
39629  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_k), __pyx_ptype_5numpy_ndarray, 1, "grad_k", 0))) __PYX_ERR(0, 7337, __pyx_L1_error)
39630  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_epsilon), __pyx_ptype_5numpy_ndarray, 1, "epsilon", 0))) __PYX_ERR(0, 7338, __pyx_L1_error)
39631  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 7339, __pyx_L1_error)
39632  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 7340, __pyx_L1_error)
39633  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uv_diff_ten", 0))) __PYX_ERR(0, 7341, __pyx_L1_error)
39634  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vu_diff_ten", 0))) __PYX_ERR(0, 7342, __pyx_L1_error)
39635  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 7343, __pyx_L1_error)
39636  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 7344, __pyx_L1_error)
39637  __pyx_r = __pyx_pf_22ctransportCoefficients_196ReynoldsAveragedNavierStokes_kEpsilon_2D_Update(__pyx_self, __pyx_v_nu, __pyx_v_c_mu, __pyx_v_k, __pyx_v_grad_k, __pyx_v_epsilon, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source);
39638 
39639  /* function exit code */
39640  goto __pyx_L0;
39641  __pyx_L1_error:;
39642  __pyx_r = NULL;
39643  __pyx_L0:;
39644  __Pyx_RefNannyFinishContext();
39645  return __pyx_r;
39646 }
39647 
39648 static PyObject *__pyx_pf_22ctransportCoefficients_196ReynoldsAveragedNavierStokes_kEpsilon_2D_Update(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_nu, double __pyx_v_c_mu, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_grad_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source) {
39649  PyObject *__pyx_r = NULL;
39650  __Pyx_RefNannyDeclarations
39651  PyObject *__pyx_t_1 = NULL;
39652  int __pyx_t_2;
39653  int __pyx_lineno = 0;
39654  const char *__pyx_filename = NULL;
39655  int __pyx_clineno = 0;
39656  __Pyx_RefNannySetupContext("ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", 0);
39657 
39658  /* "ctransportCoefficients.pyx":7345
39659  * np.ndarray mom_u_source,
39660  * np.ndarray mom_v_source):
39661  * cReynoldsAveragedNavierStokes_kEpsilon_2D_Update(k.size, # <<<<<<<<<<<<<<
39662  * nu,
39663  * c_mu,
39664  */
39665  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_k), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7345, __pyx_L1_error)
39666  __Pyx_GOTREF(__pyx_t_1);
39667  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7345, __pyx_L1_error)
39668  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
39669 
39670  /* "ctransportCoefficients.pyx":7356
39671  * <double*> mom_vu_diff_ten.data,
39672  * <double*> mom_u_source.data,
39673  * <double*> mom_v_source.data) # <<<<<<<<<<<<<<
39674  * def ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd(const double rho,
39675  * const double nu,
39676  */
39677  ReynoldsAveragedNavierStokes_kEpsilon_2D_Update(__pyx_t_2, __pyx_v_nu, __pyx_v_c_mu, ((double *)__pyx_v_k->data), ((double *)__pyx_v_grad_k->data), ((double *)__pyx_v_epsilon->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_uv_diff_ten->data), ((double *)__pyx_v_mom_vu_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data));
39678 
39679  /* "ctransportCoefficients.pyx":7334
39680  * <double*> r_e.data,
39681  * <double*> dr_e_de.data)
39682  * def ReynoldsAveragedNavierStokes_kEpsilon_2D_Update(const double nu, # <<<<<<<<<<<<<<
39683  * const double c_mu,
39684  * np.ndarray k,
39685  */
39686 
39687  /* function exit code */
39688  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
39689  goto __pyx_L0;
39690  __pyx_L1_error:;
39691  __Pyx_XDECREF(__pyx_t_1);
39692  __Pyx_AddTraceback("ctransportCoefficients.ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", __pyx_clineno, __pyx_lineno, __pyx_filename);
39693  __pyx_r = NULL;
39694  __pyx_L0:;
39695  __Pyx_XGIVEREF(__pyx_r);
39696  __Pyx_RefNannyFinishContext();
39697  return __pyx_r;
39698 }
39699 
39700 /* "ctransportCoefficients.pyx":7357
39701  * <double*> mom_u_source.data,
39702  * <double*> mom_v_source.data)
39703  * def ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd(const double rho, # <<<<<<<<<<<<<<
39704  * const double nu,
39705  * const double c_mu,
39706  */
39707 
39708 /* Python wrapper */
39709 static PyObject *__pyx_pw_22ctransportCoefficients_199ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
39710 static PyMethodDef __pyx_mdef_22ctransportCoefficients_199ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd = {"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_199ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd, METH_VARARGS|METH_KEYWORDS, 0};
39711 static PyObject *__pyx_pw_22ctransportCoefficients_199ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
39712  double __pyx_v_rho;
39713  double __pyx_v_nu;
39714  double __pyx_v_c_mu;
39715  PyArrayObject *__pyx_v_k = 0;
39716  PyArrayObject *__pyx_v_grad_k = 0;
39717  PyArrayObject *__pyx_v_epsilon = 0;
39718  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
39719  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
39720  PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
39721  PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
39722  PyArrayObject *__pyx_v_mom_u_source = 0;
39723  PyArrayObject *__pyx_v_mom_v_source = 0;
39724  int __pyx_lineno = 0;
39725  const char *__pyx_filename = NULL;
39726  int __pyx_clineno = 0;
39727  PyObject *__pyx_r = 0;
39728  __Pyx_RefNannyDeclarations
39729  __Pyx_RefNannySetupContext("ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd (wrapper)", 0);
39730  {
39731  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_nu,&__pyx_n_s_c_mu,&__pyx_n_s_k,&__pyx_n_s_grad_k,&__pyx_n_s_epsilon,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,0};
39732  PyObject* values[12] = {0,0,0,0,0,0,0,0,0,0,0,0};
39733  if (unlikely(__pyx_kwds)) {
39734  Py_ssize_t kw_args;
39735  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
39736  switch (pos_args) {
39737  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
39738  CYTHON_FALLTHROUGH;
39739  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
39740  CYTHON_FALLTHROUGH;
39741  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
39742  CYTHON_FALLTHROUGH;
39743  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
39744  CYTHON_FALLTHROUGH;
39745  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
39746  CYTHON_FALLTHROUGH;
39747  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
39748  CYTHON_FALLTHROUGH;
39749  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
39750  CYTHON_FALLTHROUGH;
39751  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
39752  CYTHON_FALLTHROUGH;
39753  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
39754  CYTHON_FALLTHROUGH;
39755  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
39756  CYTHON_FALLTHROUGH;
39757  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
39758  CYTHON_FALLTHROUGH;
39759  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
39760  CYTHON_FALLTHROUGH;
39761  case 0: break;
39762  default: goto __pyx_L5_argtuple_error;
39763  }
39764  kw_args = PyDict_Size(__pyx_kwds);
39765  switch (pos_args) {
39766  case 0:
39767  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
39768  else goto __pyx_L5_argtuple_error;
39769  CYTHON_FALLTHROUGH;
39770  case 1:
39771  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
39772  else {
39773  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", 1, 12, 12, 1); __PYX_ERR(0, 7357, __pyx_L3_error)
39774  }
39775  CYTHON_FALLTHROUGH;
39776  case 2:
39777  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_mu)) != 0)) kw_args--;
39778  else {
39779  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", 1, 12, 12, 2); __PYX_ERR(0, 7357, __pyx_L3_error)
39780  }
39781  CYTHON_FALLTHROUGH;
39782  case 3:
39783  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_k)) != 0)) kw_args--;
39784  else {
39785  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", 1, 12, 12, 3); __PYX_ERR(0, 7357, __pyx_L3_error)
39786  }
39787  CYTHON_FALLTHROUGH;
39788  case 4:
39789  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_k)) != 0)) kw_args--;
39790  else {
39791  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", 1, 12, 12, 4); __PYX_ERR(0, 7357, __pyx_L3_error)
39792  }
39793  CYTHON_FALLTHROUGH;
39794  case 5:
39795  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
39796  else {
39797  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", 1, 12, 12, 5); __PYX_ERR(0, 7357, __pyx_L3_error)
39798  }
39799  CYTHON_FALLTHROUGH;
39800  case 6:
39801  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
39802  else {
39803  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", 1, 12, 12, 6); __PYX_ERR(0, 7357, __pyx_L3_error)
39804  }
39805  CYTHON_FALLTHROUGH;
39806  case 7:
39807  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
39808  else {
39809  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", 1, 12, 12, 7); __PYX_ERR(0, 7357, __pyx_L3_error)
39810  }
39811  CYTHON_FALLTHROUGH;
39812  case 8:
39813  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
39814  else {
39815  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", 1, 12, 12, 8); __PYX_ERR(0, 7357, __pyx_L3_error)
39816  }
39817  CYTHON_FALLTHROUGH;
39818  case 9:
39819  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
39820  else {
39821  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", 1, 12, 12, 9); __PYX_ERR(0, 7357, __pyx_L3_error)
39822  }
39823  CYTHON_FALLTHROUGH;
39824  case 10:
39825  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
39826  else {
39827  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", 1, 12, 12, 10); __PYX_ERR(0, 7357, __pyx_L3_error)
39828  }
39829  CYTHON_FALLTHROUGH;
39830  case 11:
39831  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
39832  else {
39833  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", 1, 12, 12, 11); __PYX_ERR(0, 7357, __pyx_L3_error)
39834  }
39835  }
39836  if (unlikely(kw_args > 0)) {
39837  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd") < 0)) __PYX_ERR(0, 7357, __pyx_L3_error)
39838  }
39839  } else if (PyTuple_GET_SIZE(__pyx_args) != 12) {
39840  goto __pyx_L5_argtuple_error;
39841  } else {
39842  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
39843  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
39844  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
39845  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
39846  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
39847  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
39848  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
39849  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
39850  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
39851  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
39852  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
39853  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
39854  }
39855  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7357, __pyx_L3_error)
39856  __pyx_v_nu = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_nu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7358, __pyx_L3_error)
39857  __pyx_v_c_mu = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_c_mu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7359, __pyx_L3_error)
39858  __pyx_v_k = ((PyArrayObject *)values[3]);
39859  __pyx_v_grad_k = ((PyArrayObject *)values[4]);
39860  __pyx_v_epsilon = ((PyArrayObject *)values[5]);
39861  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[6]);
39862  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[7]);
39863  __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[8]);
39864  __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[9]);
39865  __pyx_v_mom_u_source = ((PyArrayObject *)values[10]);
39866  __pyx_v_mom_v_source = ((PyArrayObject *)values[11]);
39867  }
39868  goto __pyx_L4_argument_unpacking_done;
39869  __pyx_L5_argtuple_error:;
39870  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", 1, 12, 12, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7357, __pyx_L3_error)
39871  __pyx_L3_error:;
39872  __Pyx_AddTraceback("ctransportCoefficients.ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
39873  __Pyx_RefNannyFinishContext();
39874  return NULL;
39875  __pyx_L4_argument_unpacking_done:;
39876  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_k), __pyx_ptype_5numpy_ndarray, 1, "k", 0))) __PYX_ERR(0, 7360, __pyx_L1_error)
39877  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_k), __pyx_ptype_5numpy_ndarray, 1, "grad_k", 0))) __PYX_ERR(0, 7361, __pyx_L1_error)
39878  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_epsilon), __pyx_ptype_5numpy_ndarray, 1, "epsilon", 0))) __PYX_ERR(0, 7362, __pyx_L1_error)
39879  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 7363, __pyx_L1_error)
39880  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 7364, __pyx_L1_error)
39881  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uv_diff_ten", 0))) __PYX_ERR(0, 7365, __pyx_L1_error)
39882  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vu_diff_ten", 0))) __PYX_ERR(0, 7366, __pyx_L1_error)
39883  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 7367, __pyx_L1_error)
39884  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 7368, __pyx_L1_error)
39885  __pyx_r = __pyx_pf_22ctransportCoefficients_198ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd(__pyx_self, __pyx_v_rho, __pyx_v_nu, __pyx_v_c_mu, __pyx_v_k, __pyx_v_grad_k, __pyx_v_epsilon, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source);
39886 
39887  /* function exit code */
39888  goto __pyx_L0;
39889  __pyx_L1_error:;
39890  __pyx_r = NULL;
39891  __pyx_L0:;
39892  __Pyx_RefNannyFinishContext();
39893  return __pyx_r;
39894 }
39895 
39896 static PyObject *__pyx_pf_22ctransportCoefficients_198ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, double __pyx_v_nu, double __pyx_v_c_mu, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_grad_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source) {
39897  PyObject *__pyx_r = NULL;
39898  __Pyx_RefNannyDeclarations
39899  PyObject *__pyx_t_1 = NULL;
39900  int __pyx_t_2;
39901  int __pyx_lineno = 0;
39902  const char *__pyx_filename = NULL;
39903  int __pyx_clineno = 0;
39904  __Pyx_RefNannySetupContext("ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", 0);
39905 
39906  /* "ctransportCoefficients.pyx":7369
39907  * np.ndarray mom_u_source,
39908  * np.ndarray mom_v_source):
39909  * cReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd(k.size, # <<<<<<<<<<<<<<
39910  * rho,
39911  * nu,
39912  */
39913  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_k), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7369, __pyx_L1_error)
39914  __Pyx_GOTREF(__pyx_t_1);
39915  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7369, __pyx_L1_error)
39916  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
39917 
39918  /* "ctransportCoefficients.pyx":7381
39919  * <double*> mom_vu_diff_ten.data,
39920  * <double*> mom_u_source.data,
39921  * <double*> mom_v_source.data) # <<<<<<<<<<<<<<
39922  * def ReynoldsAveragedNavierStokes_kEpsilon_3D_Update(const double nu,
39923  * const double c_mu,
39924  */
39925  ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd(__pyx_t_2, __pyx_v_rho, __pyx_v_nu, __pyx_v_c_mu, ((double *)__pyx_v_k->data), ((double *)__pyx_v_grad_k->data), ((double *)__pyx_v_epsilon->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_uv_diff_ten->data), ((double *)__pyx_v_mom_vu_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data));
39926 
39927  /* "ctransportCoefficients.pyx":7357
39928  * <double*> mom_u_source.data,
39929  * <double*> mom_v_source.data)
39930  * def ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd(const double rho, # <<<<<<<<<<<<<<
39931  * const double nu,
39932  * const double c_mu,
39933  */
39934 
39935  /* function exit code */
39936  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
39937  goto __pyx_L0;
39938  __pyx_L1_error:;
39939  __Pyx_XDECREF(__pyx_t_1);
39940  __Pyx_AddTraceback("ctransportCoefficients.ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
39941  __pyx_r = NULL;
39942  __pyx_L0:;
39943  __Pyx_XGIVEREF(__pyx_r);
39944  __Pyx_RefNannyFinishContext();
39945  return __pyx_r;
39946 }
39947 
39948 /* "ctransportCoefficients.pyx":7382
39949  * <double*> mom_u_source.data,
39950  * <double*> mom_v_source.data)
39951  * def ReynoldsAveragedNavierStokes_kEpsilon_3D_Update(const double nu, # <<<<<<<<<<<<<<
39952  * const double c_mu,
39953  * np.ndarray k,
39954  */
39955 
39956 /* Python wrapper */
39957 static PyObject *__pyx_pw_22ctransportCoefficients_201ReynoldsAveragedNavierStokes_kEpsilon_3D_Update(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
39958 static PyMethodDef __pyx_mdef_22ctransportCoefficients_201ReynoldsAveragedNavierStokes_kEpsilon_3D_Update = {"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_201ReynoldsAveragedNavierStokes_kEpsilon_3D_Update, METH_VARARGS|METH_KEYWORDS, 0};
39959 static PyObject *__pyx_pw_22ctransportCoefficients_201ReynoldsAveragedNavierStokes_kEpsilon_3D_Update(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
39960  double __pyx_v_nu;
39961  double __pyx_v_c_mu;
39962  PyArrayObject *__pyx_v_k = 0;
39963  PyArrayObject *__pyx_v_grad_k = 0;
39964  PyArrayObject *__pyx_v_epsilon = 0;
39965  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
39966  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
39967  PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
39968  PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
39969  PyArrayObject *__pyx_v_mom_uw_diff_ten = 0;
39970  PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
39971  PyArrayObject *__pyx_v_mom_vw_diff_ten = 0;
39972  PyArrayObject *__pyx_v_mom_wu_diff_ten = 0;
39973  PyArrayObject *__pyx_v_mom_wv_diff_ten = 0;
39974  PyArrayObject *__pyx_v_mom_u_source = 0;
39975  PyArrayObject *__pyx_v_mom_v_source = 0;
39976  PyArrayObject *__pyx_v_mom_w_source = 0;
39977  int __pyx_lineno = 0;
39978  const char *__pyx_filename = NULL;
39979  int __pyx_clineno = 0;
39980  PyObject *__pyx_r = 0;
39981  __Pyx_RefNannyDeclarations
39982  __Pyx_RefNannySetupContext("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update (wrapper)", 0);
39983  {
39984  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nu,&__pyx_n_s_c_mu,&__pyx_n_s_k,&__pyx_n_s_grad_k,&__pyx_n_s_epsilon,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_uw_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_vw_diff_ten,&__pyx_n_s_mom_wu_diff_ten,&__pyx_n_s_mom_wv_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,0};
39985  PyObject* values[17] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
39986  if (unlikely(__pyx_kwds)) {
39987  Py_ssize_t kw_args;
39988  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
39989  switch (pos_args) {
39990  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
39991  CYTHON_FALLTHROUGH;
39992  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
39993  CYTHON_FALLTHROUGH;
39994  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
39995  CYTHON_FALLTHROUGH;
39996  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
39997  CYTHON_FALLTHROUGH;
39998  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
39999  CYTHON_FALLTHROUGH;
40000  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
40001  CYTHON_FALLTHROUGH;
40002  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
40003  CYTHON_FALLTHROUGH;
40004  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
40005  CYTHON_FALLTHROUGH;
40006  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
40007  CYTHON_FALLTHROUGH;
40008  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
40009  CYTHON_FALLTHROUGH;
40010  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
40011  CYTHON_FALLTHROUGH;
40012  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
40013  CYTHON_FALLTHROUGH;
40014  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
40015  CYTHON_FALLTHROUGH;
40016  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
40017  CYTHON_FALLTHROUGH;
40018  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
40019  CYTHON_FALLTHROUGH;
40020  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
40021  CYTHON_FALLTHROUGH;
40022  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40023  CYTHON_FALLTHROUGH;
40024  case 0: break;
40025  default: goto __pyx_L5_argtuple_error;
40026  }
40027  kw_args = PyDict_Size(__pyx_kwds);
40028  switch (pos_args) {
40029  case 0:
40030  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
40031  else goto __pyx_L5_argtuple_error;
40032  CYTHON_FALLTHROUGH;
40033  case 1:
40034  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_mu)) != 0)) kw_args--;
40035  else {
40036  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 1); __PYX_ERR(0, 7382, __pyx_L3_error)
40037  }
40038  CYTHON_FALLTHROUGH;
40039  case 2:
40040  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_k)) != 0)) kw_args--;
40041  else {
40042  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 2); __PYX_ERR(0, 7382, __pyx_L3_error)
40043  }
40044  CYTHON_FALLTHROUGH;
40045  case 3:
40046  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_k)) != 0)) kw_args--;
40047  else {
40048  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 3); __PYX_ERR(0, 7382, __pyx_L3_error)
40049  }
40050  CYTHON_FALLTHROUGH;
40051  case 4:
40052  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
40053  else {
40054  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 4); __PYX_ERR(0, 7382, __pyx_L3_error)
40055  }
40056  CYTHON_FALLTHROUGH;
40057  case 5:
40058  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
40059  else {
40060  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 5); __PYX_ERR(0, 7382, __pyx_L3_error)
40061  }
40062  CYTHON_FALLTHROUGH;
40063  case 6:
40064  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
40065  else {
40066  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 6); __PYX_ERR(0, 7382, __pyx_L3_error)
40067  }
40068  CYTHON_FALLTHROUGH;
40069  case 7:
40070  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
40071  else {
40072  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 7); __PYX_ERR(0, 7382, __pyx_L3_error)
40073  }
40074  CYTHON_FALLTHROUGH;
40075  case 8:
40076  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
40077  else {
40078  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 8); __PYX_ERR(0, 7382, __pyx_L3_error)
40079  }
40080  CYTHON_FALLTHROUGH;
40081  case 9:
40082  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uw_diff_ten)) != 0)) kw_args--;
40083  else {
40084  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 9); __PYX_ERR(0, 7382, __pyx_L3_error)
40085  }
40086  CYTHON_FALLTHROUGH;
40087  case 10:
40088  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
40089  else {
40090  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 10); __PYX_ERR(0, 7382, __pyx_L3_error)
40091  }
40092  CYTHON_FALLTHROUGH;
40093  case 11:
40094  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vw_diff_ten)) != 0)) kw_args--;
40095  else {
40096  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 11); __PYX_ERR(0, 7382, __pyx_L3_error)
40097  }
40098  CYTHON_FALLTHROUGH;
40099  case 12:
40100  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wu_diff_ten)) != 0)) kw_args--;
40101  else {
40102  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 12); __PYX_ERR(0, 7382, __pyx_L3_error)
40103  }
40104  CYTHON_FALLTHROUGH;
40105  case 13:
40106  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wv_diff_ten)) != 0)) kw_args--;
40107  else {
40108  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 13); __PYX_ERR(0, 7382, __pyx_L3_error)
40109  }
40110  CYTHON_FALLTHROUGH;
40111  case 14:
40112  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
40113  else {
40114  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 14); __PYX_ERR(0, 7382, __pyx_L3_error)
40115  }
40116  CYTHON_FALLTHROUGH;
40117  case 15:
40118  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
40119  else {
40120  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 15); __PYX_ERR(0, 7382, __pyx_L3_error)
40121  }
40122  CYTHON_FALLTHROUGH;
40123  case 16:
40124  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
40125  else {
40126  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 16); __PYX_ERR(0, 7382, __pyx_L3_error)
40127  }
40128  }
40129  if (unlikely(kw_args > 0)) {
40130  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "ReynoldsAveragedNavierStokes_kEpsilon_3D_Update") < 0)) __PYX_ERR(0, 7382, __pyx_L3_error)
40131  }
40132  } else if (PyTuple_GET_SIZE(__pyx_args) != 17) {
40133  goto __pyx_L5_argtuple_error;
40134  } else {
40135  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40136  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
40137  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
40138  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
40139  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
40140  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
40141  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
40142  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
40143  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
40144  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
40145  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
40146  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
40147  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
40148  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
40149  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
40150  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
40151  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
40152  }
40153  __pyx_v_nu = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_nu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7382, __pyx_L3_error)
40154  __pyx_v_c_mu = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_c_mu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7383, __pyx_L3_error)
40155  __pyx_v_k = ((PyArrayObject *)values[2]);
40156  __pyx_v_grad_k = ((PyArrayObject *)values[3]);
40157  __pyx_v_epsilon = ((PyArrayObject *)values[4]);
40158  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[5]);
40159  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[6]);
40160  __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[7]);
40161  __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[8]);
40162  __pyx_v_mom_uw_diff_ten = ((PyArrayObject *)values[9]);
40163  __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[10]);
40164  __pyx_v_mom_vw_diff_ten = ((PyArrayObject *)values[11]);
40165  __pyx_v_mom_wu_diff_ten = ((PyArrayObject *)values[12]);
40166  __pyx_v_mom_wv_diff_ten = ((PyArrayObject *)values[13]);
40167  __pyx_v_mom_u_source = ((PyArrayObject *)values[14]);
40168  __pyx_v_mom_v_source = ((PyArrayObject *)values[15]);
40169  __pyx_v_mom_w_source = ((PyArrayObject *)values[16]);
40170  }
40171  goto __pyx_L4_argument_unpacking_done;
40172  __pyx_L5_argtuple_error:;
40173  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7382, __pyx_L3_error)
40174  __pyx_L3_error:;
40175  __Pyx_AddTraceback("ctransportCoefficients.ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", __pyx_clineno, __pyx_lineno, __pyx_filename);
40176  __Pyx_RefNannyFinishContext();
40177  return NULL;
40178  __pyx_L4_argument_unpacking_done:;
40179  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_k), __pyx_ptype_5numpy_ndarray, 1, "k", 0))) __PYX_ERR(0, 7384, __pyx_L1_error)
40180  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_k), __pyx_ptype_5numpy_ndarray, 1, "grad_k", 0))) __PYX_ERR(0, 7385, __pyx_L1_error)
40181  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_epsilon), __pyx_ptype_5numpy_ndarray, 1, "epsilon", 0))) __PYX_ERR(0, 7386, __pyx_L1_error)
40182  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 7387, __pyx_L1_error)
40183  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 7388, __pyx_L1_error)
40184  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_w_diff_ten", 0))) __PYX_ERR(0, 7389, __pyx_L1_error)
40185  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uv_diff_ten", 0))) __PYX_ERR(0, 7390, __pyx_L1_error)
40186  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uw_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uw_diff_ten", 0))) __PYX_ERR(0, 7391, __pyx_L1_error)
40187  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vu_diff_ten", 0))) __PYX_ERR(0, 7392, __pyx_L1_error)
40188  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vw_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vw_diff_ten", 0))) __PYX_ERR(0, 7393, __pyx_L1_error)
40189  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_wu_diff_ten", 0))) __PYX_ERR(0, 7394, __pyx_L1_error)
40190  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_wv_diff_ten", 0))) __PYX_ERR(0, 7395, __pyx_L1_error)
40191  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 7396, __pyx_L1_error)
40192  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 7397, __pyx_L1_error)
40193  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1, "mom_w_source", 0))) __PYX_ERR(0, 7398, __pyx_L1_error)
40194  __pyx_r = __pyx_pf_22ctransportCoefficients_200ReynoldsAveragedNavierStokes_kEpsilon_3D_Update(__pyx_self, __pyx_v_nu, __pyx_v_c_mu, __pyx_v_k, __pyx_v_grad_k, __pyx_v_epsilon, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_uw_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_vw_diff_ten, __pyx_v_mom_wu_diff_ten, __pyx_v_mom_wv_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source);
40195 
40196  /* function exit code */
40197  goto __pyx_L0;
40198  __pyx_L1_error:;
40199  __pyx_r = NULL;
40200  __pyx_L0:;
40201  __Pyx_RefNannyFinishContext();
40202  return __pyx_r;
40203 }
40204 
40205 static PyObject *__pyx_pf_22ctransportCoefficients_200ReynoldsAveragedNavierStokes_kEpsilon_3D_Update(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_nu, double __pyx_v_c_mu, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_grad_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source) {
40206  PyObject *__pyx_r = NULL;
40207  __Pyx_RefNannyDeclarations
40208  PyObject *__pyx_t_1 = NULL;
40209  int __pyx_t_2;
40210  int __pyx_lineno = 0;
40211  const char *__pyx_filename = NULL;
40212  int __pyx_clineno = 0;
40213  __Pyx_RefNannySetupContext("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 0);
40214 
40215  /* "ctransportCoefficients.pyx":7399
40216  * np.ndarray mom_v_source,
40217  * np.ndarray mom_w_source):
40218  * cReynoldsAveragedNavierStokes_kEpsilon_3D_Update(k.size, # <<<<<<<<<<<<<<
40219  * nu,
40220  * c_mu,
40221  */
40222  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_k), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7399, __pyx_L1_error)
40223  __Pyx_GOTREF(__pyx_t_1);
40224  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7399, __pyx_L1_error)
40225  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
40226 
40227  /* "ctransportCoefficients.pyx":7416
40228  * <double*> mom_u_source.data,
40229  * <double*> mom_v_source.data,
40230  * <double*> mom_w_source.data) # <<<<<<<<<<<<<<
40231  * def ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd(const double nu,
40232  * const double c_mu,
40233  */
40234  ReynoldsAveragedNavierStokes_kEpsilon_3D_Update(__pyx_t_2, __pyx_v_nu, __pyx_v_c_mu, ((double *)__pyx_v_k->data), ((double *)__pyx_v_grad_k->data), ((double *)__pyx_v_epsilon->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_w_diff_ten->data), ((double *)__pyx_v_mom_uv_diff_ten->data), ((double *)__pyx_v_mom_uw_diff_ten->data), ((double *)__pyx_v_mom_vu_diff_ten->data), ((double *)__pyx_v_mom_vw_diff_ten->data), ((double *)__pyx_v_mom_wu_diff_ten->data), ((double *)__pyx_v_mom_wv_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_mom_w_source->data));
40235 
40236  /* "ctransportCoefficients.pyx":7382
40237  * <double*> mom_u_source.data,
40238  * <double*> mom_v_source.data)
40239  * def ReynoldsAveragedNavierStokes_kEpsilon_3D_Update(const double nu, # <<<<<<<<<<<<<<
40240  * const double c_mu,
40241  * np.ndarray k,
40242  */
40243 
40244  /* function exit code */
40245  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
40246  goto __pyx_L0;
40247  __pyx_L1_error:;
40248  __Pyx_XDECREF(__pyx_t_1);
40249  __Pyx_AddTraceback("ctransportCoefficients.ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", __pyx_clineno, __pyx_lineno, __pyx_filename);
40250  __pyx_r = NULL;
40251  __pyx_L0:;
40252  __Pyx_XGIVEREF(__pyx_r);
40253  __Pyx_RefNannyFinishContext();
40254  return __pyx_r;
40255 }
40256 
40257 /* "ctransportCoefficients.pyx":7417
40258  * <double*> mom_v_source.data,
40259  * <double*> mom_w_source.data)
40260  * def ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd(const double nu, # <<<<<<<<<<<<<<
40261  * const double c_mu,
40262  * np.ndarray k,
40263  */
40264 
40265 /* Python wrapper */
40266 static PyObject *__pyx_pw_22ctransportCoefficients_203ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
40267 static PyMethodDef __pyx_mdef_22ctransportCoefficients_203ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd = {"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_203ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd, METH_VARARGS|METH_KEYWORDS, 0};
40268 static PyObject *__pyx_pw_22ctransportCoefficients_203ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
40269  double __pyx_v_nu;
40270  double __pyx_v_c_mu;
40271  PyArrayObject *__pyx_v_k = 0;
40272  PyArrayObject *__pyx_v_grad_k = 0;
40273  PyArrayObject *__pyx_v_epsilon = 0;
40274  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
40275  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
40276  PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
40277  PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
40278  PyArrayObject *__pyx_v_mom_uw_diff_ten = 0;
40279  PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
40280  PyArrayObject *__pyx_v_mom_vw_diff_ten = 0;
40281  PyArrayObject *__pyx_v_mom_wu_diff_ten = 0;
40282  PyArrayObject *__pyx_v_mom_wv_diff_ten = 0;
40283  PyArrayObject *__pyx_v_mom_u_source = 0;
40284  PyArrayObject *__pyx_v_mom_v_source = 0;
40285  PyArrayObject *__pyx_v_mom_w_source = 0;
40286  int __pyx_lineno = 0;
40287  const char *__pyx_filename = NULL;
40288  int __pyx_clineno = 0;
40289  PyObject *__pyx_r = 0;
40290  __Pyx_RefNannyDeclarations
40291  __Pyx_RefNannySetupContext("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd (wrapper)", 0);
40292  {
40293  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nu,&__pyx_n_s_c_mu,&__pyx_n_s_k,&__pyx_n_s_grad_k,&__pyx_n_s_epsilon,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_uw_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_vw_diff_ten,&__pyx_n_s_mom_wu_diff_ten,&__pyx_n_s_mom_wv_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,0};
40294  PyObject* values[17] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
40295  if (unlikely(__pyx_kwds)) {
40296  Py_ssize_t kw_args;
40297  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
40298  switch (pos_args) {
40299  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
40300  CYTHON_FALLTHROUGH;
40301  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
40302  CYTHON_FALLTHROUGH;
40303  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
40304  CYTHON_FALLTHROUGH;
40305  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
40306  CYTHON_FALLTHROUGH;
40307  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
40308  CYTHON_FALLTHROUGH;
40309  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
40310  CYTHON_FALLTHROUGH;
40311  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
40312  CYTHON_FALLTHROUGH;
40313  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
40314  CYTHON_FALLTHROUGH;
40315  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
40316  CYTHON_FALLTHROUGH;
40317  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
40318  CYTHON_FALLTHROUGH;
40319  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
40320  CYTHON_FALLTHROUGH;
40321  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
40322  CYTHON_FALLTHROUGH;
40323  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
40324  CYTHON_FALLTHROUGH;
40325  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
40326  CYTHON_FALLTHROUGH;
40327  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
40328  CYTHON_FALLTHROUGH;
40329  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
40330  CYTHON_FALLTHROUGH;
40331  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40332  CYTHON_FALLTHROUGH;
40333  case 0: break;
40334  default: goto __pyx_L5_argtuple_error;
40335  }
40336  kw_args = PyDict_Size(__pyx_kwds);
40337  switch (pos_args) {
40338  case 0:
40339  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
40340  else goto __pyx_L5_argtuple_error;
40341  CYTHON_FALLTHROUGH;
40342  case 1:
40343  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_mu)) != 0)) kw_args--;
40344  else {
40345  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 1); __PYX_ERR(0, 7417, __pyx_L3_error)
40346  }
40347  CYTHON_FALLTHROUGH;
40348  case 2:
40349  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_k)) != 0)) kw_args--;
40350  else {
40351  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 2); __PYX_ERR(0, 7417, __pyx_L3_error)
40352  }
40353  CYTHON_FALLTHROUGH;
40354  case 3:
40355  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_k)) != 0)) kw_args--;
40356  else {
40357  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 3); __PYX_ERR(0, 7417, __pyx_L3_error)
40358  }
40359  CYTHON_FALLTHROUGH;
40360  case 4:
40361  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
40362  else {
40363  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 4); __PYX_ERR(0, 7417, __pyx_L3_error)
40364  }
40365  CYTHON_FALLTHROUGH;
40366  case 5:
40367  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
40368  else {
40369  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 5); __PYX_ERR(0, 7417, __pyx_L3_error)
40370  }
40371  CYTHON_FALLTHROUGH;
40372  case 6:
40373  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
40374  else {
40375  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 6); __PYX_ERR(0, 7417, __pyx_L3_error)
40376  }
40377  CYTHON_FALLTHROUGH;
40378  case 7:
40379  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
40380  else {
40381  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 7); __PYX_ERR(0, 7417, __pyx_L3_error)
40382  }
40383  CYTHON_FALLTHROUGH;
40384  case 8:
40385  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
40386  else {
40387  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 8); __PYX_ERR(0, 7417, __pyx_L3_error)
40388  }
40389  CYTHON_FALLTHROUGH;
40390  case 9:
40391  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uw_diff_ten)) != 0)) kw_args--;
40392  else {
40393  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 9); __PYX_ERR(0, 7417, __pyx_L3_error)
40394  }
40395  CYTHON_FALLTHROUGH;
40396  case 10:
40397  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
40398  else {
40399  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 10); __PYX_ERR(0, 7417, __pyx_L3_error)
40400  }
40401  CYTHON_FALLTHROUGH;
40402  case 11:
40403  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vw_diff_ten)) != 0)) kw_args--;
40404  else {
40405  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 11); __PYX_ERR(0, 7417, __pyx_L3_error)
40406  }
40407  CYTHON_FALLTHROUGH;
40408  case 12:
40409  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wu_diff_ten)) != 0)) kw_args--;
40410  else {
40411  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 12); __PYX_ERR(0, 7417, __pyx_L3_error)
40412  }
40413  CYTHON_FALLTHROUGH;
40414  case 13:
40415  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wv_diff_ten)) != 0)) kw_args--;
40416  else {
40417  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 13); __PYX_ERR(0, 7417, __pyx_L3_error)
40418  }
40419  CYTHON_FALLTHROUGH;
40420  case 14:
40421  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
40422  else {
40423  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 14); __PYX_ERR(0, 7417, __pyx_L3_error)
40424  }
40425  CYTHON_FALLTHROUGH;
40426  case 15:
40427  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
40428  else {
40429  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 15); __PYX_ERR(0, 7417, __pyx_L3_error)
40430  }
40431  CYTHON_FALLTHROUGH;
40432  case 16:
40433  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
40434  else {
40435  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 16); __PYX_ERR(0, 7417, __pyx_L3_error)
40436  }
40437  }
40438  if (unlikely(kw_args > 0)) {
40439  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd") < 0)) __PYX_ERR(0, 7417, __pyx_L3_error)
40440  }
40441  } else if (PyTuple_GET_SIZE(__pyx_args) != 17) {
40442  goto __pyx_L5_argtuple_error;
40443  } else {
40444  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40445  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
40446  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
40447  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
40448  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
40449  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
40450  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
40451  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
40452  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
40453  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
40454  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
40455  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
40456  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
40457  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
40458  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
40459  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
40460  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
40461  }
40462  __pyx_v_nu = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_nu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7417, __pyx_L3_error)
40463  __pyx_v_c_mu = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_c_mu == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7418, __pyx_L3_error)
40464  __pyx_v_k = ((PyArrayObject *)values[2]);
40465  __pyx_v_grad_k = ((PyArrayObject *)values[3]);
40466  __pyx_v_epsilon = ((PyArrayObject *)values[4]);
40467  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[5]);
40468  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[6]);
40469  __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[7]);
40470  __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[8]);
40471  __pyx_v_mom_uw_diff_ten = ((PyArrayObject *)values[9]);
40472  __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[10]);
40473  __pyx_v_mom_vw_diff_ten = ((PyArrayObject *)values[11]);
40474  __pyx_v_mom_wu_diff_ten = ((PyArrayObject *)values[12]);
40475  __pyx_v_mom_wv_diff_ten = ((PyArrayObject *)values[13]);
40476  __pyx_v_mom_u_source = ((PyArrayObject *)values[14]);
40477  __pyx_v_mom_v_source = ((PyArrayObject *)values[15]);
40478  __pyx_v_mom_w_source = ((PyArrayObject *)values[16]);
40479  }
40480  goto __pyx_L4_argument_unpacking_done;
40481  __pyx_L5_argtuple_error:;
40482  __Pyx_RaiseArgtupleInvalid("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7417, __pyx_L3_error)
40483  __pyx_L3_error:;
40484  __Pyx_AddTraceback("ctransportCoefficients.ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
40485  __Pyx_RefNannyFinishContext();
40486  return NULL;
40487  __pyx_L4_argument_unpacking_done:;
40488  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_k), __pyx_ptype_5numpy_ndarray, 1, "k", 0))) __PYX_ERR(0, 7419, __pyx_L1_error)
40489  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_k), __pyx_ptype_5numpy_ndarray, 1, "grad_k", 0))) __PYX_ERR(0, 7420, __pyx_L1_error)
40490  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_epsilon), __pyx_ptype_5numpy_ndarray, 1, "epsilon", 0))) __PYX_ERR(0, 7421, __pyx_L1_error)
40491  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 7422, __pyx_L1_error)
40492  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 7423, __pyx_L1_error)
40493  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_w_diff_ten", 0))) __PYX_ERR(0, 7424, __pyx_L1_error)
40494  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uv_diff_ten", 0))) __PYX_ERR(0, 7425, __pyx_L1_error)
40495  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uw_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uw_diff_ten", 0))) __PYX_ERR(0, 7426, __pyx_L1_error)
40496  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vu_diff_ten", 0))) __PYX_ERR(0, 7427, __pyx_L1_error)
40497  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vw_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vw_diff_ten", 0))) __PYX_ERR(0, 7428, __pyx_L1_error)
40498  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_wu_diff_ten", 0))) __PYX_ERR(0, 7429, __pyx_L1_error)
40499  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_wv_diff_ten", 0))) __PYX_ERR(0, 7430, __pyx_L1_error)
40500  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 7431, __pyx_L1_error)
40501  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 7432, __pyx_L1_error)
40502  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1, "mom_w_source", 0))) __PYX_ERR(0, 7433, __pyx_L1_error)
40503  __pyx_r = __pyx_pf_22ctransportCoefficients_202ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd(__pyx_self, __pyx_v_nu, __pyx_v_c_mu, __pyx_v_k, __pyx_v_grad_k, __pyx_v_epsilon, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_uw_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_vw_diff_ten, __pyx_v_mom_wu_diff_ten, __pyx_v_mom_wv_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source);
40504 
40505  /* function exit code */
40506  goto __pyx_L0;
40507  __pyx_L1_error:;
40508  __pyx_r = NULL;
40509  __pyx_L0:;
40510  __Pyx_RefNannyFinishContext();
40511  return __pyx_r;
40512 }
40513 
40514 static PyObject *__pyx_pf_22ctransportCoefficients_202ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_nu, double __pyx_v_c_mu, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_grad_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source) {
40515  PyObject *__pyx_r = NULL;
40516  __Pyx_RefNannyDeclarations
40517  PyObject *__pyx_t_1 = NULL;
40518  int __pyx_t_2;
40519  int __pyx_lineno = 0;
40520  const char *__pyx_filename = NULL;
40521  int __pyx_clineno = 0;
40522  __Pyx_RefNannySetupContext("ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 0);
40523 
40524  /* "ctransportCoefficients.pyx":7434
40525  * np.ndarray mom_v_source,
40526  * np.ndarray mom_w_source):
40527  * cReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd(k.size, # <<<<<<<<<<<<<<
40528  * nu,
40529  * c_mu,
40530  */
40531  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_k), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7434, __pyx_L1_error)
40532  __Pyx_GOTREF(__pyx_t_1);
40533  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7434, __pyx_L1_error)
40534  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
40535 
40536  /* "ctransportCoefficients.pyx":7451
40537  * <double*> mom_u_source.data,
40538  * <double*> mom_v_source.data,
40539  * <double*> mom_w_source.data) # <<<<<<<<<<<<<<
40540  * def scriptedSphereMotionSignedDistance(const double t,
40541  * np.ndarray radii,
40542  */
40543  ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd(__pyx_t_2, __pyx_v_nu, __pyx_v_c_mu, ((double *)__pyx_v_k->data), ((double *)__pyx_v_grad_k->data), ((double *)__pyx_v_epsilon->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_w_diff_ten->data), ((double *)__pyx_v_mom_uv_diff_ten->data), ((double *)__pyx_v_mom_uw_diff_ten->data), ((double *)__pyx_v_mom_vu_diff_ten->data), ((double *)__pyx_v_mom_vw_diff_ten->data), ((double *)__pyx_v_mom_wu_diff_ten->data), ((double *)__pyx_v_mom_wv_diff_ten->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_mom_w_source->data));
40544 
40545  /* "ctransportCoefficients.pyx":7417
40546  * <double*> mom_v_source.data,
40547  * <double*> mom_w_source.data)
40548  * def ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd(const double nu, # <<<<<<<<<<<<<<
40549  * const double c_mu,
40550  * np.ndarray k,
40551  */
40552 
40553  /* function exit code */
40554  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
40555  goto __pyx_L0;
40556  __pyx_L1_error:;
40557  __Pyx_XDECREF(__pyx_t_1);
40558  __Pyx_AddTraceback("ctransportCoefficients.ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
40559  __pyx_r = NULL;
40560  __pyx_L0:;
40561  __Pyx_XGIVEREF(__pyx_r);
40562  __Pyx_RefNannyFinishContext();
40563  return __pyx_r;
40564 }
40565 
40566 /* "ctransportCoefficients.pyx":7452
40567  * <double*> mom_v_source.data,
40568  * <double*> mom_w_source.data)
40569  * def scriptedSphereMotionSignedDistance(const double t, # <<<<<<<<<<<<<<
40570  * np.ndarray radii,
40571  * np.ndarray centers,
40572  */
40573 
40574 /* Python wrapper */
40575 static PyObject *__pyx_pw_22ctransportCoefficients_205scriptedSphereMotionSignedDistance(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
40576 static PyMethodDef __pyx_mdef_22ctransportCoefficients_205scriptedSphereMotionSignedDistance = {"scriptedSphereMotionSignedDistance", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_205scriptedSphereMotionSignedDistance, METH_VARARGS|METH_KEYWORDS, 0};
40577 static PyObject *__pyx_pw_22ctransportCoefficients_205scriptedSphereMotionSignedDistance(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
40578  double __pyx_v_t;
40579  PyArrayObject *__pyx_v_radii = 0;
40580  PyArrayObject *__pyx_v_centers = 0;
40581  PyArrayObject *__pyx_v_x = 0;
40582  PyArrayObject *__pyx_v_phi = 0;
40583  PyArrayObject *__pyx_v_n = 0;
40584  int __pyx_lineno = 0;
40585  const char *__pyx_filename = NULL;
40586  int __pyx_clineno = 0;
40587  PyObject *__pyx_r = 0;
40588  __Pyx_RefNannyDeclarations
40589  __Pyx_RefNannySetupContext("scriptedSphereMotionSignedDistance (wrapper)", 0);
40590  {
40591  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_t,&__pyx_n_s_radii,&__pyx_n_s_centers,&__pyx_n_s_x,&__pyx_n_s_phi,&__pyx_n_s_n,0};
40592  PyObject* values[6] = {0,0,0,0,0,0};
40593  if (unlikely(__pyx_kwds)) {
40594  Py_ssize_t kw_args;
40595  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
40596  switch (pos_args) {
40597  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
40598  CYTHON_FALLTHROUGH;
40599  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
40600  CYTHON_FALLTHROUGH;
40601  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
40602  CYTHON_FALLTHROUGH;
40603  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
40604  CYTHON_FALLTHROUGH;
40605  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
40606  CYTHON_FALLTHROUGH;
40607  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40608  CYTHON_FALLTHROUGH;
40609  case 0: break;
40610  default: goto __pyx_L5_argtuple_error;
40611  }
40612  kw_args = PyDict_Size(__pyx_kwds);
40613  switch (pos_args) {
40614  case 0:
40615  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
40616  else goto __pyx_L5_argtuple_error;
40617  CYTHON_FALLTHROUGH;
40618  case 1:
40619  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_radii)) != 0)) kw_args--;
40620  else {
40621  __Pyx_RaiseArgtupleInvalid("scriptedSphereMotionSignedDistance", 1, 6, 6, 1); __PYX_ERR(0, 7452, __pyx_L3_error)
40622  }
40623  CYTHON_FALLTHROUGH;
40624  case 2:
40625  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_centers)) != 0)) kw_args--;
40626  else {
40627  __Pyx_RaiseArgtupleInvalid("scriptedSphereMotionSignedDistance", 1, 6, 6, 2); __PYX_ERR(0, 7452, __pyx_L3_error)
40628  }
40629  CYTHON_FALLTHROUGH;
40630  case 3:
40631  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
40632  else {
40633  __Pyx_RaiseArgtupleInvalid("scriptedSphereMotionSignedDistance", 1, 6, 6, 3); __PYX_ERR(0, 7452, __pyx_L3_error)
40634  }
40635  CYTHON_FALLTHROUGH;
40636  case 4:
40637  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
40638  else {
40639  __Pyx_RaiseArgtupleInvalid("scriptedSphereMotionSignedDistance", 1, 6, 6, 4); __PYX_ERR(0, 7452, __pyx_L3_error)
40640  }
40641  CYTHON_FALLTHROUGH;
40642  case 5:
40643  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
40644  else {
40645  __Pyx_RaiseArgtupleInvalid("scriptedSphereMotionSignedDistance", 1, 6, 6, 5); __PYX_ERR(0, 7452, __pyx_L3_error)
40646  }
40647  }
40648  if (unlikely(kw_args > 0)) {
40649  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "scriptedSphereMotionSignedDistance") < 0)) __PYX_ERR(0, 7452, __pyx_L3_error)
40650  }
40651  } else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
40652  goto __pyx_L5_argtuple_error;
40653  } else {
40654  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40655  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
40656  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
40657  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
40658  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
40659  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
40660  }
40661  __pyx_v_t = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_t == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7452, __pyx_L3_error)
40662  __pyx_v_radii = ((PyArrayObject *)values[1]);
40663  __pyx_v_centers = ((PyArrayObject *)values[2]);
40664  __pyx_v_x = ((PyArrayObject *)values[3]);
40665  __pyx_v_phi = ((PyArrayObject *)values[4]);
40666  __pyx_v_n = ((PyArrayObject *)values[5]);
40667  }
40668  goto __pyx_L4_argument_unpacking_done;
40669  __pyx_L5_argtuple_error:;
40670  __Pyx_RaiseArgtupleInvalid("scriptedSphereMotionSignedDistance", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7452, __pyx_L3_error)
40671  __pyx_L3_error:;
40672  __Pyx_AddTraceback("ctransportCoefficients.scriptedSphereMotionSignedDistance", __pyx_clineno, __pyx_lineno, __pyx_filename);
40673  __Pyx_RefNannyFinishContext();
40674  return NULL;
40675  __pyx_L4_argument_unpacking_done:;
40676  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_radii), __pyx_ptype_5numpy_ndarray, 1, "radii", 0))) __PYX_ERR(0, 7453, __pyx_L1_error)
40677  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_centers), __pyx_ptype_5numpy_ndarray, 1, "centers", 0))) __PYX_ERR(0, 7454, __pyx_L1_error)
40678  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1, "x", 0))) __PYX_ERR(0, 7455, __pyx_L1_error)
40679  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 7456, __pyx_L1_error)
40680  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1, "n", 0))) __PYX_ERR(0, 7457, __pyx_L1_error)
40681  __pyx_r = __pyx_pf_22ctransportCoefficients_204scriptedSphereMotionSignedDistance(__pyx_self, __pyx_v_t, __pyx_v_radii, __pyx_v_centers, __pyx_v_x, __pyx_v_phi, __pyx_v_n);
40682 
40683  /* function exit code */
40684  goto __pyx_L0;
40685  __pyx_L1_error:;
40686  __pyx_r = NULL;
40687  __pyx_L0:;
40688  __Pyx_RefNannyFinishContext();
40689  return __pyx_r;
40690 }
40691 
40692 static PyObject *__pyx_pf_22ctransportCoefficients_204scriptedSphereMotionSignedDistance(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_t, PyArrayObject *__pyx_v_radii, PyArrayObject *__pyx_v_centers, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n) {
40693  PyObject *__pyx_r = NULL;
40694  __Pyx_RefNannyDeclarations
40695  PyObject *__pyx_t_1 = NULL;
40696  int __pyx_t_2;
40697  int __pyx_lineno = 0;
40698  const char *__pyx_filename = NULL;
40699  int __pyx_clineno = 0;
40700  __Pyx_RefNannySetupContext("scriptedSphereMotionSignedDistance", 0);
40701 
40702  /* "ctransportCoefficients.pyx":7458
40703  * np.ndarray phi,
40704  * np.ndarray n):
40705  * cscriptedSphereMotionSignedDistance(phi.size, # <<<<<<<<<<<<<<
40706  * t,
40707  * n.shape[n.ndim-1],
40708  */
40709  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_phi), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7458, __pyx_L1_error)
40710  __Pyx_GOTREF(__pyx_t_1);
40711  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7458, __pyx_L1_error)
40712  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
40713 
40714  /* "ctransportCoefficients.pyx":7466
40715  * <double*> x.data,
40716  * <double*> phi.data,
40717  * <double*> n.data) # <<<<<<<<<<<<<<
40718  * def shallowWater_1D_Evaluate(const double h_eps,
40719  * const double g,
40720  */
40721  scriptedSphereMotionSignedDistance(__pyx_t_2, __pyx_v_t, (__pyx_v_n->dimensions[(__pyx_v_n->nd - 1)]), (__pyx_v_radii->dimensions[0]), ((double *)__pyx_v_radii->data), ((double *)__pyx_v_centers->data), ((double *)__pyx_v_x->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_n->data));
40722 
40723  /* "ctransportCoefficients.pyx":7452
40724  * <double*> mom_v_source.data,
40725  * <double*> mom_w_source.data)
40726  * def scriptedSphereMotionSignedDistance(const double t, # <<<<<<<<<<<<<<
40727  * np.ndarray radii,
40728  * np.ndarray centers,
40729  */
40730 
40731  /* function exit code */
40732  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
40733  goto __pyx_L0;
40734  __pyx_L1_error:;
40735  __Pyx_XDECREF(__pyx_t_1);
40736  __Pyx_AddTraceback("ctransportCoefficients.scriptedSphereMotionSignedDistance", __pyx_clineno, __pyx_lineno, __pyx_filename);
40737  __pyx_r = NULL;
40738  __pyx_L0:;
40739  __Pyx_XGIVEREF(__pyx_r);
40740  __Pyx_RefNannyFinishContext();
40741  return __pyx_r;
40742 }
40743 
40744 /* "ctransportCoefficients.pyx":7467
40745  * <double*> phi.data,
40746  * <double*> n.data)
40747  * def shallowWater_1D_Evaluate(const double h_eps, # <<<<<<<<<<<<<<
40748  * const double g,
40749  * const double bedFrictionCoefficient,
40750  */
40751 
40752 /* Python wrapper */
40753 static PyObject *__pyx_pw_22ctransportCoefficients_207shallowWater_1D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
40754 static PyMethodDef __pyx_mdef_22ctransportCoefficients_207shallowWater_1D_Evaluate = {"shallowWater_1D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_207shallowWater_1D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
40755 static PyObject *__pyx_pw_22ctransportCoefficients_207shallowWater_1D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
40756  double __pyx_v_h_eps;
40757  double __pyx_v_g;
40758  double __pyx_v_bedFrictionCoefficient;
40759  double __pyx_v_bedFrictionPower;
40760  double __pyx_v_eddyViscosity;
40761  PyArrayObject *__pyx_v_x = 0;
40762  PyArrayObject *__pyx_v_db_dx = 0;
40763  PyArrayObject *__pyx_v_h = 0;
40764  PyArrayObject *__pyx_v_hu = 0;
40765  PyArrayObject *__pyx_v_H = 0;
40766  PyArrayObject *__pyx_v_mass_acc = 0;
40767  PyArrayObject *__pyx_v_dmass_acc_dh = 0;
40768  PyArrayObject *__pyx_v_mom_acc = 0;
40769  PyArrayObject *__pyx_v_dmom_acc_dhu = 0;
40770  PyArrayObject *__pyx_v_mass_adv = 0;
40771  PyArrayObject *__pyx_v_dmass_adv_dhu = 0;
40772  PyArrayObject *__pyx_v_mom_adv = 0;
40773  PyArrayObject *__pyx_v_dmom_adv_dh = 0;
40774  PyArrayObject *__pyx_v_dmom_adv_dhu = 0;
40775  PyArrayObject *__pyx_v_mom_source = 0;
40776  PyArrayObject *__pyx_v_dmom_source_dh = 0;
40777  PyArrayObject *__pyx_v_dmom_source_dhu = 0;
40778  PyArrayObject *__pyx_v_mom_diff = 0;
40779  int __pyx_lineno = 0;
40780  const char *__pyx_filename = NULL;
40781  int __pyx_clineno = 0;
40782  PyObject *__pyx_r = 0;
40783  __Pyx_RefNannyDeclarations
40784  __Pyx_RefNannySetupContext("shallowWater_1D_Evaluate (wrapper)", 0);
40785  {
40786  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_h_eps,&__pyx_n_s_g,&__pyx_n_s_bedFrictionCoefficient,&__pyx_n_s_bedFrictionPower,&__pyx_n_s_eddyViscosity,&__pyx_n_s_x,&__pyx_n_s_db_dx,&__pyx_n_s_h,&__pyx_n_s_hu,&__pyx_n_s_H,&__pyx_n_s_mass_acc,&__pyx_n_s_dmass_acc_dh,&__pyx_n_s_mom_acc,&__pyx_n_s_dmom_acc_dhu,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_dhu,&__pyx_n_s_mom_adv,&__pyx_n_s_dmom_adv_dh,&__pyx_n_s_dmom_adv_dhu,&__pyx_n_s_mom_source,&__pyx_n_s_dmom_source_dh,&__pyx_n_s_dmom_source_dhu,&__pyx_n_s_mom_diff,0};
40787  PyObject* values[23] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
40788  if (unlikely(__pyx_kwds)) {
40789  Py_ssize_t kw_args;
40790  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
40791  switch (pos_args) {
40792  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
40793  CYTHON_FALLTHROUGH;
40794  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
40795  CYTHON_FALLTHROUGH;
40796  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
40797  CYTHON_FALLTHROUGH;
40798  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
40799  CYTHON_FALLTHROUGH;
40800  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
40801  CYTHON_FALLTHROUGH;
40802  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
40803  CYTHON_FALLTHROUGH;
40804  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
40805  CYTHON_FALLTHROUGH;
40806  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
40807  CYTHON_FALLTHROUGH;
40808  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
40809  CYTHON_FALLTHROUGH;
40810  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
40811  CYTHON_FALLTHROUGH;
40812  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
40813  CYTHON_FALLTHROUGH;
40814  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
40815  CYTHON_FALLTHROUGH;
40816  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
40817  CYTHON_FALLTHROUGH;
40818  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
40819  CYTHON_FALLTHROUGH;
40820  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
40821  CYTHON_FALLTHROUGH;
40822  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
40823  CYTHON_FALLTHROUGH;
40824  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
40825  CYTHON_FALLTHROUGH;
40826  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
40827  CYTHON_FALLTHROUGH;
40828  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
40829  CYTHON_FALLTHROUGH;
40830  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
40831  CYTHON_FALLTHROUGH;
40832  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
40833  CYTHON_FALLTHROUGH;
40834  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
40835  CYTHON_FALLTHROUGH;
40836  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40837  CYTHON_FALLTHROUGH;
40838  case 0: break;
40839  default: goto __pyx_L5_argtuple_error;
40840  }
40841  kw_args = PyDict_Size(__pyx_kwds);
40842  switch (pos_args) {
40843  case 0:
40844  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h_eps)) != 0)) kw_args--;
40845  else goto __pyx_L5_argtuple_error;
40846  CYTHON_FALLTHROUGH;
40847  case 1:
40848  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
40849  else {
40850  __Pyx_RaiseArgtupleInvalid("shallowWater_1D_Evaluate", 1, 23, 23, 1); __PYX_ERR(0, 7467, __pyx_L3_error)
40851  }
40852  CYTHON_FALLTHROUGH;
40853  case 2:
40854  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bedFrictionCoefficient)) != 0)) kw_args--;
40855  else {
40856  __Pyx_RaiseArgtupleInvalid("shallowWater_1D_Evaluate", 1, 23, 23, 2); __PYX_ERR(0, 7467, __pyx_L3_error)
40857  }
40858  CYTHON_FALLTHROUGH;
40859  case 3:
40860  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bedFrictionPower)) != 0)) kw_args--;
40861  else {
40862  __Pyx_RaiseArgtupleInvalid("shallowWater_1D_Evaluate", 1, 23, 23, 3); __PYX_ERR(0, 7467, __pyx_L3_error)
40863  }
40864  CYTHON_FALLTHROUGH;
40865  case 4:
40866  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eddyViscosity)) != 0)) kw_args--;
40867  else {
40868  __Pyx_RaiseArgtupleInvalid("shallowWater_1D_Evaluate", 1, 23, 23, 4); __PYX_ERR(0, 7467, __pyx_L3_error)
40869  }
40870  CYTHON_FALLTHROUGH;
40871  case 5:
40872  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
40873  else {
40874  __Pyx_RaiseArgtupleInvalid("shallowWater_1D_Evaluate", 1, 23, 23, 5); __PYX_ERR(0, 7467, __pyx_L3_error)
40875  }
40876  CYTHON_FALLTHROUGH;
40877  case 6:
40878  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_db_dx)) != 0)) kw_args--;
40879  else {
40880  __Pyx_RaiseArgtupleInvalid("shallowWater_1D_Evaluate", 1, 23, 23, 6); __PYX_ERR(0, 7467, __pyx_L3_error)
40881  }
40882  CYTHON_FALLTHROUGH;
40883  case 7:
40884  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h)) != 0)) kw_args--;
40885  else {
40886  __Pyx_RaiseArgtupleInvalid("shallowWater_1D_Evaluate", 1, 23, 23, 7); __PYX_ERR(0, 7467, __pyx_L3_error)
40887  }
40888  CYTHON_FALLTHROUGH;
40889  case 8:
40890  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hu)) != 0)) kw_args--;
40891  else {
40892  __Pyx_RaiseArgtupleInvalid("shallowWater_1D_Evaluate", 1, 23, 23, 8); __PYX_ERR(0, 7467, __pyx_L3_error)
40893  }
40894  CYTHON_FALLTHROUGH;
40895  case 9:
40896  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
40897  else {
40898  __Pyx_RaiseArgtupleInvalid("shallowWater_1D_Evaluate", 1, 23, 23, 9); __PYX_ERR(0, 7467, __pyx_L3_error)
40899  }
40900  CYTHON_FALLTHROUGH;
40901  case 10:
40902  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_acc)) != 0)) kw_args--;
40903  else {
40904  __Pyx_RaiseArgtupleInvalid("shallowWater_1D_Evaluate", 1, 23, 23, 10); __PYX_ERR(0, 7467, __pyx_L3_error)
40905  }
40906  CYTHON_FALLTHROUGH;
40907  case 11:
40908  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_acc_dh)) != 0)) kw_args--;
40909  else {
40910  __Pyx_RaiseArgtupleInvalid("shallowWater_1D_Evaluate", 1, 23, 23, 11); __PYX_ERR(0, 7467, __pyx_L3_error)
40911  }
40912  CYTHON_FALLTHROUGH;
40913  case 12:
40914  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_acc)) != 0)) kw_args--;
40915  else {
40916  __Pyx_RaiseArgtupleInvalid("shallowWater_1D_Evaluate", 1, 23, 23, 12); __PYX_ERR(0, 7467, __pyx_L3_error)
40917  }
40918  CYTHON_FALLTHROUGH;
40919  case 13:
40920  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_acc_dhu)) != 0)) kw_args--;
40921  else {
40922  __Pyx_RaiseArgtupleInvalid("shallowWater_1D_Evaluate", 1, 23, 23, 13); __PYX_ERR(0, 7467, __pyx_L3_error)
40923  }
40924  CYTHON_FALLTHROUGH;
40925  case 14:
40926  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
40927  else {
40928  __Pyx_RaiseArgtupleInvalid("shallowWater_1D_Evaluate", 1, 23, 23, 14); __PYX_ERR(0, 7467, __pyx_L3_error)
40929  }
40930  CYTHON_FALLTHROUGH;
40931  case 15:
40932  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_dhu)) != 0)) kw_args--;
40933  else {
40934  __Pyx_RaiseArgtupleInvalid("shallowWater_1D_Evaluate", 1, 23, 23, 15); __PYX_ERR(0, 7467, __pyx_L3_error)
40935  }
40936  CYTHON_FALLTHROUGH;
40937  case 16:
40938  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_adv)) != 0)) kw_args--;
40939  else {
40940  __Pyx_RaiseArgtupleInvalid("shallowWater_1D_Evaluate", 1, 23, 23, 16); __PYX_ERR(0, 7467, __pyx_L3_error)
40941  }
40942  CYTHON_FALLTHROUGH;
40943  case 17:
40944  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_adv_dh)) != 0)) kw_args--;
40945  else {
40946  __Pyx_RaiseArgtupleInvalid("shallowWater_1D_Evaluate", 1, 23, 23, 17); __PYX_ERR(0, 7467, __pyx_L3_error)
40947  }
40948  CYTHON_FALLTHROUGH;
40949  case 18:
40950  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_adv_dhu)) != 0)) kw_args--;
40951  else {
40952  __Pyx_RaiseArgtupleInvalid("shallowWater_1D_Evaluate", 1, 23, 23, 18); __PYX_ERR(0, 7467, __pyx_L3_error)
40953  }
40954  CYTHON_FALLTHROUGH;
40955  case 19:
40956  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_source)) != 0)) kw_args--;
40957  else {
40958  __Pyx_RaiseArgtupleInvalid("shallowWater_1D_Evaluate", 1, 23, 23, 19); __PYX_ERR(0, 7467, __pyx_L3_error)
40959  }
40960  CYTHON_FALLTHROUGH;
40961  case 20:
40962  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_source_dh)) != 0)) kw_args--;
40963  else {
40964  __Pyx_RaiseArgtupleInvalid("shallowWater_1D_Evaluate", 1, 23, 23, 20); __PYX_ERR(0, 7467, __pyx_L3_error)
40965  }
40966  CYTHON_FALLTHROUGH;
40967  case 21:
40968  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_source_dhu)) != 0)) kw_args--;
40969  else {
40970  __Pyx_RaiseArgtupleInvalid("shallowWater_1D_Evaluate", 1, 23, 23, 21); __PYX_ERR(0, 7467, __pyx_L3_error)
40971  }
40972  CYTHON_FALLTHROUGH;
40973  case 22:
40974  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_diff)) != 0)) kw_args--;
40975  else {
40976  __Pyx_RaiseArgtupleInvalid("shallowWater_1D_Evaluate", 1, 23, 23, 22); __PYX_ERR(0, 7467, __pyx_L3_error)
40977  }
40978  }
40979  if (unlikely(kw_args > 0)) {
40980  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "shallowWater_1D_Evaluate") < 0)) __PYX_ERR(0, 7467, __pyx_L3_error)
40981  }
40982  } else if (PyTuple_GET_SIZE(__pyx_args) != 23) {
40983  goto __pyx_L5_argtuple_error;
40984  } else {
40985  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40986  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
40987  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
40988  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
40989  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
40990  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
40991  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
40992  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
40993  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
40994  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
40995  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
40996  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
40997  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
40998  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
40999  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
41000  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
41001  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
41002  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
41003  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
41004  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
41005  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
41006  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
41007  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
41008  }
41009  __pyx_v_h_eps = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_h_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7467, __pyx_L3_error)
41010  __pyx_v_g = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_g == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7468, __pyx_L3_error)
41011  __pyx_v_bedFrictionCoefficient = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_bedFrictionCoefficient == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7469, __pyx_L3_error)
41012  __pyx_v_bedFrictionPower = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_bedFrictionPower == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7470, __pyx_L3_error)
41013  __pyx_v_eddyViscosity = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_eddyViscosity == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7471, __pyx_L3_error)
41014  __pyx_v_x = ((PyArrayObject *)values[5]);
41015  __pyx_v_db_dx = ((PyArrayObject *)values[6]);
41016  __pyx_v_h = ((PyArrayObject *)values[7]);
41017  __pyx_v_hu = ((PyArrayObject *)values[8]);
41018  __pyx_v_H = ((PyArrayObject *)values[9]);
41019  __pyx_v_mass_acc = ((PyArrayObject *)values[10]);
41020  __pyx_v_dmass_acc_dh = ((PyArrayObject *)values[11]);
41021  __pyx_v_mom_acc = ((PyArrayObject *)values[12]);
41022  __pyx_v_dmom_acc_dhu = ((PyArrayObject *)values[13]);
41023  __pyx_v_mass_adv = ((PyArrayObject *)values[14]);
41024  __pyx_v_dmass_adv_dhu = ((PyArrayObject *)values[15]);
41025  __pyx_v_mom_adv = ((PyArrayObject *)values[16]);
41026  __pyx_v_dmom_adv_dh = ((PyArrayObject *)values[17]);
41027  __pyx_v_dmom_adv_dhu = ((PyArrayObject *)values[18]);
41028  __pyx_v_mom_source = ((PyArrayObject *)values[19]);
41029  __pyx_v_dmom_source_dh = ((PyArrayObject *)values[20]);
41030  __pyx_v_dmom_source_dhu = ((PyArrayObject *)values[21]);
41031  __pyx_v_mom_diff = ((PyArrayObject *)values[22]);
41032  }
41033  goto __pyx_L4_argument_unpacking_done;
41034  __pyx_L5_argtuple_error:;
41035  __Pyx_RaiseArgtupleInvalid("shallowWater_1D_Evaluate", 1, 23, 23, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7467, __pyx_L3_error)
41036  __pyx_L3_error:;
41037  __Pyx_AddTraceback("ctransportCoefficients.shallowWater_1D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
41038  __Pyx_RefNannyFinishContext();
41039  return NULL;
41040  __pyx_L4_argument_unpacking_done:;
41041  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1, "x", 0))) __PYX_ERR(0, 7472, __pyx_L1_error)
41042  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_db_dx), __pyx_ptype_5numpy_ndarray, 1, "db_dx", 0))) __PYX_ERR(0, 7473, __pyx_L1_error)
41043  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_h), __pyx_ptype_5numpy_ndarray, 1, "h", 0))) __PYX_ERR(0, 7474, __pyx_L1_error)
41044  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_hu), __pyx_ptype_5numpy_ndarray, 1, "hu", 0))) __PYX_ERR(0, 7475, __pyx_L1_error)
41045  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1, "H", 0))) __PYX_ERR(0, 7476, __pyx_L1_error)
41046  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_acc), __pyx_ptype_5numpy_ndarray, 1, "mass_acc", 0))) __PYX_ERR(0, 7477, __pyx_L1_error)
41047  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_acc_dh), __pyx_ptype_5numpy_ndarray, 1, "dmass_acc_dh", 0))) __PYX_ERR(0, 7478, __pyx_L1_error)
41048  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_acc", 0))) __PYX_ERR(0, 7479, __pyx_L1_error)
41049  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_acc_dhu), __pyx_ptype_5numpy_ndarray, 1, "dmom_acc_dhu", 0))) __PYX_ERR(0, 7480, __pyx_L1_error)
41050  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 7481, __pyx_L1_error)
41051  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_dhu), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_dhu", 0))) __PYX_ERR(0, 7482, __pyx_L1_error)
41052  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_adv", 0))) __PYX_ERR(0, 7483, __pyx_L1_error)
41053  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_adv_dh), __pyx_ptype_5numpy_ndarray, 1, "dmom_adv_dh", 0))) __PYX_ERR(0, 7484, __pyx_L1_error)
41054  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_adv_dhu), __pyx_ptype_5numpy_ndarray, 1, "dmom_adv_dhu", 0))) __PYX_ERR(0, 7485, __pyx_L1_error)
41055  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_source), __pyx_ptype_5numpy_ndarray, 1, "mom_source", 0))) __PYX_ERR(0, 7486, __pyx_L1_error)
41056  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_source_dh), __pyx_ptype_5numpy_ndarray, 1, "dmom_source_dh", 0))) __PYX_ERR(0, 7487, __pyx_L1_error)
41057  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_source_dhu), __pyx_ptype_5numpy_ndarray, 1, "dmom_source_dhu", 0))) __PYX_ERR(0, 7488, __pyx_L1_error)
41058  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_diff), __pyx_ptype_5numpy_ndarray, 1, "mom_diff", 0))) __PYX_ERR(0, 7489, __pyx_L1_error)
41059  __pyx_r = __pyx_pf_22ctransportCoefficients_206shallowWater_1D_Evaluate(__pyx_self, __pyx_v_h_eps, __pyx_v_g, __pyx_v_bedFrictionCoefficient, __pyx_v_bedFrictionPower, __pyx_v_eddyViscosity, __pyx_v_x, __pyx_v_db_dx, __pyx_v_h, __pyx_v_hu, __pyx_v_H, __pyx_v_mass_acc, __pyx_v_dmass_acc_dh, __pyx_v_mom_acc, __pyx_v_dmom_acc_dhu, __pyx_v_mass_adv, __pyx_v_dmass_adv_dhu, __pyx_v_mom_adv, __pyx_v_dmom_adv_dh, __pyx_v_dmom_adv_dhu, __pyx_v_mom_source, __pyx_v_dmom_source_dh, __pyx_v_dmom_source_dhu, __pyx_v_mom_diff);
41060 
41061  /* function exit code */
41062  goto __pyx_L0;
41063  __pyx_L1_error:;
41064  __pyx_r = NULL;
41065  __pyx_L0:;
41066  __Pyx_RefNannyFinishContext();
41067  return __pyx_r;
41068 }
41069 
41070 static PyObject *__pyx_pf_22ctransportCoefficients_206shallowWater_1D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_h_eps, double __pyx_v_g, double __pyx_v_bedFrictionCoefficient, double __pyx_v_bedFrictionPower, double __pyx_v_eddyViscosity, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_db_dx, PyArrayObject *__pyx_v_h, PyArrayObject *__pyx_v_hu, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_mass_acc, PyArrayObject *__pyx_v_dmass_acc_dh, PyArrayObject *__pyx_v_mom_acc, PyArrayObject *__pyx_v_dmom_acc_dhu, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_dhu, PyArrayObject *__pyx_v_mom_adv, PyArrayObject *__pyx_v_dmom_adv_dh, PyArrayObject *__pyx_v_dmom_adv_dhu, PyArrayObject *__pyx_v_mom_source, PyArrayObject *__pyx_v_dmom_source_dh, PyArrayObject *__pyx_v_dmom_source_dhu, PyArrayObject *__pyx_v_mom_diff) {
41071  PyObject *__pyx_r = NULL;
41072  __Pyx_RefNannyDeclarations
41073  PyObject *__pyx_t_1 = NULL;
41074  int __pyx_t_2;
41075  int __pyx_lineno = 0;
41076  const char *__pyx_filename = NULL;
41077  int __pyx_clineno = 0;
41078  __Pyx_RefNannySetupContext("shallowWater_1D_Evaluate", 0);
41079 
41080  /* "ctransportCoefficients.pyx":7490
41081  * np.ndarray dmom_source_dhu,
41082  * np.ndarray mom_diff):
41083  * cshallowWater_1D_Evaluate(h.size, # <<<<<<<<<<<<<<
41084  * h_eps,
41085  * g,
41086  */
41087  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_h), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7490, __pyx_L1_error)
41088  __Pyx_GOTREF(__pyx_t_1);
41089  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7490, __pyx_L1_error)
41090  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
41091 
41092  /* "ctransportCoefficients.pyx":7513
41093  * <double*> dmom_source_dh.data,
41094  * <double*> dmom_source_dhu.data,
41095  * <double*> mom_diff.data) # <<<<<<<<<<<<<<
41096  * def shallowWater_2D_Evaluate(const double h_eps,
41097  * const double g,
41098  */
41099  shallowWater_1D_Evaluate(__pyx_t_2, __pyx_v_h_eps, __pyx_v_g, __pyx_v_bedFrictionCoefficient, __pyx_v_bedFrictionPower, __pyx_v_eddyViscosity, ((double *)__pyx_v_x->data), ((double *)__pyx_v_db_dx->data), ((double *)__pyx_v_h->data), ((double *)__pyx_v_hu->data), ((double *)__pyx_v_H->data), ((double *)__pyx_v_mass_acc->data), ((double *)__pyx_v_dmass_acc_dh->data), ((double *)__pyx_v_mom_acc->data), ((double *)__pyx_v_dmom_acc_dhu->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_dhu->data), ((double *)__pyx_v_mom_adv->data), ((double *)__pyx_v_dmom_adv_dh->data), ((double *)__pyx_v_dmom_adv_dhu->data), ((double *)__pyx_v_mom_source->data), ((double *)__pyx_v_dmom_source_dh->data), ((double *)__pyx_v_dmom_source_dhu->data), ((double *)__pyx_v_mom_diff->data));
41100 
41101  /* "ctransportCoefficients.pyx":7467
41102  * <double*> phi.data,
41103  * <double*> n.data)
41104  * def shallowWater_1D_Evaluate(const double h_eps, # <<<<<<<<<<<<<<
41105  * const double g,
41106  * const double bedFrictionCoefficient,
41107  */
41108 
41109  /* function exit code */
41110  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
41111  goto __pyx_L0;
41112  __pyx_L1_error:;
41113  __Pyx_XDECREF(__pyx_t_1);
41114  __Pyx_AddTraceback("ctransportCoefficients.shallowWater_1D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
41115  __pyx_r = NULL;
41116  __pyx_L0:;
41117  __Pyx_XGIVEREF(__pyx_r);
41118  __Pyx_RefNannyFinishContext();
41119  return __pyx_r;
41120 }
41121 
41122 /* "ctransportCoefficients.pyx":7514
41123  * <double*> dmom_source_dhu.data,
41124  * <double*> mom_diff.data)
41125  * def shallowWater_2D_Evaluate(const double h_eps, # <<<<<<<<<<<<<<
41126  * const double g,
41127  * const double bedFrictionCoefficient,
41128  */
41129 
41130 /* Python wrapper */
41131 static PyObject *__pyx_pw_22ctransportCoefficients_209shallowWater_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
41132 static PyMethodDef __pyx_mdef_22ctransportCoefficients_209shallowWater_2D_Evaluate = {"shallowWater_2D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_209shallowWater_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
41133 static PyObject *__pyx_pw_22ctransportCoefficients_209shallowWater_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
41134  double __pyx_v_h_eps;
41135  double __pyx_v_g;
41136  double __pyx_v_bedFrictionCoefficient;
41137  double __pyx_v_bedFrictionPower;
41138  double __pyx_v_eddyViscosity;
41139  PyArrayObject *__pyx_v_x = 0;
41140  PyArrayObject *__pyx_v_grad_b = 0;
41141  PyArrayObject *__pyx_v_h = 0;
41142  PyArrayObject *__pyx_v_hu = 0;
41143  PyArrayObject *__pyx_v_hv = 0;
41144  PyArrayObject *__pyx_v_H = 0;
41145  PyArrayObject *__pyx_v_mass_acc = 0;
41146  PyArrayObject *__pyx_v_dmass_acc_dh = 0;
41147  PyArrayObject *__pyx_v_mom_u_acc = 0;
41148  PyArrayObject *__pyx_v_dmom_u_acc_dhu = 0;
41149  PyArrayObject *__pyx_v_mom_v_acc = 0;
41150  PyArrayObject *__pyx_v_dmom_v_acc_dhv = 0;
41151  PyArrayObject *__pyx_v_mass_adv = 0;
41152  PyArrayObject *__pyx_v_dmass_adv_dhu = 0;
41153  PyArrayObject *__pyx_v_dmass_adv_dhv = 0;
41154  PyArrayObject *__pyx_v_mom_u_adv = 0;
41155  PyArrayObject *__pyx_v_dmom_u_adv_dh = 0;
41156  PyArrayObject *__pyx_v_dmom_u_adv_dhu = 0;
41157  PyArrayObject *__pyx_v_dmom_u_adv_dhv = 0;
41158  PyArrayObject *__pyx_v_mom_v_adv = 0;
41159  PyArrayObject *__pyx_v_dmom_v_adv_dh = 0;
41160  PyArrayObject *__pyx_v_dmom_v_adv_dhu = 0;
41161  PyArrayObject *__pyx_v_dmom_v_adv_dhv = 0;
41162  PyArrayObject *__pyx_v_mom_u_diff = 0;
41163  PyArrayObject *__pyx_v_mom_v_diff = 0;
41164  PyArrayObject *__pyx_v_mom_u_source = 0;
41165  PyArrayObject *__pyx_v_dmom_u_source_dh = 0;
41166  PyArrayObject *__pyx_v_dmom_u_source_dhu = 0;
41167  PyArrayObject *__pyx_v_dmom_u_source_dhv = 0;
41168  PyArrayObject *__pyx_v_mom_v_source = 0;
41169  PyArrayObject *__pyx_v_dmom_v_source_dh = 0;
41170  PyArrayObject *__pyx_v_dmom_v_source_dhu = 0;
41171  PyArrayObject *__pyx_v_dmom_v_source_dhv = 0;
41172  int __pyx_lineno = 0;
41173  const char *__pyx_filename = NULL;
41174  int __pyx_clineno = 0;
41175  PyObject *__pyx_r = 0;
41176  __Pyx_RefNannyDeclarations
41177  __Pyx_RefNannySetupContext("shallowWater_2D_Evaluate (wrapper)", 0);
41178  {
41179  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_h_eps,&__pyx_n_s_g,&__pyx_n_s_bedFrictionCoefficient,&__pyx_n_s_bedFrictionPower,&__pyx_n_s_eddyViscosity,&__pyx_n_s_x,&__pyx_n_s_grad_b,&__pyx_n_s_h,&__pyx_n_s_hu,&__pyx_n_s_hv,&__pyx_n_s_H,&__pyx_n_s_mass_acc,&__pyx_n_s_dmass_acc_dh,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_dhu,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_dhv,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_dhu,&__pyx_n_s_dmass_adv_dhv,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_dh,&__pyx_n_s_dmom_u_adv_dhu,&__pyx_n_s_dmom_u_adv_dhv,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_dh,&__pyx_n_s_dmom_v_adv_dhu,&__pyx_n_s_dmom_v_adv_dhv,&__pyx_n_s_mom_u_diff,&__pyx_n_s_mom_v_diff,&__pyx_n_s_mom_u_source,&__pyx_n_s_dmom_u_source_dh,&__pyx_n_s_dmom_u_source_dhu,&__pyx_n_s_dmom_u_source_dhv,&__pyx_n_s_mom_v_source,&__pyx_n_s_dmom_v_source_dh,&__pyx_n_s_dmom_v_source_dhu,&__pyx_n_s_dmom_v_source_dhv,0};
41180  PyObject* values[38] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
41181  if (unlikely(__pyx_kwds)) {
41182  Py_ssize_t kw_args;
41183  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
41184  switch (pos_args) {
41185  case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
41186  CYTHON_FALLTHROUGH;
41187  case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
41188  CYTHON_FALLTHROUGH;
41189  case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
41190  CYTHON_FALLTHROUGH;
41191  case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
41192  CYTHON_FALLTHROUGH;
41193  case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
41194  CYTHON_FALLTHROUGH;
41195  case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
41196  CYTHON_FALLTHROUGH;
41197  case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
41198  CYTHON_FALLTHROUGH;
41199  case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
41200  CYTHON_FALLTHROUGH;
41201  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
41202  CYTHON_FALLTHROUGH;
41203  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
41204  CYTHON_FALLTHROUGH;
41205  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
41206  CYTHON_FALLTHROUGH;
41207  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
41208  CYTHON_FALLTHROUGH;
41209  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
41210  CYTHON_FALLTHROUGH;
41211  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
41212  CYTHON_FALLTHROUGH;
41213  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
41214  CYTHON_FALLTHROUGH;
41215  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
41216  CYTHON_FALLTHROUGH;
41217  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
41218  CYTHON_FALLTHROUGH;
41219  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
41220  CYTHON_FALLTHROUGH;
41221  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
41222  CYTHON_FALLTHROUGH;
41223  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
41224  CYTHON_FALLTHROUGH;
41225  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
41226  CYTHON_FALLTHROUGH;
41227  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
41228  CYTHON_FALLTHROUGH;
41229  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
41230  CYTHON_FALLTHROUGH;
41231  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
41232  CYTHON_FALLTHROUGH;
41233  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
41234  CYTHON_FALLTHROUGH;
41235  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
41236  CYTHON_FALLTHROUGH;
41237  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
41238  CYTHON_FALLTHROUGH;
41239  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
41240  CYTHON_FALLTHROUGH;
41241  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
41242  CYTHON_FALLTHROUGH;
41243  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
41244  CYTHON_FALLTHROUGH;
41245  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
41246  CYTHON_FALLTHROUGH;
41247  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
41248  CYTHON_FALLTHROUGH;
41249  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
41250  CYTHON_FALLTHROUGH;
41251  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
41252  CYTHON_FALLTHROUGH;
41253  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
41254  CYTHON_FALLTHROUGH;
41255  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
41256  CYTHON_FALLTHROUGH;
41257  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
41258  CYTHON_FALLTHROUGH;
41259  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
41260  CYTHON_FALLTHROUGH;
41261  case 0: break;
41262  default: goto __pyx_L5_argtuple_error;
41263  }
41264  kw_args = PyDict_Size(__pyx_kwds);
41265  switch (pos_args) {
41266  case 0:
41267  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h_eps)) != 0)) kw_args--;
41268  else goto __pyx_L5_argtuple_error;
41269  CYTHON_FALLTHROUGH;
41270  case 1:
41271  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
41272  else {
41273  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 1); __PYX_ERR(0, 7514, __pyx_L3_error)
41274  }
41275  CYTHON_FALLTHROUGH;
41276  case 2:
41277  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bedFrictionCoefficient)) != 0)) kw_args--;
41278  else {
41279  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 2); __PYX_ERR(0, 7514, __pyx_L3_error)
41280  }
41281  CYTHON_FALLTHROUGH;
41282  case 3:
41283  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bedFrictionPower)) != 0)) kw_args--;
41284  else {
41285  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 3); __PYX_ERR(0, 7514, __pyx_L3_error)
41286  }
41287  CYTHON_FALLTHROUGH;
41288  case 4:
41289  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eddyViscosity)) != 0)) kw_args--;
41290  else {
41291  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 4); __PYX_ERR(0, 7514, __pyx_L3_error)
41292  }
41293  CYTHON_FALLTHROUGH;
41294  case 5:
41295  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
41296  else {
41297  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 5); __PYX_ERR(0, 7514, __pyx_L3_error)
41298  }
41299  CYTHON_FALLTHROUGH;
41300  case 6:
41301  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_b)) != 0)) kw_args--;
41302  else {
41303  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 6); __PYX_ERR(0, 7514, __pyx_L3_error)
41304  }
41305  CYTHON_FALLTHROUGH;
41306  case 7:
41307  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h)) != 0)) kw_args--;
41308  else {
41309  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 7); __PYX_ERR(0, 7514, __pyx_L3_error)
41310  }
41311  CYTHON_FALLTHROUGH;
41312  case 8:
41313  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hu)) != 0)) kw_args--;
41314  else {
41315  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 8); __PYX_ERR(0, 7514, __pyx_L3_error)
41316  }
41317  CYTHON_FALLTHROUGH;
41318  case 9:
41319  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hv)) != 0)) kw_args--;
41320  else {
41321  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 9); __PYX_ERR(0, 7514, __pyx_L3_error)
41322  }
41323  CYTHON_FALLTHROUGH;
41324  case 10:
41325  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
41326  else {
41327  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 10); __PYX_ERR(0, 7514, __pyx_L3_error)
41328  }
41329  CYTHON_FALLTHROUGH;
41330  case 11:
41331  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_acc)) != 0)) kw_args--;
41332  else {
41333  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 11); __PYX_ERR(0, 7514, __pyx_L3_error)
41334  }
41335  CYTHON_FALLTHROUGH;
41336  case 12:
41337  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_acc_dh)) != 0)) kw_args--;
41338  else {
41339  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 12); __PYX_ERR(0, 7514, __pyx_L3_error)
41340  }
41341  CYTHON_FALLTHROUGH;
41342  case 13:
41343  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
41344  else {
41345  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 13); __PYX_ERR(0, 7514, __pyx_L3_error)
41346  }
41347  CYTHON_FALLTHROUGH;
41348  case 14:
41349  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_dhu)) != 0)) kw_args--;
41350  else {
41351  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 14); __PYX_ERR(0, 7514, __pyx_L3_error)
41352  }
41353  CYTHON_FALLTHROUGH;
41354  case 15:
41355  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
41356  else {
41357  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 15); __PYX_ERR(0, 7514, __pyx_L3_error)
41358  }
41359  CYTHON_FALLTHROUGH;
41360  case 16:
41361  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_dhv)) != 0)) kw_args--;
41362  else {
41363  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 16); __PYX_ERR(0, 7514, __pyx_L3_error)
41364  }
41365  CYTHON_FALLTHROUGH;
41366  case 17:
41367  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
41368  else {
41369  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 17); __PYX_ERR(0, 7514, __pyx_L3_error)
41370  }
41371  CYTHON_FALLTHROUGH;
41372  case 18:
41373  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_dhu)) != 0)) kw_args--;
41374  else {
41375  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 18); __PYX_ERR(0, 7514, __pyx_L3_error)
41376  }
41377  CYTHON_FALLTHROUGH;
41378  case 19:
41379  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_dhv)) != 0)) kw_args--;
41380  else {
41381  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 19); __PYX_ERR(0, 7514, __pyx_L3_error)
41382  }
41383  CYTHON_FALLTHROUGH;
41384  case 20:
41385  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
41386  else {
41387  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 20); __PYX_ERR(0, 7514, __pyx_L3_error)
41388  }
41389  CYTHON_FALLTHROUGH;
41390  case 21:
41391  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_dh)) != 0)) kw_args--;
41392  else {
41393  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 21); __PYX_ERR(0, 7514, __pyx_L3_error)
41394  }
41395  CYTHON_FALLTHROUGH;
41396  case 22:
41397  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_dhu)) != 0)) kw_args--;
41398  else {
41399  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 22); __PYX_ERR(0, 7514, __pyx_L3_error)
41400  }
41401  CYTHON_FALLTHROUGH;
41402  case 23:
41403  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_dhv)) != 0)) kw_args--;
41404  else {
41405  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 23); __PYX_ERR(0, 7514, __pyx_L3_error)
41406  }
41407  CYTHON_FALLTHROUGH;
41408  case 24:
41409  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
41410  else {
41411  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 24); __PYX_ERR(0, 7514, __pyx_L3_error)
41412  }
41413  CYTHON_FALLTHROUGH;
41414  case 25:
41415  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_dh)) != 0)) kw_args--;
41416  else {
41417  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 25); __PYX_ERR(0, 7514, __pyx_L3_error)
41418  }
41419  CYTHON_FALLTHROUGH;
41420  case 26:
41421  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_dhu)) != 0)) kw_args--;
41422  else {
41423  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 26); __PYX_ERR(0, 7514, __pyx_L3_error)
41424  }
41425  CYTHON_FALLTHROUGH;
41426  case 27:
41427  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_dhv)) != 0)) kw_args--;
41428  else {
41429  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 27); __PYX_ERR(0, 7514, __pyx_L3_error)
41430  }
41431  CYTHON_FALLTHROUGH;
41432  case 28:
41433  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff)) != 0)) kw_args--;
41434  else {
41435  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 28); __PYX_ERR(0, 7514, __pyx_L3_error)
41436  }
41437  CYTHON_FALLTHROUGH;
41438  case 29:
41439  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff)) != 0)) kw_args--;
41440  else {
41441  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 29); __PYX_ERR(0, 7514, __pyx_L3_error)
41442  }
41443  CYTHON_FALLTHROUGH;
41444  case 30:
41445  if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
41446  else {
41447  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 30); __PYX_ERR(0, 7514, __pyx_L3_error)
41448  }
41449  CYTHON_FALLTHROUGH;
41450  case 31:
41451  if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_dh)) != 0)) kw_args--;
41452  else {
41453  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 31); __PYX_ERR(0, 7514, __pyx_L3_error)
41454  }
41455  CYTHON_FALLTHROUGH;
41456  case 32:
41457  if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_dhu)) != 0)) kw_args--;
41458  else {
41459  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 32); __PYX_ERR(0, 7514, __pyx_L3_error)
41460  }
41461  CYTHON_FALLTHROUGH;
41462  case 33:
41463  if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_dhv)) != 0)) kw_args--;
41464  else {
41465  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 33); __PYX_ERR(0, 7514, __pyx_L3_error)
41466  }
41467  CYTHON_FALLTHROUGH;
41468  case 34:
41469  if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
41470  else {
41471  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 34); __PYX_ERR(0, 7514, __pyx_L3_error)
41472  }
41473  CYTHON_FALLTHROUGH;
41474  case 35:
41475  if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_dh)) != 0)) kw_args--;
41476  else {
41477  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 35); __PYX_ERR(0, 7514, __pyx_L3_error)
41478  }
41479  CYTHON_FALLTHROUGH;
41480  case 36:
41481  if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_dhu)) != 0)) kw_args--;
41482  else {
41483  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 36); __PYX_ERR(0, 7514, __pyx_L3_error)
41484  }
41485  CYTHON_FALLTHROUGH;
41486  case 37:
41487  if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_dhv)) != 0)) kw_args--;
41488  else {
41489  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, 37); __PYX_ERR(0, 7514, __pyx_L3_error)
41490  }
41491  }
41492  if (unlikely(kw_args > 0)) {
41493  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "shallowWater_2D_Evaluate") < 0)) __PYX_ERR(0, 7514, __pyx_L3_error)
41494  }
41495  } else if (PyTuple_GET_SIZE(__pyx_args) != 38) {
41496  goto __pyx_L5_argtuple_error;
41497  } else {
41498  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
41499  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
41500  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
41501  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
41502  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
41503  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
41504  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
41505  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
41506  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
41507  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
41508  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
41509  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
41510  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
41511  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
41512  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
41513  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
41514  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
41515  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
41516  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
41517  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
41518  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
41519  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
41520  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
41521  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
41522  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
41523  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
41524  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
41525  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
41526  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
41527  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
41528  values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
41529  values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
41530  values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
41531  values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
41532  values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
41533  values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
41534  values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
41535  values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
41536  }
41537  __pyx_v_h_eps = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_h_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7514, __pyx_L3_error)
41538  __pyx_v_g = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_g == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7515, __pyx_L3_error)
41539  __pyx_v_bedFrictionCoefficient = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_bedFrictionCoefficient == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7516, __pyx_L3_error)
41540  __pyx_v_bedFrictionPower = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_bedFrictionPower == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7517, __pyx_L3_error)
41541  __pyx_v_eddyViscosity = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_eddyViscosity == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7518, __pyx_L3_error)
41542  __pyx_v_x = ((PyArrayObject *)values[5]);
41543  __pyx_v_grad_b = ((PyArrayObject *)values[6]);
41544  __pyx_v_h = ((PyArrayObject *)values[7]);
41545  __pyx_v_hu = ((PyArrayObject *)values[8]);
41546  __pyx_v_hv = ((PyArrayObject *)values[9]);
41547  __pyx_v_H = ((PyArrayObject *)values[10]);
41548  __pyx_v_mass_acc = ((PyArrayObject *)values[11]);
41549  __pyx_v_dmass_acc_dh = ((PyArrayObject *)values[12]);
41550  __pyx_v_mom_u_acc = ((PyArrayObject *)values[13]);
41551  __pyx_v_dmom_u_acc_dhu = ((PyArrayObject *)values[14]);
41552  __pyx_v_mom_v_acc = ((PyArrayObject *)values[15]);
41553  __pyx_v_dmom_v_acc_dhv = ((PyArrayObject *)values[16]);
41554  __pyx_v_mass_adv = ((PyArrayObject *)values[17]);
41555  __pyx_v_dmass_adv_dhu = ((PyArrayObject *)values[18]);
41556  __pyx_v_dmass_adv_dhv = ((PyArrayObject *)values[19]);
41557  __pyx_v_mom_u_adv = ((PyArrayObject *)values[20]);
41558  __pyx_v_dmom_u_adv_dh = ((PyArrayObject *)values[21]);
41559  __pyx_v_dmom_u_adv_dhu = ((PyArrayObject *)values[22]);
41560  __pyx_v_dmom_u_adv_dhv = ((PyArrayObject *)values[23]);
41561  __pyx_v_mom_v_adv = ((PyArrayObject *)values[24]);
41562  __pyx_v_dmom_v_adv_dh = ((PyArrayObject *)values[25]);
41563  __pyx_v_dmom_v_adv_dhu = ((PyArrayObject *)values[26]);
41564  __pyx_v_dmom_v_adv_dhv = ((PyArrayObject *)values[27]);
41565  __pyx_v_mom_u_diff = ((PyArrayObject *)values[28]);
41566  __pyx_v_mom_v_diff = ((PyArrayObject *)values[29]);
41567  __pyx_v_mom_u_source = ((PyArrayObject *)values[30]);
41568  __pyx_v_dmom_u_source_dh = ((PyArrayObject *)values[31]);
41569  __pyx_v_dmom_u_source_dhu = ((PyArrayObject *)values[32]);
41570  __pyx_v_dmom_u_source_dhv = ((PyArrayObject *)values[33]);
41571  __pyx_v_mom_v_source = ((PyArrayObject *)values[34]);
41572  __pyx_v_dmom_v_source_dh = ((PyArrayObject *)values[35]);
41573  __pyx_v_dmom_v_source_dhu = ((PyArrayObject *)values[36]);
41574  __pyx_v_dmom_v_source_dhv = ((PyArrayObject *)values[37]);
41575  }
41576  goto __pyx_L4_argument_unpacking_done;
41577  __pyx_L5_argtuple_error:;
41578  __Pyx_RaiseArgtupleInvalid("shallowWater_2D_Evaluate", 1, 38, 38, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7514, __pyx_L3_error)
41579  __pyx_L3_error:;
41580  __Pyx_AddTraceback("ctransportCoefficients.shallowWater_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
41581  __Pyx_RefNannyFinishContext();
41582  return NULL;
41583  __pyx_L4_argument_unpacking_done:;
41584  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1, "x", 0))) __PYX_ERR(0, 7519, __pyx_L1_error)
41585  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_b), __pyx_ptype_5numpy_ndarray, 1, "grad_b", 0))) __PYX_ERR(0, 7520, __pyx_L1_error)
41586  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_h), __pyx_ptype_5numpy_ndarray, 1, "h", 0))) __PYX_ERR(0, 7521, __pyx_L1_error)
41587  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_hu), __pyx_ptype_5numpy_ndarray, 1, "hu", 0))) __PYX_ERR(0, 7522, __pyx_L1_error)
41588  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_hv), __pyx_ptype_5numpy_ndarray, 1, "hv", 0))) __PYX_ERR(0, 7523, __pyx_L1_error)
41589  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1, "H", 0))) __PYX_ERR(0, 7524, __pyx_L1_error)
41590  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_acc), __pyx_ptype_5numpy_ndarray, 1, "mass_acc", 0))) __PYX_ERR(0, 7525, __pyx_L1_error)
41591  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_acc_dh), __pyx_ptype_5numpy_ndarray, 1, "dmass_acc_dh", 0))) __PYX_ERR(0, 7526, __pyx_L1_error)
41592  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 7527, __pyx_L1_error)
41593  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_dhu), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_dhu", 0))) __PYX_ERR(0, 7528, __pyx_L1_error)
41594  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 7529, __pyx_L1_error)
41595  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_dhv), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_dhv", 0))) __PYX_ERR(0, 7530, __pyx_L1_error)
41596  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 7531, __pyx_L1_error)
41597  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_dhu), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_dhu", 0))) __PYX_ERR(0, 7532, __pyx_L1_error)
41598  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_dhv), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_dhv", 0))) __PYX_ERR(0, 7533, __pyx_L1_error)
41599  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_u_adv", 0))) __PYX_ERR(0, 7534, __pyx_L1_error)
41600  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_dh), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_dh", 0))) __PYX_ERR(0, 7535, __pyx_L1_error)
41601  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_dhu), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_dhu", 0))) __PYX_ERR(0, 7536, __pyx_L1_error)
41602  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_dhv), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_dhv", 0))) __PYX_ERR(0, 7537, __pyx_L1_error)
41603  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_v_adv", 0))) __PYX_ERR(0, 7538, __pyx_L1_error)
41604  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_dh), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_dh", 0))) __PYX_ERR(0, 7539, __pyx_L1_error)
41605  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_dhu), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_dhu", 0))) __PYX_ERR(0, 7540, __pyx_L1_error)
41606  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_dhv), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_dhv", 0))) __PYX_ERR(0, 7541, __pyx_L1_error)
41607  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff", 0))) __PYX_ERR(0, 7542, __pyx_L1_error)
41608  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff", 0))) __PYX_ERR(0, 7543, __pyx_L1_error)
41609  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1, "mom_u_source", 0))) __PYX_ERR(0, 7544, __pyx_L1_error)
41610  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_dh), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_source_dh", 0))) __PYX_ERR(0, 7545, __pyx_L1_error)
41611  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_dhu), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_source_dhu", 0))) __PYX_ERR(0, 7546, __pyx_L1_error)
41612  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_dhv), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_source_dhv", 0))) __PYX_ERR(0, 7547, __pyx_L1_error)
41613  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1, "mom_v_source", 0))) __PYX_ERR(0, 7548, __pyx_L1_error)
41614  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_dh), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_source_dh", 0))) __PYX_ERR(0, 7549, __pyx_L1_error)
41615  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_dhu), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_source_dhu", 0))) __PYX_ERR(0, 7550, __pyx_L1_error)
41616  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_dhv), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_source_dhv", 0))) __PYX_ERR(0, 7551, __pyx_L1_error)
41617  __pyx_r = __pyx_pf_22ctransportCoefficients_208shallowWater_2D_Evaluate(__pyx_self, __pyx_v_h_eps, __pyx_v_g, __pyx_v_bedFrictionCoefficient, __pyx_v_bedFrictionPower, __pyx_v_eddyViscosity, __pyx_v_x, __pyx_v_grad_b, __pyx_v_h, __pyx_v_hu, __pyx_v_hv, __pyx_v_H, __pyx_v_mass_acc, __pyx_v_dmass_acc_dh, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_dhu, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_dhv, __pyx_v_mass_adv, __pyx_v_dmass_adv_dhu, __pyx_v_dmass_adv_dhv, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_dh, __pyx_v_dmom_u_adv_dhu, __pyx_v_dmom_u_adv_dhv, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_dh, __pyx_v_dmom_v_adv_dhu, __pyx_v_dmom_v_adv_dhv, __pyx_v_mom_u_diff, __pyx_v_mom_v_diff, __pyx_v_mom_u_source, __pyx_v_dmom_u_source_dh, __pyx_v_dmom_u_source_dhu, __pyx_v_dmom_u_source_dhv, __pyx_v_mom_v_source, __pyx_v_dmom_v_source_dh, __pyx_v_dmom_v_source_dhu, __pyx_v_dmom_v_source_dhv);
41618 
41619  /* function exit code */
41620  goto __pyx_L0;
41621  __pyx_L1_error:;
41622  __pyx_r = NULL;
41623  __pyx_L0:;
41624  __Pyx_RefNannyFinishContext();
41625  return __pyx_r;
41626 }
41627 
41628 static PyObject *__pyx_pf_22ctransportCoefficients_208shallowWater_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_h_eps, double __pyx_v_g, double __pyx_v_bedFrictionCoefficient, double __pyx_v_bedFrictionPower, double __pyx_v_eddyViscosity, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_grad_b, PyArrayObject *__pyx_v_h, PyArrayObject *__pyx_v_hu, PyArrayObject *__pyx_v_hv, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_mass_acc, PyArrayObject *__pyx_v_dmass_acc_dh, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_dhu, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_dhv, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_dhu, PyArrayObject *__pyx_v_dmass_adv_dhv, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_dh, PyArrayObject *__pyx_v_dmom_u_adv_dhu, PyArrayObject *__pyx_v_dmom_u_adv_dhv, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_dh, PyArrayObject *__pyx_v_dmom_v_adv_dhu, PyArrayObject *__pyx_v_dmom_v_adv_dhv, PyArrayObject *__pyx_v_mom_u_diff, PyArrayObject *__pyx_v_mom_v_diff, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_dmom_u_source_dh, PyArrayObject *__pyx_v_dmom_u_source_dhu, PyArrayObject *__pyx_v_dmom_u_source_dhv, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_dmom_v_source_dh, PyArrayObject *__pyx_v_dmom_v_source_dhu, PyArrayObject *__pyx_v_dmom_v_source_dhv) {
41629  PyObject *__pyx_r = NULL;
41630  __Pyx_RefNannyDeclarations
41631  PyObject *__pyx_t_1 = NULL;
41632  int __pyx_t_2;
41633  int __pyx_lineno = 0;
41634  const char *__pyx_filename = NULL;
41635  int __pyx_clineno = 0;
41636  __Pyx_RefNannySetupContext("shallowWater_2D_Evaluate", 0);
41637 
41638  /* "ctransportCoefficients.pyx":7552
41639  * np.ndarray dmom_v_source_dhu,
41640  * np.ndarray dmom_v_source_dhv):
41641  * cshallowWater_2D_Evaluate(h.size, # <<<<<<<<<<<<<<
41642  * h_eps,
41643  * g,
41644  */
41645  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_h), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7552, __pyx_L1_error)
41646  __Pyx_GOTREF(__pyx_t_1);
41647  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7552, __pyx_L1_error)
41648  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
41649 
41650  /* "ctransportCoefficients.pyx":7590
41651  * <double*> dmom_v_source_dh.data,
41652  * <double*> dmom_v_source_dhu.data,
41653  * <double*> dmom_v_source_dhv.data) # <<<<<<<<<<<<<<
41654  * def conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind(const int upwindFlag,
41655  * const int computeAverages,
41656  */
41657  shallowWater_2D_Evaluate(__pyx_t_2, __pyx_v_h_eps, __pyx_v_g, __pyx_v_bedFrictionCoefficient, __pyx_v_bedFrictionPower, __pyx_v_eddyViscosity, ((double *)__pyx_v_x->data), ((double *)__pyx_v_grad_b->data), ((double *)__pyx_v_h->data), ((double *)__pyx_v_hu->data), ((double *)__pyx_v_hv->data), ((double *)__pyx_v_H->data), ((double *)__pyx_v_mass_acc->data), ((double *)__pyx_v_dmass_acc_dh->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_dmom_u_acc_dhu->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_v_acc_dhv->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_dhu->data), ((double *)__pyx_v_dmass_adv_dhv->data), ((double *)__pyx_v_mom_u_adv->data), ((double *)__pyx_v_dmom_u_adv_dh->data), ((double *)__pyx_v_dmom_u_adv_dhu->data), ((double *)__pyx_v_dmom_u_adv_dhv->data), ((double *)__pyx_v_mom_v_adv->data), ((double *)__pyx_v_dmom_v_adv_dh->data), ((double *)__pyx_v_dmom_v_adv_dhu->data), ((double *)__pyx_v_dmom_v_adv_dhv->data), ((double *)__pyx_v_mom_u_diff->data), ((double *)__pyx_v_mom_v_diff->data), ((double *)__pyx_v_mom_u_source->data), ((double *)__pyx_v_dmom_u_source_dh->data), ((double *)__pyx_v_dmom_u_source_dhu->data), ((double *)__pyx_v_dmom_u_source_dhv->data), ((double *)__pyx_v_mom_v_source->data), ((double *)__pyx_v_dmom_v_source_dh->data), ((double *)__pyx_v_dmom_v_source_dhu->data), ((double *)__pyx_v_dmom_v_source_dhv->data));
41658 
41659  /* "ctransportCoefficients.pyx":7514
41660  * <double*> dmom_source_dhu.data,
41661  * <double*> mom_diff.data)
41662  * def shallowWater_2D_Evaluate(const double h_eps, # <<<<<<<<<<<<<<
41663  * const double g,
41664  * const double bedFrictionCoefficient,
41665  */
41666 
41667  /* function exit code */
41668  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
41669  goto __pyx_L0;
41670  __pyx_L1_error:;
41671  __Pyx_XDECREF(__pyx_t_1);
41672  __Pyx_AddTraceback("ctransportCoefficients.shallowWater_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
41673  __pyx_r = NULL;
41674  __pyx_L0:;
41675  __Pyx_XGIVEREF(__pyx_r);
41676  __Pyx_RefNannyFinishContext();
41677  return __pyx_r;
41678 }
41679 
41680 /* "ctransportCoefficients.pyx":7591
41681  * <double*> dmom_v_source_dhu.data,
41682  * <double*> dmom_v_source_dhv.data)
41683  * def conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind(const int upwindFlag, # <<<<<<<<<<<<<<
41684  * const int computeAverages,
41685  * const int nQuadraturePoints_elementBoundary,
41686  */
41687 
41688 /* Python wrapper */
41689 static PyObject *__pyx_pw_22ctransportCoefficients_211conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
41690 static PyMethodDef __pyx_mdef_22ctransportCoefficients_211conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind = {"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_211conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind, METH_VARARGS|METH_KEYWORDS, 0};
41691 static PyObject *__pyx_pw_22ctransportCoefficients_211conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
41692  int __pyx_v_upwindFlag;
41693  int __pyx_v_computeAverages;
41694  int __pyx_v_nQuadraturePoints_elementBoundary;
41695  PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
41696  PyArrayObject *__pyx_v_quadraturePointToElementBoundary = 0;
41697  PyArrayObject *__pyx_v_materialTypes = 0;
41698  double __pyx_v_rho;
41699  double __pyx_v_beta;
41700  PyArrayObject *__pyx_v_gravity = 0;
41701  PyArrayObject *__pyx_v_alpha = 0;
41702  PyArrayObject *__pyx_v_n_vg = 0;
41703  PyArrayObject *__pyx_v_thetaR = 0;
41704  PyArrayObject *__pyx_v_thetaSR = 0;
41705  PyArrayObject *__pyx_v_KWs = 0;
41706  PyArrayObject *__pyx_v_u = 0;
41707  PyArrayObject *__pyx_v_gradu = 0;
41708  PyArrayObject *__pyx_v_n_global = 0;
41709  PyArrayObject *__pyx_v_dV = 0;
41710  PyArrayObject *__pyx_v_mass = 0;
41711  PyArrayObject *__pyx_v_dmass = 0;
41712  PyArrayObject *__pyx_v_f_avg = 0;
41713  PyArrayObject *__pyx_v_df_avg = 0;
41714  PyArrayObject *__pyx_v_a_avg = 0;
41715  PyArrayObject *__pyx_v_da_avg = 0;
41716  PyArrayObject *__pyx_v_f = 0;
41717  PyArrayObject *__pyx_v_df = 0;
41718  PyArrayObject *__pyx_v_a = 0;
41719  PyArrayObject *__pyx_v_da = 0;
41720  int __pyx_lineno = 0;
41721  const char *__pyx_filename = NULL;
41722  int __pyx_clineno = 0;
41723  PyObject *__pyx_r = 0;
41724  __Pyx_RefNannyDeclarations
41725  __Pyx_RefNannySetupContext("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind (wrapper)", 0);
41726  {
41727  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_upwindFlag,&__pyx_n_s_computeAverages,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_quadraturePointToElementBoundary,&__pyx_n_s_materialTypes,&__pyx_n_s_rho,&__pyx_n_s_beta,&__pyx_n_s_gravity,&__pyx_n_s_alpha,&__pyx_n_s_n_vg,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_gradu,&__pyx_n_s_n_global,&__pyx_n_s_dV,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f_avg,&__pyx_n_s_df_avg,&__pyx_n_s_a_avg,&__pyx_n_s_da_avg,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
41728  PyObject* values[28] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
41729  if (unlikely(__pyx_kwds)) {
41730  Py_ssize_t kw_args;
41731  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
41732  switch (pos_args) {
41733  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
41734  CYTHON_FALLTHROUGH;
41735  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
41736  CYTHON_FALLTHROUGH;
41737  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
41738  CYTHON_FALLTHROUGH;
41739  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
41740  CYTHON_FALLTHROUGH;
41741  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
41742  CYTHON_FALLTHROUGH;
41743  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
41744  CYTHON_FALLTHROUGH;
41745  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
41746  CYTHON_FALLTHROUGH;
41747  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
41748  CYTHON_FALLTHROUGH;
41749  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
41750  CYTHON_FALLTHROUGH;
41751  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
41752  CYTHON_FALLTHROUGH;
41753  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
41754  CYTHON_FALLTHROUGH;
41755  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
41756  CYTHON_FALLTHROUGH;
41757  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
41758  CYTHON_FALLTHROUGH;
41759  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
41760  CYTHON_FALLTHROUGH;
41761  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
41762  CYTHON_FALLTHROUGH;
41763  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
41764  CYTHON_FALLTHROUGH;
41765  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
41766  CYTHON_FALLTHROUGH;
41767  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
41768  CYTHON_FALLTHROUGH;
41769  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
41770  CYTHON_FALLTHROUGH;
41771  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
41772  CYTHON_FALLTHROUGH;
41773  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
41774  CYTHON_FALLTHROUGH;
41775  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
41776  CYTHON_FALLTHROUGH;
41777  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
41778  CYTHON_FALLTHROUGH;
41779  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
41780  CYTHON_FALLTHROUGH;
41781  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
41782  CYTHON_FALLTHROUGH;
41783  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
41784  CYTHON_FALLTHROUGH;
41785  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
41786  CYTHON_FALLTHROUGH;
41787  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
41788  CYTHON_FALLTHROUGH;
41789  case 0: break;
41790  default: goto __pyx_L5_argtuple_error;
41791  }
41792  kw_args = PyDict_Size(__pyx_kwds);
41793  switch (pos_args) {
41794  case 0:
41795  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_upwindFlag)) != 0)) kw_args--;
41796  else goto __pyx_L5_argtuple_error;
41797  CYTHON_FALLTHROUGH;
41798  case 1:
41799  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_computeAverages)) != 0)) kw_args--;
41800  else {
41801  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 1); __PYX_ERR(0, 7591, __pyx_L3_error)
41802  }
41803  CYTHON_FALLTHROUGH;
41804  case 2:
41805  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
41806  else {
41807  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 2); __PYX_ERR(0, 7591, __pyx_L3_error)
41808  }
41809  CYTHON_FALLTHROUGH;
41810  case 3:
41811  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
41812  else {
41813  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 3); __PYX_ERR(0, 7591, __pyx_L3_error)
41814  }
41815  CYTHON_FALLTHROUGH;
41816  case 4:
41817  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_quadraturePointToElementBoundary)) != 0)) kw_args--;
41818  else {
41819  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 4); __PYX_ERR(0, 7591, __pyx_L3_error)
41820  }
41821  CYTHON_FALLTHROUGH;
41822  case 5:
41823  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_materialTypes)) != 0)) kw_args--;
41824  else {
41825  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 5); __PYX_ERR(0, 7591, __pyx_L3_error)
41826  }
41827  CYTHON_FALLTHROUGH;
41828  case 6:
41829  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
41830  else {
41831  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 6); __PYX_ERR(0, 7591, __pyx_L3_error)
41832  }
41833  CYTHON_FALLTHROUGH;
41834  case 7:
41835  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_beta)) != 0)) kw_args--;
41836  else {
41837  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 7); __PYX_ERR(0, 7591, __pyx_L3_error)
41838  }
41839  CYTHON_FALLTHROUGH;
41840  case 8:
41841  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
41842  else {
41843  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 8); __PYX_ERR(0, 7591, __pyx_L3_error)
41844  }
41845  CYTHON_FALLTHROUGH;
41846  case 9:
41847  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
41848  else {
41849  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 9); __PYX_ERR(0, 7591, __pyx_L3_error)
41850  }
41851  CYTHON_FALLTHROUGH;
41852  case 10:
41853  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n_vg)) != 0)) kw_args--;
41854  else {
41855  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 10); __PYX_ERR(0, 7591, __pyx_L3_error)
41856  }
41857  CYTHON_FALLTHROUGH;
41858  case 11:
41859  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
41860  else {
41861  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 11); __PYX_ERR(0, 7591, __pyx_L3_error)
41862  }
41863  CYTHON_FALLTHROUGH;
41864  case 12:
41865  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
41866  else {
41867  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 12); __PYX_ERR(0, 7591, __pyx_L3_error)
41868  }
41869  CYTHON_FALLTHROUGH;
41870  case 13:
41871  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
41872  else {
41873  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 13); __PYX_ERR(0, 7591, __pyx_L3_error)
41874  }
41875  CYTHON_FALLTHROUGH;
41876  case 14:
41877  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
41878  else {
41879  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 14); __PYX_ERR(0, 7591, __pyx_L3_error)
41880  }
41881  CYTHON_FALLTHROUGH;
41882  case 15:
41883  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
41884  else {
41885  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 15); __PYX_ERR(0, 7591, __pyx_L3_error)
41886  }
41887  CYTHON_FALLTHROUGH;
41888  case 16:
41889  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n_global)) != 0)) kw_args--;
41890  else {
41891  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 16); __PYX_ERR(0, 7591, __pyx_L3_error)
41892  }
41893  CYTHON_FALLTHROUGH;
41894  case 17:
41895  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dV)) != 0)) kw_args--;
41896  else {
41897  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 17); __PYX_ERR(0, 7591, __pyx_L3_error)
41898  }
41899  CYTHON_FALLTHROUGH;
41900  case 18:
41901  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
41902  else {
41903  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 18); __PYX_ERR(0, 7591, __pyx_L3_error)
41904  }
41905  CYTHON_FALLTHROUGH;
41906  case 19:
41907  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
41908  else {
41909  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 19); __PYX_ERR(0, 7591, __pyx_L3_error)
41910  }
41911  CYTHON_FALLTHROUGH;
41912  case 20:
41913  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_avg)) != 0)) kw_args--;
41914  else {
41915  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 20); __PYX_ERR(0, 7591, __pyx_L3_error)
41916  }
41917  CYTHON_FALLTHROUGH;
41918  case 21:
41919  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_avg)) != 0)) kw_args--;
41920  else {
41921  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 21); __PYX_ERR(0, 7591, __pyx_L3_error)
41922  }
41923  CYTHON_FALLTHROUGH;
41924  case 22:
41925  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_avg)) != 0)) kw_args--;
41926  else {
41927  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 22); __PYX_ERR(0, 7591, __pyx_L3_error)
41928  }
41929  CYTHON_FALLTHROUGH;
41930  case 23:
41931  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_avg)) != 0)) kw_args--;
41932  else {
41933  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 23); __PYX_ERR(0, 7591, __pyx_L3_error)
41934  }
41935  CYTHON_FALLTHROUGH;
41936  case 24:
41937  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
41938  else {
41939  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 24); __PYX_ERR(0, 7591, __pyx_L3_error)
41940  }
41941  CYTHON_FALLTHROUGH;
41942  case 25:
41943  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
41944  else {
41945  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 25); __PYX_ERR(0, 7591, __pyx_L3_error)
41946  }
41947  CYTHON_FALLTHROUGH;
41948  case 26:
41949  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
41950  else {
41951  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 26); __PYX_ERR(0, 7591, __pyx_L3_error)
41952  }
41953  CYTHON_FALLTHROUGH;
41954  case 27:
41955  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
41956  else {
41957  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 27); __PYX_ERR(0, 7591, __pyx_L3_error)
41958  }
41959  }
41960  if (unlikely(kw_args > 0)) {
41961  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind") < 0)) __PYX_ERR(0, 7591, __pyx_L3_error)
41962  }
41963  } else if (PyTuple_GET_SIZE(__pyx_args) != 28) {
41964  goto __pyx_L5_argtuple_error;
41965  } else {
41966  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
41967  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
41968  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
41969  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
41970  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
41971  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
41972  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
41973  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
41974  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
41975  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
41976  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
41977  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
41978  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
41979  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
41980  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
41981  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
41982  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
41983  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
41984  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
41985  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
41986  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
41987  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
41988  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
41989  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
41990  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
41991  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
41992  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
41993  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
41994  }
41995  __pyx_v_upwindFlag = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_upwindFlag == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7591, __pyx_L3_error)
41996  __pyx_v_computeAverages = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_computeAverages == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7592, __pyx_L3_error)
41997  __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7593, __pyx_L3_error)
41998  __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[3]);
41999  __pyx_v_quadraturePointToElementBoundary = ((PyArrayObject *)values[4]);
42000  __pyx_v_materialTypes = ((PyArrayObject *)values[5]);
42001  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7597, __pyx_L3_error)
42002  __pyx_v_beta = __pyx_PyFloat_AsDouble(values[7]); if (unlikely((__pyx_v_beta == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7598, __pyx_L3_error)
42003  __pyx_v_gravity = ((PyArrayObject *)values[8]);
42004  __pyx_v_alpha = ((PyArrayObject *)values[9]);
42005  __pyx_v_n_vg = ((PyArrayObject *)values[10]);
42006  __pyx_v_thetaR = ((PyArrayObject *)values[11]);
42007  __pyx_v_thetaSR = ((PyArrayObject *)values[12]);
42008  __pyx_v_KWs = ((PyArrayObject *)values[13]);
42009  __pyx_v_u = ((PyArrayObject *)values[14]);
42010  __pyx_v_gradu = ((PyArrayObject *)values[15]);
42011  __pyx_v_n_global = ((PyArrayObject *)values[16]);
42012  __pyx_v_dV = ((PyArrayObject *)values[17]);
42013  __pyx_v_mass = ((PyArrayObject *)values[18]);
42014  __pyx_v_dmass = ((PyArrayObject *)values[19]);
42015  __pyx_v_f_avg = ((PyArrayObject *)values[20]);
42016  __pyx_v_df_avg = ((PyArrayObject *)values[21]);
42017  __pyx_v_a_avg = ((PyArrayObject *)values[22]);
42018  __pyx_v_da_avg = ((PyArrayObject *)values[23]);
42019  __pyx_v_f = ((PyArrayObject *)values[24]);
42020  __pyx_v_df = ((PyArrayObject *)values[25]);
42021  __pyx_v_a = ((PyArrayObject *)values[26]);
42022  __pyx_v_da = ((PyArrayObject *)values[27]);
42023  }
42024  goto __pyx_L4_argument_unpacking_done;
42025  __pyx_L5_argtuple_error:;
42026  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7591, __pyx_L3_error)
42027  __pyx_L3_error:;
42028  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", __pyx_clineno, __pyx_lineno, __pyx_filename);
42029  __Pyx_RefNannyFinishContext();
42030  return NULL;
42031  __pyx_L4_argument_unpacking_done:;
42032  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1, "elementBoundaryElementsArray", 0))) __PYX_ERR(0, 7594, __pyx_L1_error)
42033  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_quadraturePointToElementBoundary), __pyx_ptype_5numpy_ndarray, 1, "quadraturePointToElementBoundary", 0))) __PYX_ERR(0, 7595, __pyx_L1_error)
42034  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_materialTypes), __pyx_ptype_5numpy_ndarray, 1, "materialTypes", 0))) __PYX_ERR(0, 7596, __pyx_L1_error)
42035  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1, "gravity", 0))) __PYX_ERR(0, 7599, __pyx_L1_error)
42036  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha), __pyx_ptype_5numpy_ndarray, 1, "alpha", 0))) __PYX_ERR(0, 7600, __pyx_L1_error)
42037  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n_vg), __pyx_ptype_5numpy_ndarray, 1, "n_vg", 0))) __PYX_ERR(0, 7601, __pyx_L1_error)
42038  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaR), __pyx_ptype_5numpy_ndarray, 1, "thetaR", 0))) __PYX_ERR(0, 7602, __pyx_L1_error)
42039  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaSR), __pyx_ptype_5numpy_ndarray, 1, "thetaSR", 0))) __PYX_ERR(0, 7603, __pyx_L1_error)
42040  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_KWs), __pyx_ptype_5numpy_ndarray, 1, "KWs", 0))) __PYX_ERR(0, 7604, __pyx_L1_error)
42041  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 7605, __pyx_L1_error)
42042  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1, "gradu", 0))) __PYX_ERR(0, 7606, __pyx_L1_error)
42043  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n_global), __pyx_ptype_5numpy_ndarray, 1, "n_global", 0))) __PYX_ERR(0, 7607, __pyx_L1_error)
42044  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dV), __pyx_ptype_5numpy_ndarray, 1, "dV", 0))) __PYX_ERR(0, 7608, __pyx_L1_error)
42045  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1, "mass", 0))) __PYX_ERR(0, 7609, __pyx_L1_error)
42046  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1, "dmass", 0))) __PYX_ERR(0, 7610, __pyx_L1_error)
42047  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_avg), __pyx_ptype_5numpy_ndarray, 1, "f_avg", 0))) __PYX_ERR(0, 7611, __pyx_L1_error)
42048  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_avg), __pyx_ptype_5numpy_ndarray, 1, "df_avg", 0))) __PYX_ERR(0, 7612, __pyx_L1_error)
42049  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_avg), __pyx_ptype_5numpy_ndarray, 1, "a_avg", 0))) __PYX_ERR(0, 7613, __pyx_L1_error)
42050  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_avg), __pyx_ptype_5numpy_ndarray, 1, "da_avg", 0))) __PYX_ERR(0, 7614, __pyx_L1_error)
42051  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 7615, __pyx_L1_error)
42052  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 7616, __pyx_L1_error)
42053  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 7617, __pyx_L1_error)
42054  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 7618, __pyx_L1_error)
42055  __pyx_r = __pyx_pf_22ctransportCoefficients_210conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind(__pyx_self, __pyx_v_upwindFlag, __pyx_v_computeAverages, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_elementBoundaryElementsArray, __pyx_v_quadraturePointToElementBoundary, __pyx_v_materialTypes, __pyx_v_rho, __pyx_v_beta, __pyx_v_gravity, __pyx_v_alpha, __pyx_v_n_vg, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_u, __pyx_v_gradu, __pyx_v_n_global, __pyx_v_dV, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f_avg, __pyx_v_df_avg, __pyx_v_a_avg, __pyx_v_da_avg, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
42056 
42057  /* function exit code */
42058  goto __pyx_L0;
42059  __pyx_L1_error:;
42060  __pyx_r = NULL;
42061  __pyx_L0:;
42062  __Pyx_RefNannyFinishContext();
42063  return __pyx_r;
42064 }
42065 
42066 static PyObject *__pyx_pf_22ctransportCoefficients_210conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_upwindFlag, int __pyx_v_computeAverages, int __pyx_v_nQuadraturePoints_elementBoundary, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_quadraturePointToElementBoundary, PyArrayObject *__pyx_v_materialTypes, double __pyx_v_rho, double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n_vg, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_n_global, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f_avg, PyArrayObject *__pyx_v_df_avg, PyArrayObject *__pyx_v_a_avg, PyArrayObject *__pyx_v_da_avg, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
42067  PyObject *__pyx_r = NULL;
42068  __Pyx_RefNannyDeclarations
42069  PyObject *__pyx_t_1 = NULL;
42070  PyObject *__pyx_t_2 = NULL;
42071  PyObject *__pyx_t_3 = NULL;
42072  int __pyx_t_4;
42073  int __pyx_lineno = 0;
42074  const char *__pyx_filename = NULL;
42075  int __pyx_clineno = 0;
42076  __Pyx_RefNannySetupContext("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 0);
42077 
42078  /* "ctransportCoefficients.pyx":7621
42079  * cconservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind(upwindFlag,
42080  * computeAverages,
42081  * f.size/f.shape[f.ndim-1]/f.shape[f.ndim-2], # <<<<<<<<<<<<<<
42082  * f.shape[f.ndim-2],
42083  * f.shape[f.ndim-1],
42084  */
42085  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_f), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7621, __pyx_L1_error)
42086  __Pyx_GOTREF(__pyx_t_1);
42087  __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7621, __pyx_L1_error)
42088  __Pyx_GOTREF(__pyx_t_2);
42089  __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7621, __pyx_L1_error)
42090  __Pyx_GOTREF(__pyx_t_3);
42091  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
42092  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
42093  __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_f->dimensions[(__pyx_v_f->nd - 2)])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7621, __pyx_L1_error)
42094  __Pyx_GOTREF(__pyx_t_2);
42095  __pyx_t_1 = __Pyx_PyNumber_Divide(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7621, __pyx_L1_error)
42096  __Pyx_GOTREF(__pyx_t_1);
42097  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
42098  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
42099  __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7621, __pyx_L1_error)
42100  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
42101 
42102  /* "ctransportCoefficients.pyx":7619
42103  * np.ndarray a,
42104  * np.ndarray da):
42105  * cconservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind(upwindFlag, # <<<<<<<<<<<<<<
42106  * computeAverages,
42107  * f.size/f.shape[f.ndim-1]/f.shape[f.ndim-2],
42108  */
42109  conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind(__pyx_v_upwindFlag, __pyx_v_computeAverages, __pyx_t_4, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 2)]), (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_nQuadraturePoints_elementBoundary, ((int *)__pyx_v_elementBoundaryElementsArray->data), ((int *)__pyx_v_quadraturePointToElementBoundary->data), ((int *)__pyx_v_materialTypes->data), __pyx_v_rho, __pyx_v_beta, ((double *)__pyx_v_gravity->data), ((double *)__pyx_v_alpha->data), ((double *)__pyx_v_n_vg->data), ((double *)__pyx_v_thetaR->data), ((double *)__pyx_v_thetaSR->data), ((double *)__pyx_v_KWs->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_gradu->data), ((double *)__pyx_v_n_global->data), ((double *)__pyx_v_dV->data), ((double *)__pyx_v_mass->data), ((double *)__pyx_v_dmass->data), ((double *)__pyx_v_f_avg->data), ((double *)__pyx_v_df_avg->data), ((double *)__pyx_v_a_avg->data), ((double *)__pyx_v_da_avg->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data));
42110 
42111  /* "ctransportCoefficients.pyx":7591
42112  * <double*> dmom_v_source_dhu.data,
42113  * <double*> dmom_v_source_dhv.data)
42114  * def conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind(const int upwindFlag, # <<<<<<<<<<<<<<
42115  * const int computeAverages,
42116  * const int nQuadraturePoints_elementBoundary,
42117  */
42118 
42119  /* function exit code */
42120  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
42121  goto __pyx_L0;
42122  __pyx_L1_error:;
42123  __Pyx_XDECREF(__pyx_t_1);
42124  __Pyx_XDECREF(__pyx_t_2);
42125  __Pyx_XDECREF(__pyx_t_3);
42126  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", __pyx_clineno, __pyx_lineno, __pyx_filename);
42127  __pyx_r = NULL;
42128  __pyx_L0:;
42129  __Pyx_XGIVEREF(__pyx_r);
42130  __Pyx_RefNannyFinishContext();
42131  return __pyx_r;
42132 }
42133 
42134 /* "ctransportCoefficients.pyx":7650
42135  * <double*> a.data,
42136  * <double*> da.data)
42137  * def conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm(const int upwindFlag, # <<<<<<<<<<<<<<
42138  * const int computeAverages,
42139  * const int nQuadraturePoints_elementBoundary,
42140  */
42141 
42142 /* Python wrapper */
42143 static PyObject *__pyx_pw_22ctransportCoefficients_213conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
42144 static PyMethodDef __pyx_mdef_22ctransportCoefficients_213conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm = {"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_213conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm, METH_VARARGS|METH_KEYWORDS, 0};
42145 static PyObject *__pyx_pw_22ctransportCoefficients_213conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
42146  int __pyx_v_upwindFlag;
42147  int __pyx_v_computeAverages;
42148  int __pyx_v_nQuadraturePoints_elementBoundary;
42149  PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
42150  PyArrayObject *__pyx_v_quadraturePointToElementBoundary = 0;
42151  PyArrayObject *__pyx_v_materialTypes = 0;
42152  double __pyx_v_rho;
42153  double __pyx_v_beta;
42154  PyArrayObject *__pyx_v_gravity = 0;
42155  PyArrayObject *__pyx_v_alpha = 0;
42156  PyArrayObject *__pyx_v_n_vg = 0;
42157  PyArrayObject *__pyx_v_thetaR = 0;
42158  PyArrayObject *__pyx_v_thetaSR = 0;
42159  PyArrayObject *__pyx_v_KWs = 0;
42160  PyArrayObject *__pyx_v_u = 0;
42161  PyArrayObject *__pyx_v_gradu = 0;
42162  PyArrayObject *__pyx_v_n_global = 0;
42163  PyArrayObject *__pyx_v_dV = 0;
42164  PyArrayObject *__pyx_v_mass = 0;
42165  PyArrayObject *__pyx_v_dmass = 0;
42166  PyArrayObject *__pyx_v_f_avg = 0;
42167  PyArrayObject *__pyx_v_df_avg = 0;
42168  PyArrayObject *__pyx_v_a_avg = 0;
42169  PyArrayObject *__pyx_v_da_avg = 0;
42170  PyArrayObject *__pyx_v_f = 0;
42171  PyArrayObject *__pyx_v_df = 0;
42172  PyArrayObject *__pyx_v_a = 0;
42173  PyArrayObject *__pyx_v_da = 0;
42174  int __pyx_lineno = 0;
42175  const char *__pyx_filename = NULL;
42176  int __pyx_clineno = 0;
42177  PyObject *__pyx_r = 0;
42178  __Pyx_RefNannyDeclarations
42179  __Pyx_RefNannySetupContext("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm (wrapper)", 0);
42180  {
42181  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_upwindFlag,&__pyx_n_s_computeAverages,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_quadraturePointToElementBoundary,&__pyx_n_s_materialTypes,&__pyx_n_s_rho,&__pyx_n_s_beta,&__pyx_n_s_gravity,&__pyx_n_s_alpha,&__pyx_n_s_n_vg,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_gradu,&__pyx_n_s_n_global,&__pyx_n_s_dV,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f_avg,&__pyx_n_s_df_avg,&__pyx_n_s_a_avg,&__pyx_n_s_da_avg,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
42182  PyObject* values[28] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
42183  if (unlikely(__pyx_kwds)) {
42184  Py_ssize_t kw_args;
42185  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
42186  switch (pos_args) {
42187  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
42188  CYTHON_FALLTHROUGH;
42189  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
42190  CYTHON_FALLTHROUGH;
42191  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
42192  CYTHON_FALLTHROUGH;
42193  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
42194  CYTHON_FALLTHROUGH;
42195  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
42196  CYTHON_FALLTHROUGH;
42197  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
42198  CYTHON_FALLTHROUGH;
42199  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
42200  CYTHON_FALLTHROUGH;
42201  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
42202  CYTHON_FALLTHROUGH;
42203  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
42204  CYTHON_FALLTHROUGH;
42205  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
42206  CYTHON_FALLTHROUGH;
42207  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
42208  CYTHON_FALLTHROUGH;
42209  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
42210  CYTHON_FALLTHROUGH;
42211  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
42212  CYTHON_FALLTHROUGH;
42213  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
42214  CYTHON_FALLTHROUGH;
42215  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
42216  CYTHON_FALLTHROUGH;
42217  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
42218  CYTHON_FALLTHROUGH;
42219  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
42220  CYTHON_FALLTHROUGH;
42221  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
42222  CYTHON_FALLTHROUGH;
42223  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
42224  CYTHON_FALLTHROUGH;
42225  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
42226  CYTHON_FALLTHROUGH;
42227  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
42228  CYTHON_FALLTHROUGH;
42229  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
42230  CYTHON_FALLTHROUGH;
42231  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
42232  CYTHON_FALLTHROUGH;
42233  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
42234  CYTHON_FALLTHROUGH;
42235  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
42236  CYTHON_FALLTHROUGH;
42237  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
42238  CYTHON_FALLTHROUGH;
42239  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
42240  CYTHON_FALLTHROUGH;
42241  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
42242  CYTHON_FALLTHROUGH;
42243  case 0: break;
42244  default: goto __pyx_L5_argtuple_error;
42245  }
42246  kw_args = PyDict_Size(__pyx_kwds);
42247  switch (pos_args) {
42248  case 0:
42249  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_upwindFlag)) != 0)) kw_args--;
42250  else goto __pyx_L5_argtuple_error;
42251  CYTHON_FALLTHROUGH;
42252  case 1:
42253  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_computeAverages)) != 0)) kw_args--;
42254  else {
42255  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 1); __PYX_ERR(0, 7650, __pyx_L3_error)
42256  }
42257  CYTHON_FALLTHROUGH;
42258  case 2:
42259  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
42260  else {
42261  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 2); __PYX_ERR(0, 7650, __pyx_L3_error)
42262  }
42263  CYTHON_FALLTHROUGH;
42264  case 3:
42265  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
42266  else {
42267  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 3); __PYX_ERR(0, 7650, __pyx_L3_error)
42268  }
42269  CYTHON_FALLTHROUGH;
42270  case 4:
42271  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_quadraturePointToElementBoundary)) != 0)) kw_args--;
42272  else {
42273  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 4); __PYX_ERR(0, 7650, __pyx_L3_error)
42274  }
42275  CYTHON_FALLTHROUGH;
42276  case 5:
42277  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_materialTypes)) != 0)) kw_args--;
42278  else {
42279  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 5); __PYX_ERR(0, 7650, __pyx_L3_error)
42280  }
42281  CYTHON_FALLTHROUGH;
42282  case 6:
42283  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
42284  else {
42285  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 6); __PYX_ERR(0, 7650, __pyx_L3_error)
42286  }
42287  CYTHON_FALLTHROUGH;
42288  case 7:
42289  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_beta)) != 0)) kw_args--;
42290  else {
42291  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 7); __PYX_ERR(0, 7650, __pyx_L3_error)
42292  }
42293  CYTHON_FALLTHROUGH;
42294  case 8:
42295  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
42296  else {
42297  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 8); __PYX_ERR(0, 7650, __pyx_L3_error)
42298  }
42299  CYTHON_FALLTHROUGH;
42300  case 9:
42301  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
42302  else {
42303  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 9); __PYX_ERR(0, 7650, __pyx_L3_error)
42304  }
42305  CYTHON_FALLTHROUGH;
42306  case 10:
42307  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n_vg)) != 0)) kw_args--;
42308  else {
42309  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 10); __PYX_ERR(0, 7650, __pyx_L3_error)
42310  }
42311  CYTHON_FALLTHROUGH;
42312  case 11:
42313  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
42314  else {
42315  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 11); __PYX_ERR(0, 7650, __pyx_L3_error)
42316  }
42317  CYTHON_FALLTHROUGH;
42318  case 12:
42319  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
42320  else {
42321  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 12); __PYX_ERR(0, 7650, __pyx_L3_error)
42322  }
42323  CYTHON_FALLTHROUGH;
42324  case 13:
42325  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
42326  else {
42327  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 13); __PYX_ERR(0, 7650, __pyx_L3_error)
42328  }
42329  CYTHON_FALLTHROUGH;
42330  case 14:
42331  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
42332  else {
42333  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 14); __PYX_ERR(0, 7650, __pyx_L3_error)
42334  }
42335  CYTHON_FALLTHROUGH;
42336  case 15:
42337  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
42338  else {
42339  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 15); __PYX_ERR(0, 7650, __pyx_L3_error)
42340  }
42341  CYTHON_FALLTHROUGH;
42342  case 16:
42343  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n_global)) != 0)) kw_args--;
42344  else {
42345  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 16); __PYX_ERR(0, 7650, __pyx_L3_error)
42346  }
42347  CYTHON_FALLTHROUGH;
42348  case 17:
42349  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dV)) != 0)) kw_args--;
42350  else {
42351  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 17); __PYX_ERR(0, 7650, __pyx_L3_error)
42352  }
42353  CYTHON_FALLTHROUGH;
42354  case 18:
42355  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
42356  else {
42357  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 18); __PYX_ERR(0, 7650, __pyx_L3_error)
42358  }
42359  CYTHON_FALLTHROUGH;
42360  case 19:
42361  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
42362  else {
42363  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 19); __PYX_ERR(0, 7650, __pyx_L3_error)
42364  }
42365  CYTHON_FALLTHROUGH;
42366  case 20:
42367  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_avg)) != 0)) kw_args--;
42368  else {
42369  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 20); __PYX_ERR(0, 7650, __pyx_L3_error)
42370  }
42371  CYTHON_FALLTHROUGH;
42372  case 21:
42373  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_avg)) != 0)) kw_args--;
42374  else {
42375  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 21); __PYX_ERR(0, 7650, __pyx_L3_error)
42376  }
42377  CYTHON_FALLTHROUGH;
42378  case 22:
42379  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_avg)) != 0)) kw_args--;
42380  else {
42381  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 22); __PYX_ERR(0, 7650, __pyx_L3_error)
42382  }
42383  CYTHON_FALLTHROUGH;
42384  case 23:
42385  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_avg)) != 0)) kw_args--;
42386  else {
42387  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 23); __PYX_ERR(0, 7650, __pyx_L3_error)
42388  }
42389  CYTHON_FALLTHROUGH;
42390  case 24:
42391  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
42392  else {
42393  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 24); __PYX_ERR(0, 7650, __pyx_L3_error)
42394  }
42395  CYTHON_FALLTHROUGH;
42396  case 25:
42397  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
42398  else {
42399  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 25); __PYX_ERR(0, 7650, __pyx_L3_error)
42400  }
42401  CYTHON_FALLTHROUGH;
42402  case 26:
42403  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
42404  else {
42405  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 26); __PYX_ERR(0, 7650, __pyx_L3_error)
42406  }
42407  CYTHON_FALLTHROUGH;
42408  case 27:
42409  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
42410  else {
42411  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 27); __PYX_ERR(0, 7650, __pyx_L3_error)
42412  }
42413  }
42414  if (unlikely(kw_args > 0)) {
42415  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm") < 0)) __PYX_ERR(0, 7650, __pyx_L3_error)
42416  }
42417  } else if (PyTuple_GET_SIZE(__pyx_args) != 28) {
42418  goto __pyx_L5_argtuple_error;
42419  } else {
42420  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
42421  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
42422  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
42423  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
42424  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
42425  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
42426  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
42427  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
42428  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
42429  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
42430  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
42431  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
42432  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
42433  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
42434  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
42435  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
42436  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
42437  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
42438  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
42439  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
42440  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
42441  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
42442  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
42443  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
42444  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
42445  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
42446  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
42447  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
42448  }
42449  __pyx_v_upwindFlag = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_upwindFlag == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7650, __pyx_L3_error)
42450  __pyx_v_computeAverages = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_computeAverages == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7651, __pyx_L3_error)
42451  __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7652, __pyx_L3_error)
42452  __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[3]);
42453  __pyx_v_quadraturePointToElementBoundary = ((PyArrayObject *)values[4]);
42454  __pyx_v_materialTypes = ((PyArrayObject *)values[5]);
42455  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7656, __pyx_L3_error)
42456  __pyx_v_beta = __pyx_PyFloat_AsDouble(values[7]); if (unlikely((__pyx_v_beta == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7657, __pyx_L3_error)
42457  __pyx_v_gravity = ((PyArrayObject *)values[8]);
42458  __pyx_v_alpha = ((PyArrayObject *)values[9]);
42459  __pyx_v_n_vg = ((PyArrayObject *)values[10]);
42460  __pyx_v_thetaR = ((PyArrayObject *)values[11]);
42461  __pyx_v_thetaSR = ((PyArrayObject *)values[12]);
42462  __pyx_v_KWs = ((PyArrayObject *)values[13]);
42463  __pyx_v_u = ((PyArrayObject *)values[14]);
42464  __pyx_v_gradu = ((PyArrayObject *)values[15]);
42465  __pyx_v_n_global = ((PyArrayObject *)values[16]);
42466  __pyx_v_dV = ((PyArrayObject *)values[17]);
42467  __pyx_v_mass = ((PyArrayObject *)values[18]);
42468  __pyx_v_dmass = ((PyArrayObject *)values[19]);
42469  __pyx_v_f_avg = ((PyArrayObject *)values[20]);
42470  __pyx_v_df_avg = ((PyArrayObject *)values[21]);
42471  __pyx_v_a_avg = ((PyArrayObject *)values[22]);
42472  __pyx_v_da_avg = ((PyArrayObject *)values[23]);
42473  __pyx_v_f = ((PyArrayObject *)values[24]);
42474  __pyx_v_df = ((PyArrayObject *)values[25]);
42475  __pyx_v_a = ((PyArrayObject *)values[26]);
42476  __pyx_v_da = ((PyArrayObject *)values[27]);
42477  }
42478  goto __pyx_L4_argument_unpacking_done;
42479  __pyx_L5_argtuple_error:;
42480  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7650, __pyx_L3_error)
42481  __pyx_L3_error:;
42482  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", __pyx_clineno, __pyx_lineno, __pyx_filename);
42483  __Pyx_RefNannyFinishContext();
42484  return NULL;
42485  __pyx_L4_argument_unpacking_done:;
42486  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1, "elementBoundaryElementsArray", 0))) __PYX_ERR(0, 7653, __pyx_L1_error)
42487  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_quadraturePointToElementBoundary), __pyx_ptype_5numpy_ndarray, 1, "quadraturePointToElementBoundary", 0))) __PYX_ERR(0, 7654, __pyx_L1_error)
42488  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_materialTypes), __pyx_ptype_5numpy_ndarray, 1, "materialTypes", 0))) __PYX_ERR(0, 7655, __pyx_L1_error)
42489  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1, "gravity", 0))) __PYX_ERR(0, 7658, __pyx_L1_error)
42490  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha), __pyx_ptype_5numpy_ndarray, 1, "alpha", 0))) __PYX_ERR(0, 7659, __pyx_L1_error)
42491  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n_vg), __pyx_ptype_5numpy_ndarray, 1, "n_vg", 0))) __PYX_ERR(0, 7660, __pyx_L1_error)
42492  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaR), __pyx_ptype_5numpy_ndarray, 1, "thetaR", 0))) __PYX_ERR(0, 7661, __pyx_L1_error)
42493  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaSR), __pyx_ptype_5numpy_ndarray, 1, "thetaSR", 0))) __PYX_ERR(0, 7662, __pyx_L1_error)
42494  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_KWs), __pyx_ptype_5numpy_ndarray, 1, "KWs", 0))) __PYX_ERR(0, 7663, __pyx_L1_error)
42495  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 7664, __pyx_L1_error)
42496  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1, "gradu", 0))) __PYX_ERR(0, 7665, __pyx_L1_error)
42497  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n_global), __pyx_ptype_5numpy_ndarray, 1, "n_global", 0))) __PYX_ERR(0, 7666, __pyx_L1_error)
42498  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dV), __pyx_ptype_5numpy_ndarray, 1, "dV", 0))) __PYX_ERR(0, 7667, __pyx_L1_error)
42499  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1, "mass", 0))) __PYX_ERR(0, 7668, __pyx_L1_error)
42500  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1, "dmass", 0))) __PYX_ERR(0, 7669, __pyx_L1_error)
42501  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_avg), __pyx_ptype_5numpy_ndarray, 1, "f_avg", 0))) __PYX_ERR(0, 7670, __pyx_L1_error)
42502  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_avg), __pyx_ptype_5numpy_ndarray, 1, "df_avg", 0))) __PYX_ERR(0, 7671, __pyx_L1_error)
42503  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_avg), __pyx_ptype_5numpy_ndarray, 1, "a_avg", 0))) __PYX_ERR(0, 7672, __pyx_L1_error)
42504  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_avg), __pyx_ptype_5numpy_ndarray, 1, "da_avg", 0))) __PYX_ERR(0, 7673, __pyx_L1_error)
42505  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 7674, __pyx_L1_error)
42506  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 7675, __pyx_L1_error)
42507  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 7676, __pyx_L1_error)
42508  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 7677, __pyx_L1_error)
42509  __pyx_r = __pyx_pf_22ctransportCoefficients_212conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm(__pyx_self, __pyx_v_upwindFlag, __pyx_v_computeAverages, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_elementBoundaryElementsArray, __pyx_v_quadraturePointToElementBoundary, __pyx_v_materialTypes, __pyx_v_rho, __pyx_v_beta, __pyx_v_gravity, __pyx_v_alpha, __pyx_v_n_vg, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_u, __pyx_v_gradu, __pyx_v_n_global, __pyx_v_dV, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f_avg, __pyx_v_df_avg, __pyx_v_a_avg, __pyx_v_da_avg, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
42510 
42511  /* function exit code */
42512  goto __pyx_L0;
42513  __pyx_L1_error:;
42514  __pyx_r = NULL;
42515  __pyx_L0:;
42516  __Pyx_RefNannyFinishContext();
42517  return __pyx_r;
42518 }
42519 
42520 static PyObject *__pyx_pf_22ctransportCoefficients_212conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_upwindFlag, int __pyx_v_computeAverages, int __pyx_v_nQuadraturePoints_elementBoundary, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_quadraturePointToElementBoundary, PyArrayObject *__pyx_v_materialTypes, double __pyx_v_rho, double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n_vg, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_n_global, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f_avg, PyArrayObject *__pyx_v_df_avg, PyArrayObject *__pyx_v_a_avg, PyArrayObject *__pyx_v_da_avg, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
42521  PyObject *__pyx_r = NULL;
42522  __Pyx_RefNannyDeclarations
42523  PyObject *__pyx_t_1 = NULL;
42524  PyObject *__pyx_t_2 = NULL;
42525  PyObject *__pyx_t_3 = NULL;
42526  int __pyx_t_4;
42527  int __pyx_lineno = 0;
42528  const char *__pyx_filename = NULL;
42529  int __pyx_clineno = 0;
42530  __Pyx_RefNannySetupContext("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 0);
42531 
42532  /* "ctransportCoefficients.pyx":7680
42533  * cconservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm(upwindFlag,
42534  * computeAverages,
42535  * f.size/f.shape[f.ndim-1]/f.shape[f.ndim-2], # <<<<<<<<<<<<<<
42536  * f.shape[f.ndim-2],
42537  * f.shape[f.ndim-1],
42538  */
42539  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_f), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7680, __pyx_L1_error)
42540  __Pyx_GOTREF(__pyx_t_1);
42541  __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7680, __pyx_L1_error)
42542  __Pyx_GOTREF(__pyx_t_2);
42543  __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7680, __pyx_L1_error)
42544  __Pyx_GOTREF(__pyx_t_3);
42545  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
42546  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
42547  __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_f->dimensions[(__pyx_v_f->nd - 2)])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7680, __pyx_L1_error)
42548  __Pyx_GOTREF(__pyx_t_2);
42549  __pyx_t_1 = __Pyx_PyNumber_Divide(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7680, __pyx_L1_error)
42550  __Pyx_GOTREF(__pyx_t_1);
42551  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
42552  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
42553  __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7680, __pyx_L1_error)
42554  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
42555 
42556  /* "ctransportCoefficients.pyx":7678
42557  * np.ndarray a,
42558  * np.ndarray da):
42559  * cconservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm(upwindFlag, # <<<<<<<<<<<<<<
42560  * computeAverages,
42561  * f.size/f.shape[f.ndim-1]/f.shape[f.ndim-2],
42562  */
42563  conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm(__pyx_v_upwindFlag, __pyx_v_computeAverages, __pyx_t_4, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 2)]), (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_nQuadraturePoints_elementBoundary, ((int *)__pyx_v_elementBoundaryElementsArray->data), ((int *)__pyx_v_quadraturePointToElementBoundary->data), ((int *)__pyx_v_materialTypes->data), __pyx_v_rho, __pyx_v_beta, ((double *)__pyx_v_gravity->data), ((double *)__pyx_v_alpha->data), ((double *)__pyx_v_n_vg->data), ((double *)__pyx_v_thetaR->data), ((double *)__pyx_v_thetaSR->data), ((double *)__pyx_v_KWs->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_gradu->data), ((double *)__pyx_v_n_global->data), ((double *)__pyx_v_dV->data), ((double *)__pyx_v_mass->data), ((double *)__pyx_v_dmass->data), ((double *)__pyx_v_f_avg->data), ((double *)__pyx_v_df_avg->data), ((double *)__pyx_v_a_avg->data), ((double *)__pyx_v_da_avg->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data));
42564 
42565  /* "ctransportCoefficients.pyx":7650
42566  * <double*> a.data,
42567  * <double*> da.data)
42568  * def conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm(const int upwindFlag, # <<<<<<<<<<<<<<
42569  * const int computeAverages,
42570  * const int nQuadraturePoints_elementBoundary,
42571  */
42572 
42573  /* function exit code */
42574  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
42575  goto __pyx_L0;
42576  __pyx_L1_error:;
42577  __Pyx_XDECREF(__pyx_t_1);
42578  __Pyx_XDECREF(__pyx_t_2);
42579  __Pyx_XDECREF(__pyx_t_3);
42580  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", __pyx_clineno, __pyx_lineno, __pyx_filename);
42581  __pyx_r = NULL;
42582  __pyx_L0:;
42583  __Pyx_XGIVEREF(__pyx_r);
42584  __Pyx_RefNannyFinishContext();
42585  return __pyx_r;
42586 }
42587 
42588 /* "ctransportCoefficients.pyx":7709
42589  * <double*> a.data,
42590  * <double*> da.data)
42591  * def conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd(const int upwindFlag, # <<<<<<<<<<<<<<
42592  * const int computeAverages,
42593  * const int nQuadraturePoints_elementBoundary,
42594  */
42595 
42596 /* Python wrapper */
42597 static PyObject *__pyx_pw_22ctransportCoefficients_215conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
42598 static PyMethodDef __pyx_mdef_22ctransportCoefficients_215conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd = {"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_215conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd, METH_VARARGS|METH_KEYWORDS, 0};
42599 static PyObject *__pyx_pw_22ctransportCoefficients_215conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
42600  int __pyx_v_upwindFlag;
42601  int __pyx_v_computeAverages;
42602  int __pyx_v_nQuadraturePoints_elementBoundary;
42603  PyArrayObject *__pyx_v_rowptr = 0;
42604  PyArrayObject *__pyx_v_colind = 0;
42605  PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
42606  PyArrayObject *__pyx_v_quadraturePointToElementBoundary = 0;
42607  PyArrayObject *__pyx_v_materialTypes = 0;
42608  double __pyx_v_rho;
42609  double __pyx_v_beta;
42610  PyArrayObject *__pyx_v_gravity = 0;
42611  PyArrayObject *__pyx_v_alpha = 0;
42612  PyArrayObject *__pyx_v_n_vg = 0;
42613  PyArrayObject *__pyx_v_thetaR = 0;
42614  PyArrayObject *__pyx_v_thetaSR = 0;
42615  PyArrayObject *__pyx_v_KWs = 0;
42616  PyArrayObject *__pyx_v_u = 0;
42617  PyArrayObject *__pyx_v_gradu = 0;
42618  PyArrayObject *__pyx_v_n_global = 0;
42619  PyArrayObject *__pyx_v_dV = 0;
42620  PyArrayObject *__pyx_v_mass = 0;
42621  PyArrayObject *__pyx_v_dmass = 0;
42622  PyArrayObject *__pyx_v_f_avg = 0;
42623  PyArrayObject *__pyx_v_df_avg = 0;
42624  PyArrayObject *__pyx_v_a_avg = 0;
42625  PyArrayObject *__pyx_v_da_avg = 0;
42626  PyArrayObject *__pyx_v_f = 0;
42627  PyArrayObject *__pyx_v_df = 0;
42628  PyArrayObject *__pyx_v_a = 0;
42629  PyArrayObject *__pyx_v_da = 0;
42630  int __pyx_lineno = 0;
42631  const char *__pyx_filename = NULL;
42632  int __pyx_clineno = 0;
42633  PyObject *__pyx_r = 0;
42634  __Pyx_RefNannyDeclarations
42635  __Pyx_RefNannySetupContext("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd (wrapper)", 0);
42636  {
42637  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_upwindFlag,&__pyx_n_s_computeAverages,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_quadraturePointToElementBoundary,&__pyx_n_s_materialTypes,&__pyx_n_s_rho,&__pyx_n_s_beta,&__pyx_n_s_gravity,&__pyx_n_s_alpha,&__pyx_n_s_n_vg,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_gradu,&__pyx_n_s_n_global,&__pyx_n_s_dV,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f_avg,&__pyx_n_s_df_avg,&__pyx_n_s_a_avg,&__pyx_n_s_da_avg,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
42638  PyObject* values[30] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
42639  if (unlikely(__pyx_kwds)) {
42640  Py_ssize_t kw_args;
42641  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
42642  switch (pos_args) {
42643  case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
42644  CYTHON_FALLTHROUGH;
42645  case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
42646  CYTHON_FALLTHROUGH;
42647  case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
42648  CYTHON_FALLTHROUGH;
42649  case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
42650  CYTHON_FALLTHROUGH;
42651  case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
42652  CYTHON_FALLTHROUGH;
42653  case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
42654  CYTHON_FALLTHROUGH;
42655  case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
42656  CYTHON_FALLTHROUGH;
42657  case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
42658  CYTHON_FALLTHROUGH;
42659  case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
42660  CYTHON_FALLTHROUGH;
42661  case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
42662  CYTHON_FALLTHROUGH;
42663  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
42664  CYTHON_FALLTHROUGH;
42665  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
42666  CYTHON_FALLTHROUGH;
42667  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
42668  CYTHON_FALLTHROUGH;
42669  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
42670  CYTHON_FALLTHROUGH;
42671  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
42672  CYTHON_FALLTHROUGH;
42673  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
42674  CYTHON_FALLTHROUGH;
42675  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
42676  CYTHON_FALLTHROUGH;
42677  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
42678  CYTHON_FALLTHROUGH;
42679  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
42680  CYTHON_FALLTHROUGH;
42681  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
42682  CYTHON_FALLTHROUGH;
42683  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
42684  CYTHON_FALLTHROUGH;
42685  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
42686  CYTHON_FALLTHROUGH;
42687  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
42688  CYTHON_FALLTHROUGH;
42689  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
42690  CYTHON_FALLTHROUGH;
42691  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
42692  CYTHON_FALLTHROUGH;
42693  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
42694  CYTHON_FALLTHROUGH;
42695  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
42696  CYTHON_FALLTHROUGH;
42697  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
42698  CYTHON_FALLTHROUGH;
42699  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
42700  CYTHON_FALLTHROUGH;
42701  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
42702  CYTHON_FALLTHROUGH;
42703  case 0: break;
42704  default: goto __pyx_L5_argtuple_error;
42705  }
42706  kw_args = PyDict_Size(__pyx_kwds);
42707  switch (pos_args) {
42708  case 0:
42709  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_upwindFlag)) != 0)) kw_args--;
42710  else goto __pyx_L5_argtuple_error;
42711  CYTHON_FALLTHROUGH;
42712  case 1:
42713  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_computeAverages)) != 0)) kw_args--;
42714  else {
42715  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 1); __PYX_ERR(0, 7709, __pyx_L3_error)
42716  }
42717  CYTHON_FALLTHROUGH;
42718  case 2:
42719  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
42720  else {
42721  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 2); __PYX_ERR(0, 7709, __pyx_L3_error)
42722  }
42723  CYTHON_FALLTHROUGH;
42724  case 3:
42725  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
42726  else {
42727  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 3); __PYX_ERR(0, 7709, __pyx_L3_error)
42728  }
42729  CYTHON_FALLTHROUGH;
42730  case 4:
42731  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
42732  else {
42733  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 4); __PYX_ERR(0, 7709, __pyx_L3_error)
42734  }
42735  CYTHON_FALLTHROUGH;
42736  case 5:
42737  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
42738  else {
42739  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 5); __PYX_ERR(0, 7709, __pyx_L3_error)
42740  }
42741  CYTHON_FALLTHROUGH;
42742  case 6:
42743  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_quadraturePointToElementBoundary)) != 0)) kw_args--;
42744  else {
42745  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 6); __PYX_ERR(0, 7709, __pyx_L3_error)
42746  }
42747  CYTHON_FALLTHROUGH;
42748  case 7:
42749  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_materialTypes)) != 0)) kw_args--;
42750  else {
42751  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 7); __PYX_ERR(0, 7709, __pyx_L3_error)
42752  }
42753  CYTHON_FALLTHROUGH;
42754  case 8:
42755  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
42756  else {
42757  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 8); __PYX_ERR(0, 7709, __pyx_L3_error)
42758  }
42759  CYTHON_FALLTHROUGH;
42760  case 9:
42761  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_beta)) != 0)) kw_args--;
42762  else {
42763  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 9); __PYX_ERR(0, 7709, __pyx_L3_error)
42764  }
42765  CYTHON_FALLTHROUGH;
42766  case 10:
42767  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
42768  else {
42769  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 10); __PYX_ERR(0, 7709, __pyx_L3_error)
42770  }
42771  CYTHON_FALLTHROUGH;
42772  case 11:
42773  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
42774  else {
42775  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 11); __PYX_ERR(0, 7709, __pyx_L3_error)
42776  }
42777  CYTHON_FALLTHROUGH;
42778  case 12:
42779  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n_vg)) != 0)) kw_args--;
42780  else {
42781  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 12); __PYX_ERR(0, 7709, __pyx_L3_error)
42782  }
42783  CYTHON_FALLTHROUGH;
42784  case 13:
42785  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
42786  else {
42787  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 13); __PYX_ERR(0, 7709, __pyx_L3_error)
42788  }
42789  CYTHON_FALLTHROUGH;
42790  case 14:
42791  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
42792  else {
42793  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 14); __PYX_ERR(0, 7709, __pyx_L3_error)
42794  }
42795  CYTHON_FALLTHROUGH;
42796  case 15:
42797  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
42798  else {
42799  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 15); __PYX_ERR(0, 7709, __pyx_L3_error)
42800  }
42801  CYTHON_FALLTHROUGH;
42802  case 16:
42803  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
42804  else {
42805  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 16); __PYX_ERR(0, 7709, __pyx_L3_error)
42806  }
42807  CYTHON_FALLTHROUGH;
42808  case 17:
42809  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
42810  else {
42811  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 17); __PYX_ERR(0, 7709, __pyx_L3_error)
42812  }
42813  CYTHON_FALLTHROUGH;
42814  case 18:
42815  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n_global)) != 0)) kw_args--;
42816  else {
42817  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 18); __PYX_ERR(0, 7709, __pyx_L3_error)
42818  }
42819  CYTHON_FALLTHROUGH;
42820  case 19:
42821  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dV)) != 0)) kw_args--;
42822  else {
42823  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 19); __PYX_ERR(0, 7709, __pyx_L3_error)
42824  }
42825  CYTHON_FALLTHROUGH;
42826  case 20:
42827  if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
42828  else {
42829  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 20); __PYX_ERR(0, 7709, __pyx_L3_error)
42830  }
42831  CYTHON_FALLTHROUGH;
42832  case 21:
42833  if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
42834  else {
42835  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 21); __PYX_ERR(0, 7709, __pyx_L3_error)
42836  }
42837  CYTHON_FALLTHROUGH;
42838  case 22:
42839  if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_avg)) != 0)) kw_args--;
42840  else {
42841  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 22); __PYX_ERR(0, 7709, __pyx_L3_error)
42842  }
42843  CYTHON_FALLTHROUGH;
42844  case 23:
42845  if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_avg)) != 0)) kw_args--;
42846  else {
42847  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 23); __PYX_ERR(0, 7709, __pyx_L3_error)
42848  }
42849  CYTHON_FALLTHROUGH;
42850  case 24:
42851  if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_avg)) != 0)) kw_args--;
42852  else {
42853  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 24); __PYX_ERR(0, 7709, __pyx_L3_error)
42854  }
42855  CYTHON_FALLTHROUGH;
42856  case 25:
42857  if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_avg)) != 0)) kw_args--;
42858  else {
42859  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 25); __PYX_ERR(0, 7709, __pyx_L3_error)
42860  }
42861  CYTHON_FALLTHROUGH;
42862  case 26:
42863  if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
42864  else {
42865  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 26); __PYX_ERR(0, 7709, __pyx_L3_error)
42866  }
42867  CYTHON_FALLTHROUGH;
42868  case 27:
42869  if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
42870  else {
42871  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 27); __PYX_ERR(0, 7709, __pyx_L3_error)
42872  }
42873  CYTHON_FALLTHROUGH;
42874  case 28:
42875  if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
42876  else {
42877  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 28); __PYX_ERR(0, 7709, __pyx_L3_error)
42878  }
42879  CYTHON_FALLTHROUGH;
42880  case 29:
42881  if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
42882  else {
42883  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 29); __PYX_ERR(0, 7709, __pyx_L3_error)
42884  }
42885  }
42886  if (unlikely(kw_args > 0)) {
42887  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd") < 0)) __PYX_ERR(0, 7709, __pyx_L3_error)
42888  }
42889  } else if (PyTuple_GET_SIZE(__pyx_args) != 30) {
42890  goto __pyx_L5_argtuple_error;
42891  } else {
42892  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
42893  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
42894  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
42895  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
42896  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
42897  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
42898  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
42899  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
42900  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
42901  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
42902  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
42903  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
42904  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
42905  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
42906  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
42907  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
42908  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
42909  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
42910  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
42911  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
42912  values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
42913  values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
42914  values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
42915  values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
42916  values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
42917  values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
42918  values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
42919  values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
42920  values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
42921  values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
42922  }
42923  __pyx_v_upwindFlag = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_upwindFlag == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7709, __pyx_L3_error)
42924  __pyx_v_computeAverages = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_computeAverages == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7710, __pyx_L3_error)
42925  __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7711, __pyx_L3_error)
42926  __pyx_v_rowptr = ((PyArrayObject *)values[3]);
42927  __pyx_v_colind = ((PyArrayObject *)values[4]);
42928  __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[5]);
42929  __pyx_v_quadraturePointToElementBoundary = ((PyArrayObject *)values[6]);
42930  __pyx_v_materialTypes = ((PyArrayObject *)values[7]);
42931  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[8]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7717, __pyx_L3_error)
42932  __pyx_v_beta = __pyx_PyFloat_AsDouble(values[9]); if (unlikely((__pyx_v_beta == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7718, __pyx_L3_error)
42933  __pyx_v_gravity = ((PyArrayObject *)values[10]);
42934  __pyx_v_alpha = ((PyArrayObject *)values[11]);
42935  __pyx_v_n_vg = ((PyArrayObject *)values[12]);
42936  __pyx_v_thetaR = ((PyArrayObject *)values[13]);
42937  __pyx_v_thetaSR = ((PyArrayObject *)values[14]);
42938  __pyx_v_KWs = ((PyArrayObject *)values[15]);
42939  __pyx_v_u = ((PyArrayObject *)values[16]);
42940  __pyx_v_gradu = ((PyArrayObject *)values[17]);
42941  __pyx_v_n_global = ((PyArrayObject *)values[18]);
42942  __pyx_v_dV = ((PyArrayObject *)values[19]);
42943  __pyx_v_mass = ((PyArrayObject *)values[20]);
42944  __pyx_v_dmass = ((PyArrayObject *)values[21]);
42945  __pyx_v_f_avg = ((PyArrayObject *)values[22]);
42946  __pyx_v_df_avg = ((PyArrayObject *)values[23]);
42947  __pyx_v_a_avg = ((PyArrayObject *)values[24]);
42948  __pyx_v_da_avg = ((PyArrayObject *)values[25]);
42949  __pyx_v_f = ((PyArrayObject *)values[26]);
42950  __pyx_v_df = ((PyArrayObject *)values[27]);
42951  __pyx_v_a = ((PyArrayObject *)values[28]);
42952  __pyx_v_da = ((PyArrayObject *)values[29]);
42953  }
42954  goto __pyx_L4_argument_unpacking_done;
42955  __pyx_L5_argtuple_error:;
42956  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7709, __pyx_L3_error)
42957  __pyx_L3_error:;
42958  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
42959  __Pyx_RefNannyFinishContext();
42960  return NULL;
42961  __pyx_L4_argument_unpacking_done:;
42962  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1, "rowptr", 0))) __PYX_ERR(0, 7712, __pyx_L1_error)
42963  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1, "colind", 0))) __PYX_ERR(0, 7713, __pyx_L1_error)
42964  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1, "elementBoundaryElementsArray", 0))) __PYX_ERR(0, 7714, __pyx_L1_error)
42965  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_quadraturePointToElementBoundary), __pyx_ptype_5numpy_ndarray, 1, "quadraturePointToElementBoundary", 0))) __PYX_ERR(0, 7715, __pyx_L1_error)
42966  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_materialTypes), __pyx_ptype_5numpy_ndarray, 1, "materialTypes", 0))) __PYX_ERR(0, 7716, __pyx_L1_error)
42967  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1, "gravity", 0))) __PYX_ERR(0, 7719, __pyx_L1_error)
42968  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha), __pyx_ptype_5numpy_ndarray, 1, "alpha", 0))) __PYX_ERR(0, 7720, __pyx_L1_error)
42969  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n_vg), __pyx_ptype_5numpy_ndarray, 1, "n_vg", 0))) __PYX_ERR(0, 7721, __pyx_L1_error)
42970  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaR), __pyx_ptype_5numpy_ndarray, 1, "thetaR", 0))) __PYX_ERR(0, 7722, __pyx_L1_error)
42971  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaSR), __pyx_ptype_5numpy_ndarray, 1, "thetaSR", 0))) __PYX_ERR(0, 7723, __pyx_L1_error)
42972  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_KWs), __pyx_ptype_5numpy_ndarray, 1, "KWs", 0))) __PYX_ERR(0, 7724, __pyx_L1_error)
42973  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 7725, __pyx_L1_error)
42974  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1, "gradu", 0))) __PYX_ERR(0, 7726, __pyx_L1_error)
42975  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n_global), __pyx_ptype_5numpy_ndarray, 1, "n_global", 0))) __PYX_ERR(0, 7727, __pyx_L1_error)
42976  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dV), __pyx_ptype_5numpy_ndarray, 1, "dV", 0))) __PYX_ERR(0, 7728, __pyx_L1_error)
42977  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1, "mass", 0))) __PYX_ERR(0, 7729, __pyx_L1_error)
42978  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1, "dmass", 0))) __PYX_ERR(0, 7730, __pyx_L1_error)
42979  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_avg), __pyx_ptype_5numpy_ndarray, 1, "f_avg", 0))) __PYX_ERR(0, 7731, __pyx_L1_error)
42980  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_avg), __pyx_ptype_5numpy_ndarray, 1, "df_avg", 0))) __PYX_ERR(0, 7732, __pyx_L1_error)
42981  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_avg), __pyx_ptype_5numpy_ndarray, 1, "a_avg", 0))) __PYX_ERR(0, 7733, __pyx_L1_error)
42982  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_avg), __pyx_ptype_5numpy_ndarray, 1, "da_avg", 0))) __PYX_ERR(0, 7734, __pyx_L1_error)
42983  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 7735, __pyx_L1_error)
42984  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 7736, __pyx_L1_error)
42985  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 7737, __pyx_L1_error)
42986  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 7738, __pyx_L1_error)
42987  __pyx_r = __pyx_pf_22ctransportCoefficients_214conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd(__pyx_self, __pyx_v_upwindFlag, __pyx_v_computeAverages, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_elementBoundaryElementsArray, __pyx_v_quadraturePointToElementBoundary, __pyx_v_materialTypes, __pyx_v_rho, __pyx_v_beta, __pyx_v_gravity, __pyx_v_alpha, __pyx_v_n_vg, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_u, __pyx_v_gradu, __pyx_v_n_global, __pyx_v_dV, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f_avg, __pyx_v_df_avg, __pyx_v_a_avg, __pyx_v_da_avg, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
42988 
42989  /* function exit code */
42990  goto __pyx_L0;
42991  __pyx_L1_error:;
42992  __pyx_r = NULL;
42993  __pyx_L0:;
42994  __Pyx_RefNannyFinishContext();
42995  return __pyx_r;
42996 }
42997 
42998 static PyObject *__pyx_pf_22ctransportCoefficients_214conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_upwindFlag, int __pyx_v_computeAverages, int __pyx_v_nQuadraturePoints_elementBoundary, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_quadraturePointToElementBoundary, PyArrayObject *__pyx_v_materialTypes, double __pyx_v_rho, double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n_vg, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_n_global, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f_avg, PyArrayObject *__pyx_v_df_avg, PyArrayObject *__pyx_v_a_avg, PyArrayObject *__pyx_v_da_avg, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
42999  PyObject *__pyx_r = NULL;
43000  __Pyx_RefNannyDeclarations
43001  PyObject *__pyx_t_1 = NULL;
43002  PyObject *__pyx_t_2 = NULL;
43003  PyObject *__pyx_t_3 = NULL;
43004  int __pyx_t_4;
43005  int __pyx_lineno = 0;
43006  const char *__pyx_filename = NULL;
43007  int __pyx_clineno = 0;
43008  __Pyx_RefNannySetupContext("conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 0);
43009 
43010  /* "ctransportCoefficients.pyx":7741
43011  * cconservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd(upwindFlag,
43012  * computeAverages,
43013  * f.size/f.shape[f.ndim-1]/f.shape[f.ndim-2], # <<<<<<<<<<<<<<
43014  * f.shape[f.ndim-2],
43015  * f.shape[f.ndim-1],
43016  */
43017  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_f), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7741, __pyx_L1_error)
43018  __Pyx_GOTREF(__pyx_t_1);
43019  __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7741, __pyx_L1_error)
43020  __Pyx_GOTREF(__pyx_t_2);
43021  __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7741, __pyx_L1_error)
43022  __Pyx_GOTREF(__pyx_t_3);
43023  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
43024  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
43025  __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_f->dimensions[(__pyx_v_f->nd - 2)])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7741, __pyx_L1_error)
43026  __Pyx_GOTREF(__pyx_t_2);
43027  __pyx_t_1 = __Pyx_PyNumber_Divide(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7741, __pyx_L1_error)
43028  __Pyx_GOTREF(__pyx_t_1);
43029  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
43030  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
43031  __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7741, __pyx_L1_error)
43032  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
43033 
43034  /* "ctransportCoefficients.pyx":7739
43035  * np.ndarray a,
43036  * np.ndarray da):
43037  * cconservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd(upwindFlag, # <<<<<<<<<<<<<<
43038  * computeAverages,
43039  * f.size/f.shape[f.ndim-1]/f.shape[f.ndim-2],
43040  */
43041  conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd(__pyx_v_upwindFlag, __pyx_v_computeAverages, __pyx_t_4, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 2)]), (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_nQuadraturePoints_elementBoundary, ((int *)__pyx_v_rowptr->data), ((int *)__pyx_v_colind->data), ((int *)__pyx_v_elementBoundaryElementsArray->data), ((int *)__pyx_v_quadraturePointToElementBoundary->data), ((int *)__pyx_v_materialTypes->data), __pyx_v_rho, __pyx_v_beta, ((double *)__pyx_v_gravity->data), ((double *)__pyx_v_alpha->data), ((double *)__pyx_v_n_vg->data), ((double *)__pyx_v_thetaR->data), ((double *)__pyx_v_thetaSR->data), ((double *)__pyx_v_KWs->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_gradu->data), ((double *)__pyx_v_n_global->data), ((double *)__pyx_v_dV->data), ((double *)__pyx_v_mass->data), ((double *)__pyx_v_dmass->data), ((double *)__pyx_v_f_avg->data), ((double *)__pyx_v_df_avg->data), ((double *)__pyx_v_a_avg->data), ((double *)__pyx_v_da_avg->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data));
43042 
43043  /* "ctransportCoefficients.pyx":7709
43044  * <double*> a.data,
43045  * <double*> da.data)
43046  * def conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd(const int upwindFlag, # <<<<<<<<<<<<<<
43047  * const int computeAverages,
43048  * const int nQuadraturePoints_elementBoundary,
43049  */
43050 
43051  /* function exit code */
43052  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
43053  goto __pyx_L0;
43054  __pyx_L1_error:;
43055  __Pyx_XDECREF(__pyx_t_1);
43056  __Pyx_XDECREF(__pyx_t_2);
43057  __Pyx_XDECREF(__pyx_t_3);
43058  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
43059  __pyx_r = NULL;
43060  __pyx_L0:;
43061  __Pyx_XGIVEREF(__pyx_r);
43062  __Pyx_RefNannyFinishContext();
43063  return __pyx_r;
43064 }
43065 
43066 /* "ctransportCoefficients.pyx":7772
43067  * <double*> a.data,
43068  * <double*> da.data)
43069  * def applyContactLineSlip(double eps, # <<<<<<<<<<<<<<
43070  * np.ndarray isDOFBoundary,
43071  * np.ndarray phi,
43072  */
43073 
43074 /* Python wrapper */
43075 static PyObject *__pyx_pw_22ctransportCoefficients_217applyContactLineSlip(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
43076 static PyMethodDef __pyx_mdef_22ctransportCoefficients_217applyContactLineSlip = {"applyContactLineSlip", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_217applyContactLineSlip, METH_VARARGS|METH_KEYWORDS, 0};
43077 static PyObject *__pyx_pw_22ctransportCoefficients_217applyContactLineSlip(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
43078  double __pyx_v_eps;
43079  PyArrayObject *__pyx_v_isDOFBoundary = 0;
43080  PyArrayObject *__pyx_v_phi = 0;
43081  PyArrayObject *__pyx_v_advectiveFlux = 0;
43082  PyArrayObject *__pyx_v_diffusiveFlux = 0;
43083  int __pyx_lineno = 0;
43084  const char *__pyx_filename = NULL;
43085  int __pyx_clineno = 0;
43086  PyObject *__pyx_r = 0;
43087  __Pyx_RefNannyDeclarations
43088  __Pyx_RefNannySetupContext("applyContactLineSlip (wrapper)", 0);
43089  {
43090  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_isDOFBoundary,&__pyx_n_s_phi,&__pyx_n_s_advectiveFlux,&__pyx_n_s_diffusiveFlux,0};
43091  PyObject* values[5] = {0,0,0,0,0};
43092  if (unlikely(__pyx_kwds)) {
43093  Py_ssize_t kw_args;
43094  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
43095  switch (pos_args) {
43096  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
43097  CYTHON_FALLTHROUGH;
43098  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43099  CYTHON_FALLTHROUGH;
43100  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43101  CYTHON_FALLTHROUGH;
43102  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43103  CYTHON_FALLTHROUGH;
43104  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43105  CYTHON_FALLTHROUGH;
43106  case 0: break;
43107  default: goto __pyx_L5_argtuple_error;
43108  }
43109  kw_args = PyDict_Size(__pyx_kwds);
43110  switch (pos_args) {
43111  case 0:
43112  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
43113  else goto __pyx_L5_argtuple_error;
43114  CYTHON_FALLTHROUGH;
43115  case 1:
43116  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
43117  else {
43118  __Pyx_RaiseArgtupleInvalid("applyContactLineSlip", 1, 5, 5, 1); __PYX_ERR(0, 7772, __pyx_L3_error)
43119  }
43120  CYTHON_FALLTHROUGH;
43121  case 2:
43122  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
43123  else {
43124  __Pyx_RaiseArgtupleInvalid("applyContactLineSlip", 1, 5, 5, 2); __PYX_ERR(0, 7772, __pyx_L3_error)
43125  }
43126  CYTHON_FALLTHROUGH;
43127  case 3:
43128  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_advectiveFlux)) != 0)) kw_args--;
43129  else {
43130  __Pyx_RaiseArgtupleInvalid("applyContactLineSlip", 1, 5, 5, 3); __PYX_ERR(0, 7772, __pyx_L3_error)
43131  }
43132  CYTHON_FALLTHROUGH;
43133  case 4:
43134  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_diffusiveFlux)) != 0)) kw_args--;
43135  else {
43136  __Pyx_RaiseArgtupleInvalid("applyContactLineSlip", 1, 5, 5, 4); __PYX_ERR(0, 7772, __pyx_L3_error)
43137  }
43138  }
43139  if (unlikely(kw_args > 0)) {
43140  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "applyContactLineSlip") < 0)) __PYX_ERR(0, 7772, __pyx_L3_error)
43141  }
43142  } else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
43143  goto __pyx_L5_argtuple_error;
43144  } else {
43145  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43146  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43147  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43148  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43149  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
43150  }
43151  __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7772, __pyx_L3_error)
43152  __pyx_v_isDOFBoundary = ((PyArrayObject *)values[1]);
43153  __pyx_v_phi = ((PyArrayObject *)values[2]);
43154  __pyx_v_advectiveFlux = ((PyArrayObject *)values[3]);
43155  __pyx_v_diffusiveFlux = ((PyArrayObject *)values[4]);
43156  }
43157  goto __pyx_L4_argument_unpacking_done;
43158  __pyx_L5_argtuple_error:;
43159  __Pyx_RaiseArgtupleInvalid("applyContactLineSlip", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7772, __pyx_L3_error)
43160  __pyx_L3_error:;
43161  __Pyx_AddTraceback("ctransportCoefficients.applyContactLineSlip", __pyx_clineno, __pyx_lineno, __pyx_filename);
43162  __Pyx_RefNannyFinishContext();
43163  return NULL;
43164  __pyx_L4_argument_unpacking_done:;
43165  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1, "isDOFBoundary", 0))) __PYX_ERR(0, 7773, __pyx_L1_error)
43166  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 7774, __pyx_L1_error)
43167  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_advectiveFlux), __pyx_ptype_5numpy_ndarray, 1, "advectiveFlux", 0))) __PYX_ERR(0, 7775, __pyx_L1_error)
43168  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_diffusiveFlux), __pyx_ptype_5numpy_ndarray, 1, "diffusiveFlux", 0))) __PYX_ERR(0, 7776, __pyx_L1_error)
43169  __pyx_r = __pyx_pf_22ctransportCoefficients_216applyContactLineSlip(__pyx_self, __pyx_v_eps, __pyx_v_isDOFBoundary, __pyx_v_phi, __pyx_v_advectiveFlux, __pyx_v_diffusiveFlux);
43170 
43171  /* function exit code */
43172  goto __pyx_L0;
43173  __pyx_L1_error:;
43174  __pyx_r = NULL;
43175  __pyx_L0:;
43176  __Pyx_RefNannyFinishContext();
43177  return __pyx_r;
43178 }
43179 
43180 static PyObject *__pyx_pf_22ctransportCoefficients_216applyContactLineSlip(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_advectiveFlux, PyArrayObject *__pyx_v_diffusiveFlux) {
43181  PyObject *__pyx_r = NULL;
43182  __Pyx_RefNannyDeclarations
43183  __Pyx_RefNannySetupContext("applyContactLineSlip", 0);
43184 
43185  /* "ctransportCoefficients.pyx":7777
43186  * np.ndarray advectiveFlux,
43187  * np.ndarray diffusiveFlux):
43188  * capplyContactLineSlip(phi.shape[0], # <<<<<<<<<<<<<<
43189  * phi.shape[1],
43190  * eps,
43191  */
43192  applyContactLineSlip((__pyx_v_phi->dimensions[0]), (__pyx_v_phi->dimensions[1]), __pyx_v_eps, ((int *)__pyx_v_isDOFBoundary->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_advectiveFlux->data), ((double *)__pyx_v_diffusiveFlux->data));
43193 
43194  /* "ctransportCoefficients.pyx":7772
43195  * <double*> a.data,
43196  * <double*> da.data)
43197  * def applyContactLineSlip(double eps, # <<<<<<<<<<<<<<
43198  * np.ndarray isDOFBoundary,
43199  * np.ndarray phi,
43200  */
43201 
43202  /* function exit code */
43203  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
43204  __Pyx_XGIVEREF(__pyx_r);
43205  __Pyx_RefNannyFinishContext();
43206  return __pyx_r;
43207 }
43208 
43209 /* "ctransportCoefficients.pyx":7784
43210  * <double*> advectiveFlux.data,
43211  * <double*> diffusiveFlux.data)
43212  * def applyContactLineSlipJacobian(double eps, # <<<<<<<<<<<<<<
43213  * np.ndarray isDOFBoundary,
43214  * np.ndarray phi,
43215  */
43216 
43217 /* Python wrapper */
43218 static PyObject *__pyx_pw_22ctransportCoefficients_219applyContactLineSlipJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
43219 static PyMethodDef __pyx_mdef_22ctransportCoefficients_219applyContactLineSlipJacobian = {"applyContactLineSlipJacobian", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_219applyContactLineSlipJacobian, METH_VARARGS|METH_KEYWORDS, 0};
43220 static PyObject *__pyx_pw_22ctransportCoefficients_219applyContactLineSlipJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
43221  double __pyx_v_eps;
43222  PyArrayObject *__pyx_v_isDOFBoundary = 0;
43223  PyArrayObject *__pyx_v_phi = 0;
43224  PyArrayObject *__pyx_v_fluxJacobian = 0;
43225  int __pyx_lineno = 0;
43226  const char *__pyx_filename = NULL;
43227  int __pyx_clineno = 0;
43228  PyObject *__pyx_r = 0;
43229  __Pyx_RefNannyDeclarations
43230  __Pyx_RefNannySetupContext("applyContactLineSlipJacobian (wrapper)", 0);
43231  {
43232  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_isDOFBoundary,&__pyx_n_s_phi,&__pyx_n_s_fluxJacobian,0};
43233  PyObject* values[4] = {0,0,0,0};
43234  if (unlikely(__pyx_kwds)) {
43235  Py_ssize_t kw_args;
43236  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
43237  switch (pos_args) {
43238  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43239  CYTHON_FALLTHROUGH;
43240  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43241  CYTHON_FALLTHROUGH;
43242  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43243  CYTHON_FALLTHROUGH;
43244  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43245  CYTHON_FALLTHROUGH;
43246  case 0: break;
43247  default: goto __pyx_L5_argtuple_error;
43248  }
43249  kw_args = PyDict_Size(__pyx_kwds);
43250  switch (pos_args) {
43251  case 0:
43252  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
43253  else goto __pyx_L5_argtuple_error;
43254  CYTHON_FALLTHROUGH;
43255  case 1:
43256  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
43257  else {
43258  __Pyx_RaiseArgtupleInvalid("applyContactLineSlipJacobian", 1, 4, 4, 1); __PYX_ERR(0, 7784, __pyx_L3_error)
43259  }
43260  CYTHON_FALLTHROUGH;
43261  case 2:
43262  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
43263  else {
43264  __Pyx_RaiseArgtupleInvalid("applyContactLineSlipJacobian", 1, 4, 4, 2); __PYX_ERR(0, 7784, __pyx_L3_error)
43265  }
43266  CYTHON_FALLTHROUGH;
43267  case 3:
43268  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian)) != 0)) kw_args--;
43269  else {
43270  __Pyx_RaiseArgtupleInvalid("applyContactLineSlipJacobian", 1, 4, 4, 3); __PYX_ERR(0, 7784, __pyx_L3_error)
43271  }
43272  }
43273  if (unlikely(kw_args > 0)) {
43274  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "applyContactLineSlipJacobian") < 0)) __PYX_ERR(0, 7784, __pyx_L3_error)
43275  }
43276  } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
43277  goto __pyx_L5_argtuple_error;
43278  } else {
43279  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43280  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43281  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43282  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43283  }
43284  __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7784, __pyx_L3_error)
43285  __pyx_v_isDOFBoundary = ((PyArrayObject *)values[1]);
43286  __pyx_v_phi = ((PyArrayObject *)values[2]);
43287  __pyx_v_fluxJacobian = ((PyArrayObject *)values[3]);
43288  }
43289  goto __pyx_L4_argument_unpacking_done;
43290  __pyx_L5_argtuple_error:;
43291  __Pyx_RaiseArgtupleInvalid("applyContactLineSlipJacobian", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7784, __pyx_L3_error)
43292  __pyx_L3_error:;
43293  __Pyx_AddTraceback("ctransportCoefficients.applyContactLineSlipJacobian", __pyx_clineno, __pyx_lineno, __pyx_filename);
43294  __Pyx_RefNannyFinishContext();
43295  return NULL;
43296  __pyx_L4_argument_unpacking_done:;
43297  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1, "isDOFBoundary", 0))) __PYX_ERR(0, 7785, __pyx_L1_error)
43298  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 7786, __pyx_L1_error)
43299  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian), __pyx_ptype_5numpy_ndarray, 1, "fluxJacobian", 0))) __PYX_ERR(0, 7787, __pyx_L1_error)
43300  __pyx_r = __pyx_pf_22ctransportCoefficients_218applyContactLineSlipJacobian(__pyx_self, __pyx_v_eps, __pyx_v_isDOFBoundary, __pyx_v_phi, __pyx_v_fluxJacobian);
43301 
43302  /* function exit code */
43303  goto __pyx_L0;
43304  __pyx_L1_error:;
43305  __pyx_r = NULL;
43306  __pyx_L0:;
43307  __Pyx_RefNannyFinishContext();
43308  return __pyx_r;
43309 }
43310 
43311 static PyObject *__pyx_pf_22ctransportCoefficients_218applyContactLineSlipJacobian(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_fluxJacobian) {
43312  PyObject *__pyx_r = NULL;
43313  __Pyx_RefNannyDeclarations
43314  __Pyx_RefNannySetupContext("applyContactLineSlipJacobian", 0);
43315 
43316  /* "ctransportCoefficients.pyx":7788
43317  * np.ndarray phi,
43318  * np.ndarray fluxJacobian):
43319  * capplyContactLineSlipJacobian(fluxJacobian.shape[0], # <<<<<<<<<<<<<<
43320  * fluxJacobian.shape[1],
43321  * fluxJacobian.shape[2],
43322  */
43323  applyContactLineSlipJacobian((__pyx_v_fluxJacobian->dimensions[0]), (__pyx_v_fluxJacobian->dimensions[1]), (__pyx_v_fluxJacobian->dimensions[2]), __pyx_v_eps, ((int *)__pyx_v_isDOFBoundary->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_fluxJacobian->data));
43324 
43325  /* "ctransportCoefficients.pyx":7784
43326  * <double*> advectiveFlux.data,
43327  * <double*> diffusiveFlux.data)
43328  * def applyContactLineSlipJacobian(double eps, # <<<<<<<<<<<<<<
43329  * np.ndarray isDOFBoundary,
43330  * np.ndarray phi,
43331  */
43332 
43333  /* function exit code */
43334  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
43335  __Pyx_XGIVEREF(__pyx_r);
43336  __Pyx_RefNannyFinishContext();
43337  return __pyx_r;
43338 }
43339 
43340 /* "ctransportCoefficients.pyx":7795
43341  * <double*> phi.data,
43342  * <double*> fluxJacobian.data)
43343  * def calculateEddyViscosity_Smagorinsky_2D(const double smagorinskyConstant, # <<<<<<<<<<<<<<
43344  * np.ndarray h_e,
43345  * np.ndarray grad_u,
43346  */
43347 
43348 /* Python wrapper */
43349 static PyObject *__pyx_pw_22ctransportCoefficients_221calculateEddyViscosity_Smagorinsky_2D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
43350 static PyMethodDef __pyx_mdef_22ctransportCoefficients_221calculateEddyViscosity_Smagorinsky_2D = {"calculateEddyViscosity_Smagorinsky_2D", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_221calculateEddyViscosity_Smagorinsky_2D, METH_VARARGS|METH_KEYWORDS, 0};
43351 static PyObject *__pyx_pw_22ctransportCoefficients_221calculateEddyViscosity_Smagorinsky_2D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
43352  double __pyx_v_smagorinskyConstant;
43353  PyArrayObject *__pyx_v_h_e = 0;
43354  PyArrayObject *__pyx_v_grad_u = 0;
43355  PyArrayObject *__pyx_v_grad_v = 0;
43356  PyArrayObject *__pyx_v_nu_t = 0;
43357  int __pyx_lineno = 0;
43358  const char *__pyx_filename = NULL;
43359  int __pyx_clineno = 0;
43360  PyObject *__pyx_r = 0;
43361  __Pyx_RefNannyDeclarations
43362  __Pyx_RefNannySetupContext("calculateEddyViscosity_Smagorinsky_2D (wrapper)", 0);
43363  {
43364  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_smagorinskyConstant,&__pyx_n_s_h_e,&__pyx_n_s_grad_u,&__pyx_n_s_grad_v,&__pyx_n_s_nu_t,0};
43365  PyObject* values[5] = {0,0,0,0,0};
43366  if (unlikely(__pyx_kwds)) {
43367  Py_ssize_t kw_args;
43368  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
43369  switch (pos_args) {
43370  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
43371  CYTHON_FALLTHROUGH;
43372  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43373  CYTHON_FALLTHROUGH;
43374  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43375  CYTHON_FALLTHROUGH;
43376  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43377  CYTHON_FALLTHROUGH;
43378  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43379  CYTHON_FALLTHROUGH;
43380  case 0: break;
43381  default: goto __pyx_L5_argtuple_error;
43382  }
43383  kw_args = PyDict_Size(__pyx_kwds);
43384  switch (pos_args) {
43385  case 0:
43386  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_smagorinskyConstant)) != 0)) kw_args--;
43387  else goto __pyx_L5_argtuple_error;
43388  CYTHON_FALLTHROUGH;
43389  case 1:
43390  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h_e)) != 0)) kw_args--;
43391  else {
43392  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky_2D", 1, 5, 5, 1); __PYX_ERR(0, 7795, __pyx_L3_error)
43393  }
43394  CYTHON_FALLTHROUGH;
43395  case 2:
43396  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
43397  else {
43398  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky_2D", 1, 5, 5, 2); __PYX_ERR(0, 7795, __pyx_L3_error)
43399  }
43400  CYTHON_FALLTHROUGH;
43401  case 3:
43402  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
43403  else {
43404  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky_2D", 1, 5, 5, 3); __PYX_ERR(0, 7795, __pyx_L3_error)
43405  }
43406  CYTHON_FALLTHROUGH;
43407  case 4:
43408  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_t)) != 0)) kw_args--;
43409  else {
43410  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky_2D", 1, 5, 5, 4); __PYX_ERR(0, 7795, __pyx_L3_error)
43411  }
43412  }
43413  if (unlikely(kw_args > 0)) {
43414  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "calculateEddyViscosity_Smagorinsky_2D") < 0)) __PYX_ERR(0, 7795, __pyx_L3_error)
43415  }
43416  } else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
43417  goto __pyx_L5_argtuple_error;
43418  } else {
43419  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43420  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43421  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43422  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43423  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
43424  }
43425  __pyx_v_smagorinskyConstant = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_smagorinskyConstant == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7795, __pyx_L3_error)
43426  __pyx_v_h_e = ((PyArrayObject *)values[1]);
43427  __pyx_v_grad_u = ((PyArrayObject *)values[2]);
43428  __pyx_v_grad_v = ((PyArrayObject *)values[3]);
43429  __pyx_v_nu_t = ((PyArrayObject *)values[4]);
43430  }
43431  goto __pyx_L4_argument_unpacking_done;
43432  __pyx_L5_argtuple_error:;
43433  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky_2D", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7795, __pyx_L3_error)
43434  __pyx_L3_error:;
43435  __Pyx_AddTraceback("ctransportCoefficients.calculateEddyViscosity_Smagorinsky_2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
43436  __Pyx_RefNannyFinishContext();
43437  return NULL;
43438  __pyx_L4_argument_unpacking_done:;
43439  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_h_e), __pyx_ptype_5numpy_ndarray, 1, "h_e", 0))) __PYX_ERR(0, 7796, __pyx_L1_error)
43440  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1, "grad_u", 0))) __PYX_ERR(0, 7797, __pyx_L1_error)
43441  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1, "grad_v", 0))) __PYX_ERR(0, 7798, __pyx_L1_error)
43442  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nu_t), __pyx_ptype_5numpy_ndarray, 1, "nu_t", 0))) __PYX_ERR(0, 7799, __pyx_L1_error)
43443  __pyx_r = __pyx_pf_22ctransportCoefficients_220calculateEddyViscosity_Smagorinsky_2D(__pyx_self, __pyx_v_smagorinskyConstant, __pyx_v_h_e, __pyx_v_grad_u, __pyx_v_grad_v, __pyx_v_nu_t);
43444 
43445  /* function exit code */
43446  goto __pyx_L0;
43447  __pyx_L1_error:;
43448  __pyx_r = NULL;
43449  __pyx_L0:;
43450  __Pyx_RefNannyFinishContext();
43451  return __pyx_r;
43452 }
43453 
43454 static PyObject *__pyx_pf_22ctransportCoefficients_220calculateEddyViscosity_Smagorinsky_2D(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_smagorinskyConstant, PyArrayObject *__pyx_v_h_e, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_nu_t) {
43455  PyObject *__pyx_r = NULL;
43456  __Pyx_RefNannyDeclarations
43457  __Pyx_RefNannySetupContext("calculateEddyViscosity_Smagorinsky_2D", 0);
43458 
43459  /* "ctransportCoefficients.pyx":7800
43460  * np.ndarray grad_v,
43461  * np.ndarray nu_t):
43462  * ccalculateEddyViscosity_Smagorinsky_2D(grad_u.shape[0], # <<<<<<<<<<<<<<
43463  * grad_u.shape[1],
43464  * smagorinskyConstant,
43465  */
43466  calculateEddyViscosity_Smagorinsky_2D((__pyx_v_grad_u->dimensions[0]), (__pyx_v_grad_u->dimensions[1]), __pyx_v_smagorinskyConstant, ((double *)__pyx_v_h_e->data), ((double *)__pyx_v_grad_u->data), ((double *)__pyx_v_grad_v->data), ((double *)__pyx_v_nu_t->data));
43467 
43468  /* "ctransportCoefficients.pyx":7795
43469  * <double*> phi.data,
43470  * <double*> fluxJacobian.data)
43471  * def calculateEddyViscosity_Smagorinsky_2D(const double smagorinskyConstant, # <<<<<<<<<<<<<<
43472  * np.ndarray h_e,
43473  * np.ndarray grad_u,
43474  */
43475 
43476  /* function exit code */
43477  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
43478  __Pyx_XGIVEREF(__pyx_r);
43479  __Pyx_RefNannyFinishContext();
43480  return __pyx_r;
43481 }
43482 
43483 /* "ctransportCoefficients.pyx":7807
43484  * <double*> grad_v.data,
43485  * <double*> nu_t.data)
43486  * def calculateEddyViscosity_Smagorinsky_3D(const double smagorinskyConstant, # <<<<<<<<<<<<<<
43487  * np.ndarray h_e,
43488  * np.ndarray grad_u,
43489  */
43490 
43491 /* Python wrapper */
43492 static PyObject *__pyx_pw_22ctransportCoefficients_223calculateEddyViscosity_Smagorinsky_3D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
43493 static PyMethodDef __pyx_mdef_22ctransportCoefficients_223calculateEddyViscosity_Smagorinsky_3D = {"calculateEddyViscosity_Smagorinsky_3D", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_223calculateEddyViscosity_Smagorinsky_3D, METH_VARARGS|METH_KEYWORDS, 0};
43494 static PyObject *__pyx_pw_22ctransportCoefficients_223calculateEddyViscosity_Smagorinsky_3D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
43495  double __pyx_v_smagorinskyConstant;
43496  PyArrayObject *__pyx_v_h_e = 0;
43497  PyArrayObject *__pyx_v_grad_u = 0;
43498  PyArrayObject *__pyx_v_grad_v = 0;
43499  PyArrayObject *__pyx_v_grad_w = 0;
43500  PyArrayObject *__pyx_v_nu_t = 0;
43501  int __pyx_lineno = 0;
43502  const char *__pyx_filename = NULL;
43503  int __pyx_clineno = 0;
43504  PyObject *__pyx_r = 0;
43505  __Pyx_RefNannyDeclarations
43506  __Pyx_RefNannySetupContext("calculateEddyViscosity_Smagorinsky_3D (wrapper)", 0);
43507  {
43508  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_smagorinskyConstant,&__pyx_n_s_h_e,&__pyx_n_s_grad_u,&__pyx_n_s_grad_v,&__pyx_n_s_grad_w,&__pyx_n_s_nu_t,0};
43509  PyObject* values[6] = {0,0,0,0,0,0};
43510  if (unlikely(__pyx_kwds)) {
43511  Py_ssize_t kw_args;
43512  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
43513  switch (pos_args) {
43514  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
43515  CYTHON_FALLTHROUGH;
43516  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
43517  CYTHON_FALLTHROUGH;
43518  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43519  CYTHON_FALLTHROUGH;
43520  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43521  CYTHON_FALLTHROUGH;
43522  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43523  CYTHON_FALLTHROUGH;
43524  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43525  CYTHON_FALLTHROUGH;
43526  case 0: break;
43527  default: goto __pyx_L5_argtuple_error;
43528  }
43529  kw_args = PyDict_Size(__pyx_kwds);
43530  switch (pos_args) {
43531  case 0:
43532  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_smagorinskyConstant)) != 0)) kw_args--;
43533  else goto __pyx_L5_argtuple_error;
43534  CYTHON_FALLTHROUGH;
43535  case 1:
43536  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h_e)) != 0)) kw_args--;
43537  else {
43538  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky_3D", 1, 6, 6, 1); __PYX_ERR(0, 7807, __pyx_L3_error)
43539  }
43540  CYTHON_FALLTHROUGH;
43541  case 2:
43542  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
43543  else {
43544  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky_3D", 1, 6, 6, 2); __PYX_ERR(0, 7807, __pyx_L3_error)
43545  }
43546  CYTHON_FALLTHROUGH;
43547  case 3:
43548  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
43549  else {
43550  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky_3D", 1, 6, 6, 3); __PYX_ERR(0, 7807, __pyx_L3_error)
43551  }
43552  CYTHON_FALLTHROUGH;
43553  case 4:
43554  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w)) != 0)) kw_args--;
43555  else {
43556  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky_3D", 1, 6, 6, 4); __PYX_ERR(0, 7807, __pyx_L3_error)
43557  }
43558  CYTHON_FALLTHROUGH;
43559  case 5:
43560  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_t)) != 0)) kw_args--;
43561  else {
43562  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky_3D", 1, 6, 6, 5); __PYX_ERR(0, 7807, __pyx_L3_error)
43563  }
43564  }
43565  if (unlikely(kw_args > 0)) {
43566  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "calculateEddyViscosity_Smagorinsky_3D") < 0)) __PYX_ERR(0, 7807, __pyx_L3_error)
43567  }
43568  } else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
43569  goto __pyx_L5_argtuple_error;
43570  } else {
43571  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43572  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43573  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43574  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43575  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
43576  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
43577  }
43578  __pyx_v_smagorinskyConstant = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_smagorinskyConstant == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7807, __pyx_L3_error)
43579  __pyx_v_h_e = ((PyArrayObject *)values[1]);
43580  __pyx_v_grad_u = ((PyArrayObject *)values[2]);
43581  __pyx_v_grad_v = ((PyArrayObject *)values[3]);
43582  __pyx_v_grad_w = ((PyArrayObject *)values[4]);
43583  __pyx_v_nu_t = ((PyArrayObject *)values[5]);
43584  }
43585  goto __pyx_L4_argument_unpacking_done;
43586  __pyx_L5_argtuple_error:;
43587  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky_3D", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7807, __pyx_L3_error)
43588  __pyx_L3_error:;
43589  __Pyx_AddTraceback("ctransportCoefficients.calculateEddyViscosity_Smagorinsky_3D", __pyx_clineno, __pyx_lineno, __pyx_filename);
43590  __Pyx_RefNannyFinishContext();
43591  return NULL;
43592  __pyx_L4_argument_unpacking_done:;
43593  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_h_e), __pyx_ptype_5numpy_ndarray, 1, "h_e", 0))) __PYX_ERR(0, 7808, __pyx_L1_error)
43594  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1, "grad_u", 0))) __PYX_ERR(0, 7809, __pyx_L1_error)
43595  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1, "grad_v", 0))) __PYX_ERR(0, 7810, __pyx_L1_error)
43596  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w), __pyx_ptype_5numpy_ndarray, 1, "grad_w", 0))) __PYX_ERR(0, 7811, __pyx_L1_error)
43597  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nu_t), __pyx_ptype_5numpy_ndarray, 1, "nu_t", 0))) __PYX_ERR(0, 7812, __pyx_L1_error)
43598  __pyx_r = __pyx_pf_22ctransportCoefficients_222calculateEddyViscosity_Smagorinsky_3D(__pyx_self, __pyx_v_smagorinskyConstant, __pyx_v_h_e, __pyx_v_grad_u, __pyx_v_grad_v, __pyx_v_grad_w, __pyx_v_nu_t);
43599 
43600  /* function exit code */
43601  goto __pyx_L0;
43602  __pyx_L1_error:;
43603  __pyx_r = NULL;
43604  __pyx_L0:;
43605  __Pyx_RefNannyFinishContext();
43606  return __pyx_r;
43607 }
43608 
43609 static PyObject *__pyx_pf_22ctransportCoefficients_222calculateEddyViscosity_Smagorinsky_3D(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_smagorinskyConstant, PyArrayObject *__pyx_v_h_e, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_nu_t) {
43610  PyObject *__pyx_r = NULL;
43611  __Pyx_RefNannyDeclarations
43612  __Pyx_RefNannySetupContext("calculateEddyViscosity_Smagorinsky_3D", 0);
43613 
43614  /* "ctransportCoefficients.pyx":7813
43615  * np.ndarray grad_w,
43616  * np.ndarray nu_t):
43617  * ccalculateEddyViscosity_Smagorinsky_3D(grad_u.shape[0], # <<<<<<<<<<<<<<
43618  * grad_u.shape[1],
43619  * smagorinskyConstant,
43620  */
43621  calculateEddyViscosity_Smagorinsky_3D((__pyx_v_grad_u->dimensions[0]), (__pyx_v_grad_u->dimensions[1]), __pyx_v_smagorinskyConstant, ((double *)__pyx_v_h_e->data), ((double *)__pyx_v_grad_u->data), ((double *)__pyx_v_grad_v->data), ((double *)__pyx_v_grad_w->data), ((double *)__pyx_v_nu_t->data));
43622 
43623  /* "ctransportCoefficients.pyx":7807
43624  * <double*> grad_v.data,
43625  * <double*> nu_t.data)
43626  * def calculateEddyViscosity_Smagorinsky_3D(const double smagorinskyConstant, # <<<<<<<<<<<<<<
43627  * np.ndarray h_e,
43628  * np.ndarray grad_u,
43629  */
43630 
43631  /* function exit code */
43632  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
43633  __Pyx_XGIVEREF(__pyx_r);
43634  __Pyx_RefNannyFinishContext();
43635  return __pyx_r;
43636 }
43637 
43638 /* "ctransportCoefficients.pyx":7821
43639  * <double*> grad_w.data,
43640  * <double*> nu_t.data)
43641  * def calculateEddyViscosity_Smagorinsky2P_2D(const double smagorinskyConstant_0, # <<<<<<<<<<<<<<
43642  * const double smagorinskyConstant_1,
43643  * const double eps,
43644  */
43645 
43646 /* Python wrapper */
43647 static PyObject *__pyx_pw_22ctransportCoefficients_225calculateEddyViscosity_Smagorinsky2P_2D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
43648 static PyMethodDef __pyx_mdef_22ctransportCoefficients_225calculateEddyViscosity_Smagorinsky2P_2D = {"calculateEddyViscosity_Smagorinsky2P_2D", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_225calculateEddyViscosity_Smagorinsky2P_2D, METH_VARARGS|METH_KEYWORDS, 0};
43649 static PyObject *__pyx_pw_22ctransportCoefficients_225calculateEddyViscosity_Smagorinsky2P_2D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
43650  double __pyx_v_smagorinskyConstant_0;
43651  double __pyx_v_smagorinskyConstant_1;
43652  double __pyx_v_eps;
43653  PyArrayObject *__pyx_v_phi_ls = 0;
43654  PyArrayObject *__pyx_v_h_e = 0;
43655  PyArrayObject *__pyx_v_grad_u = 0;
43656  PyArrayObject *__pyx_v_grad_v = 0;
43657  PyArrayObject *__pyx_v_nu_t = 0;
43658  int __pyx_lineno = 0;
43659  const char *__pyx_filename = NULL;
43660  int __pyx_clineno = 0;
43661  PyObject *__pyx_r = 0;
43662  __Pyx_RefNannyDeclarations
43663  __Pyx_RefNannySetupContext("calculateEddyViscosity_Smagorinsky2P_2D (wrapper)", 0);
43664  {
43665  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_smagorinskyConstant_0,&__pyx_n_s_smagorinskyConstant_1,&__pyx_n_s_eps,&__pyx_n_s_phi_ls,&__pyx_n_s_h_e,&__pyx_n_s_grad_u,&__pyx_n_s_grad_v,&__pyx_n_s_nu_t,0};
43666  PyObject* values[8] = {0,0,0,0,0,0,0,0};
43667  if (unlikely(__pyx_kwds)) {
43668  Py_ssize_t kw_args;
43669  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
43670  switch (pos_args) {
43671  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
43672  CYTHON_FALLTHROUGH;
43673  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
43674  CYTHON_FALLTHROUGH;
43675  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
43676  CYTHON_FALLTHROUGH;
43677  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
43678  CYTHON_FALLTHROUGH;
43679  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43680  CYTHON_FALLTHROUGH;
43681  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43682  CYTHON_FALLTHROUGH;
43683  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43684  CYTHON_FALLTHROUGH;
43685  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43686  CYTHON_FALLTHROUGH;
43687  case 0: break;
43688  default: goto __pyx_L5_argtuple_error;
43689  }
43690  kw_args = PyDict_Size(__pyx_kwds);
43691  switch (pos_args) {
43692  case 0:
43693  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_smagorinskyConstant_0)) != 0)) kw_args--;
43694  else goto __pyx_L5_argtuple_error;
43695  CYTHON_FALLTHROUGH;
43696  case 1:
43697  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_smagorinskyConstant_1)) != 0)) kw_args--;
43698  else {
43699  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky2P_2D", 1, 8, 8, 1); __PYX_ERR(0, 7821, __pyx_L3_error)
43700  }
43701  CYTHON_FALLTHROUGH;
43702  case 2:
43703  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
43704  else {
43705  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky2P_2D", 1, 8, 8, 2); __PYX_ERR(0, 7821, __pyx_L3_error)
43706  }
43707  CYTHON_FALLTHROUGH;
43708  case 3:
43709  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_ls)) != 0)) kw_args--;
43710  else {
43711  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky2P_2D", 1, 8, 8, 3); __PYX_ERR(0, 7821, __pyx_L3_error)
43712  }
43713  CYTHON_FALLTHROUGH;
43714  case 4:
43715  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h_e)) != 0)) kw_args--;
43716  else {
43717  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky2P_2D", 1, 8, 8, 4); __PYX_ERR(0, 7821, __pyx_L3_error)
43718  }
43719  CYTHON_FALLTHROUGH;
43720  case 5:
43721  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
43722  else {
43723  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky2P_2D", 1, 8, 8, 5); __PYX_ERR(0, 7821, __pyx_L3_error)
43724  }
43725  CYTHON_FALLTHROUGH;
43726  case 6:
43727  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
43728  else {
43729  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky2P_2D", 1, 8, 8, 6); __PYX_ERR(0, 7821, __pyx_L3_error)
43730  }
43731  CYTHON_FALLTHROUGH;
43732  case 7:
43733  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_t)) != 0)) kw_args--;
43734  else {
43735  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky2P_2D", 1, 8, 8, 7); __PYX_ERR(0, 7821, __pyx_L3_error)
43736  }
43737  }
43738  if (unlikely(kw_args > 0)) {
43739  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "calculateEddyViscosity_Smagorinsky2P_2D") < 0)) __PYX_ERR(0, 7821, __pyx_L3_error)
43740  }
43741  } else if (PyTuple_GET_SIZE(__pyx_args) != 8) {
43742  goto __pyx_L5_argtuple_error;
43743  } else {
43744  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43745  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43746  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43747  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43748  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
43749  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
43750  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
43751  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
43752  }
43753  __pyx_v_smagorinskyConstant_0 = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_smagorinskyConstant_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7821, __pyx_L3_error)
43754  __pyx_v_smagorinskyConstant_1 = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_smagorinskyConstant_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7822, __pyx_L3_error)
43755  __pyx_v_eps = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7823, __pyx_L3_error)
43756  __pyx_v_phi_ls = ((PyArrayObject *)values[3]);
43757  __pyx_v_h_e = ((PyArrayObject *)values[4]);
43758  __pyx_v_grad_u = ((PyArrayObject *)values[5]);
43759  __pyx_v_grad_v = ((PyArrayObject *)values[6]);
43760  __pyx_v_nu_t = ((PyArrayObject *)values[7]);
43761  }
43762  goto __pyx_L4_argument_unpacking_done;
43763  __pyx_L5_argtuple_error:;
43764  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky2P_2D", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7821, __pyx_L3_error)
43765  __pyx_L3_error:;
43766  __Pyx_AddTraceback("ctransportCoefficients.calculateEddyViscosity_Smagorinsky2P_2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
43767  __Pyx_RefNannyFinishContext();
43768  return NULL;
43769  __pyx_L4_argument_unpacking_done:;
43770  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_ls), __pyx_ptype_5numpy_ndarray, 1, "phi_ls", 0))) __PYX_ERR(0, 7824, __pyx_L1_error)
43771  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_h_e), __pyx_ptype_5numpy_ndarray, 1, "h_e", 0))) __PYX_ERR(0, 7825, __pyx_L1_error)
43772  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1, "grad_u", 0))) __PYX_ERR(0, 7826, __pyx_L1_error)
43773  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1, "grad_v", 0))) __PYX_ERR(0, 7827, __pyx_L1_error)
43774  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nu_t), __pyx_ptype_5numpy_ndarray, 1, "nu_t", 0))) __PYX_ERR(0, 7828, __pyx_L1_error)
43775  __pyx_r = __pyx_pf_22ctransportCoefficients_224calculateEddyViscosity_Smagorinsky2P_2D(__pyx_self, __pyx_v_smagorinskyConstant_0, __pyx_v_smagorinskyConstant_1, __pyx_v_eps, __pyx_v_phi_ls, __pyx_v_h_e, __pyx_v_grad_u, __pyx_v_grad_v, __pyx_v_nu_t);
43776 
43777  /* function exit code */
43778  goto __pyx_L0;
43779  __pyx_L1_error:;
43780  __pyx_r = NULL;
43781  __pyx_L0:;
43782  __Pyx_RefNannyFinishContext();
43783  return __pyx_r;
43784 }
43785 
43786 static PyObject *__pyx_pf_22ctransportCoefficients_224calculateEddyViscosity_Smagorinsky2P_2D(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_smagorinskyConstant_0, double __pyx_v_smagorinskyConstant_1, double __pyx_v_eps, PyArrayObject *__pyx_v_phi_ls, PyArrayObject *__pyx_v_h_e, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_nu_t) {
43787  PyObject *__pyx_r = NULL;
43788  __Pyx_RefNannyDeclarations
43789  __Pyx_RefNannySetupContext("calculateEddyViscosity_Smagorinsky2P_2D", 0);
43790 
43791  /* "ctransportCoefficients.pyx":7829
43792  * np.ndarray grad_v,
43793  * np.ndarray nu_t):
43794  * ccalculateEddyViscosity_Smagorinsky2P_2D(grad_u.shape[0], # <<<<<<<<<<<<<<
43795  * grad_u.shape[1],
43796  * smagorinskyConstant_0,
43797  */
43798  calculateEddyViscosity_Smagorinsky2P_2D((__pyx_v_grad_u->dimensions[0]), (__pyx_v_grad_u->dimensions[1]), __pyx_v_smagorinskyConstant_0, __pyx_v_smagorinskyConstant_1, __pyx_v_eps, ((double *)__pyx_v_phi_ls->data), ((double *)__pyx_v_h_e->data), ((double *)__pyx_v_grad_u->data), ((double *)__pyx_v_grad_v->data), ((double *)__pyx_v_nu_t->data));
43799 
43800  /* "ctransportCoefficients.pyx":7821
43801  * <double*> grad_w.data,
43802  * <double*> nu_t.data)
43803  * def calculateEddyViscosity_Smagorinsky2P_2D(const double smagorinskyConstant_0, # <<<<<<<<<<<<<<
43804  * const double smagorinskyConstant_1,
43805  * const double eps,
43806  */
43807 
43808  /* function exit code */
43809  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
43810  __Pyx_XGIVEREF(__pyx_r);
43811  __Pyx_RefNannyFinishContext();
43812  return __pyx_r;
43813 }
43814 
43815 /* "ctransportCoefficients.pyx":7839
43816  * <double*> grad_v.data,
43817  * <double*> nu_t.data)
43818  * def calculateEddyViscosity_Smagorinsky2P_3D(const double smagorinskyConstant_0, # <<<<<<<<<<<<<<
43819  * const double smagorinskyConstant_1,
43820  * const double eps,
43821  */
43822 
43823 /* Python wrapper */
43824 static PyObject *__pyx_pw_22ctransportCoefficients_227calculateEddyViscosity_Smagorinsky2P_3D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
43825 static PyMethodDef __pyx_mdef_22ctransportCoefficients_227calculateEddyViscosity_Smagorinsky2P_3D = {"calculateEddyViscosity_Smagorinsky2P_3D", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_227calculateEddyViscosity_Smagorinsky2P_3D, METH_VARARGS|METH_KEYWORDS, 0};
43826 static PyObject *__pyx_pw_22ctransportCoefficients_227calculateEddyViscosity_Smagorinsky2P_3D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
43827  double __pyx_v_smagorinskyConstant_0;
43828  double __pyx_v_smagorinskyConstant_1;
43829  double __pyx_v_eps;
43830  PyArrayObject *__pyx_v_phi_ls = 0;
43831  PyArrayObject *__pyx_v_h_e = 0;
43832  PyArrayObject *__pyx_v_grad_u = 0;
43833  PyArrayObject *__pyx_v_grad_v = 0;
43834  PyArrayObject *__pyx_v_grad_w = 0;
43835  PyArrayObject *__pyx_v_nu_t = 0;
43836  int __pyx_lineno = 0;
43837  const char *__pyx_filename = NULL;
43838  int __pyx_clineno = 0;
43839  PyObject *__pyx_r = 0;
43840  __Pyx_RefNannyDeclarations
43841  __Pyx_RefNannySetupContext("calculateEddyViscosity_Smagorinsky2P_3D (wrapper)", 0);
43842  {
43843  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_smagorinskyConstant_0,&__pyx_n_s_smagorinskyConstant_1,&__pyx_n_s_eps,&__pyx_n_s_phi_ls,&__pyx_n_s_h_e,&__pyx_n_s_grad_u,&__pyx_n_s_grad_v,&__pyx_n_s_grad_w,&__pyx_n_s_nu_t,0};
43844  PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
43845  if (unlikely(__pyx_kwds)) {
43846  Py_ssize_t kw_args;
43847  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
43848  switch (pos_args) {
43849  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
43850  CYTHON_FALLTHROUGH;
43851  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
43852  CYTHON_FALLTHROUGH;
43853  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
43854  CYTHON_FALLTHROUGH;
43855  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
43856  CYTHON_FALLTHROUGH;
43857  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
43858  CYTHON_FALLTHROUGH;
43859  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43860  CYTHON_FALLTHROUGH;
43861  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43862  CYTHON_FALLTHROUGH;
43863  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43864  CYTHON_FALLTHROUGH;
43865  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43866  CYTHON_FALLTHROUGH;
43867  case 0: break;
43868  default: goto __pyx_L5_argtuple_error;
43869  }
43870  kw_args = PyDict_Size(__pyx_kwds);
43871  switch (pos_args) {
43872  case 0:
43873  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_smagorinskyConstant_0)) != 0)) kw_args--;
43874  else goto __pyx_L5_argtuple_error;
43875  CYTHON_FALLTHROUGH;
43876  case 1:
43877  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_smagorinskyConstant_1)) != 0)) kw_args--;
43878  else {
43879  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky2P_3D", 1, 9, 9, 1); __PYX_ERR(0, 7839, __pyx_L3_error)
43880  }
43881  CYTHON_FALLTHROUGH;
43882  case 2:
43883  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
43884  else {
43885  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky2P_3D", 1, 9, 9, 2); __PYX_ERR(0, 7839, __pyx_L3_error)
43886  }
43887  CYTHON_FALLTHROUGH;
43888  case 3:
43889  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_ls)) != 0)) kw_args--;
43890  else {
43891  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky2P_3D", 1, 9, 9, 3); __PYX_ERR(0, 7839, __pyx_L3_error)
43892  }
43893  CYTHON_FALLTHROUGH;
43894  case 4:
43895  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h_e)) != 0)) kw_args--;
43896  else {
43897  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky2P_3D", 1, 9, 9, 4); __PYX_ERR(0, 7839, __pyx_L3_error)
43898  }
43899  CYTHON_FALLTHROUGH;
43900  case 5:
43901  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
43902  else {
43903  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky2P_3D", 1, 9, 9, 5); __PYX_ERR(0, 7839, __pyx_L3_error)
43904  }
43905  CYTHON_FALLTHROUGH;
43906  case 6:
43907  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
43908  else {
43909  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky2P_3D", 1, 9, 9, 6); __PYX_ERR(0, 7839, __pyx_L3_error)
43910  }
43911  CYTHON_FALLTHROUGH;
43912  case 7:
43913  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w)) != 0)) kw_args--;
43914  else {
43915  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky2P_3D", 1, 9, 9, 7); __PYX_ERR(0, 7839, __pyx_L3_error)
43916  }
43917  CYTHON_FALLTHROUGH;
43918  case 8:
43919  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_t)) != 0)) kw_args--;
43920  else {
43921  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky2P_3D", 1, 9, 9, 8); __PYX_ERR(0, 7839, __pyx_L3_error)
43922  }
43923  }
43924  if (unlikely(kw_args > 0)) {
43925  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "calculateEddyViscosity_Smagorinsky2P_3D") < 0)) __PYX_ERR(0, 7839, __pyx_L3_error)
43926  }
43927  } else if (PyTuple_GET_SIZE(__pyx_args) != 9) {
43928  goto __pyx_L5_argtuple_error;
43929  } else {
43930  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43931  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43932  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43933  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43934  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
43935  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
43936  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
43937  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
43938  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
43939  }
43940  __pyx_v_smagorinskyConstant_0 = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_smagorinskyConstant_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7839, __pyx_L3_error)
43941  __pyx_v_smagorinskyConstant_1 = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_smagorinskyConstant_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7840, __pyx_L3_error)
43942  __pyx_v_eps = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7841, __pyx_L3_error)
43943  __pyx_v_phi_ls = ((PyArrayObject *)values[3]);
43944  __pyx_v_h_e = ((PyArrayObject *)values[4]);
43945  __pyx_v_grad_u = ((PyArrayObject *)values[5]);
43946  __pyx_v_grad_v = ((PyArrayObject *)values[6]);
43947  __pyx_v_grad_w = ((PyArrayObject *)values[7]);
43948  __pyx_v_nu_t = ((PyArrayObject *)values[8]);
43949  }
43950  goto __pyx_L4_argument_unpacking_done;
43951  __pyx_L5_argtuple_error:;
43952  __Pyx_RaiseArgtupleInvalid("calculateEddyViscosity_Smagorinsky2P_3D", 1, 9, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7839, __pyx_L3_error)
43953  __pyx_L3_error:;
43954  __Pyx_AddTraceback("ctransportCoefficients.calculateEddyViscosity_Smagorinsky2P_3D", __pyx_clineno, __pyx_lineno, __pyx_filename);
43955  __Pyx_RefNannyFinishContext();
43956  return NULL;
43957  __pyx_L4_argument_unpacking_done:;
43958  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_ls), __pyx_ptype_5numpy_ndarray, 1, "phi_ls", 0))) __PYX_ERR(0, 7842, __pyx_L1_error)
43959  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_h_e), __pyx_ptype_5numpy_ndarray, 1, "h_e", 0))) __PYX_ERR(0, 7843, __pyx_L1_error)
43960  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1, "grad_u", 0))) __PYX_ERR(0, 7844, __pyx_L1_error)
43961  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1, "grad_v", 0))) __PYX_ERR(0, 7845, __pyx_L1_error)
43962  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w), __pyx_ptype_5numpy_ndarray, 1, "grad_w", 0))) __PYX_ERR(0, 7846, __pyx_L1_error)
43963  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nu_t), __pyx_ptype_5numpy_ndarray, 1, "nu_t", 0))) __PYX_ERR(0, 7847, __pyx_L1_error)
43964  __pyx_r = __pyx_pf_22ctransportCoefficients_226calculateEddyViscosity_Smagorinsky2P_3D(__pyx_self, __pyx_v_smagorinskyConstant_0, __pyx_v_smagorinskyConstant_1, __pyx_v_eps, __pyx_v_phi_ls, __pyx_v_h_e, __pyx_v_grad_u, __pyx_v_grad_v, __pyx_v_grad_w, __pyx_v_nu_t);
43965 
43966  /* function exit code */
43967  goto __pyx_L0;
43968  __pyx_L1_error:;
43969  __pyx_r = NULL;
43970  __pyx_L0:;
43971  __Pyx_RefNannyFinishContext();
43972  return __pyx_r;
43973 }
43974 
43975 static PyObject *__pyx_pf_22ctransportCoefficients_226calculateEddyViscosity_Smagorinsky2P_3D(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_smagorinskyConstant_0, double __pyx_v_smagorinskyConstant_1, double __pyx_v_eps, PyArrayObject *__pyx_v_phi_ls, PyArrayObject *__pyx_v_h_e, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_nu_t) {
43976  PyObject *__pyx_r = NULL;
43977  __Pyx_RefNannyDeclarations
43978  __Pyx_RefNannySetupContext("calculateEddyViscosity_Smagorinsky2P_3D", 0);
43979 
43980  /* "ctransportCoefficients.pyx":7848
43981  * np.ndarray grad_w,
43982  * np.ndarray nu_t):
43983  * ccalculateEddyViscosity_Smagorinsky2P_3D(grad_u.shape[0], # <<<<<<<<<<<<<<
43984  * grad_u.shape[1],
43985  * smagorinskyConstant_0,
43986  */
43987  calculateEddyViscosity_Smagorinsky2P_3D((__pyx_v_grad_u->dimensions[0]), (__pyx_v_grad_u->dimensions[1]), __pyx_v_smagorinskyConstant_0, __pyx_v_smagorinskyConstant_1, __pyx_v_eps, ((double *)__pyx_v_phi_ls->data), ((double *)__pyx_v_h_e->data), ((double *)__pyx_v_grad_u->data), ((double *)__pyx_v_grad_v->data), ((double *)__pyx_v_grad_w->data), ((double *)__pyx_v_nu_t->data));
43988 
43989  /* "ctransportCoefficients.pyx":7839
43990  * <double*> grad_v.data,
43991  * <double*> nu_t.data)
43992  * def calculateEddyViscosity_Smagorinsky2P_3D(const double smagorinskyConstant_0, # <<<<<<<<<<<<<<
43993  * const double smagorinskyConstant_1,
43994  * const double eps,
43995  */
43996 
43997  /* function exit code */
43998  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
43999  __Pyx_XGIVEREF(__pyx_r);
44000  __Pyx_RefNannyFinishContext();
44001  return __pyx_r;
44002 }
44003 
44004 /* "ctransportCoefficients.pyx":7859
44005  * <double*> grad_w.data,
44006  * <double*> nu_t.data)
44007  * def eddyViscosity_2D_Update(np.ndarray nu_t, # <<<<<<<<<<<<<<
44008  * np.ndarray mom_u_diff_ten,
44009  * np.ndarray mom_v_diff_ten,
44010  */
44011 
44012 /* Python wrapper */
44013 static PyObject *__pyx_pw_22ctransportCoefficients_229eddyViscosity_2D_Update(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
44014 static PyMethodDef __pyx_mdef_22ctransportCoefficients_229eddyViscosity_2D_Update = {"eddyViscosity_2D_Update", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_229eddyViscosity_2D_Update, METH_VARARGS|METH_KEYWORDS, 0};
44015 static PyObject *__pyx_pw_22ctransportCoefficients_229eddyViscosity_2D_Update(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
44016  PyArrayObject *__pyx_v_nu_t = 0;
44017  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
44018  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
44019  PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
44020  PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
44021  int __pyx_lineno = 0;
44022  const char *__pyx_filename = NULL;
44023  int __pyx_clineno = 0;
44024  PyObject *__pyx_r = 0;
44025  __Pyx_RefNannyDeclarations
44026  __Pyx_RefNannySetupContext("eddyViscosity_2D_Update (wrapper)", 0);
44027  {
44028  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nu_t,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_vu_diff_ten,0};
44029  PyObject* values[5] = {0,0,0,0,0};
44030  if (unlikely(__pyx_kwds)) {
44031  Py_ssize_t kw_args;
44032  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
44033  switch (pos_args) {
44034  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44035  CYTHON_FALLTHROUGH;
44036  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44037  CYTHON_FALLTHROUGH;
44038  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44039  CYTHON_FALLTHROUGH;
44040  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44041  CYTHON_FALLTHROUGH;
44042  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44043  CYTHON_FALLTHROUGH;
44044  case 0: break;
44045  default: goto __pyx_L5_argtuple_error;
44046  }
44047  kw_args = PyDict_Size(__pyx_kwds);
44048  switch (pos_args) {
44049  case 0:
44050  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_t)) != 0)) kw_args--;
44051  else goto __pyx_L5_argtuple_error;
44052  CYTHON_FALLTHROUGH;
44053  case 1:
44054  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
44055  else {
44056  __Pyx_RaiseArgtupleInvalid("eddyViscosity_2D_Update", 1, 5, 5, 1); __PYX_ERR(0, 7859, __pyx_L3_error)
44057  }
44058  CYTHON_FALLTHROUGH;
44059  case 2:
44060  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
44061  else {
44062  __Pyx_RaiseArgtupleInvalid("eddyViscosity_2D_Update", 1, 5, 5, 2); __PYX_ERR(0, 7859, __pyx_L3_error)
44063  }
44064  CYTHON_FALLTHROUGH;
44065  case 3:
44066  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
44067  else {
44068  __Pyx_RaiseArgtupleInvalid("eddyViscosity_2D_Update", 1, 5, 5, 3); __PYX_ERR(0, 7859, __pyx_L3_error)
44069  }
44070  CYTHON_FALLTHROUGH;
44071  case 4:
44072  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
44073  else {
44074  __Pyx_RaiseArgtupleInvalid("eddyViscosity_2D_Update", 1, 5, 5, 4); __PYX_ERR(0, 7859, __pyx_L3_error)
44075  }
44076  }
44077  if (unlikely(kw_args > 0)) {
44078  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "eddyViscosity_2D_Update") < 0)) __PYX_ERR(0, 7859, __pyx_L3_error)
44079  }
44080  } else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
44081  goto __pyx_L5_argtuple_error;
44082  } else {
44083  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44084  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44085  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44086  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44087  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44088  }
44089  __pyx_v_nu_t = ((PyArrayObject *)values[0]);
44090  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[1]);
44091  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[2]);
44092  __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[3]);
44093  __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[4]);
44094  }
44095  goto __pyx_L4_argument_unpacking_done;
44096  __pyx_L5_argtuple_error:;
44097  __Pyx_RaiseArgtupleInvalid("eddyViscosity_2D_Update", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7859, __pyx_L3_error)
44098  __pyx_L3_error:;
44099  __Pyx_AddTraceback("ctransportCoefficients.eddyViscosity_2D_Update", __pyx_clineno, __pyx_lineno, __pyx_filename);
44100  __Pyx_RefNannyFinishContext();
44101  return NULL;
44102  __pyx_L4_argument_unpacking_done:;
44103  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nu_t), __pyx_ptype_5numpy_ndarray, 1, "nu_t", 0))) __PYX_ERR(0, 7859, __pyx_L1_error)
44104  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 7860, __pyx_L1_error)
44105  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 7861, __pyx_L1_error)
44106  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uv_diff_ten", 0))) __PYX_ERR(0, 7862, __pyx_L1_error)
44107  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vu_diff_ten", 0))) __PYX_ERR(0, 7863, __pyx_L1_error)
44108  __pyx_r = __pyx_pf_22ctransportCoefficients_228eddyViscosity_2D_Update(__pyx_self, __pyx_v_nu_t, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_vu_diff_ten);
44109 
44110  /* function exit code */
44111  goto __pyx_L0;
44112  __pyx_L1_error:;
44113  __pyx_r = NULL;
44114  __pyx_L0:;
44115  __Pyx_RefNannyFinishContext();
44116  return __pyx_r;
44117 }
44118 
44119 static PyObject *__pyx_pf_22ctransportCoefficients_228eddyViscosity_2D_Update(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nu_t, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten) {
44120  PyObject *__pyx_r = NULL;
44121  __Pyx_RefNannyDeclarations
44122  PyObject *__pyx_t_1 = NULL;
44123  int __pyx_t_2;
44124  int __pyx_lineno = 0;
44125  const char *__pyx_filename = NULL;
44126  int __pyx_clineno = 0;
44127  __Pyx_RefNannySetupContext("eddyViscosity_2D_Update", 0);
44128 
44129  /* "ctransportCoefficients.pyx":7864
44130  * np.ndarray mom_uv_diff_ten,
44131  * np.ndarray mom_vu_diff_ten):
44132  * ceddyViscosity_2D_Update(nu_t.size, # <<<<<<<<<<<<<<
44133  * <double*> nu_t.data,
44134  * <double*> mom_u_diff_ten.data,
44135  */
44136  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_nu_t), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7864, __pyx_L1_error)
44137  __Pyx_GOTREF(__pyx_t_1);
44138  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7864, __pyx_L1_error)
44139  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44140 
44141  /* "ctransportCoefficients.pyx":7869
44142  * <double*> mom_v_diff_ten.data,
44143  * <double*> mom_uv_diff_ten.data,
44144  * <double*> mom_vu_diff_ten.data) # <<<<<<<<<<<<<<
44145  * def eddyViscosity_2D_Update_sd(np.ndarray nu_t,
44146  * np.ndarray mom_u_diff_ten,
44147  */
44148  eddyViscosity_2D_Update(__pyx_t_2, ((double *)__pyx_v_nu_t->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_uv_diff_ten->data), ((double *)__pyx_v_mom_vu_diff_ten->data));
44149 
44150  /* "ctransportCoefficients.pyx":7859
44151  * <double*> grad_w.data,
44152  * <double*> nu_t.data)
44153  * def eddyViscosity_2D_Update(np.ndarray nu_t, # <<<<<<<<<<<<<<
44154  * np.ndarray mom_u_diff_ten,
44155  * np.ndarray mom_v_diff_ten,
44156  */
44157 
44158  /* function exit code */
44159  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
44160  goto __pyx_L0;
44161  __pyx_L1_error:;
44162  __Pyx_XDECREF(__pyx_t_1);
44163  __Pyx_AddTraceback("ctransportCoefficients.eddyViscosity_2D_Update", __pyx_clineno, __pyx_lineno, __pyx_filename);
44164  __pyx_r = NULL;
44165  __pyx_L0:;
44166  __Pyx_XGIVEREF(__pyx_r);
44167  __Pyx_RefNannyFinishContext();
44168  return __pyx_r;
44169 }
44170 
44171 /* "ctransportCoefficients.pyx":7870
44172  * <double*> mom_uv_diff_ten.data,
44173  * <double*> mom_vu_diff_ten.data)
44174  * def eddyViscosity_2D_Update_sd(np.ndarray nu_t, # <<<<<<<<<<<<<<
44175  * np.ndarray mom_u_diff_ten,
44176  * np.ndarray mom_v_diff_ten,
44177  */
44178 
44179 /* Python wrapper */
44180 static PyObject *__pyx_pw_22ctransportCoefficients_231eddyViscosity_2D_Update_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
44181 static PyMethodDef __pyx_mdef_22ctransportCoefficients_231eddyViscosity_2D_Update_sd = {"eddyViscosity_2D_Update_sd", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_231eddyViscosity_2D_Update_sd, METH_VARARGS|METH_KEYWORDS, 0};
44182 static PyObject *__pyx_pw_22ctransportCoefficients_231eddyViscosity_2D_Update_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
44183  PyArrayObject *__pyx_v_nu_t = 0;
44184  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
44185  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
44186  PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
44187  PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
44188  int __pyx_lineno = 0;
44189  const char *__pyx_filename = NULL;
44190  int __pyx_clineno = 0;
44191  PyObject *__pyx_r = 0;
44192  __Pyx_RefNannyDeclarations
44193  __Pyx_RefNannySetupContext("eddyViscosity_2D_Update_sd (wrapper)", 0);
44194  {
44195  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nu_t,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_vu_diff_ten,0};
44196  PyObject* values[5] = {0,0,0,0,0};
44197  if (unlikely(__pyx_kwds)) {
44198  Py_ssize_t kw_args;
44199  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
44200  switch (pos_args) {
44201  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44202  CYTHON_FALLTHROUGH;
44203  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44204  CYTHON_FALLTHROUGH;
44205  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44206  CYTHON_FALLTHROUGH;
44207  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44208  CYTHON_FALLTHROUGH;
44209  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44210  CYTHON_FALLTHROUGH;
44211  case 0: break;
44212  default: goto __pyx_L5_argtuple_error;
44213  }
44214  kw_args = PyDict_Size(__pyx_kwds);
44215  switch (pos_args) {
44216  case 0:
44217  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_t)) != 0)) kw_args--;
44218  else goto __pyx_L5_argtuple_error;
44219  CYTHON_FALLTHROUGH;
44220  case 1:
44221  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
44222  else {
44223  __Pyx_RaiseArgtupleInvalid("eddyViscosity_2D_Update_sd", 1, 5, 5, 1); __PYX_ERR(0, 7870, __pyx_L3_error)
44224  }
44225  CYTHON_FALLTHROUGH;
44226  case 2:
44227  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
44228  else {
44229  __Pyx_RaiseArgtupleInvalid("eddyViscosity_2D_Update_sd", 1, 5, 5, 2); __PYX_ERR(0, 7870, __pyx_L3_error)
44230  }
44231  CYTHON_FALLTHROUGH;
44232  case 3:
44233  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
44234  else {
44235  __Pyx_RaiseArgtupleInvalid("eddyViscosity_2D_Update_sd", 1, 5, 5, 3); __PYX_ERR(0, 7870, __pyx_L3_error)
44236  }
44237  CYTHON_FALLTHROUGH;
44238  case 4:
44239  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
44240  else {
44241  __Pyx_RaiseArgtupleInvalid("eddyViscosity_2D_Update_sd", 1, 5, 5, 4); __PYX_ERR(0, 7870, __pyx_L3_error)
44242  }
44243  }
44244  if (unlikely(kw_args > 0)) {
44245  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "eddyViscosity_2D_Update_sd") < 0)) __PYX_ERR(0, 7870, __pyx_L3_error)
44246  }
44247  } else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
44248  goto __pyx_L5_argtuple_error;
44249  } else {
44250  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44251  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44252  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44253  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44254  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44255  }
44256  __pyx_v_nu_t = ((PyArrayObject *)values[0]);
44257  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[1]);
44258  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[2]);
44259  __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[3]);
44260  __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[4]);
44261  }
44262  goto __pyx_L4_argument_unpacking_done;
44263  __pyx_L5_argtuple_error:;
44264  __Pyx_RaiseArgtupleInvalid("eddyViscosity_2D_Update_sd", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7870, __pyx_L3_error)
44265  __pyx_L3_error:;
44266  __Pyx_AddTraceback("ctransportCoefficients.eddyViscosity_2D_Update_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
44267  __Pyx_RefNannyFinishContext();
44268  return NULL;
44269  __pyx_L4_argument_unpacking_done:;
44270  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nu_t), __pyx_ptype_5numpy_ndarray, 1, "nu_t", 0))) __PYX_ERR(0, 7870, __pyx_L1_error)
44271  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 7871, __pyx_L1_error)
44272  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 7872, __pyx_L1_error)
44273  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uv_diff_ten", 0))) __PYX_ERR(0, 7873, __pyx_L1_error)
44274  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vu_diff_ten", 0))) __PYX_ERR(0, 7874, __pyx_L1_error)
44275  __pyx_r = __pyx_pf_22ctransportCoefficients_230eddyViscosity_2D_Update_sd(__pyx_self, __pyx_v_nu_t, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_vu_diff_ten);
44276 
44277  /* function exit code */
44278  goto __pyx_L0;
44279  __pyx_L1_error:;
44280  __pyx_r = NULL;
44281  __pyx_L0:;
44282  __Pyx_RefNannyFinishContext();
44283  return __pyx_r;
44284 }
44285 
44286 static PyObject *__pyx_pf_22ctransportCoefficients_230eddyViscosity_2D_Update_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nu_t, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten) {
44287  PyObject *__pyx_r = NULL;
44288  __Pyx_RefNannyDeclarations
44289  PyObject *__pyx_t_1 = NULL;
44290  int __pyx_t_2;
44291  int __pyx_lineno = 0;
44292  const char *__pyx_filename = NULL;
44293  int __pyx_clineno = 0;
44294  __Pyx_RefNannySetupContext("eddyViscosity_2D_Update_sd", 0);
44295 
44296  /* "ctransportCoefficients.pyx":7875
44297  * np.ndarray mom_uv_diff_ten,
44298  * np.ndarray mom_vu_diff_ten):
44299  * ceddyViscosity_2D_Update_sd(nu_t.size, # <<<<<<<<<<<<<<
44300  * <double*> nu_t.data,
44301  * <double*> mom_u_diff_ten.data,
44302  */
44303  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_nu_t), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7875, __pyx_L1_error)
44304  __Pyx_GOTREF(__pyx_t_1);
44305  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7875, __pyx_L1_error)
44306  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44307 
44308  /* "ctransportCoefficients.pyx":7880
44309  * <double*> mom_v_diff_ten.data,
44310  * <double*> mom_uv_diff_ten.data,
44311  * <double*> mom_vu_diff_ten.data) # <<<<<<<<<<<<<<
44312  * def eddyViscosity_3D_Update(np.ndarray nu_t,
44313  * np.ndarray mom_u_diff_ten,
44314  */
44315  eddyViscosity_2D_Update_sd(__pyx_t_2, ((double *)__pyx_v_nu_t->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_uv_diff_ten->data), ((double *)__pyx_v_mom_vu_diff_ten->data));
44316 
44317  /* "ctransportCoefficients.pyx":7870
44318  * <double*> mom_uv_diff_ten.data,
44319  * <double*> mom_vu_diff_ten.data)
44320  * def eddyViscosity_2D_Update_sd(np.ndarray nu_t, # <<<<<<<<<<<<<<
44321  * np.ndarray mom_u_diff_ten,
44322  * np.ndarray mom_v_diff_ten,
44323  */
44324 
44325  /* function exit code */
44326  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
44327  goto __pyx_L0;
44328  __pyx_L1_error:;
44329  __Pyx_XDECREF(__pyx_t_1);
44330  __Pyx_AddTraceback("ctransportCoefficients.eddyViscosity_2D_Update_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
44331  __pyx_r = NULL;
44332  __pyx_L0:;
44333  __Pyx_XGIVEREF(__pyx_r);
44334  __Pyx_RefNannyFinishContext();
44335  return __pyx_r;
44336 }
44337 
44338 /* "ctransportCoefficients.pyx":7881
44339  * <double*> mom_uv_diff_ten.data,
44340  * <double*> mom_vu_diff_ten.data)
44341  * def eddyViscosity_3D_Update(np.ndarray nu_t, # <<<<<<<<<<<<<<
44342  * np.ndarray mom_u_diff_ten,
44343  * np.ndarray mom_v_diff_ten,
44344  */
44345 
44346 /* Python wrapper */
44347 static PyObject *__pyx_pw_22ctransportCoefficients_233eddyViscosity_3D_Update(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
44348 static PyMethodDef __pyx_mdef_22ctransportCoefficients_233eddyViscosity_3D_Update = {"eddyViscosity_3D_Update", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_233eddyViscosity_3D_Update, METH_VARARGS|METH_KEYWORDS, 0};
44349 static PyObject *__pyx_pw_22ctransportCoefficients_233eddyViscosity_3D_Update(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
44350  PyArrayObject *__pyx_v_nu_t = 0;
44351  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
44352  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
44353  PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
44354  PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
44355  PyArrayObject *__pyx_v_mom_uw_diff_ten = 0;
44356  PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
44357  PyArrayObject *__pyx_v_mom_vw_diff_ten = 0;
44358  PyArrayObject *__pyx_v_mom_wu_diff_ten = 0;
44359  PyArrayObject *__pyx_v_mom_wv_diff_ten = 0;
44360  int __pyx_lineno = 0;
44361  const char *__pyx_filename = NULL;
44362  int __pyx_clineno = 0;
44363  PyObject *__pyx_r = 0;
44364  __Pyx_RefNannyDeclarations
44365  __Pyx_RefNannySetupContext("eddyViscosity_3D_Update (wrapper)", 0);
44366  {
44367  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nu_t,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_uw_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_vw_diff_ten,&__pyx_n_s_mom_wu_diff_ten,&__pyx_n_s_mom_wv_diff_ten,0};
44368  PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
44369  if (unlikely(__pyx_kwds)) {
44370  Py_ssize_t kw_args;
44371  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
44372  switch (pos_args) {
44373  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
44374  CYTHON_FALLTHROUGH;
44375  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
44376  CYTHON_FALLTHROUGH;
44377  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
44378  CYTHON_FALLTHROUGH;
44379  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
44380  CYTHON_FALLTHROUGH;
44381  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
44382  CYTHON_FALLTHROUGH;
44383  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44384  CYTHON_FALLTHROUGH;
44385  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44386  CYTHON_FALLTHROUGH;
44387  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44388  CYTHON_FALLTHROUGH;
44389  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44390  CYTHON_FALLTHROUGH;
44391  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44392  CYTHON_FALLTHROUGH;
44393  case 0: break;
44394  default: goto __pyx_L5_argtuple_error;
44395  }
44396  kw_args = PyDict_Size(__pyx_kwds);
44397  switch (pos_args) {
44398  case 0:
44399  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_t)) != 0)) kw_args--;
44400  else goto __pyx_L5_argtuple_error;
44401  CYTHON_FALLTHROUGH;
44402  case 1:
44403  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
44404  else {
44405  __Pyx_RaiseArgtupleInvalid("eddyViscosity_3D_Update", 1, 10, 10, 1); __PYX_ERR(0, 7881, __pyx_L3_error)
44406  }
44407  CYTHON_FALLTHROUGH;
44408  case 2:
44409  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
44410  else {
44411  __Pyx_RaiseArgtupleInvalid("eddyViscosity_3D_Update", 1, 10, 10, 2); __PYX_ERR(0, 7881, __pyx_L3_error)
44412  }
44413  CYTHON_FALLTHROUGH;
44414  case 3:
44415  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
44416  else {
44417  __Pyx_RaiseArgtupleInvalid("eddyViscosity_3D_Update", 1, 10, 10, 3); __PYX_ERR(0, 7881, __pyx_L3_error)
44418  }
44419  CYTHON_FALLTHROUGH;
44420  case 4:
44421  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
44422  else {
44423  __Pyx_RaiseArgtupleInvalid("eddyViscosity_3D_Update", 1, 10, 10, 4); __PYX_ERR(0, 7881, __pyx_L3_error)
44424  }
44425  CYTHON_FALLTHROUGH;
44426  case 5:
44427  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uw_diff_ten)) != 0)) kw_args--;
44428  else {
44429  __Pyx_RaiseArgtupleInvalid("eddyViscosity_3D_Update", 1, 10, 10, 5); __PYX_ERR(0, 7881, __pyx_L3_error)
44430  }
44431  CYTHON_FALLTHROUGH;
44432  case 6:
44433  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
44434  else {
44435  __Pyx_RaiseArgtupleInvalid("eddyViscosity_3D_Update", 1, 10, 10, 6); __PYX_ERR(0, 7881, __pyx_L3_error)
44436  }
44437  CYTHON_FALLTHROUGH;
44438  case 7:
44439  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vw_diff_ten)) != 0)) kw_args--;
44440  else {
44441  __Pyx_RaiseArgtupleInvalid("eddyViscosity_3D_Update", 1, 10, 10, 7); __PYX_ERR(0, 7881, __pyx_L3_error)
44442  }
44443  CYTHON_FALLTHROUGH;
44444  case 8:
44445  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wu_diff_ten)) != 0)) kw_args--;
44446  else {
44447  __Pyx_RaiseArgtupleInvalid("eddyViscosity_3D_Update", 1, 10, 10, 8); __PYX_ERR(0, 7881, __pyx_L3_error)
44448  }
44449  CYTHON_FALLTHROUGH;
44450  case 9:
44451  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wv_diff_ten)) != 0)) kw_args--;
44452  else {
44453  __Pyx_RaiseArgtupleInvalid("eddyViscosity_3D_Update", 1, 10, 10, 9); __PYX_ERR(0, 7881, __pyx_L3_error)
44454  }
44455  }
44456  if (unlikely(kw_args > 0)) {
44457  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "eddyViscosity_3D_Update") < 0)) __PYX_ERR(0, 7881, __pyx_L3_error)
44458  }
44459  } else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
44460  goto __pyx_L5_argtuple_error;
44461  } else {
44462  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44463  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44464  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44465  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44466  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44467  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
44468  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
44469  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
44470  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
44471  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
44472  }
44473  __pyx_v_nu_t = ((PyArrayObject *)values[0]);
44474  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[1]);
44475  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[2]);
44476  __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[3]);
44477  __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[4]);
44478  __pyx_v_mom_uw_diff_ten = ((PyArrayObject *)values[5]);
44479  __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[6]);
44480  __pyx_v_mom_vw_diff_ten = ((PyArrayObject *)values[7]);
44481  __pyx_v_mom_wu_diff_ten = ((PyArrayObject *)values[8]);
44482  __pyx_v_mom_wv_diff_ten = ((PyArrayObject *)values[9]);
44483  }
44484  goto __pyx_L4_argument_unpacking_done;
44485  __pyx_L5_argtuple_error:;
44486  __Pyx_RaiseArgtupleInvalid("eddyViscosity_3D_Update", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7881, __pyx_L3_error)
44487  __pyx_L3_error:;
44488  __Pyx_AddTraceback("ctransportCoefficients.eddyViscosity_3D_Update", __pyx_clineno, __pyx_lineno, __pyx_filename);
44489  __Pyx_RefNannyFinishContext();
44490  return NULL;
44491  __pyx_L4_argument_unpacking_done:;
44492  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nu_t), __pyx_ptype_5numpy_ndarray, 1, "nu_t", 0))) __PYX_ERR(0, 7881, __pyx_L1_error)
44493  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 7882, __pyx_L1_error)
44494  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 7883, __pyx_L1_error)
44495  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_w_diff_ten", 0))) __PYX_ERR(0, 7884, __pyx_L1_error)
44496  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uv_diff_ten", 0))) __PYX_ERR(0, 7885, __pyx_L1_error)
44497  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uw_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uw_diff_ten", 0))) __PYX_ERR(0, 7886, __pyx_L1_error)
44498  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vu_diff_ten", 0))) __PYX_ERR(0, 7887, __pyx_L1_error)
44499  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vw_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vw_diff_ten", 0))) __PYX_ERR(0, 7888, __pyx_L1_error)
44500  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_wu_diff_ten", 0))) __PYX_ERR(0, 7889, __pyx_L1_error)
44501  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_wv_diff_ten", 0))) __PYX_ERR(0, 7890, __pyx_L1_error)
44502  __pyx_r = __pyx_pf_22ctransportCoefficients_232eddyViscosity_3D_Update(__pyx_self, __pyx_v_nu_t, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_uw_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_vw_diff_ten, __pyx_v_mom_wu_diff_ten, __pyx_v_mom_wv_diff_ten);
44503 
44504  /* function exit code */
44505  goto __pyx_L0;
44506  __pyx_L1_error:;
44507  __pyx_r = NULL;
44508  __pyx_L0:;
44509  __Pyx_RefNannyFinishContext();
44510  return __pyx_r;
44511 }
44512 
44513 static PyObject *__pyx_pf_22ctransportCoefficients_232eddyViscosity_3D_Update(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nu_t, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten) {
44514  PyObject *__pyx_r = NULL;
44515  __Pyx_RefNannyDeclarations
44516  PyObject *__pyx_t_1 = NULL;
44517  int __pyx_t_2;
44518  int __pyx_lineno = 0;
44519  const char *__pyx_filename = NULL;
44520  int __pyx_clineno = 0;
44521  __Pyx_RefNannySetupContext("eddyViscosity_3D_Update", 0);
44522 
44523  /* "ctransportCoefficients.pyx":7891
44524  * np.ndarray mom_wu_diff_ten,
44525  * np.ndarray mom_wv_diff_ten):
44526  * ceddyViscosity_3D_Update(nu_t.size, # <<<<<<<<<<<<<<
44527  * <double*> nu_t.data,
44528  * <double*> mom_u_diff_ten.data,
44529  */
44530  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_nu_t), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7891, __pyx_L1_error)
44531  __Pyx_GOTREF(__pyx_t_1);
44532  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7891, __pyx_L1_error)
44533  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44534 
44535  /* "ctransportCoefficients.pyx":7901
44536  * <double*> mom_vw_diff_ten.data,
44537  * <double*> mom_wu_diff_ten.data,
44538  * <double*> mom_wv_diff_ten.data) # <<<<<<<<<<<<<<
44539  * def eddyViscosity_3D_Update_sd(np.ndarray nu_t,
44540  * np.ndarray mom_u_diff_ten,
44541  */
44542  eddyViscosity_3D_Update(__pyx_t_2, ((double *)__pyx_v_nu_t->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_w_diff_ten->data), ((double *)__pyx_v_mom_uv_diff_ten->data), ((double *)__pyx_v_mom_uw_diff_ten->data), ((double *)__pyx_v_mom_vu_diff_ten->data), ((double *)__pyx_v_mom_vw_diff_ten->data), ((double *)__pyx_v_mom_wu_diff_ten->data), ((double *)__pyx_v_mom_wv_diff_ten->data));
44543 
44544  /* "ctransportCoefficients.pyx":7881
44545  * <double*> mom_uv_diff_ten.data,
44546  * <double*> mom_vu_diff_ten.data)
44547  * def eddyViscosity_3D_Update(np.ndarray nu_t, # <<<<<<<<<<<<<<
44548  * np.ndarray mom_u_diff_ten,
44549  * np.ndarray mom_v_diff_ten,
44550  */
44551 
44552  /* function exit code */
44553  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
44554  goto __pyx_L0;
44555  __pyx_L1_error:;
44556  __Pyx_XDECREF(__pyx_t_1);
44557  __Pyx_AddTraceback("ctransportCoefficients.eddyViscosity_3D_Update", __pyx_clineno, __pyx_lineno, __pyx_filename);
44558  __pyx_r = NULL;
44559  __pyx_L0:;
44560  __Pyx_XGIVEREF(__pyx_r);
44561  __Pyx_RefNannyFinishContext();
44562  return __pyx_r;
44563 }
44564 
44565 /* "ctransportCoefficients.pyx":7902
44566  * <double*> mom_wu_diff_ten.data,
44567  * <double*> mom_wv_diff_ten.data)
44568  * def eddyViscosity_3D_Update_sd(np.ndarray nu_t, # <<<<<<<<<<<<<<
44569  * np.ndarray mom_u_diff_ten,
44570  * np.ndarray mom_v_diff_ten,
44571  */
44572 
44573 /* Python wrapper */
44574 static PyObject *__pyx_pw_22ctransportCoefficients_235eddyViscosity_3D_Update_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
44575 static PyMethodDef __pyx_mdef_22ctransportCoefficients_235eddyViscosity_3D_Update_sd = {"eddyViscosity_3D_Update_sd", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_235eddyViscosity_3D_Update_sd, METH_VARARGS|METH_KEYWORDS, 0};
44576 static PyObject *__pyx_pw_22ctransportCoefficients_235eddyViscosity_3D_Update_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
44577  PyArrayObject *__pyx_v_nu_t = 0;
44578  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
44579  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
44580  PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
44581  PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
44582  PyArrayObject *__pyx_v_mom_uw_diff_ten = 0;
44583  PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
44584  PyArrayObject *__pyx_v_mom_vw_diff_ten = 0;
44585  PyArrayObject *__pyx_v_mom_wu_diff_ten = 0;
44586  PyArrayObject *__pyx_v_mom_wv_diff_ten = 0;
44587  int __pyx_lineno = 0;
44588  const char *__pyx_filename = NULL;
44589  int __pyx_clineno = 0;
44590  PyObject *__pyx_r = 0;
44591  __Pyx_RefNannyDeclarations
44592  __Pyx_RefNannySetupContext("eddyViscosity_3D_Update_sd (wrapper)", 0);
44593  {
44594  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nu_t,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_uw_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_vw_diff_ten,&__pyx_n_s_mom_wu_diff_ten,&__pyx_n_s_mom_wv_diff_ten,0};
44595  PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
44596  if (unlikely(__pyx_kwds)) {
44597  Py_ssize_t kw_args;
44598  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
44599  switch (pos_args) {
44600  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
44601  CYTHON_FALLTHROUGH;
44602  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
44603  CYTHON_FALLTHROUGH;
44604  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
44605  CYTHON_FALLTHROUGH;
44606  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
44607  CYTHON_FALLTHROUGH;
44608  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
44609  CYTHON_FALLTHROUGH;
44610  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44611  CYTHON_FALLTHROUGH;
44612  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44613  CYTHON_FALLTHROUGH;
44614  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44615  CYTHON_FALLTHROUGH;
44616  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44617  CYTHON_FALLTHROUGH;
44618  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44619  CYTHON_FALLTHROUGH;
44620  case 0: break;
44621  default: goto __pyx_L5_argtuple_error;
44622  }
44623  kw_args = PyDict_Size(__pyx_kwds);
44624  switch (pos_args) {
44625  case 0:
44626  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_t)) != 0)) kw_args--;
44627  else goto __pyx_L5_argtuple_error;
44628  CYTHON_FALLTHROUGH;
44629  case 1:
44630  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
44631  else {
44632  __Pyx_RaiseArgtupleInvalid("eddyViscosity_3D_Update_sd", 1, 10, 10, 1); __PYX_ERR(0, 7902, __pyx_L3_error)
44633  }
44634  CYTHON_FALLTHROUGH;
44635  case 2:
44636  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
44637  else {
44638  __Pyx_RaiseArgtupleInvalid("eddyViscosity_3D_Update_sd", 1, 10, 10, 2); __PYX_ERR(0, 7902, __pyx_L3_error)
44639  }
44640  CYTHON_FALLTHROUGH;
44641  case 3:
44642  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
44643  else {
44644  __Pyx_RaiseArgtupleInvalid("eddyViscosity_3D_Update_sd", 1, 10, 10, 3); __PYX_ERR(0, 7902, __pyx_L3_error)
44645  }
44646  CYTHON_FALLTHROUGH;
44647  case 4:
44648  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
44649  else {
44650  __Pyx_RaiseArgtupleInvalid("eddyViscosity_3D_Update_sd", 1, 10, 10, 4); __PYX_ERR(0, 7902, __pyx_L3_error)
44651  }
44652  CYTHON_FALLTHROUGH;
44653  case 5:
44654  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uw_diff_ten)) != 0)) kw_args--;
44655  else {
44656  __Pyx_RaiseArgtupleInvalid("eddyViscosity_3D_Update_sd", 1, 10, 10, 5); __PYX_ERR(0, 7902, __pyx_L3_error)
44657  }
44658  CYTHON_FALLTHROUGH;
44659  case 6:
44660  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
44661  else {
44662  __Pyx_RaiseArgtupleInvalid("eddyViscosity_3D_Update_sd", 1, 10, 10, 6); __PYX_ERR(0, 7902, __pyx_L3_error)
44663  }
44664  CYTHON_FALLTHROUGH;
44665  case 7:
44666  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vw_diff_ten)) != 0)) kw_args--;
44667  else {
44668  __Pyx_RaiseArgtupleInvalid("eddyViscosity_3D_Update_sd", 1, 10, 10, 7); __PYX_ERR(0, 7902, __pyx_L3_error)
44669  }
44670  CYTHON_FALLTHROUGH;
44671  case 8:
44672  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wu_diff_ten)) != 0)) kw_args--;
44673  else {
44674  __Pyx_RaiseArgtupleInvalid("eddyViscosity_3D_Update_sd", 1, 10, 10, 8); __PYX_ERR(0, 7902, __pyx_L3_error)
44675  }
44676  CYTHON_FALLTHROUGH;
44677  case 9:
44678  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wv_diff_ten)) != 0)) kw_args--;
44679  else {
44680  __Pyx_RaiseArgtupleInvalid("eddyViscosity_3D_Update_sd", 1, 10, 10, 9); __PYX_ERR(0, 7902, __pyx_L3_error)
44681  }
44682  }
44683  if (unlikely(kw_args > 0)) {
44684  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "eddyViscosity_3D_Update_sd") < 0)) __PYX_ERR(0, 7902, __pyx_L3_error)
44685  }
44686  } else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
44687  goto __pyx_L5_argtuple_error;
44688  } else {
44689  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44690  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44691  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44692  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44693  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44694  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
44695  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
44696  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
44697  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
44698  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
44699  }
44700  __pyx_v_nu_t = ((PyArrayObject *)values[0]);
44701  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[1]);
44702  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[2]);
44703  __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[3]);
44704  __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[4]);
44705  __pyx_v_mom_uw_diff_ten = ((PyArrayObject *)values[5]);
44706  __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[6]);
44707  __pyx_v_mom_vw_diff_ten = ((PyArrayObject *)values[7]);
44708  __pyx_v_mom_wu_diff_ten = ((PyArrayObject *)values[8]);
44709  __pyx_v_mom_wv_diff_ten = ((PyArrayObject *)values[9]);
44710  }
44711  goto __pyx_L4_argument_unpacking_done;
44712  __pyx_L5_argtuple_error:;
44713  __Pyx_RaiseArgtupleInvalid("eddyViscosity_3D_Update_sd", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7902, __pyx_L3_error)
44714  __pyx_L3_error:;
44715  __Pyx_AddTraceback("ctransportCoefficients.eddyViscosity_3D_Update_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
44716  __Pyx_RefNannyFinishContext();
44717  return NULL;
44718  __pyx_L4_argument_unpacking_done:;
44719  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nu_t), __pyx_ptype_5numpy_ndarray, 1, "nu_t", 0))) __PYX_ERR(0, 7902, __pyx_L1_error)
44720  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 7903, __pyx_L1_error)
44721  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 7904, __pyx_L1_error)
44722  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_w_diff_ten", 0))) __PYX_ERR(0, 7905, __pyx_L1_error)
44723  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uv_diff_ten", 0))) __PYX_ERR(0, 7906, __pyx_L1_error)
44724  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uw_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_uw_diff_ten", 0))) __PYX_ERR(0, 7907, __pyx_L1_error)
44725  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vu_diff_ten", 0))) __PYX_ERR(0, 7908, __pyx_L1_error)
44726  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vw_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_vw_diff_ten", 0))) __PYX_ERR(0, 7909, __pyx_L1_error)
44727  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wu_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_wu_diff_ten", 0))) __PYX_ERR(0, 7910, __pyx_L1_error)
44728  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wv_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_wv_diff_ten", 0))) __PYX_ERR(0, 7911, __pyx_L1_error)
44729  __pyx_r = __pyx_pf_22ctransportCoefficients_234eddyViscosity_3D_Update_sd(__pyx_self, __pyx_v_nu_t, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_uw_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_vw_diff_ten, __pyx_v_mom_wu_diff_ten, __pyx_v_mom_wv_diff_ten);
44730 
44731  /* function exit code */
44732  goto __pyx_L0;
44733  __pyx_L1_error:;
44734  __pyx_r = NULL;
44735  __pyx_L0:;
44736  __Pyx_RefNannyFinishContext();
44737  return __pyx_r;
44738 }
44739 
44740 static PyObject *__pyx_pf_22ctransportCoefficients_234eddyViscosity_3D_Update_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nu_t, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten) {
44741  PyObject *__pyx_r = NULL;
44742  __Pyx_RefNannyDeclarations
44743  PyObject *__pyx_t_1 = NULL;
44744  int __pyx_t_2;
44745  int __pyx_lineno = 0;
44746  const char *__pyx_filename = NULL;
44747  int __pyx_clineno = 0;
44748  __Pyx_RefNannySetupContext("eddyViscosity_3D_Update_sd", 0);
44749 
44750  /* "ctransportCoefficients.pyx":7912
44751  * np.ndarray mom_wu_diff_ten,
44752  * np.ndarray mom_wv_diff_ten):
44753  * ceddyViscosity_3D_Update_sd(nu_t.size, # <<<<<<<<<<<<<<
44754  * <double*> nu_t.data,
44755  * <double*> mom_u_diff_ten.data,
44756  */
44757  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_nu_t), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7912, __pyx_L1_error)
44758  __Pyx_GOTREF(__pyx_t_1);
44759  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7912, __pyx_L1_error)
44760  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44761 
44762  /* "ctransportCoefficients.pyx":7922
44763  * <double*> mom_vw_diff_ten.data,
44764  * <double*> mom_wu_diff_ten.data,
44765  * <double*> mom_wv_diff_ten.data) # <<<<<<<<<<<<<<
44766  * def calculateWaveFunction3d_ref(np.ndarray mesh_trial_ref,
44767  * np.ndarray mesh_dof,
44768  */
44769  eddyViscosity_3D_Update_sd(__pyx_t_2, ((double *)__pyx_v_nu_t->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_w_diff_ten->data), ((double *)__pyx_v_mom_uv_diff_ten->data), ((double *)__pyx_v_mom_uw_diff_ten->data), ((double *)__pyx_v_mom_vu_diff_ten->data), ((double *)__pyx_v_mom_vw_diff_ten->data), ((double *)__pyx_v_mom_wu_diff_ten->data), ((double *)__pyx_v_mom_wv_diff_ten->data));
44770 
44771  /* "ctransportCoefficients.pyx":7902
44772  * <double*> mom_wu_diff_ten.data,
44773  * <double*> mom_wv_diff_ten.data)
44774  * def eddyViscosity_3D_Update_sd(np.ndarray nu_t, # <<<<<<<<<<<<<<
44775  * np.ndarray mom_u_diff_ten,
44776  * np.ndarray mom_v_diff_ten,
44777  */
44778 
44779  /* function exit code */
44780  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
44781  goto __pyx_L0;
44782  __pyx_L1_error:;
44783  __Pyx_XDECREF(__pyx_t_1);
44784  __Pyx_AddTraceback("ctransportCoefficients.eddyViscosity_3D_Update_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
44785  __pyx_r = NULL;
44786  __pyx_L0:;
44787  __Pyx_XGIVEREF(__pyx_r);
44788  __Pyx_RefNannyFinishContext();
44789  return __pyx_r;
44790 }
44791 
44792 /* "ctransportCoefficients.pyx":7923
44793  * <double*> mom_wu_diff_ten.data,
44794  * <double*> mom_wv_diff_ten.data)
44795  * def calculateWaveFunction3d_ref(np.ndarray mesh_trial_ref, # <<<<<<<<<<<<<<
44796  * np.ndarray mesh_dof,
44797  * np.ndarray mesh_l2g,
44798  */
44799 
44800 /* Python wrapper */
44801 static PyObject *__pyx_pw_22ctransportCoefficients_237calculateWaveFunction3d_ref(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
44802 static PyMethodDef __pyx_mdef_22ctransportCoefficients_237calculateWaveFunction3d_ref = {"calculateWaveFunction3d_ref", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_237calculateWaveFunction3d_ref, METH_VARARGS|METH_KEYWORDS, 0};
44803 static PyObject *__pyx_pw_22ctransportCoefficients_237calculateWaveFunction3d_ref(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
44804  PyArrayObject *__pyx_v_mesh_trial_ref = 0;
44805  PyArrayObject *__pyx_v_mesh_dof = 0;
44806  PyArrayObject *__pyx_v_mesh_l2g = 0;
44807  PyArrayObject *__pyx_v_elementDiametersArray = 0;
44808  PyArrayObject *__pyx_v_omega_s_x = 0;
44809  PyArrayObject *__pyx_v_omega_s_y = 0;
44810  PyArrayObject *__pyx_v_omega_s_z = 0;
44811  double __pyx_v_t;
44812  int __pyx_v_waveFlag;
44813  double __pyx_v_epsFact;
44814  double __pyx_v_waveHeight;
44815  double __pyx_v_waveCelerity;
44816  double __pyx_v_waveFrequency;
44817  double __pyx_v_waveNumber;
44818  double __pyx_v_waterDepth;
44819  PyArrayObject *__pyx_v_source = 0;
44820  int __pyx_lineno = 0;
44821  const char *__pyx_filename = NULL;
44822  int __pyx_clineno = 0;
44823  PyObject *__pyx_r = 0;
44824  __Pyx_RefNannyDeclarations
44825  __Pyx_RefNannySetupContext("calculateWaveFunction3d_ref (wrapper)", 0);
44826  {
44827  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_mesh_trial_ref,&__pyx_n_s_mesh_dof,&__pyx_n_s_mesh_l2g,&__pyx_n_s_elementDiametersArray,&__pyx_n_s_omega_s_x,&__pyx_n_s_omega_s_y,&__pyx_n_s_omega_s_z,&__pyx_n_s_t,&__pyx_n_s_waveFlag,&__pyx_n_s_epsFact,&__pyx_n_s_waveHeight,&__pyx_n_s_waveCelerity,&__pyx_n_s_waveFrequency,&__pyx_n_s_waveNumber,&__pyx_n_s_waterDepth,&__pyx_n_s_source,0};
44828  PyObject* values[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
44829  if (unlikely(__pyx_kwds)) {
44830  Py_ssize_t kw_args;
44831  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
44832  switch (pos_args) {
44833  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
44834  CYTHON_FALLTHROUGH;
44835  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
44836  CYTHON_FALLTHROUGH;
44837  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
44838  CYTHON_FALLTHROUGH;
44839  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
44840  CYTHON_FALLTHROUGH;
44841  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
44842  CYTHON_FALLTHROUGH;
44843  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
44844  CYTHON_FALLTHROUGH;
44845  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
44846  CYTHON_FALLTHROUGH;
44847  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
44848  CYTHON_FALLTHROUGH;
44849  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
44850  CYTHON_FALLTHROUGH;
44851  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
44852  CYTHON_FALLTHROUGH;
44853  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
44854  CYTHON_FALLTHROUGH;
44855  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44856  CYTHON_FALLTHROUGH;
44857  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44858  CYTHON_FALLTHROUGH;
44859  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44860  CYTHON_FALLTHROUGH;
44861  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44862  CYTHON_FALLTHROUGH;
44863  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44864  CYTHON_FALLTHROUGH;
44865  case 0: break;
44866  default: goto __pyx_L5_argtuple_error;
44867  }
44868  kw_args = PyDict_Size(__pyx_kwds);
44869  switch (pos_args) {
44870  case 0:
44871  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mesh_trial_ref)) != 0)) kw_args--;
44872  else goto __pyx_L5_argtuple_error;
44873  CYTHON_FALLTHROUGH;
44874  case 1:
44875  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mesh_dof)) != 0)) kw_args--;
44876  else {
44877  __Pyx_RaiseArgtupleInvalid("calculateWaveFunction3d_ref", 1, 16, 16, 1); __PYX_ERR(0, 7923, __pyx_L3_error)
44878  }
44879  CYTHON_FALLTHROUGH;
44880  case 2:
44881  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mesh_l2g)) != 0)) kw_args--;
44882  else {
44883  __Pyx_RaiseArgtupleInvalid("calculateWaveFunction3d_ref", 1, 16, 16, 2); __PYX_ERR(0, 7923, __pyx_L3_error)
44884  }
44885  CYTHON_FALLTHROUGH;
44886  case 3:
44887  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementDiametersArray)) != 0)) kw_args--;
44888  else {
44889  __Pyx_RaiseArgtupleInvalid("calculateWaveFunction3d_ref", 1, 16, 16, 3); __PYX_ERR(0, 7923, __pyx_L3_error)
44890  }
44891  CYTHON_FALLTHROUGH;
44892  case 4:
44893  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_omega_s_x)) != 0)) kw_args--;
44894  else {
44895  __Pyx_RaiseArgtupleInvalid("calculateWaveFunction3d_ref", 1, 16, 16, 4); __PYX_ERR(0, 7923, __pyx_L3_error)
44896  }
44897  CYTHON_FALLTHROUGH;
44898  case 5:
44899  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_omega_s_y)) != 0)) kw_args--;
44900  else {
44901  __Pyx_RaiseArgtupleInvalid("calculateWaveFunction3d_ref", 1, 16, 16, 5); __PYX_ERR(0, 7923, __pyx_L3_error)
44902  }
44903  CYTHON_FALLTHROUGH;
44904  case 6:
44905  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_omega_s_z)) != 0)) kw_args--;
44906  else {
44907  __Pyx_RaiseArgtupleInvalid("calculateWaveFunction3d_ref", 1, 16, 16, 6); __PYX_ERR(0, 7923, __pyx_L3_error)
44908  }
44909  CYTHON_FALLTHROUGH;
44910  case 7:
44911  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
44912  else {
44913  __Pyx_RaiseArgtupleInvalid("calculateWaveFunction3d_ref", 1, 16, 16, 7); __PYX_ERR(0, 7923, __pyx_L3_error)
44914  }
44915  CYTHON_FALLTHROUGH;
44916  case 8:
44917  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_waveFlag)) != 0)) kw_args--;
44918  else {
44919  __Pyx_RaiseArgtupleInvalid("calculateWaveFunction3d_ref", 1, 16, 16, 8); __PYX_ERR(0, 7923, __pyx_L3_error)
44920  }
44921  CYTHON_FALLTHROUGH;
44922  case 9:
44923  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsFact)) != 0)) kw_args--;
44924  else {
44925  __Pyx_RaiseArgtupleInvalid("calculateWaveFunction3d_ref", 1, 16, 16, 9); __PYX_ERR(0, 7923, __pyx_L3_error)
44926  }
44927  CYTHON_FALLTHROUGH;
44928  case 10:
44929  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_waveHeight)) != 0)) kw_args--;
44930  else {
44931  __Pyx_RaiseArgtupleInvalid("calculateWaveFunction3d_ref", 1, 16, 16, 10); __PYX_ERR(0, 7923, __pyx_L3_error)
44932  }
44933  CYTHON_FALLTHROUGH;
44934  case 11:
44935  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_waveCelerity)) != 0)) kw_args--;
44936  else {
44937  __Pyx_RaiseArgtupleInvalid("calculateWaveFunction3d_ref", 1, 16, 16, 11); __PYX_ERR(0, 7923, __pyx_L3_error)
44938  }
44939  CYTHON_FALLTHROUGH;
44940  case 12:
44941  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_waveFrequency)) != 0)) kw_args--;
44942  else {
44943  __Pyx_RaiseArgtupleInvalid("calculateWaveFunction3d_ref", 1, 16, 16, 12); __PYX_ERR(0, 7923, __pyx_L3_error)
44944  }
44945  CYTHON_FALLTHROUGH;
44946  case 13:
44947  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_waveNumber)) != 0)) kw_args--;
44948  else {
44949  __Pyx_RaiseArgtupleInvalid("calculateWaveFunction3d_ref", 1, 16, 16, 13); __PYX_ERR(0, 7923, __pyx_L3_error)
44950  }
44951  CYTHON_FALLTHROUGH;
44952  case 14:
44953  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_waterDepth)) != 0)) kw_args--;
44954  else {
44955  __Pyx_RaiseArgtupleInvalid("calculateWaveFunction3d_ref", 1, 16, 16, 14); __PYX_ERR(0, 7923, __pyx_L3_error)
44956  }
44957  CYTHON_FALLTHROUGH;
44958  case 15:
44959  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_source)) != 0)) kw_args--;
44960  else {
44961  __Pyx_RaiseArgtupleInvalid("calculateWaveFunction3d_ref", 1, 16, 16, 15); __PYX_ERR(0, 7923, __pyx_L3_error)
44962  }
44963  }
44964  if (unlikely(kw_args > 0)) {
44965  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "calculateWaveFunction3d_ref") < 0)) __PYX_ERR(0, 7923, __pyx_L3_error)
44966  }
44967  } else if (PyTuple_GET_SIZE(__pyx_args) != 16) {
44968  goto __pyx_L5_argtuple_error;
44969  } else {
44970  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44971  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44972  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44973  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44974  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44975  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
44976  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
44977  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
44978  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
44979  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
44980  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
44981  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
44982  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
44983  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
44984  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
44985  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
44986  }
44987  __pyx_v_mesh_trial_ref = ((PyArrayObject *)values[0]);
44988  __pyx_v_mesh_dof = ((PyArrayObject *)values[1]);
44989  __pyx_v_mesh_l2g = ((PyArrayObject *)values[2]);
44990  __pyx_v_elementDiametersArray = ((PyArrayObject *)values[3]);
44991  __pyx_v_omega_s_x = ((PyArrayObject *)values[4]);
44992  __pyx_v_omega_s_y = ((PyArrayObject *)values[5]);
44993  __pyx_v_omega_s_z = ((PyArrayObject *)values[6]);
44994  __pyx_v_t = __pyx_PyFloat_AsDouble(values[7]); if (unlikely((__pyx_v_t == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7930, __pyx_L3_error)
44995  __pyx_v_waveFlag = __Pyx_PyInt_As_int(values[8]); if (unlikely((__pyx_v_waveFlag == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7931, __pyx_L3_error)
44996  __pyx_v_epsFact = __pyx_PyFloat_AsDouble(values[9]); if (unlikely((__pyx_v_epsFact == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7932, __pyx_L3_error)
44997  __pyx_v_waveHeight = __pyx_PyFloat_AsDouble(values[10]); if (unlikely((__pyx_v_waveHeight == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7933, __pyx_L3_error)
44998  __pyx_v_waveCelerity = __pyx_PyFloat_AsDouble(values[11]); if (unlikely((__pyx_v_waveCelerity == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7934, __pyx_L3_error)
44999  __pyx_v_waveFrequency = __pyx_PyFloat_AsDouble(values[12]); if (unlikely((__pyx_v_waveFrequency == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7935, __pyx_L3_error)
45000  __pyx_v_waveNumber = __pyx_PyFloat_AsDouble(values[13]); if (unlikely((__pyx_v_waveNumber == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7936, __pyx_L3_error)
45001  __pyx_v_waterDepth = __pyx_PyFloat_AsDouble(values[14]); if (unlikely((__pyx_v_waterDepth == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7937, __pyx_L3_error)
45002  __pyx_v_source = ((PyArrayObject *)values[15]);
45003  }
45004  goto __pyx_L4_argument_unpacking_done;
45005  __pyx_L5_argtuple_error:;
45006  __Pyx_RaiseArgtupleInvalid("calculateWaveFunction3d_ref", 1, 16, 16, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7923, __pyx_L3_error)
45007  __pyx_L3_error:;
45008  __Pyx_AddTraceback("ctransportCoefficients.calculateWaveFunction3d_ref", __pyx_clineno, __pyx_lineno, __pyx_filename);
45009  __Pyx_RefNannyFinishContext();
45010  return NULL;
45011  __pyx_L4_argument_unpacking_done:;
45012  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mesh_trial_ref), __pyx_ptype_5numpy_ndarray, 1, "mesh_trial_ref", 0))) __PYX_ERR(0, 7923, __pyx_L1_error)
45013  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mesh_dof), __pyx_ptype_5numpy_ndarray, 1, "mesh_dof", 0))) __PYX_ERR(0, 7924, __pyx_L1_error)
45014  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mesh_l2g), __pyx_ptype_5numpy_ndarray, 1, "mesh_l2g", 0))) __PYX_ERR(0, 7925, __pyx_L1_error)
45015  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementDiametersArray), __pyx_ptype_5numpy_ndarray, 1, "elementDiametersArray", 0))) __PYX_ERR(0, 7926, __pyx_L1_error)
45016  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_omega_s_x), __pyx_ptype_5numpy_ndarray, 1, "omega_s_x", 0))) __PYX_ERR(0, 7927, __pyx_L1_error)
45017  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_omega_s_y), __pyx_ptype_5numpy_ndarray, 1, "omega_s_y", 0))) __PYX_ERR(0, 7928, __pyx_L1_error)
45018  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_omega_s_z), __pyx_ptype_5numpy_ndarray, 1, "omega_s_z", 0))) __PYX_ERR(0, 7929, __pyx_L1_error)
45019  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_source), __pyx_ptype_5numpy_ndarray, 1, "source", 0))) __PYX_ERR(0, 7938, __pyx_L1_error)
45020  __pyx_r = __pyx_pf_22ctransportCoefficients_236calculateWaveFunction3d_ref(__pyx_self, __pyx_v_mesh_trial_ref, __pyx_v_mesh_dof, __pyx_v_mesh_l2g, __pyx_v_elementDiametersArray, __pyx_v_omega_s_x, __pyx_v_omega_s_y, __pyx_v_omega_s_z, __pyx_v_t, __pyx_v_waveFlag, __pyx_v_epsFact, __pyx_v_waveHeight, __pyx_v_waveCelerity, __pyx_v_waveFrequency, __pyx_v_waveNumber, __pyx_v_waterDepth, __pyx_v_source);
45021 
45022  /* function exit code */
45023  goto __pyx_L0;
45024  __pyx_L1_error:;
45025  __pyx_r = NULL;
45026  __pyx_L0:;
45027  __Pyx_RefNannyFinishContext();
45028  return __pyx_r;
45029 }
45030 
45031 static PyObject *__pyx_pf_22ctransportCoefficients_236calculateWaveFunction3d_ref(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_mesh_trial_ref, PyArrayObject *__pyx_v_mesh_dof, PyArrayObject *__pyx_v_mesh_l2g, PyArrayObject *__pyx_v_elementDiametersArray, PyArrayObject *__pyx_v_omega_s_x, PyArrayObject *__pyx_v_omega_s_y, PyArrayObject *__pyx_v_omega_s_z, double __pyx_v_t, int __pyx_v_waveFlag, double __pyx_v_epsFact, double __pyx_v_waveHeight, double __pyx_v_waveCelerity, double __pyx_v_waveFrequency, double __pyx_v_waveNumber, double __pyx_v_waterDepth, PyArrayObject *__pyx_v_source) {
45032  PyObject *__pyx_r = NULL;
45033  __Pyx_RefNannyDeclarations
45034  __Pyx_RefNannySetupContext("calculateWaveFunction3d_ref", 0);
45035 
45036  /* "ctransportCoefficients.pyx":7939
45037  * double waterDepth,
45038  * np.ndarray source):
45039  * ccalculateWaveFunction3d_ref(mesh_l2g.shape[0], # <<<<<<<<<<<<<<
45040  * mesh_l2g.shape[1],
45041  * mesh_trial_ref.shape[0],
45042  */
45043  calculateWaveFunction3d_ref((__pyx_v_mesh_l2g->dimensions[0]), (__pyx_v_mesh_l2g->dimensions[1]), (__pyx_v_mesh_trial_ref->dimensions[0]), ((double *)__pyx_v_mesh_trial_ref->data), ((double *)__pyx_v_mesh_dof->data), ((int *)__pyx_v_mesh_l2g->data), ((double *)__pyx_v_elementDiametersArray->data), ((double *)__pyx_v_omega_s_x->data), ((double *)__pyx_v_omega_s_y->data), ((double *)__pyx_v_omega_s_z->data), __pyx_v_t, __pyx_v_waveFlag, __pyx_v_epsFact, __pyx_v_waveHeight, __pyx_v_waveCelerity, __pyx_v_waveFrequency, __pyx_v_waveNumber, __pyx_v_waterDepth, ((double *)__pyx_v_source->data));
45044 
45045  /* "ctransportCoefficients.pyx":7923
45046  * <double*> mom_wu_diff_ten.data,
45047  * <double*> mom_wv_diff_ten.data)
45048  * def calculateWaveFunction3d_ref(np.ndarray mesh_trial_ref, # <<<<<<<<<<<<<<
45049  * np.ndarray mesh_dof,
45050  * np.ndarray mesh_l2g,
45051  */
45052 
45053  /* function exit code */
45054  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
45055  __Pyx_XGIVEREF(__pyx_r);
45056  __Pyx_RefNannyFinishContext();
45057  return __pyx_r;
45058 }
45059 
45060 /* "ctransportCoefficients.pyx":7958
45061  * waterDepth,
45062  * <double*> source.data)
45063  * def Mass_2D_Evaluate(double rho, # <<<<<<<<<<<<<<
45064  * np.ndarray p,
45065  * np.ndarray u,
45066  */
45067 
45068 /* Python wrapper */
45069 static PyObject *__pyx_pw_22ctransportCoefficients_239Mass_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
45070 static PyMethodDef __pyx_mdef_22ctransportCoefficients_239Mass_2D_Evaluate = {"Mass_2D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_239Mass_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
45071 static PyObject *__pyx_pw_22ctransportCoefficients_239Mass_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
45072  double __pyx_v_rho;
45073  PyArrayObject *__pyx_v_p = 0;
45074  PyArrayObject *__pyx_v_u = 0;
45075  PyArrayObject *__pyx_v_v = 0;
45076  PyArrayObject *__pyx_v_mom_p_acc = 0;
45077  PyArrayObject *__pyx_v_mom_u_acc = 0;
45078  PyArrayObject *__pyx_v_mom_v_acc = 0;
45079  PyArrayObject *__pyx_v_dmom_p_acc_p = 0;
45080  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
45081  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
45082  int __pyx_lineno = 0;
45083  const char *__pyx_filename = NULL;
45084  int __pyx_clineno = 0;
45085  PyObject *__pyx_r = 0;
45086  __Pyx_RefNannyDeclarations
45087  __Pyx_RefNannySetupContext("Mass_2D_Evaluate (wrapper)", 0);
45088  {
45089  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_mom_p_acc,&__pyx_n_s_mom_u_acc,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_p_acc_p,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_dmom_v_acc_v,0};
45090  PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
45091  if (unlikely(__pyx_kwds)) {
45092  Py_ssize_t kw_args;
45093  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
45094  switch (pos_args) {
45095  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
45096  CYTHON_FALLTHROUGH;
45097  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
45098  CYTHON_FALLTHROUGH;
45099  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
45100  CYTHON_FALLTHROUGH;
45101  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
45102  CYTHON_FALLTHROUGH;
45103  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
45104  CYTHON_FALLTHROUGH;
45105  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
45106  CYTHON_FALLTHROUGH;
45107  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
45108  CYTHON_FALLTHROUGH;
45109  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
45110  CYTHON_FALLTHROUGH;
45111  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
45112  CYTHON_FALLTHROUGH;
45113  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
45114  CYTHON_FALLTHROUGH;
45115  case 0: break;
45116  default: goto __pyx_L5_argtuple_error;
45117  }
45118  kw_args = PyDict_Size(__pyx_kwds);
45119  switch (pos_args) {
45120  case 0:
45121  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
45122  else goto __pyx_L5_argtuple_error;
45123  CYTHON_FALLTHROUGH;
45124  case 1:
45125  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
45126  else {
45127  __Pyx_RaiseArgtupleInvalid("Mass_2D_Evaluate", 1, 10, 10, 1); __PYX_ERR(0, 7958, __pyx_L3_error)
45128  }
45129  CYTHON_FALLTHROUGH;
45130  case 2:
45131  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
45132  else {
45133  __Pyx_RaiseArgtupleInvalid("Mass_2D_Evaluate", 1, 10, 10, 2); __PYX_ERR(0, 7958, __pyx_L3_error)
45134  }
45135  CYTHON_FALLTHROUGH;
45136  case 3:
45137  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
45138  else {
45139  __Pyx_RaiseArgtupleInvalid("Mass_2D_Evaluate", 1, 10, 10, 3); __PYX_ERR(0, 7958, __pyx_L3_error)
45140  }
45141  CYTHON_FALLTHROUGH;
45142  case 4:
45143  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_p_acc)) != 0)) kw_args--;
45144  else {
45145  __Pyx_RaiseArgtupleInvalid("Mass_2D_Evaluate", 1, 10, 10, 4); __PYX_ERR(0, 7958, __pyx_L3_error)
45146  }
45147  CYTHON_FALLTHROUGH;
45148  case 5:
45149  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
45150  else {
45151  __Pyx_RaiseArgtupleInvalid("Mass_2D_Evaluate", 1, 10, 10, 5); __PYX_ERR(0, 7958, __pyx_L3_error)
45152  }
45153  CYTHON_FALLTHROUGH;
45154  case 6:
45155  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
45156  else {
45157  __Pyx_RaiseArgtupleInvalid("Mass_2D_Evaluate", 1, 10, 10, 6); __PYX_ERR(0, 7958, __pyx_L3_error)
45158  }
45159  CYTHON_FALLTHROUGH;
45160  case 7:
45161  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_p_acc_p)) != 0)) kw_args--;
45162  else {
45163  __Pyx_RaiseArgtupleInvalid("Mass_2D_Evaluate", 1, 10, 10, 7); __PYX_ERR(0, 7958, __pyx_L3_error)
45164  }
45165  CYTHON_FALLTHROUGH;
45166  case 8:
45167  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
45168  else {
45169  __Pyx_RaiseArgtupleInvalid("Mass_2D_Evaluate", 1, 10, 10, 8); __PYX_ERR(0, 7958, __pyx_L3_error)
45170  }
45171  CYTHON_FALLTHROUGH;
45172  case 9:
45173  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
45174  else {
45175  __Pyx_RaiseArgtupleInvalid("Mass_2D_Evaluate", 1, 10, 10, 9); __PYX_ERR(0, 7958, __pyx_L3_error)
45176  }
45177  }
45178  if (unlikely(kw_args > 0)) {
45179  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "Mass_2D_Evaluate") < 0)) __PYX_ERR(0, 7958, __pyx_L3_error)
45180  }
45181  } else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
45182  goto __pyx_L5_argtuple_error;
45183  } else {
45184  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
45185  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
45186  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
45187  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
45188  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
45189  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
45190  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
45191  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
45192  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
45193  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
45194  }
45195  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7958, __pyx_L3_error)
45196  __pyx_v_p = ((PyArrayObject *)values[1]);
45197  __pyx_v_u = ((PyArrayObject *)values[2]);
45198  __pyx_v_v = ((PyArrayObject *)values[3]);
45199  __pyx_v_mom_p_acc = ((PyArrayObject *)values[4]);
45200  __pyx_v_mom_u_acc = ((PyArrayObject *)values[5]);
45201  __pyx_v_mom_v_acc = ((PyArrayObject *)values[6]);
45202  __pyx_v_dmom_p_acc_p = ((PyArrayObject *)values[7]);
45203  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[8]);
45204  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[9]);
45205  }
45206  goto __pyx_L4_argument_unpacking_done;
45207  __pyx_L5_argtuple_error:;
45208  __Pyx_RaiseArgtupleInvalid("Mass_2D_Evaluate", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7958, __pyx_L3_error)
45209  __pyx_L3_error:;
45210  __Pyx_AddTraceback("ctransportCoefficients.Mass_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
45211  __Pyx_RefNannyFinishContext();
45212  return NULL;
45213  __pyx_L4_argument_unpacking_done:;
45214  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 7959, __pyx_L1_error)
45215  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 7960, __pyx_L1_error)
45216  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 7961, __pyx_L1_error)
45217  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_p_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_p_acc", 0))) __PYX_ERR(0, 7962, __pyx_L1_error)
45218  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 7963, __pyx_L1_error)
45219  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 7964, __pyx_L1_error)
45220  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_p_acc_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_p_acc_p", 0))) __PYX_ERR(0, 7965, __pyx_L1_error)
45221  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 7966, __pyx_L1_error)
45222  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 7967, __pyx_L1_error)
45223  __pyx_r = __pyx_pf_22ctransportCoefficients_238Mass_2D_Evaluate(__pyx_self, __pyx_v_rho, __pyx_v_p, __pyx_v_u, __pyx_v_v, __pyx_v_mom_p_acc, __pyx_v_mom_u_acc, __pyx_v_mom_v_acc, __pyx_v_dmom_p_acc_p, __pyx_v_dmom_u_acc_u, __pyx_v_dmom_v_acc_v);
45224 
45225  /* function exit code */
45226  goto __pyx_L0;
45227  __pyx_L1_error:;
45228  __pyx_r = NULL;
45229  __pyx_L0:;
45230  __Pyx_RefNannyFinishContext();
45231  return __pyx_r;
45232 }
45233 
45234 static PyObject *__pyx_pf_22ctransportCoefficients_238Mass_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_p_acc, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_p_acc_p, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_dmom_v_acc_v) {
45235  PyObject *__pyx_r = NULL;
45236  __Pyx_RefNannyDeclarations
45237  PyObject *__pyx_t_1 = NULL;
45238  int __pyx_t_2;
45239  int __pyx_lineno = 0;
45240  const char *__pyx_filename = NULL;
45241  int __pyx_clineno = 0;
45242  __Pyx_RefNannySetupContext("Mass_2D_Evaluate", 0);
45243 
45244  /* "ctransportCoefficients.pyx":7968
45245  * np.ndarray dmom_u_acc_u,
45246  * np.ndarray dmom_v_acc_v):
45247  * cMass_2D_Evaluate(p.size, # <<<<<<<<<<<<<<
45248  * rho,
45249  * <double*> p.data,
45250  */
45251  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7968, __pyx_L1_error)
45252  __Pyx_GOTREF(__pyx_t_1);
45253  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7968, __pyx_L1_error)
45254  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
45255 
45256  /* "ctransportCoefficients.pyx":7978
45257  * <double*> dmom_p_acc_p.data,
45258  * <double*> dmom_u_acc_u.data,
45259  * <double*> dmom_v_acc_v.data) # <<<<<<<<<<<<<<
45260  * def Mass_3D_Evaluate(double rho,
45261  * np.ndarray p,
45262  */
45263  Mass_2D_Evaluate(__pyx_t_2, __pyx_v_rho, ((double *)__pyx_v_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_mom_p_acc->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_dmom_p_acc_p->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_dmom_v_acc_v->data));
45264 
45265  /* "ctransportCoefficients.pyx":7958
45266  * waterDepth,
45267  * <double*> source.data)
45268  * def Mass_2D_Evaluate(double rho, # <<<<<<<<<<<<<<
45269  * np.ndarray p,
45270  * np.ndarray u,
45271  */
45272 
45273  /* function exit code */
45274  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
45275  goto __pyx_L0;
45276  __pyx_L1_error:;
45277  __Pyx_XDECREF(__pyx_t_1);
45278  __Pyx_AddTraceback("ctransportCoefficients.Mass_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
45279  __pyx_r = NULL;
45280  __pyx_L0:;
45281  __Pyx_XGIVEREF(__pyx_r);
45282  __Pyx_RefNannyFinishContext();
45283  return __pyx_r;
45284 }
45285 
45286 /* "ctransportCoefficients.pyx":7979
45287  * <double*> dmom_u_acc_u.data,
45288  * <double*> dmom_v_acc_v.data)
45289  * def Mass_3D_Evaluate(double rho, # <<<<<<<<<<<<<<
45290  * np.ndarray p,
45291  * np.ndarray u,
45292  */
45293 
45294 /* Python wrapper */
45295 static PyObject *__pyx_pw_22ctransportCoefficients_241Mass_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
45296 static PyMethodDef __pyx_mdef_22ctransportCoefficients_241Mass_3D_Evaluate = {"Mass_3D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_241Mass_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
45297 static PyObject *__pyx_pw_22ctransportCoefficients_241Mass_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
45298  double __pyx_v_rho;
45299  PyArrayObject *__pyx_v_p = 0;
45300  PyArrayObject *__pyx_v_u = 0;
45301  PyArrayObject *__pyx_v_v = 0;
45302  PyArrayObject *__pyx_v_w = 0;
45303  PyArrayObject *__pyx_v_mom_p_acc = 0;
45304  PyArrayObject *__pyx_v_mom_u_acc = 0;
45305  PyArrayObject *__pyx_v_mom_v_acc = 0;
45306  PyArrayObject *__pyx_v_mom_w_acc = 0;
45307  PyArrayObject *__pyx_v_dmom_p_acc_p = 0;
45308  PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
45309  PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
45310  PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
45311  int __pyx_lineno = 0;
45312  const char *__pyx_filename = NULL;
45313  int __pyx_clineno = 0;
45314  PyObject *__pyx_r = 0;
45315  __Pyx_RefNannyDeclarations
45316  __Pyx_RefNannySetupContext("Mass_3D_Evaluate (wrapper)", 0);
45317  {
45318  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_mom_p_acc,&__pyx_n_s_mom_u_acc,&__pyx_n_s_mom_v_acc,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_p_acc_p,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_dmom_w_acc_w,0};
45319  PyObject* values[13] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
45320  if (unlikely(__pyx_kwds)) {
45321  Py_ssize_t kw_args;
45322  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
45323  switch (pos_args) {
45324  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
45325  CYTHON_FALLTHROUGH;
45326  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
45327  CYTHON_FALLTHROUGH;
45328  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
45329  CYTHON_FALLTHROUGH;
45330  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
45331  CYTHON_FALLTHROUGH;
45332  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
45333  CYTHON_FALLTHROUGH;
45334  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
45335  CYTHON_FALLTHROUGH;
45336  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
45337  CYTHON_FALLTHROUGH;
45338  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
45339  CYTHON_FALLTHROUGH;
45340  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
45341  CYTHON_FALLTHROUGH;
45342  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
45343  CYTHON_FALLTHROUGH;
45344  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
45345  CYTHON_FALLTHROUGH;
45346  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
45347  CYTHON_FALLTHROUGH;
45348  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
45349  CYTHON_FALLTHROUGH;
45350  case 0: break;
45351  default: goto __pyx_L5_argtuple_error;
45352  }
45353  kw_args = PyDict_Size(__pyx_kwds);
45354  switch (pos_args) {
45355  case 0:
45356  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
45357  else goto __pyx_L5_argtuple_error;
45358  CYTHON_FALLTHROUGH;
45359  case 1:
45360  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
45361  else {
45362  __Pyx_RaiseArgtupleInvalid("Mass_3D_Evaluate", 1, 13, 13, 1); __PYX_ERR(0, 7979, __pyx_L3_error)
45363  }
45364  CYTHON_FALLTHROUGH;
45365  case 2:
45366  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
45367  else {
45368  __Pyx_RaiseArgtupleInvalid("Mass_3D_Evaluate", 1, 13, 13, 2); __PYX_ERR(0, 7979, __pyx_L3_error)
45369  }
45370  CYTHON_FALLTHROUGH;
45371  case 3:
45372  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
45373  else {
45374  __Pyx_RaiseArgtupleInvalid("Mass_3D_Evaluate", 1, 13, 13, 3); __PYX_ERR(0, 7979, __pyx_L3_error)
45375  }
45376  CYTHON_FALLTHROUGH;
45377  case 4:
45378  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
45379  else {
45380  __Pyx_RaiseArgtupleInvalid("Mass_3D_Evaluate", 1, 13, 13, 4); __PYX_ERR(0, 7979, __pyx_L3_error)
45381  }
45382  CYTHON_FALLTHROUGH;
45383  case 5:
45384  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_p_acc)) != 0)) kw_args--;
45385  else {
45386  __Pyx_RaiseArgtupleInvalid("Mass_3D_Evaluate", 1, 13, 13, 5); __PYX_ERR(0, 7979, __pyx_L3_error)
45387  }
45388  CYTHON_FALLTHROUGH;
45389  case 6:
45390  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
45391  else {
45392  __Pyx_RaiseArgtupleInvalid("Mass_3D_Evaluate", 1, 13, 13, 6); __PYX_ERR(0, 7979, __pyx_L3_error)
45393  }
45394  CYTHON_FALLTHROUGH;
45395  case 7:
45396  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
45397  else {
45398  __Pyx_RaiseArgtupleInvalid("Mass_3D_Evaluate", 1, 13, 13, 7); __PYX_ERR(0, 7979, __pyx_L3_error)
45399  }
45400  CYTHON_FALLTHROUGH;
45401  case 8:
45402  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
45403  else {
45404  __Pyx_RaiseArgtupleInvalid("Mass_3D_Evaluate", 1, 13, 13, 8); __PYX_ERR(0, 7979, __pyx_L3_error)
45405  }
45406  CYTHON_FALLTHROUGH;
45407  case 9:
45408  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_p_acc_p)) != 0)) kw_args--;
45409  else {
45410  __Pyx_RaiseArgtupleInvalid("Mass_3D_Evaluate", 1, 13, 13, 9); __PYX_ERR(0, 7979, __pyx_L3_error)
45411  }
45412  CYTHON_FALLTHROUGH;
45413  case 10:
45414  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
45415  else {
45416  __Pyx_RaiseArgtupleInvalid("Mass_3D_Evaluate", 1, 13, 13, 10); __PYX_ERR(0, 7979, __pyx_L3_error)
45417  }
45418  CYTHON_FALLTHROUGH;
45419  case 11:
45420  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
45421  else {
45422  __Pyx_RaiseArgtupleInvalid("Mass_3D_Evaluate", 1, 13, 13, 11); __PYX_ERR(0, 7979, __pyx_L3_error)
45423  }
45424  CYTHON_FALLTHROUGH;
45425  case 12:
45426  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
45427  else {
45428  __Pyx_RaiseArgtupleInvalid("Mass_3D_Evaluate", 1, 13, 13, 12); __PYX_ERR(0, 7979, __pyx_L3_error)
45429  }
45430  }
45431  if (unlikely(kw_args > 0)) {
45432  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "Mass_3D_Evaluate") < 0)) __PYX_ERR(0, 7979, __pyx_L3_error)
45433  }
45434  } else if (PyTuple_GET_SIZE(__pyx_args) != 13) {
45435  goto __pyx_L5_argtuple_error;
45436  } else {
45437  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
45438  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
45439  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
45440  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
45441  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
45442  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
45443  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
45444  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
45445  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
45446  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
45447  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
45448  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
45449  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
45450  }
45451  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7979, __pyx_L3_error)
45452  __pyx_v_p = ((PyArrayObject *)values[1]);
45453  __pyx_v_u = ((PyArrayObject *)values[2]);
45454  __pyx_v_v = ((PyArrayObject *)values[3]);
45455  __pyx_v_w = ((PyArrayObject *)values[4]);
45456  __pyx_v_mom_p_acc = ((PyArrayObject *)values[5]);
45457  __pyx_v_mom_u_acc = ((PyArrayObject *)values[6]);
45458  __pyx_v_mom_v_acc = ((PyArrayObject *)values[7]);
45459  __pyx_v_mom_w_acc = ((PyArrayObject *)values[8]);
45460  __pyx_v_dmom_p_acc_p = ((PyArrayObject *)values[9]);
45461  __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[10]);
45462  __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[11]);
45463  __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[12]);
45464  }
45465  goto __pyx_L4_argument_unpacking_done;
45466  __pyx_L5_argtuple_error:;
45467  __Pyx_RaiseArgtupleInvalid("Mass_3D_Evaluate", 1, 13, 13, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7979, __pyx_L3_error)
45468  __pyx_L3_error:;
45469  __Pyx_AddTraceback("ctransportCoefficients.Mass_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
45470  __Pyx_RefNannyFinishContext();
45471  return NULL;
45472  __pyx_L4_argument_unpacking_done:;
45473  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 7980, __pyx_L1_error)
45474  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 7981, __pyx_L1_error)
45475  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 7982, __pyx_L1_error)
45476  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1, "w", 0))) __PYX_ERR(0, 7983, __pyx_L1_error)
45477  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_p_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_p_acc", 0))) __PYX_ERR(0, 7984, __pyx_L1_error)
45478  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_u_acc", 0))) __PYX_ERR(0, 7985, __pyx_L1_error)
45479  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_v_acc", 0))) __PYX_ERR(0, 7986, __pyx_L1_error)
45480  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1, "mom_w_acc", 0))) __PYX_ERR(0, 7987, __pyx_L1_error)
45481  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_p_acc_p), __pyx_ptype_5numpy_ndarray, 1, "dmom_p_acc_p", 0))) __PYX_ERR(0, 7988, __pyx_L1_error)
45482  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_acc_u", 0))) __PYX_ERR(0, 7989, __pyx_L1_error)
45483  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_acc_v", 0))) __PYX_ERR(0, 7990, __pyx_L1_error)
45484  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1, "dmom_w_acc_w", 0))) __PYX_ERR(0, 7991, __pyx_L1_error)
45485  __pyx_r = __pyx_pf_22ctransportCoefficients_240Mass_3D_Evaluate(__pyx_self, __pyx_v_rho, __pyx_v_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_mom_p_acc, __pyx_v_mom_u_acc, __pyx_v_mom_v_acc, __pyx_v_mom_w_acc, __pyx_v_dmom_p_acc_p, __pyx_v_dmom_u_acc_u, __pyx_v_dmom_v_acc_v, __pyx_v_dmom_w_acc_w);
45486 
45487  /* function exit code */
45488  goto __pyx_L0;
45489  __pyx_L1_error:;
45490  __pyx_r = NULL;
45491  __pyx_L0:;
45492  __Pyx_RefNannyFinishContext();
45493  return __pyx_r;
45494 }
45495 
45496 static PyObject *__pyx_pf_22ctransportCoefficients_240Mass_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_rho, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_p_acc, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_p_acc_p, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_dmom_w_acc_w) {
45497  PyObject *__pyx_r = NULL;
45498  __Pyx_RefNannyDeclarations
45499  PyObject *__pyx_t_1 = NULL;
45500  int __pyx_t_2;
45501  int __pyx_lineno = 0;
45502  const char *__pyx_filename = NULL;
45503  int __pyx_clineno = 0;
45504  __Pyx_RefNannySetupContext("Mass_3D_Evaluate", 0);
45505 
45506  /* "ctransportCoefficients.pyx":7992
45507  * np.ndarray dmom_v_acc_v,
45508  * np.ndarray dmom_w_acc_w):
45509  * cMass_3D_Evaluate(p.size, # <<<<<<<<<<<<<<
45510  * rho,
45511  * <double*> p.data,
45512  */
45513  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7992, __pyx_L1_error)
45514  __Pyx_GOTREF(__pyx_t_1);
45515  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7992, __pyx_L1_error)
45516  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
45517 
45518  /* "ctransportCoefficients.pyx":8005
45519  * <double*> dmom_u_acc_u.data,
45520  * <double*> dmom_v_acc_v.data,
45521  * <double*> dmom_w_acc_w.data) # <<<<<<<<<<<<<<
45522  * def TwoPhaseAdvection_2D_Evaluate(const double eps,
45523  * const double rho_0,
45524  */
45525  Mass_3D_Evaluate(__pyx_t_2, __pyx_v_rho, ((double *)__pyx_v_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_w->data), ((double *)__pyx_v_mom_p_acc->data), ((double *)__pyx_v_mom_u_acc->data), ((double *)__pyx_v_mom_v_acc->data), ((double *)__pyx_v_mom_w_acc->data), ((double *)__pyx_v_dmom_p_acc_p->data), ((double *)__pyx_v_dmom_u_acc_u->data), ((double *)__pyx_v_dmom_v_acc_v->data), ((double *)__pyx_v_dmom_w_acc_w->data));
45526 
45527  /* "ctransportCoefficients.pyx":7979
45528  * <double*> dmom_u_acc_u.data,
45529  * <double*> dmom_v_acc_v.data)
45530  * def Mass_3D_Evaluate(double rho, # <<<<<<<<<<<<<<
45531  * np.ndarray p,
45532  * np.ndarray u,
45533  */
45534 
45535  /* function exit code */
45536  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
45537  goto __pyx_L0;
45538  __pyx_L1_error:;
45539  __Pyx_XDECREF(__pyx_t_1);
45540  __Pyx_AddTraceback("ctransportCoefficients.Mass_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
45541  __pyx_r = NULL;
45542  __pyx_L0:;
45543  __Pyx_XGIVEREF(__pyx_r);
45544  __Pyx_RefNannyFinishContext();
45545  return __pyx_r;
45546 }
45547 
45548 /* "ctransportCoefficients.pyx":8006
45549  * <double*> dmom_v_acc_v.data,
45550  * <double*> dmom_w_acc_w.data)
45551  * def TwoPhaseAdvection_2D_Evaluate(const double eps, # <<<<<<<<<<<<<<
45552  * const double rho_0,
45553  * const double nu_0,
45554  */
45555 
45556 /* Python wrapper */
45557 static PyObject *__pyx_pw_22ctransportCoefficients_243TwoPhaseAdvection_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
45558 static PyMethodDef __pyx_mdef_22ctransportCoefficients_243TwoPhaseAdvection_2D_Evaluate = {"TwoPhaseAdvection_2D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_243TwoPhaseAdvection_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
45559 static PyObject *__pyx_pw_22ctransportCoefficients_243TwoPhaseAdvection_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
45560  double __pyx_v_eps;
45561  double __pyx_v_rho_0;
45562  double __pyx_v_nu_0;
45563  double __pyx_v_rho_1;
45564  double __pyx_v_nu_1;
45565  PyArrayObject *__pyx_v_phi = 0;
45566  PyArrayObject *__pyx_v_p = 0;
45567  PyArrayObject *__pyx_v_u = 0;
45568  PyArrayObject *__pyx_v_v = 0;
45569  PyArrayObject *__pyx_v_mass_adv = 0;
45570  PyArrayObject *__pyx_v_dmass_adv_p = 0;
45571  PyArrayObject *__pyx_v_dmass_adv_u = 0;
45572  PyArrayObject *__pyx_v_dmass_adv_v = 0;
45573  PyArrayObject *__pyx_v_mom_u_adv = 0;
45574  PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
45575  PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
45576  PyArrayObject *__pyx_v_mom_v_adv = 0;
45577  PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
45578  PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
45579  int __pyx_lineno = 0;
45580  const char *__pyx_filename = NULL;
45581  int __pyx_clineno = 0;
45582  PyObject *__pyx_r = 0;
45583  __Pyx_RefNannyDeclarations
45584  __Pyx_RefNannySetupContext("TwoPhaseAdvection_2D_Evaluate (wrapper)", 0);
45585  {
45586  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_phi,&__pyx_n_s_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_p,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,0};
45587  PyObject* values[19] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
45588  if (unlikely(__pyx_kwds)) {
45589  Py_ssize_t kw_args;
45590  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
45591  switch (pos_args) {
45592  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
45593  CYTHON_FALLTHROUGH;
45594  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
45595  CYTHON_FALLTHROUGH;
45596  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
45597  CYTHON_FALLTHROUGH;
45598  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
45599  CYTHON_FALLTHROUGH;
45600  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
45601  CYTHON_FALLTHROUGH;
45602  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
45603  CYTHON_FALLTHROUGH;
45604  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
45605  CYTHON_FALLTHROUGH;
45606  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
45607  CYTHON_FALLTHROUGH;
45608  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
45609  CYTHON_FALLTHROUGH;
45610  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
45611  CYTHON_FALLTHROUGH;
45612  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
45613  CYTHON_FALLTHROUGH;
45614  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
45615  CYTHON_FALLTHROUGH;
45616  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
45617  CYTHON_FALLTHROUGH;
45618  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
45619  CYTHON_FALLTHROUGH;
45620  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
45621  CYTHON_FALLTHROUGH;
45622  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
45623  CYTHON_FALLTHROUGH;
45624  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
45625  CYTHON_FALLTHROUGH;
45626  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
45627  CYTHON_FALLTHROUGH;
45628  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
45629  CYTHON_FALLTHROUGH;
45630  case 0: break;
45631  default: goto __pyx_L5_argtuple_error;
45632  }
45633  kw_args = PyDict_Size(__pyx_kwds);
45634  switch (pos_args) {
45635  case 0:
45636  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
45637  else goto __pyx_L5_argtuple_error;
45638  CYTHON_FALLTHROUGH;
45639  case 1:
45640  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
45641  else {
45642  __Pyx_RaiseArgtupleInvalid("TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 1); __PYX_ERR(0, 8006, __pyx_L3_error)
45643  }
45644  CYTHON_FALLTHROUGH;
45645  case 2:
45646  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
45647  else {
45648  __Pyx_RaiseArgtupleInvalid("TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 2); __PYX_ERR(0, 8006, __pyx_L3_error)
45649  }
45650  CYTHON_FALLTHROUGH;
45651  case 3:
45652  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
45653  else {
45654  __Pyx_RaiseArgtupleInvalid("TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 3); __PYX_ERR(0, 8006, __pyx_L3_error)
45655  }
45656  CYTHON_FALLTHROUGH;
45657  case 4:
45658  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
45659  else {
45660  __Pyx_RaiseArgtupleInvalid("TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 4); __PYX_ERR(0, 8006, __pyx_L3_error)
45661  }
45662  CYTHON_FALLTHROUGH;
45663  case 5:
45664  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
45665  else {
45666  __Pyx_RaiseArgtupleInvalid("TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 5); __PYX_ERR(0, 8006, __pyx_L3_error)
45667  }
45668  CYTHON_FALLTHROUGH;
45669  case 6:
45670  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
45671  else {
45672  __Pyx_RaiseArgtupleInvalid("TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 6); __PYX_ERR(0, 8006, __pyx_L3_error)
45673  }
45674  CYTHON_FALLTHROUGH;
45675  case 7:
45676  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
45677  else {
45678  __Pyx_RaiseArgtupleInvalid("TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 7); __PYX_ERR(0, 8006, __pyx_L3_error)
45679  }
45680  CYTHON_FALLTHROUGH;
45681  case 8:
45682  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
45683  else {
45684  __Pyx_RaiseArgtupleInvalid("TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 8); __PYX_ERR(0, 8006, __pyx_L3_error)
45685  }
45686  CYTHON_FALLTHROUGH;
45687  case 9:
45688  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
45689  else {
45690  __Pyx_RaiseArgtupleInvalid("TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 9); __PYX_ERR(0, 8006, __pyx_L3_error)
45691  }
45692  CYTHON_FALLTHROUGH;
45693  case 10:
45694  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_p)) != 0)) kw_args--;
45695  else {
45696  __Pyx_RaiseArgtupleInvalid("TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 10); __PYX_ERR(0, 8006, __pyx_L3_error)
45697  }
45698  CYTHON_FALLTHROUGH;
45699  case 11:
45700  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
45701  else {
45702  __Pyx_RaiseArgtupleInvalid("TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 11); __PYX_ERR(0, 8006, __pyx_L3_error)
45703  }
45704  CYTHON_FALLTHROUGH;
45705  case 12:
45706  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
45707  else {
45708  __Pyx_RaiseArgtupleInvalid("TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 12); __PYX_ERR(0, 8006, __pyx_L3_error)
45709  }
45710  CYTHON_FALLTHROUGH;
45711  case 13:
45712  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
45713  else {
45714  __Pyx_RaiseArgtupleInvalid("TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 13); __PYX_ERR(0, 8006, __pyx_L3_error)
45715  }
45716  CYTHON_FALLTHROUGH;
45717  case 14:
45718  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
45719  else {
45720  __Pyx_RaiseArgtupleInvalid("TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 14); __PYX_ERR(0, 8006, __pyx_L3_error)
45721  }
45722  CYTHON_FALLTHROUGH;
45723  case 15:
45724  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
45725  else {
45726  __Pyx_RaiseArgtupleInvalid("TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 15); __PYX_ERR(0, 8006, __pyx_L3_error)
45727  }
45728  CYTHON_FALLTHROUGH;
45729  case 16:
45730  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
45731  else {
45732  __Pyx_RaiseArgtupleInvalid("TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 16); __PYX_ERR(0, 8006, __pyx_L3_error)
45733  }
45734  CYTHON_FALLTHROUGH;
45735  case 17:
45736  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
45737  else {
45738  __Pyx_RaiseArgtupleInvalid("TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 17); __PYX_ERR(0, 8006, __pyx_L3_error)
45739  }
45740  CYTHON_FALLTHROUGH;
45741  case 18:
45742  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
45743  else {
45744  __Pyx_RaiseArgtupleInvalid("TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 18); __PYX_ERR(0, 8006, __pyx_L3_error)
45745  }
45746  }
45747  if (unlikely(kw_args > 0)) {
45748  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "TwoPhaseAdvection_2D_Evaluate") < 0)) __PYX_ERR(0, 8006, __pyx_L3_error)
45749  }
45750  } else if (PyTuple_GET_SIZE(__pyx_args) != 19) {
45751  goto __pyx_L5_argtuple_error;
45752  } else {
45753  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
45754  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
45755  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
45756  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
45757  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
45758  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
45759  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
45760  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
45761  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
45762  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
45763  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
45764  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
45765  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
45766  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
45767  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
45768  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
45769  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
45770  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
45771  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
45772  }
45773  __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8006, __pyx_L3_error)
45774  __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_rho_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8007, __pyx_L3_error)
45775  __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_nu_0 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8008, __pyx_L3_error)
45776  __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_rho_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8009, __pyx_L3_error)
45777  __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_nu_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8010, __pyx_L3_error)
45778  __pyx_v_phi = ((PyArrayObject *)values[5]);
45779  __pyx_v_p = ((PyArrayObject *)values[6]);
45780  __pyx_v_u = ((PyArrayObject *)values[7]);
45781  __pyx_v_v = ((PyArrayObject *)values[8]);
45782  __pyx_v_mass_adv = ((PyArrayObject *)values[9]);
45783  __pyx_v_dmass_adv_p = ((PyArrayObject *)values[10]);
45784  __pyx_v_dmass_adv_u = ((PyArrayObject *)values[11]);
45785  __pyx_v_dmass_adv_v = ((PyArrayObject *)values[12]);
45786  __pyx_v_mom_u_adv = ((PyArrayObject *)values[13]);
45787  __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[14]);
45788  __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[15]);
45789  __pyx_v_mom_v_adv = ((PyArrayObject *)values[16]);
45790  __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[17]);
45791  __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[18]);
45792  }
45793  goto __pyx_L4_argument_unpacking_done;
45794  __pyx_L5_argtuple_error:;
45795  __Pyx_RaiseArgtupleInvalid("TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8006, __pyx_L3_error)
45796  __pyx_L3_error:;
45797  __Pyx_AddTraceback("ctransportCoefficients.TwoPhaseAdvection_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
45798  __Pyx_RefNannyFinishContext();
45799  return NULL;
45800  __pyx_L4_argument_unpacking_done:;
45801  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 8011, __pyx_L1_error)
45802  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 8012, __pyx_L1_error)
45803  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 8013, __pyx_L1_error)
45804  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 8014, __pyx_L1_error)
45805  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1, "mass_adv", 0))) __PYX_ERR(0, 8015, __pyx_L1_error)
45806  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_p), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_p", 0))) __PYX_ERR(0, 8016, __pyx_L1_error)
45807  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_u", 0))) __PYX_ERR(0, 8017, __pyx_L1_error)
45808  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmass_adv_v", 0))) __PYX_ERR(0, 8018, __pyx_L1_error)
45809  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_u_adv", 0))) __PYX_ERR(0, 8019, __pyx_L1_error)
45810  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_u", 0))) __PYX_ERR(0, 8020, __pyx_L1_error)
45811  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_u_adv_v", 0))) __PYX_ERR(0, 8021, __pyx_L1_error)
45812  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1, "mom_v_adv", 0))) __PYX_ERR(0, 8022, __pyx_L1_error)
45813  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_u", 0))) __PYX_ERR(0, 8023, __pyx_L1_error)
45814  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1, "dmom_v_adv_v", 0))) __PYX_ERR(0, 8024, __pyx_L1_error)
45815  __pyx_r = __pyx_pf_22ctransportCoefficients_242TwoPhaseAdvection_2D_Evaluate(__pyx_self, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_phi, __pyx_v_p, __pyx_v_u, __pyx_v_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_p, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v);
45816 
45817  /* function exit code */
45818  goto __pyx_L0;
45819  __pyx_L1_error:;
45820  __pyx_r = NULL;
45821  __pyx_L0:;
45822  __Pyx_RefNannyFinishContext();
45823  return __pyx_r;
45824 }
45825 
45826 static PyObject *__pyx_pf_22ctransportCoefficients_242TwoPhaseAdvection_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, double __pyx_v_rho_0, double __pyx_v_nu_0, double __pyx_v_rho_1, double __pyx_v_nu_1, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_p, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v) {
45827  PyObject *__pyx_r = NULL;
45828  __Pyx_RefNannyDeclarations
45829  PyObject *__pyx_t_1 = NULL;
45830  int __pyx_t_2;
45831  int __pyx_lineno = 0;
45832  const char *__pyx_filename = NULL;
45833  int __pyx_clineno = 0;
45834  __Pyx_RefNannySetupContext("TwoPhaseAdvection_2D_Evaluate", 0);
45835 
45836  /* "ctransportCoefficients.pyx":8025
45837  * np.ndarray dmom_v_adv_u,
45838  * np.ndarray dmom_v_adv_v):
45839  * cTwoPhaseAdvection_2D_Evaluate(p.size, # <<<<<<<<<<<<<<
45840  * eps,
45841  * rho_0,
45842  */
45843  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8025, __pyx_L1_error)
45844  __Pyx_GOTREF(__pyx_t_1);
45845  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8025, __pyx_L1_error)
45846  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
45847 
45848  /* "ctransportCoefficients.pyx":8044
45849  * <double*> mom_v_adv.data,
45850  * <double*> dmom_v_adv_u.data,
45851  * <double*> dmom_v_adv_v.data) # <<<<<<<<<<<<<<
45852  * def twophaseSignedDistanceUpdateSignFunction(int nPoints,
45853  * double eps,
45854  */
45855  TwoPhaseAdvection_2D_Evaluate(__pyx_t_2, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((double *)__pyx_v_phi->data), ((double *)__pyx_v_p->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_v->data), ((double *)__pyx_v_mass_adv->data), ((double *)__pyx_v_dmass_adv_p->data), ((double *)__pyx_v_dmass_adv_u->data), ((double *)__pyx_v_dmass_adv_v->data), ((double *)__pyx_v_mom_u_adv->data), ((double *)__pyx_v_dmom_u_adv_u->data), ((double *)__pyx_v_dmom_u_adv_v->data), ((double *)__pyx_v_mom_v_adv->data), ((double *)__pyx_v_dmom_v_adv_u->data), ((double *)__pyx_v_dmom_v_adv_v->data));
45856 
45857  /* "ctransportCoefficients.pyx":8006
45858  * <double*> dmom_v_acc_v.data,
45859  * <double*> dmom_w_acc_w.data)
45860  * def TwoPhaseAdvection_2D_Evaluate(const double eps, # <<<<<<<<<<<<<<
45861  * const double rho_0,
45862  * const double nu_0,
45863  */
45864 
45865  /* function exit code */
45866  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
45867  goto __pyx_L0;
45868  __pyx_L1_error:;
45869  __Pyx_XDECREF(__pyx_t_1);
45870  __Pyx_AddTraceback("ctransportCoefficients.TwoPhaseAdvection_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
45871  __pyx_r = NULL;
45872  __pyx_L0:;
45873  __Pyx_XGIVEREF(__pyx_r);
45874  __Pyx_RefNannyFinishContext();
45875  return __pyx_r;
45876 }
45877 
45878 /* "ctransportCoefficients.pyx":8045
45879  * <double*> dmom_v_adv_u.data,
45880  * <double*> dmom_v_adv_v.data)
45881  * def twophaseSignedDistanceUpdateSignFunction(int nPoints, # <<<<<<<<<<<<<<
45882  * double eps,
45883  * np.ndarray u_levelSet,
45884  */
45885 
45886 /* Python wrapper */
45887 static PyObject *__pyx_pw_22ctransportCoefficients_245twophaseSignedDistanceUpdateSignFunction(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
45888 static PyMethodDef __pyx_mdef_22ctransportCoefficients_245twophaseSignedDistanceUpdateSignFunction = {"twophaseSignedDistanceUpdateSignFunction", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_245twophaseSignedDistanceUpdateSignFunction, METH_VARARGS|METH_KEYWORDS, 0};
45889 static PyObject *__pyx_pw_22ctransportCoefficients_245twophaseSignedDistanceUpdateSignFunction(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
45890  int __pyx_v_nPoints;
45891  double __pyx_v_eps;
45892  PyArrayObject *__pyx_v_u_levelSet = 0;
45893  PyArrayObject *__pyx_v_S = 0;
45894  int __pyx_lineno = 0;
45895  const char *__pyx_filename = NULL;
45896  int __pyx_clineno = 0;
45897  PyObject *__pyx_r = 0;
45898  __Pyx_RefNannyDeclarations
45899  __Pyx_RefNannySetupContext("twophaseSignedDistanceUpdateSignFunction (wrapper)", 0);
45900  {
45901  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nPoints,&__pyx_n_s_eps,&__pyx_n_s_u_levelSet,&__pyx_n_s_S,0};
45902  PyObject* values[4] = {0,0,0,0};
45903  if (unlikely(__pyx_kwds)) {
45904  Py_ssize_t kw_args;
45905  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
45906  switch (pos_args) {
45907  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
45908  CYTHON_FALLTHROUGH;
45909  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
45910  CYTHON_FALLTHROUGH;
45911  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
45912  CYTHON_FALLTHROUGH;
45913  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
45914  CYTHON_FALLTHROUGH;
45915  case 0: break;
45916  default: goto __pyx_L5_argtuple_error;
45917  }
45918  kw_args = PyDict_Size(__pyx_kwds);
45919  switch (pos_args) {
45920  case 0:
45921  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPoints)) != 0)) kw_args--;
45922  else goto __pyx_L5_argtuple_error;
45923  CYTHON_FALLTHROUGH;
45924  case 1:
45925  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
45926  else {
45927  __Pyx_RaiseArgtupleInvalid("twophaseSignedDistanceUpdateSignFunction", 1, 4, 4, 1); __PYX_ERR(0, 8045, __pyx_L3_error)
45928  }
45929  CYTHON_FALLTHROUGH;
45930  case 2:
45931  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_levelSet)) != 0)) kw_args--;
45932  else {
45933  __Pyx_RaiseArgtupleInvalid("twophaseSignedDistanceUpdateSignFunction", 1, 4, 4, 2); __PYX_ERR(0, 8045, __pyx_L3_error)
45934  }
45935  CYTHON_FALLTHROUGH;
45936  case 3:
45937  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_S)) != 0)) kw_args--;
45938  else {
45939  __Pyx_RaiseArgtupleInvalid("twophaseSignedDistanceUpdateSignFunction", 1, 4, 4, 3); __PYX_ERR(0, 8045, __pyx_L3_error)
45940  }
45941  }
45942  if (unlikely(kw_args > 0)) {
45943  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "twophaseSignedDistanceUpdateSignFunction") < 0)) __PYX_ERR(0, 8045, __pyx_L3_error)
45944  }
45945  } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
45946  goto __pyx_L5_argtuple_error;
45947  } else {
45948  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
45949  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
45950  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
45951  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
45952  }
45953  __pyx_v_nPoints = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_nPoints == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8045, __pyx_L3_error)
45954  __pyx_v_eps = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8046, __pyx_L3_error)
45955  __pyx_v_u_levelSet = ((PyArrayObject *)values[2]);
45956  __pyx_v_S = ((PyArrayObject *)values[3]);
45957  }
45958  goto __pyx_L4_argument_unpacking_done;
45959  __pyx_L5_argtuple_error:;
45960  __Pyx_RaiseArgtupleInvalid("twophaseSignedDistanceUpdateSignFunction", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8045, __pyx_L3_error)
45961  __pyx_L3_error:;
45962  __Pyx_AddTraceback("ctransportCoefficients.twophaseSignedDistanceUpdateSignFunction", __pyx_clineno, __pyx_lineno, __pyx_filename);
45963  __Pyx_RefNannyFinishContext();
45964  return NULL;
45965  __pyx_L4_argument_unpacking_done:;
45966  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_levelSet), __pyx_ptype_5numpy_ndarray, 1, "u_levelSet", 0))) __PYX_ERR(0, 8047, __pyx_L1_error)
45967  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_S), __pyx_ptype_5numpy_ndarray, 1, "S", 0))) __PYX_ERR(0, 8048, __pyx_L1_error)
45968  __pyx_r = __pyx_pf_22ctransportCoefficients_244twophaseSignedDistanceUpdateSignFunction(__pyx_self, __pyx_v_nPoints, __pyx_v_eps, __pyx_v_u_levelSet, __pyx_v_S);
45969 
45970  /* function exit code */
45971  goto __pyx_L0;
45972  __pyx_L1_error:;
45973  __pyx_r = NULL;
45974  __pyx_L0:;
45975  __Pyx_RefNannyFinishContext();
45976  return __pyx_r;
45977 }
45978 
45979 static PyObject *__pyx_pf_22ctransportCoefficients_244twophaseSignedDistanceUpdateSignFunction(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nPoints, double __pyx_v_eps, PyArrayObject *__pyx_v_u_levelSet, PyArrayObject *__pyx_v_S) {
45980  PyObject *__pyx_r = NULL;
45981  __Pyx_RefNannyDeclarations
45982  __Pyx_RefNannySetupContext("twophaseSignedDistanceUpdateSignFunction", 0);
45983 
45984  /* "ctransportCoefficients.pyx":8049
45985  * np.ndarray u_levelSet,
45986  * np.ndarray S):
45987  * ctwophaseSignedDistanceCoefficientsUpdateSignFunction( nPoints, # <<<<<<<<<<<<<<
45988  * eps,
45989  * <double*> u_levelSet.data,
45990  */
45991  twophaseSignedDistanceCoefficientsUpdateSignFunction(__pyx_v_nPoints, __pyx_v_eps, ((double *)__pyx_v_u_levelSet->data), ((double *)__pyx_v_S->data));
45992 
45993  /* "ctransportCoefficients.pyx":8045
45994  * <double*> dmom_v_adv_u.data,
45995  * <double*> dmom_v_adv_v.data)
45996  * def twophaseSignedDistanceUpdateSignFunction(int nPoints, # <<<<<<<<<<<<<<
45997  * double eps,
45998  * np.ndarray u_levelSet,
45999  */
46000 
46001  /* function exit code */
46002  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
46003  __Pyx_XGIVEREF(__pyx_r);
46004  __Pyx_RefNannyFinishContext();
46005  return __pyx_r;
46006 }
46007 
46008 /* "ctransportCoefficients.pyx":8053
46009  * <double*> u_levelSet.data,
46010  * <double*> S.data)
46011  * def Laplace_2D_Evaluate(np.ndarray p, # <<<<<<<<<<<<<<
46012  * np.ndarray u,
46013  * np.ndarray v,
46014  */
46015 
46016 /* Python wrapper */
46017 static PyObject *__pyx_pw_22ctransportCoefficients_247Laplace_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
46018 static PyMethodDef __pyx_mdef_22ctransportCoefficients_247Laplace_2D_Evaluate = {"Laplace_2D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_247Laplace_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
46019 static PyObject *__pyx_pw_22ctransportCoefficients_247Laplace_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
46020  PyArrayObject *__pyx_v_p = 0;
46021  CYTHON_UNUSED PyArrayObject *__pyx_v_u = 0;
46022  CYTHON_UNUSED PyArrayObject *__pyx_v_v = 0;
46023  CYTHON_UNUSED PyArrayObject *__pyx_v_w = 0;
46024  PyArrayObject *__pyx_v_mom_p_diff_ten = 0;
46025  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
46026  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
46027  int __pyx_lineno = 0;
46028  const char *__pyx_filename = NULL;
46029  int __pyx_clineno = 0;
46030  PyObject *__pyx_r = 0;
46031  __Pyx_RefNannyDeclarations
46032  __Pyx_RefNannySetupContext("Laplace_2D_Evaluate (wrapper)", 0);
46033  {
46034  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_mom_p_diff_ten,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,0};
46035  PyObject* values[7] = {0,0,0,0,0,0,0};
46036  if (unlikely(__pyx_kwds)) {
46037  Py_ssize_t kw_args;
46038  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
46039  switch (pos_args) {
46040  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
46041  CYTHON_FALLTHROUGH;
46042  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
46043  CYTHON_FALLTHROUGH;
46044  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
46045  CYTHON_FALLTHROUGH;
46046  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
46047  CYTHON_FALLTHROUGH;
46048  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46049  CYTHON_FALLTHROUGH;
46050  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46051  CYTHON_FALLTHROUGH;
46052  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46053  CYTHON_FALLTHROUGH;
46054  case 0: break;
46055  default: goto __pyx_L5_argtuple_error;
46056  }
46057  kw_args = PyDict_Size(__pyx_kwds);
46058  switch (pos_args) {
46059  case 0:
46060  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
46061  else goto __pyx_L5_argtuple_error;
46062  CYTHON_FALLTHROUGH;
46063  case 1:
46064  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
46065  else {
46066  __Pyx_RaiseArgtupleInvalid("Laplace_2D_Evaluate", 1, 7, 7, 1); __PYX_ERR(0, 8053, __pyx_L3_error)
46067  }
46068  CYTHON_FALLTHROUGH;
46069  case 2:
46070  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
46071  else {
46072  __Pyx_RaiseArgtupleInvalid("Laplace_2D_Evaluate", 1, 7, 7, 2); __PYX_ERR(0, 8053, __pyx_L3_error)
46073  }
46074  CYTHON_FALLTHROUGH;
46075  case 3:
46076  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
46077  else {
46078  __Pyx_RaiseArgtupleInvalid("Laplace_2D_Evaluate", 1, 7, 7, 3); __PYX_ERR(0, 8053, __pyx_L3_error)
46079  }
46080  CYTHON_FALLTHROUGH;
46081  case 4:
46082  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_p_diff_ten)) != 0)) kw_args--;
46083  else {
46084  __Pyx_RaiseArgtupleInvalid("Laplace_2D_Evaluate", 1, 7, 7, 4); __PYX_ERR(0, 8053, __pyx_L3_error)
46085  }
46086  CYTHON_FALLTHROUGH;
46087  case 5:
46088  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
46089  else {
46090  __Pyx_RaiseArgtupleInvalid("Laplace_2D_Evaluate", 1, 7, 7, 5); __PYX_ERR(0, 8053, __pyx_L3_error)
46091  }
46092  CYTHON_FALLTHROUGH;
46093  case 6:
46094  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
46095  else {
46096  __Pyx_RaiseArgtupleInvalid("Laplace_2D_Evaluate", 1, 7, 7, 6); __PYX_ERR(0, 8053, __pyx_L3_error)
46097  }
46098  }
46099  if (unlikely(kw_args > 0)) {
46100  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "Laplace_2D_Evaluate") < 0)) __PYX_ERR(0, 8053, __pyx_L3_error)
46101  }
46102  } else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
46103  goto __pyx_L5_argtuple_error;
46104  } else {
46105  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46106  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46107  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46108  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
46109  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
46110  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
46111  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
46112  }
46113  __pyx_v_p = ((PyArrayObject *)values[0]);
46114  __pyx_v_u = ((PyArrayObject *)values[1]);
46115  __pyx_v_v = ((PyArrayObject *)values[2]);
46116  __pyx_v_w = ((PyArrayObject *)values[3]);
46117  __pyx_v_mom_p_diff_ten = ((PyArrayObject *)values[4]);
46118  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[5]);
46119  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[6]);
46120  }
46121  goto __pyx_L4_argument_unpacking_done;
46122  __pyx_L5_argtuple_error:;
46123  __Pyx_RaiseArgtupleInvalid("Laplace_2D_Evaluate", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8053, __pyx_L3_error)
46124  __pyx_L3_error:;
46125  __Pyx_AddTraceback("ctransportCoefficients.Laplace_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
46126  __Pyx_RefNannyFinishContext();
46127  return NULL;
46128  __pyx_L4_argument_unpacking_done:;
46129  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 8053, __pyx_L1_error)
46130  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 8054, __pyx_L1_error)
46131  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 8055, __pyx_L1_error)
46132  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1, "w", 0))) __PYX_ERR(0, 8056, __pyx_L1_error)
46133  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_p_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_p_diff_ten", 0))) __PYX_ERR(0, 8057, __pyx_L1_error)
46134  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 8058, __pyx_L1_error)
46135  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 8059, __pyx_L1_error)
46136  __pyx_r = __pyx_pf_22ctransportCoefficients_246Laplace_2D_Evaluate(__pyx_self, __pyx_v_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_mom_p_diff_ten, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten);
46137 
46138  /* function exit code */
46139  goto __pyx_L0;
46140  __pyx_L1_error:;
46141  __pyx_r = NULL;
46142  __pyx_L0:;
46143  __Pyx_RefNannyFinishContext();
46144  return __pyx_r;
46145 }
46146 
46147 static PyObject *__pyx_pf_22ctransportCoefficients_246Laplace_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_p, CYTHON_UNUSED PyArrayObject *__pyx_v_u, CYTHON_UNUSED PyArrayObject *__pyx_v_v, CYTHON_UNUSED PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_p_diff_ten, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten) {
46148  PyObject *__pyx_r = NULL;
46149  __Pyx_RefNannyDeclarations
46150  PyObject *__pyx_t_1 = NULL;
46151  int __pyx_t_2;
46152  int __pyx_lineno = 0;
46153  const char *__pyx_filename = NULL;
46154  int __pyx_clineno = 0;
46155  __Pyx_RefNannySetupContext("Laplace_2D_Evaluate", 0);
46156 
46157  /* "ctransportCoefficients.pyx":8060
46158  * np.ndarray mom_u_diff_ten,
46159  * np.ndarray mom_v_diff_ten):
46160  * cLaplace_Evaluate2D(p.size, # <<<<<<<<<<<<<<
46161  * <double*> mom_p_diff_ten.data,
46162  * <double*> mom_u_diff_ten.data,
46163  */
46164  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8060, __pyx_L1_error)
46165  __Pyx_GOTREF(__pyx_t_1);
46166  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8060, __pyx_L1_error)
46167  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
46168 
46169  /* "ctransportCoefficients.pyx":8063
46170  * <double*> mom_p_diff_ten.data,
46171  * <double*> mom_u_diff_ten.data,
46172  * <double*> mom_v_diff_ten.data) # <<<<<<<<<<<<<<
46173  * def Laplace_3D_Evaluate(np.ndarray p,
46174  * np.ndarray u,
46175  */
46176  Laplace_Evaluate2D(__pyx_t_2, ((double *)__pyx_v_mom_p_diff_ten->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data));
46177 
46178  /* "ctransportCoefficients.pyx":8053
46179  * <double*> u_levelSet.data,
46180  * <double*> S.data)
46181  * def Laplace_2D_Evaluate(np.ndarray p, # <<<<<<<<<<<<<<
46182  * np.ndarray u,
46183  * np.ndarray v,
46184  */
46185 
46186  /* function exit code */
46187  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
46188  goto __pyx_L0;
46189  __pyx_L1_error:;
46190  __Pyx_XDECREF(__pyx_t_1);
46191  __Pyx_AddTraceback("ctransportCoefficients.Laplace_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
46192  __pyx_r = NULL;
46193  __pyx_L0:;
46194  __Pyx_XGIVEREF(__pyx_r);
46195  __Pyx_RefNannyFinishContext();
46196  return __pyx_r;
46197 }
46198 
46199 /* "ctransportCoefficients.pyx":8064
46200  * <double*> mom_u_diff_ten.data,
46201  * <double*> mom_v_diff_ten.data)
46202  * def Laplace_3D_Evaluate(np.ndarray p, # <<<<<<<<<<<<<<
46203  * np.ndarray u,
46204  * np.ndarray v,
46205  */
46206 
46207 /* Python wrapper */
46208 static PyObject *__pyx_pw_22ctransportCoefficients_249Laplace_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
46209 static PyMethodDef __pyx_mdef_22ctransportCoefficients_249Laplace_3D_Evaluate = {"Laplace_3D_Evaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_249Laplace_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
46210 static PyObject *__pyx_pw_22ctransportCoefficients_249Laplace_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
46211  PyArrayObject *__pyx_v_p = 0;
46212  CYTHON_UNUSED PyArrayObject *__pyx_v_u = 0;
46213  CYTHON_UNUSED PyArrayObject *__pyx_v_v = 0;
46214  CYTHON_UNUSED PyArrayObject *__pyx_v_w = 0;
46215  PyArrayObject *__pyx_v_mom_p_diff_ten = 0;
46216  PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
46217  PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
46218  PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
46219  int __pyx_lineno = 0;
46220  const char *__pyx_filename = NULL;
46221  int __pyx_clineno = 0;
46222  PyObject *__pyx_r = 0;
46223  __Pyx_RefNannyDeclarations
46224  __Pyx_RefNannySetupContext("Laplace_3D_Evaluate (wrapper)", 0);
46225  {
46226  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_mom_p_diff_ten,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,0};
46227  PyObject* values[8] = {0,0,0,0,0,0,0,0};
46228  if (unlikely(__pyx_kwds)) {
46229  Py_ssize_t kw_args;
46230  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
46231  switch (pos_args) {
46232  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
46233  CYTHON_FALLTHROUGH;
46234  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
46235  CYTHON_FALLTHROUGH;
46236  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
46237  CYTHON_FALLTHROUGH;
46238  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
46239  CYTHON_FALLTHROUGH;
46240  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
46241  CYTHON_FALLTHROUGH;
46242  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46243  CYTHON_FALLTHROUGH;
46244  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46245  CYTHON_FALLTHROUGH;
46246  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46247  CYTHON_FALLTHROUGH;
46248  case 0: break;
46249  default: goto __pyx_L5_argtuple_error;
46250  }
46251  kw_args = PyDict_Size(__pyx_kwds);
46252  switch (pos_args) {
46253  case 0:
46254  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
46255  else goto __pyx_L5_argtuple_error;
46256  CYTHON_FALLTHROUGH;
46257  case 1:
46258  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
46259  else {
46260  __Pyx_RaiseArgtupleInvalid("Laplace_3D_Evaluate", 1, 8, 8, 1); __PYX_ERR(0, 8064, __pyx_L3_error)
46261  }
46262  CYTHON_FALLTHROUGH;
46263  case 2:
46264  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
46265  else {
46266  __Pyx_RaiseArgtupleInvalid("Laplace_3D_Evaluate", 1, 8, 8, 2); __PYX_ERR(0, 8064, __pyx_L3_error)
46267  }
46268  CYTHON_FALLTHROUGH;
46269  case 3:
46270  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
46271  else {
46272  __Pyx_RaiseArgtupleInvalid("Laplace_3D_Evaluate", 1, 8, 8, 3); __PYX_ERR(0, 8064, __pyx_L3_error)
46273  }
46274  CYTHON_FALLTHROUGH;
46275  case 4:
46276  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_p_diff_ten)) != 0)) kw_args--;
46277  else {
46278  __Pyx_RaiseArgtupleInvalid("Laplace_3D_Evaluate", 1, 8, 8, 4); __PYX_ERR(0, 8064, __pyx_L3_error)
46279  }
46280  CYTHON_FALLTHROUGH;
46281  case 5:
46282  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
46283  else {
46284  __Pyx_RaiseArgtupleInvalid("Laplace_3D_Evaluate", 1, 8, 8, 5); __PYX_ERR(0, 8064, __pyx_L3_error)
46285  }
46286  CYTHON_FALLTHROUGH;
46287  case 6:
46288  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
46289  else {
46290  __Pyx_RaiseArgtupleInvalid("Laplace_3D_Evaluate", 1, 8, 8, 6); __PYX_ERR(0, 8064, __pyx_L3_error)
46291  }
46292  CYTHON_FALLTHROUGH;
46293  case 7:
46294  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
46295  else {
46296  __Pyx_RaiseArgtupleInvalid("Laplace_3D_Evaluate", 1, 8, 8, 7); __PYX_ERR(0, 8064, __pyx_L3_error)
46297  }
46298  }
46299  if (unlikely(kw_args > 0)) {
46300  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "Laplace_3D_Evaluate") < 0)) __PYX_ERR(0, 8064, __pyx_L3_error)
46301  }
46302  } else if (PyTuple_GET_SIZE(__pyx_args) != 8) {
46303  goto __pyx_L5_argtuple_error;
46304  } else {
46305  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46306  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46307  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46308  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
46309  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
46310  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
46311  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
46312  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
46313  }
46314  __pyx_v_p = ((PyArrayObject *)values[0]);
46315  __pyx_v_u = ((PyArrayObject *)values[1]);
46316  __pyx_v_v = ((PyArrayObject *)values[2]);
46317  __pyx_v_w = ((PyArrayObject *)values[3]);
46318  __pyx_v_mom_p_diff_ten = ((PyArrayObject *)values[4]);
46319  __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[5]);
46320  __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[6]);
46321  __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[7]);
46322  }
46323  goto __pyx_L4_argument_unpacking_done;
46324  __pyx_L5_argtuple_error:;
46325  __Pyx_RaiseArgtupleInvalid("Laplace_3D_Evaluate", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8064, __pyx_L3_error)
46326  __pyx_L3_error:;
46327  __Pyx_AddTraceback("ctransportCoefficients.Laplace_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
46328  __Pyx_RefNannyFinishContext();
46329  return NULL;
46330  __pyx_L4_argument_unpacking_done:;
46331  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1, "p", 0))) __PYX_ERR(0, 8064, __pyx_L1_error)
46332  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 8065, __pyx_L1_error)
46333  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1, "v", 0))) __PYX_ERR(0, 8066, __pyx_L1_error)
46334  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1, "w", 0))) __PYX_ERR(0, 8067, __pyx_L1_error)
46335  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_p_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_p_diff_ten", 0))) __PYX_ERR(0, 8068, __pyx_L1_error)
46336  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_u_diff_ten", 0))) __PYX_ERR(0, 8069, __pyx_L1_error)
46337  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_v_diff_ten", 0))) __PYX_ERR(0, 8070, __pyx_L1_error)
46338  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1, "mom_w_diff_ten", 0))) __PYX_ERR(0, 8071, __pyx_L1_error)
46339  __pyx_r = __pyx_pf_22ctransportCoefficients_248Laplace_3D_Evaluate(__pyx_self, __pyx_v_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_mom_p_diff_ten, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten);
46340 
46341  /* function exit code */
46342  goto __pyx_L0;
46343  __pyx_L1_error:;
46344  __pyx_r = NULL;
46345  __pyx_L0:;
46346  __Pyx_RefNannyFinishContext();
46347  return __pyx_r;
46348 }
46349 
46350 static PyObject *__pyx_pf_22ctransportCoefficients_248Laplace_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_p, CYTHON_UNUSED PyArrayObject *__pyx_v_u, CYTHON_UNUSED PyArrayObject *__pyx_v_v, CYTHON_UNUSED PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_p_diff_ten, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten) {
46351  PyObject *__pyx_r = NULL;
46352  __Pyx_RefNannyDeclarations
46353  PyObject *__pyx_t_1 = NULL;
46354  int __pyx_t_2;
46355  int __pyx_lineno = 0;
46356  const char *__pyx_filename = NULL;
46357  int __pyx_clineno = 0;
46358  __Pyx_RefNannySetupContext("Laplace_3D_Evaluate", 0);
46359 
46360  /* "ctransportCoefficients.pyx":8072
46361  * np.ndarray mom_v_diff_ten,
46362  * np.ndarray mom_w_diff_ten):
46363  * cLaplace_Evaluate3D(p.size, # <<<<<<<<<<<<<<
46364  * <double*> mom_p_diff_ten.data,
46365  * <double*> mom_u_diff_ten.data,
46366  */
46367  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8072, __pyx_L1_error)
46368  __Pyx_GOTREF(__pyx_t_1);
46369  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8072, __pyx_L1_error)
46370  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
46371 
46372  /* "ctransportCoefficients.pyx":8076
46373  * <double*> mom_u_diff_ten.data,
46374  * <double*> mom_v_diff_ten.data,
46375  * <double*> mom_w_diff_ten.data) # <<<<<<<<<<<<<<
46376  * def l2projectScalar(const int nSimplices,
46377  * const int nPointsPerSimplex,
46378  */
46379  Laplace_Evaluate3D(__pyx_t_2, ((double *)__pyx_v_mom_p_diff_ten->data), ((double *)__pyx_v_mom_u_diff_ten->data), ((double *)__pyx_v_mom_v_diff_ten->data), ((double *)__pyx_v_mom_w_diff_ten->data));
46380 
46381  /* "ctransportCoefficients.pyx":8064
46382  * <double*> mom_u_diff_ten.data,
46383  * <double*> mom_v_diff_ten.data)
46384  * def Laplace_3D_Evaluate(np.ndarray p, # <<<<<<<<<<<<<<
46385  * np.ndarray u,
46386  * np.ndarray v,
46387  */
46388 
46389  /* function exit code */
46390  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
46391  goto __pyx_L0;
46392  __pyx_L1_error:;
46393  __Pyx_XDECREF(__pyx_t_1);
46394  __Pyx_AddTraceback("ctransportCoefficients.Laplace_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
46395  __pyx_r = NULL;
46396  __pyx_L0:;
46397  __Pyx_XGIVEREF(__pyx_r);
46398  __Pyx_RefNannyFinishContext();
46399  return __pyx_r;
46400 }
46401 
46402 /* "ctransportCoefficients.pyx":8077
46403  * <double*> mom_v_diff_ten.data,
46404  * <double*> mom_w_diff_ten.data)
46405  * def l2projectScalar(const int nSimplices, # <<<<<<<<<<<<<<
46406  * const int nPointsPerSimplex,
46407  * np.ndarray dV,
46408  */
46409 
46410 /* Python wrapper */
46411 static PyObject *__pyx_pw_22ctransportCoefficients_251l2projectScalar(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
46412 static PyMethodDef __pyx_mdef_22ctransportCoefficients_251l2projectScalar = {"l2projectScalar", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_251l2projectScalar, METH_VARARGS|METH_KEYWORDS, 0};
46413 static PyObject *__pyx_pw_22ctransportCoefficients_251l2projectScalar(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
46414  int __pyx_v_nSimplices;
46415  int __pyx_v_nPointsPerSimplex;
46416  PyArrayObject *__pyx_v_dV = 0;
46417  PyArrayObject *__pyx_v_r = 0;
46418  int __pyx_lineno = 0;
46419  const char *__pyx_filename = NULL;
46420  int __pyx_clineno = 0;
46421  PyObject *__pyx_r = 0;
46422  __Pyx_RefNannyDeclarations
46423  __Pyx_RefNannySetupContext("l2projectScalar (wrapper)", 0);
46424  {
46425  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nSimplices,&__pyx_n_s_nPointsPerSimplex,&__pyx_n_s_dV,&__pyx_n_s_r,0};
46426  PyObject* values[4] = {0,0,0,0};
46427  if (unlikely(__pyx_kwds)) {
46428  Py_ssize_t kw_args;
46429  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
46430  switch (pos_args) {
46431  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
46432  CYTHON_FALLTHROUGH;
46433  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46434  CYTHON_FALLTHROUGH;
46435  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46436  CYTHON_FALLTHROUGH;
46437  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46438  CYTHON_FALLTHROUGH;
46439  case 0: break;
46440  default: goto __pyx_L5_argtuple_error;
46441  }
46442  kw_args = PyDict_Size(__pyx_kwds);
46443  switch (pos_args) {
46444  case 0:
46445  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSimplices)) != 0)) kw_args--;
46446  else goto __pyx_L5_argtuple_error;
46447  CYTHON_FALLTHROUGH;
46448  case 1:
46449  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPointsPerSimplex)) != 0)) kw_args--;
46450  else {
46451  __Pyx_RaiseArgtupleInvalid("l2projectScalar", 1, 4, 4, 1); __PYX_ERR(0, 8077, __pyx_L3_error)
46452  }
46453  CYTHON_FALLTHROUGH;
46454  case 2:
46455  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dV)) != 0)) kw_args--;
46456  else {
46457  __Pyx_RaiseArgtupleInvalid("l2projectScalar", 1, 4, 4, 2); __PYX_ERR(0, 8077, __pyx_L3_error)
46458  }
46459  CYTHON_FALLTHROUGH;
46460  case 3:
46461  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
46462  else {
46463  __Pyx_RaiseArgtupleInvalid("l2projectScalar", 1, 4, 4, 3); __PYX_ERR(0, 8077, __pyx_L3_error)
46464  }
46465  }
46466  if (unlikely(kw_args > 0)) {
46467  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "l2projectScalar") < 0)) __PYX_ERR(0, 8077, __pyx_L3_error)
46468  }
46469  } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
46470  goto __pyx_L5_argtuple_error;
46471  } else {
46472  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46473  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46474  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46475  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
46476  }
46477  __pyx_v_nSimplices = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_nSimplices == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8077, __pyx_L3_error)
46478  __pyx_v_nPointsPerSimplex = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_nPointsPerSimplex == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8078, __pyx_L3_error)
46479  __pyx_v_dV = ((PyArrayObject *)values[2]);
46480  __pyx_v_r = ((PyArrayObject *)values[3]);
46481  }
46482  goto __pyx_L4_argument_unpacking_done;
46483  __pyx_L5_argtuple_error:;
46484  __Pyx_RaiseArgtupleInvalid("l2projectScalar", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8077, __pyx_L3_error)
46485  __pyx_L3_error:;
46486  __Pyx_AddTraceback("ctransportCoefficients.l2projectScalar", __pyx_clineno, __pyx_lineno, __pyx_filename);
46487  __Pyx_RefNannyFinishContext();
46488  return NULL;
46489  __pyx_L4_argument_unpacking_done:;
46490  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dV), __pyx_ptype_5numpy_ndarray, 1, "dV", 0))) __PYX_ERR(0, 8079, __pyx_L1_error)
46491  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1, "r", 0))) __PYX_ERR(0, 8080, __pyx_L1_error)
46492  __pyx_r = __pyx_pf_22ctransportCoefficients_250l2projectScalar(__pyx_self, __pyx_v_nSimplices, __pyx_v_nPointsPerSimplex, __pyx_v_dV, __pyx_v_r);
46493 
46494  /* function exit code */
46495  goto __pyx_L0;
46496  __pyx_L1_error:;
46497  __pyx_r = NULL;
46498  __pyx_L0:;
46499  __Pyx_RefNannyFinishContext();
46500  return __pyx_r;
46501 }
46502 
46503 static PyObject *__pyx_pf_22ctransportCoefficients_250l2projectScalar(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nSimplices, int __pyx_v_nPointsPerSimplex, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_r) {
46504  PyObject *__pyx_r = NULL;
46505  __Pyx_RefNannyDeclarations
46506  __Pyx_RefNannySetupContext("l2projectScalar", 0);
46507 
46508  /* "ctransportCoefficients.pyx":8081
46509  * np.ndarray dV,
46510  * np.ndarray r):
46511  * cl2projectScalar(nSimplices, # <<<<<<<<<<<<<<
46512  * nPointsPerSimplex,
46513  * <double*> dV.data,
46514  */
46515  l2projectScalar(__pyx_v_nSimplices, __pyx_v_nPointsPerSimplex, ((double *)__pyx_v_dV->data), ((double *)__pyx_v_r->data));
46516 
46517  /* "ctransportCoefficients.pyx":8077
46518  * <double*> mom_v_diff_ten.data,
46519  * <double*> mom_w_diff_ten.data)
46520  * def l2projectScalar(const int nSimplices, # <<<<<<<<<<<<<<
46521  * const int nPointsPerSimplex,
46522  * np.ndarray dV,
46523  */
46524 
46525  /* function exit code */
46526  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
46527  __Pyx_XGIVEREF(__pyx_r);
46528  __Pyx_RefNannyFinishContext();
46529  return __pyx_r;
46530 }
46531 
46532 /* "ctransportCoefficients.pyx":8085
46533  * <double*> dV.data,
46534  * <double*> r.data)
46535  * def l2projectVector(const int nSimplices, # <<<<<<<<<<<<<<
46536  * const int nPointsPerSimplex,
46537  * const int nSpace,
46538  */
46539 
46540 /* Python wrapper */
46541 static PyObject *__pyx_pw_22ctransportCoefficients_253l2projectVector(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
46542 static PyMethodDef __pyx_mdef_22ctransportCoefficients_253l2projectVector = {"l2projectVector", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_253l2projectVector, METH_VARARGS|METH_KEYWORDS, 0};
46543 static PyObject *__pyx_pw_22ctransportCoefficients_253l2projectVector(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
46544  int __pyx_v_nSimplices;
46545  int __pyx_v_nPointsPerSimplex;
46546  int __pyx_v_nSpace;
46547  PyArrayObject *__pyx_v_dV = 0;
46548  PyArrayObject *__pyx_v_r = 0;
46549  int __pyx_lineno = 0;
46550  const char *__pyx_filename = NULL;
46551  int __pyx_clineno = 0;
46552  PyObject *__pyx_r = 0;
46553  __Pyx_RefNannyDeclarations
46554  __Pyx_RefNannySetupContext("l2projectVector (wrapper)", 0);
46555  {
46556  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nSimplices,&__pyx_n_s_nPointsPerSimplex,&__pyx_n_s_nSpace,&__pyx_n_s_dV,&__pyx_n_s_r,0};
46557  PyObject* values[5] = {0,0,0,0,0};
46558  if (unlikely(__pyx_kwds)) {
46559  Py_ssize_t kw_args;
46560  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
46561  switch (pos_args) {
46562  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
46563  CYTHON_FALLTHROUGH;
46564  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
46565  CYTHON_FALLTHROUGH;
46566  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46567  CYTHON_FALLTHROUGH;
46568  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46569  CYTHON_FALLTHROUGH;
46570  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46571  CYTHON_FALLTHROUGH;
46572  case 0: break;
46573  default: goto __pyx_L5_argtuple_error;
46574  }
46575  kw_args = PyDict_Size(__pyx_kwds);
46576  switch (pos_args) {
46577  case 0:
46578  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSimplices)) != 0)) kw_args--;
46579  else goto __pyx_L5_argtuple_error;
46580  CYTHON_FALLTHROUGH;
46581  case 1:
46582  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPointsPerSimplex)) != 0)) kw_args--;
46583  else {
46584  __Pyx_RaiseArgtupleInvalid("l2projectVector", 1, 5, 5, 1); __PYX_ERR(0, 8085, __pyx_L3_error)
46585  }
46586  CYTHON_FALLTHROUGH;
46587  case 2:
46588  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
46589  else {
46590  __Pyx_RaiseArgtupleInvalid("l2projectVector", 1, 5, 5, 2); __PYX_ERR(0, 8085, __pyx_L3_error)
46591  }
46592  CYTHON_FALLTHROUGH;
46593  case 3:
46594  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dV)) != 0)) kw_args--;
46595  else {
46596  __Pyx_RaiseArgtupleInvalid("l2projectVector", 1, 5, 5, 3); __PYX_ERR(0, 8085, __pyx_L3_error)
46597  }
46598  CYTHON_FALLTHROUGH;
46599  case 4:
46600  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
46601  else {
46602  __Pyx_RaiseArgtupleInvalid("l2projectVector", 1, 5, 5, 4); __PYX_ERR(0, 8085, __pyx_L3_error)
46603  }
46604  }
46605  if (unlikely(kw_args > 0)) {
46606  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "l2projectVector") < 0)) __PYX_ERR(0, 8085, __pyx_L3_error)
46607  }
46608  } else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
46609  goto __pyx_L5_argtuple_error;
46610  } else {
46611  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46612  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46613  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46614  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
46615  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
46616  }
46617  __pyx_v_nSimplices = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_nSimplices == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8085, __pyx_L3_error)
46618  __pyx_v_nPointsPerSimplex = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_nPointsPerSimplex == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8086, __pyx_L3_error)
46619  __pyx_v_nSpace = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_nSpace == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8087, __pyx_L3_error)
46620  __pyx_v_dV = ((PyArrayObject *)values[3]);
46621  __pyx_v_r = ((PyArrayObject *)values[4]);
46622  }
46623  goto __pyx_L4_argument_unpacking_done;
46624  __pyx_L5_argtuple_error:;
46625  __Pyx_RaiseArgtupleInvalid("l2projectVector", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8085, __pyx_L3_error)
46626  __pyx_L3_error:;
46627  __Pyx_AddTraceback("ctransportCoefficients.l2projectVector", __pyx_clineno, __pyx_lineno, __pyx_filename);
46628  __Pyx_RefNannyFinishContext();
46629  return NULL;
46630  __pyx_L4_argument_unpacking_done:;
46631  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dV), __pyx_ptype_5numpy_ndarray, 1, "dV", 0))) __PYX_ERR(0, 8088, __pyx_L1_error)
46632  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1, "r", 0))) __PYX_ERR(0, 8089, __pyx_L1_error)
46633  __pyx_r = __pyx_pf_22ctransportCoefficients_252l2projectVector(__pyx_self, __pyx_v_nSimplices, __pyx_v_nPointsPerSimplex, __pyx_v_nSpace, __pyx_v_dV, __pyx_v_r);
46634 
46635  /* function exit code */
46636  goto __pyx_L0;
46637  __pyx_L1_error:;
46638  __pyx_r = NULL;
46639  __pyx_L0:;
46640  __Pyx_RefNannyFinishContext();
46641  return __pyx_r;
46642 }
46643 
46644 static PyObject *__pyx_pf_22ctransportCoefficients_252l2projectVector(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nSimplices, int __pyx_v_nPointsPerSimplex, int __pyx_v_nSpace, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_r) {
46645  PyObject *__pyx_r = NULL;
46646  __Pyx_RefNannyDeclarations
46647  __Pyx_RefNannySetupContext("l2projectVector", 0);
46648 
46649  /* "ctransportCoefficients.pyx":8090
46650  * np.ndarray dV,
46651  * np.ndarray r):
46652  * cl2projectVector(nSimplices, # <<<<<<<<<<<<<<
46653  * nPointsPerSimplex,
46654  * nSpace,
46655  */
46656  l2projectVector(__pyx_v_nSimplices, __pyx_v_nPointsPerSimplex, __pyx_v_nSpace, ((double *)__pyx_v_dV->data), ((double *)__pyx_v_r->data));
46657 
46658  /* "ctransportCoefficients.pyx":8085
46659  * <double*> dV.data,
46660  * <double*> r.data)
46661  * def l2projectVector(const int nSimplices, # <<<<<<<<<<<<<<
46662  * const int nPointsPerSimplex,
46663  * const int nSpace,
46664  */
46665 
46666  /* function exit code */
46667  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
46668  __Pyx_XGIVEREF(__pyx_r);
46669  __Pyx_RefNannyFinishContext();
46670  return __pyx_r;
46671 }
46672 
46673 /* "ctransportCoefficients.pyx":8095
46674  * <double*> dV.data,
46675  * <double*> r.data)
46676  * def l2project2Tensor(const int nSimplices, # <<<<<<<<<<<<<<
46677  * const int nPointsPerSimplex,
46678  * const int nSpace,
46679  */
46680 
46681 /* Python wrapper */
46682 static PyObject *__pyx_pw_22ctransportCoefficients_255l2project2Tensor(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
46683 static PyMethodDef __pyx_mdef_22ctransportCoefficients_255l2project2Tensor = {"l2project2Tensor", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_255l2project2Tensor, METH_VARARGS|METH_KEYWORDS, 0};
46684 static PyObject *__pyx_pw_22ctransportCoefficients_255l2project2Tensor(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
46685  int __pyx_v_nSimplices;
46686  int __pyx_v_nPointsPerSimplex;
46687  int __pyx_v_nSpace;
46688  PyArrayObject *__pyx_v_dV = 0;
46689  PyArrayObject *__pyx_v_r = 0;
46690  int __pyx_lineno = 0;
46691  const char *__pyx_filename = NULL;
46692  int __pyx_clineno = 0;
46693  PyObject *__pyx_r = 0;
46694  __Pyx_RefNannyDeclarations
46695  __Pyx_RefNannySetupContext("l2project2Tensor (wrapper)", 0);
46696  {
46697  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nSimplices,&__pyx_n_s_nPointsPerSimplex,&__pyx_n_s_nSpace,&__pyx_n_s_dV,&__pyx_n_s_r,0};
46698  PyObject* values[5] = {0,0,0,0,0};
46699  if (unlikely(__pyx_kwds)) {
46700  Py_ssize_t kw_args;
46701  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
46702  switch (pos_args) {
46703  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
46704  CYTHON_FALLTHROUGH;
46705  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
46706  CYTHON_FALLTHROUGH;
46707  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46708  CYTHON_FALLTHROUGH;
46709  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46710  CYTHON_FALLTHROUGH;
46711  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46712  CYTHON_FALLTHROUGH;
46713  case 0: break;
46714  default: goto __pyx_L5_argtuple_error;
46715  }
46716  kw_args = PyDict_Size(__pyx_kwds);
46717  switch (pos_args) {
46718  case 0:
46719  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSimplices)) != 0)) kw_args--;
46720  else goto __pyx_L5_argtuple_error;
46721  CYTHON_FALLTHROUGH;
46722  case 1:
46723  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPointsPerSimplex)) != 0)) kw_args--;
46724  else {
46725  __Pyx_RaiseArgtupleInvalid("l2project2Tensor", 1, 5, 5, 1); __PYX_ERR(0, 8095, __pyx_L3_error)
46726  }
46727  CYTHON_FALLTHROUGH;
46728  case 2:
46729  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
46730  else {
46731  __Pyx_RaiseArgtupleInvalid("l2project2Tensor", 1, 5, 5, 2); __PYX_ERR(0, 8095, __pyx_L3_error)
46732  }
46733  CYTHON_FALLTHROUGH;
46734  case 3:
46735  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dV)) != 0)) kw_args--;
46736  else {
46737  __Pyx_RaiseArgtupleInvalid("l2project2Tensor", 1, 5, 5, 3); __PYX_ERR(0, 8095, __pyx_L3_error)
46738  }
46739  CYTHON_FALLTHROUGH;
46740  case 4:
46741  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
46742  else {
46743  __Pyx_RaiseArgtupleInvalid("l2project2Tensor", 1, 5, 5, 4); __PYX_ERR(0, 8095, __pyx_L3_error)
46744  }
46745  }
46746  if (unlikely(kw_args > 0)) {
46747  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "l2project2Tensor") < 0)) __PYX_ERR(0, 8095, __pyx_L3_error)
46748  }
46749  } else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
46750  goto __pyx_L5_argtuple_error;
46751  } else {
46752  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46753  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46754  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46755  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
46756  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
46757  }
46758  __pyx_v_nSimplices = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_nSimplices == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8095, __pyx_L3_error)
46759  __pyx_v_nPointsPerSimplex = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_nPointsPerSimplex == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8096, __pyx_L3_error)
46760  __pyx_v_nSpace = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_nSpace == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8097, __pyx_L3_error)
46761  __pyx_v_dV = ((PyArrayObject *)values[3]);
46762  __pyx_v_r = ((PyArrayObject *)values[4]);
46763  }
46764  goto __pyx_L4_argument_unpacking_done;
46765  __pyx_L5_argtuple_error:;
46766  __Pyx_RaiseArgtupleInvalid("l2project2Tensor", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8095, __pyx_L3_error)
46767  __pyx_L3_error:;
46768  __Pyx_AddTraceback("ctransportCoefficients.l2project2Tensor", __pyx_clineno, __pyx_lineno, __pyx_filename);
46769  __Pyx_RefNannyFinishContext();
46770  return NULL;
46771  __pyx_L4_argument_unpacking_done:;
46772  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dV), __pyx_ptype_5numpy_ndarray, 1, "dV", 0))) __PYX_ERR(0, 8098, __pyx_L1_error)
46773  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1, "r", 0))) __PYX_ERR(0, 8099, __pyx_L1_error)
46774  __pyx_r = __pyx_pf_22ctransportCoefficients_254l2project2Tensor(__pyx_self, __pyx_v_nSimplices, __pyx_v_nPointsPerSimplex, __pyx_v_nSpace, __pyx_v_dV, __pyx_v_r);
46775 
46776  /* function exit code */
46777  goto __pyx_L0;
46778  __pyx_L1_error:;
46779  __pyx_r = NULL;
46780  __pyx_L0:;
46781  __Pyx_RefNannyFinishContext();
46782  return __pyx_r;
46783 }
46784 
46785 static PyObject *__pyx_pf_22ctransportCoefficients_254l2project2Tensor(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nSimplices, int __pyx_v_nPointsPerSimplex, int __pyx_v_nSpace, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_r) {
46786  PyObject *__pyx_r = NULL;
46787  __Pyx_RefNannyDeclarations
46788  __Pyx_RefNannySetupContext("l2project2Tensor", 0);
46789 
46790  /* "ctransportCoefficients.pyx":8100
46791  * np.ndarray dV,
46792  * np.ndarray r):
46793  * cl2project2Tensor(nSimplices, # <<<<<<<<<<<<<<
46794  * nPointsPerSimplex,
46795  * nSpace,
46796  */
46797  l2project2Tensor(__pyx_v_nSimplices, __pyx_v_nPointsPerSimplex, __pyx_v_nSpace, ((double *)__pyx_v_dV->data), ((double *)__pyx_v_r->data));
46798 
46799  /* "ctransportCoefficients.pyx":8095
46800  * <double*> dV.data,
46801  * <double*> r.data)
46802  * def l2project2Tensor(const int nSimplices, # <<<<<<<<<<<<<<
46803  * const int nPointsPerSimplex,
46804  * const int nSpace,
46805  */
46806 
46807  /* function exit code */
46808  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
46809  __Pyx_XGIVEREF(__pyx_r);
46810  __Pyx_RefNannyFinishContext();
46811  return __pyx_r;
46812 }
46813 
46814 /* "ctransportCoefficients.pyx":8105
46815  * <double*> dV.data,
46816  * <double*> r.data)
46817  * def L2projectEvaluate(int rank, # <<<<<<<<<<<<<<
46818  * np.ndarray dV,
46819  * np.ndarray r):
46820  */
46821 
46822 /* Python wrapper */
46823 static PyObject *__pyx_pw_22ctransportCoefficients_257L2projectEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
46824 static PyMethodDef __pyx_mdef_22ctransportCoefficients_257L2projectEvaluate = {"L2projectEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_257L2projectEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
46825 static PyObject *__pyx_pw_22ctransportCoefficients_257L2projectEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
46826  int __pyx_v_rank;
46827  PyArrayObject *__pyx_v_dV = 0;
46828  PyArrayObject *__pyx_v_r = 0;
46829  int __pyx_lineno = 0;
46830  const char *__pyx_filename = NULL;
46831  int __pyx_clineno = 0;
46832  PyObject *__pyx_r = 0;
46833  __Pyx_RefNannyDeclarations
46834  __Pyx_RefNannySetupContext("L2projectEvaluate (wrapper)", 0);
46835  {
46836  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rank,&__pyx_n_s_dV,&__pyx_n_s_r,0};
46837  PyObject* values[3] = {0,0,0};
46838  if (unlikely(__pyx_kwds)) {
46839  Py_ssize_t kw_args;
46840  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
46841  switch (pos_args) {
46842  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46843  CYTHON_FALLTHROUGH;
46844  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46845  CYTHON_FALLTHROUGH;
46846  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46847  CYTHON_FALLTHROUGH;
46848  case 0: break;
46849  default: goto __pyx_L5_argtuple_error;
46850  }
46851  kw_args = PyDict_Size(__pyx_kwds);
46852  switch (pos_args) {
46853  case 0:
46854  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rank)) != 0)) kw_args--;
46855  else goto __pyx_L5_argtuple_error;
46856  CYTHON_FALLTHROUGH;
46857  case 1:
46858  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dV)) != 0)) kw_args--;
46859  else {
46860  __Pyx_RaiseArgtupleInvalid("L2projectEvaluate", 1, 3, 3, 1); __PYX_ERR(0, 8105, __pyx_L3_error)
46861  }
46862  CYTHON_FALLTHROUGH;
46863  case 2:
46864  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
46865  else {
46866  __Pyx_RaiseArgtupleInvalid("L2projectEvaluate", 1, 3, 3, 2); __PYX_ERR(0, 8105, __pyx_L3_error)
46867  }
46868  }
46869  if (unlikely(kw_args > 0)) {
46870  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "L2projectEvaluate") < 0)) __PYX_ERR(0, 8105, __pyx_L3_error)
46871  }
46872  } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
46873  goto __pyx_L5_argtuple_error;
46874  } else {
46875  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46876  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46877  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46878  }
46879  __pyx_v_rank = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_rank == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8105, __pyx_L3_error)
46880  __pyx_v_dV = ((PyArrayObject *)values[1]);
46881  __pyx_v_r = ((PyArrayObject *)values[2]);
46882  }
46883  goto __pyx_L4_argument_unpacking_done;
46884  __pyx_L5_argtuple_error:;
46885  __Pyx_RaiseArgtupleInvalid("L2projectEvaluate", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8105, __pyx_L3_error)
46886  __pyx_L3_error:;
46887  __Pyx_AddTraceback("ctransportCoefficients.L2projectEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
46888  __Pyx_RefNannyFinishContext();
46889  return NULL;
46890  __pyx_L4_argument_unpacking_done:;
46891  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dV), __pyx_ptype_5numpy_ndarray, 1, "dV", 0))) __PYX_ERR(0, 8106, __pyx_L1_error)
46892  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1, "r", 0))) __PYX_ERR(0, 8107, __pyx_L1_error)
46893  __pyx_r = __pyx_pf_22ctransportCoefficients_256L2projectEvaluate(__pyx_self, __pyx_v_rank, __pyx_v_dV, __pyx_v_r);
46894 
46895  /* function exit code */
46896  goto __pyx_L0;
46897  __pyx_L1_error:;
46898  __pyx_r = NULL;
46899  __pyx_L0:;
46900  __Pyx_RefNannyFinishContext();
46901  return __pyx_r;
46902 }
46903 
46904 static PyObject *__pyx_pf_22ctransportCoefficients_256L2projectEvaluate(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_rank, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_r) {
46905  PyObject *__pyx_r = NULL;
46906  __Pyx_RefNannyDeclarations
46907  PyObject *__pyx_t_1 = NULL;
46908  PyObject *__pyx_t_2 = NULL;
46909  PyObject *__pyx_t_3 = NULL;
46910  PyObject *__pyx_t_4 = NULL;
46911  PyObject *__pyx_t_5 = NULL;
46912  int __pyx_t_6;
46913  PyObject *__pyx_t_7 = NULL;
46914  PyObject *__pyx_t_8 = NULL;
46915  int __pyx_lineno = 0;
46916  const char *__pyx_filename = NULL;
46917  int __pyx_clineno = 0;
46918  __Pyx_RefNannySetupContext("L2projectEvaluate", 0);
46919 
46920  /* "ctransportCoefficients.pyx":8108
46921  * np.ndarray dV,
46922  * np.ndarray r):
46923  * if rank == 0: # <<<<<<<<<<<<<<
46924  * l2projectScalar(r.shape[0],r.shape[1],dV,r)
46925  * elif rank == 1:
46926  */
46927  switch (__pyx_v_rank) {
46928  case 0:
46929 
46930  /* "ctransportCoefficients.pyx":8109
46931  * np.ndarray r):
46932  * if rank == 0:
46933  * l2projectScalar(r.shape[0],r.shape[1],dV,r) # <<<<<<<<<<<<<<
46934  * elif rank == 1:
46935  * l2projectVector(r.shape[0],r.shape[1],r.shape[2],dV,r)
46936  */
46937  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_l2projectScalar); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8109, __pyx_L1_error)
46938  __Pyx_GOTREF(__pyx_t_2);
46939  __pyx_t_3 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_r->dimensions[0])); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8109, __pyx_L1_error)
46940  __Pyx_GOTREF(__pyx_t_3);
46941  __pyx_t_4 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_r->dimensions[1])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8109, __pyx_L1_error)
46942  __Pyx_GOTREF(__pyx_t_4);
46943  __pyx_t_5 = NULL;
46944  __pyx_t_6 = 0;
46945  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
46946  __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
46947  if (likely(__pyx_t_5)) {
46948  PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
46949  __Pyx_INCREF(__pyx_t_5);
46950  __Pyx_INCREF(function);
46951  __Pyx_DECREF_SET(__pyx_t_2, function);
46952  __pyx_t_6 = 1;
46953  }
46954  }
46955  #if CYTHON_FAST_PYCALL
46956  if (PyFunction_Check(__pyx_t_2)) {
46957  PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_t_3, __pyx_t_4, ((PyObject *)__pyx_v_dV), ((PyObject *)__pyx_v_r)};
46958  __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8109, __pyx_L1_error)
46959  __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
46960  __Pyx_GOTREF(__pyx_t_1);
46961  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
46962  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
46963  } else
46964  #endif
46965  #if CYTHON_FAST_PYCCALL
46966  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
46967  PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_t_3, __pyx_t_4, ((PyObject *)__pyx_v_dV), ((PyObject *)__pyx_v_r)};
46968  __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8109, __pyx_L1_error)
46969  __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
46970  __Pyx_GOTREF(__pyx_t_1);
46971  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
46972  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
46973  } else
46974  #endif
46975  {
46976  __pyx_t_7 = PyTuple_New(4+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8109, __pyx_L1_error)
46977  __Pyx_GOTREF(__pyx_t_7);
46978  if (__pyx_t_5) {
46979  __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL;
46980  }
46981  __Pyx_GIVEREF(__pyx_t_3);
46982  PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_t_3);
46983  __Pyx_GIVEREF(__pyx_t_4);
46984  PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_t_4);
46985  __Pyx_INCREF(((PyObject *)__pyx_v_dV));
46986  __Pyx_GIVEREF(((PyObject *)__pyx_v_dV));
46987  PyTuple_SET_ITEM(__pyx_t_7, 2+__pyx_t_6, ((PyObject *)__pyx_v_dV));
46988  __Pyx_INCREF(((PyObject *)__pyx_v_r));
46989  __Pyx_GIVEREF(((PyObject *)__pyx_v_r));
46990  PyTuple_SET_ITEM(__pyx_t_7, 3+__pyx_t_6, ((PyObject *)__pyx_v_r));
46991  __pyx_t_3 = 0;
46992  __pyx_t_4 = 0;
46993  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8109, __pyx_L1_error)
46994  __Pyx_GOTREF(__pyx_t_1);
46995  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
46996  }
46997  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
46998  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
46999 
47000  /* "ctransportCoefficients.pyx":8108
47001  * np.ndarray dV,
47002  * np.ndarray r):
47003  * if rank == 0: # <<<<<<<<<<<<<<
47004  * l2projectScalar(r.shape[0],r.shape[1],dV,r)
47005  * elif rank == 1:
47006  */
47007  break;
47008  case 1:
47009 
47010  /* "ctransportCoefficients.pyx":8111
47011  * l2projectScalar(r.shape[0],r.shape[1],dV,r)
47012  * elif rank == 1:
47013  * l2projectVector(r.shape[0],r.shape[1],r.shape[2],dV,r) # <<<<<<<<<<<<<<
47014  * elif rank == 2:
47015  * l2project2Tensor(r.shape[0],r.shape[1],r.shape[2],dV,r)
47016  */
47017  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_l2projectVector); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8111, __pyx_L1_error)
47018  __Pyx_GOTREF(__pyx_t_2);
47019  __pyx_t_7 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_r->dimensions[0])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8111, __pyx_L1_error)
47020  __Pyx_GOTREF(__pyx_t_7);
47021  __pyx_t_4 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_r->dimensions[1])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8111, __pyx_L1_error)
47022  __Pyx_GOTREF(__pyx_t_4);
47023  __pyx_t_3 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_r->dimensions[2])); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8111, __pyx_L1_error)
47024  __Pyx_GOTREF(__pyx_t_3);
47025  __pyx_t_5 = NULL;
47026  __pyx_t_6 = 0;
47027  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
47028  __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
47029  if (likely(__pyx_t_5)) {
47030  PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
47031  __Pyx_INCREF(__pyx_t_5);
47032  __Pyx_INCREF(function);
47033  __Pyx_DECREF_SET(__pyx_t_2, function);
47034  __pyx_t_6 = 1;
47035  }
47036  }
47037  #if CYTHON_FAST_PYCALL
47038  if (PyFunction_Check(__pyx_t_2)) {
47039  PyObject *__pyx_temp[6] = {__pyx_t_5, __pyx_t_7, __pyx_t_4, __pyx_t_3, ((PyObject *)__pyx_v_dV), ((PyObject *)__pyx_v_r)};
47040  __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 5+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8111, __pyx_L1_error)
47041  __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
47042  __Pyx_GOTREF(__pyx_t_1);
47043  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
47044  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
47045  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
47046  } else
47047  #endif
47048  #if CYTHON_FAST_PYCCALL
47049  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
47050  PyObject *__pyx_temp[6] = {__pyx_t_5, __pyx_t_7, __pyx_t_4, __pyx_t_3, ((PyObject *)__pyx_v_dV), ((PyObject *)__pyx_v_r)};
47051  __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 5+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8111, __pyx_L1_error)
47052  __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
47053  __Pyx_GOTREF(__pyx_t_1);
47054  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
47055  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
47056  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
47057  } else
47058  #endif
47059  {
47060  __pyx_t_8 = PyTuple_New(5+__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8111, __pyx_L1_error)
47061  __Pyx_GOTREF(__pyx_t_8);
47062  if (__pyx_t_5) {
47063  __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_5); __pyx_t_5 = NULL;
47064  }
47065  __Pyx_GIVEREF(__pyx_t_7);
47066  PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_6, __pyx_t_7);
47067  __Pyx_GIVEREF(__pyx_t_4);
47068  PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_6, __pyx_t_4);
47069  __Pyx_GIVEREF(__pyx_t_3);
47070  PyTuple_SET_ITEM(__pyx_t_8, 2+__pyx_t_6, __pyx_t_3);
47071  __Pyx_INCREF(((PyObject *)__pyx_v_dV));
47072  __Pyx_GIVEREF(((PyObject *)__pyx_v_dV));
47073  PyTuple_SET_ITEM(__pyx_t_8, 3+__pyx_t_6, ((PyObject *)__pyx_v_dV));
47074  __Pyx_INCREF(((PyObject *)__pyx_v_r));
47075  __Pyx_GIVEREF(((PyObject *)__pyx_v_r));
47076  PyTuple_SET_ITEM(__pyx_t_8, 4+__pyx_t_6, ((PyObject *)__pyx_v_r));
47077  __pyx_t_7 = 0;
47078  __pyx_t_4 = 0;
47079  __pyx_t_3 = 0;
47080  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8111, __pyx_L1_error)
47081  __Pyx_GOTREF(__pyx_t_1);
47082  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
47083  }
47084  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
47085  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
47086 
47087  /* "ctransportCoefficients.pyx":8110
47088  * if rank == 0:
47089  * l2projectScalar(r.shape[0],r.shape[1],dV,r)
47090  * elif rank == 1: # <<<<<<<<<<<<<<
47091  * l2projectVector(r.shape[0],r.shape[1],r.shape[2],dV,r)
47092  * elif rank == 2:
47093  */
47094  break;
47095  case 2:
47096 
47097  /* "ctransportCoefficients.pyx":8113
47098  * l2projectVector(r.shape[0],r.shape[1],r.shape[2],dV,r)
47099  * elif rank == 2:
47100  * l2project2Tensor(r.shape[0],r.shape[1],r.shape[2],dV,r) # <<<<<<<<<<<<<<
47101  * else:
47102  * assert 0
47103  */
47104  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_l2project2Tensor); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8113, __pyx_L1_error)
47105  __Pyx_GOTREF(__pyx_t_2);
47106  __pyx_t_8 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_r->dimensions[0])); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8113, __pyx_L1_error)
47107  __Pyx_GOTREF(__pyx_t_8);
47108  __pyx_t_3 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_r->dimensions[1])); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8113, __pyx_L1_error)
47109  __Pyx_GOTREF(__pyx_t_3);
47110  __pyx_t_4 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_r->dimensions[2])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8113, __pyx_L1_error)
47111  __Pyx_GOTREF(__pyx_t_4);
47112  __pyx_t_7 = NULL;
47113  __pyx_t_6 = 0;
47114  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
47115  __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2);
47116  if (likely(__pyx_t_7)) {
47117  PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
47118  __Pyx_INCREF(__pyx_t_7);
47119  __Pyx_INCREF(function);
47120  __Pyx_DECREF_SET(__pyx_t_2, function);
47121  __pyx_t_6 = 1;
47122  }
47123  }
47124  #if CYTHON_FAST_PYCALL
47125  if (PyFunction_Check(__pyx_t_2)) {
47126  PyObject *__pyx_temp[6] = {__pyx_t_7, __pyx_t_8, __pyx_t_3, __pyx_t_4, ((PyObject *)__pyx_v_dV), ((PyObject *)__pyx_v_r)};
47127  __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 5+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8113, __pyx_L1_error)
47128  __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
47129  __Pyx_GOTREF(__pyx_t_1);
47130  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
47131  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
47132  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
47133  } else
47134  #endif
47135  #if CYTHON_FAST_PYCCALL
47136  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
47137  PyObject *__pyx_temp[6] = {__pyx_t_7, __pyx_t_8, __pyx_t_3, __pyx_t_4, ((PyObject *)__pyx_v_dV), ((PyObject *)__pyx_v_r)};
47138  __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 5+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8113, __pyx_L1_error)
47139  __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
47140  __Pyx_GOTREF(__pyx_t_1);
47141  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
47142  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
47143  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
47144  } else
47145  #endif
47146  {
47147  __pyx_t_5 = PyTuple_New(5+__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 8113, __pyx_L1_error)
47148  __Pyx_GOTREF(__pyx_t_5);
47149  if (__pyx_t_7) {
47150  __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_7); __pyx_t_7 = NULL;
47151  }
47152  __Pyx_GIVEREF(__pyx_t_8);
47153  PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_6, __pyx_t_8);
47154  __Pyx_GIVEREF(__pyx_t_3);
47155  PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_6, __pyx_t_3);
47156  __Pyx_GIVEREF(__pyx_t_4);
47157  PyTuple_SET_ITEM(__pyx_t_5, 2+__pyx_t_6, __pyx_t_4);
47158  __Pyx_INCREF(((PyObject *)__pyx_v_dV));
47159  __Pyx_GIVEREF(((PyObject *)__pyx_v_dV));
47160  PyTuple_SET_ITEM(__pyx_t_5, 3+__pyx_t_6, ((PyObject *)__pyx_v_dV));
47161  __Pyx_INCREF(((PyObject *)__pyx_v_r));
47162  __Pyx_GIVEREF(((PyObject *)__pyx_v_r));
47163  PyTuple_SET_ITEM(__pyx_t_5, 4+__pyx_t_6, ((PyObject *)__pyx_v_r));
47164  __pyx_t_8 = 0;
47165  __pyx_t_3 = 0;
47166  __pyx_t_4 = 0;
47167  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8113, __pyx_L1_error)
47168  __Pyx_GOTREF(__pyx_t_1);
47169  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
47170  }
47171  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
47172  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
47173 
47174  /* "ctransportCoefficients.pyx":8112
47175  * elif rank == 1:
47176  * l2projectVector(r.shape[0],r.shape[1],r.shape[2],dV,r)
47177  * elif rank == 2: # <<<<<<<<<<<<<<
47178  * l2project2Tensor(r.shape[0],r.shape[1],r.shape[2],dV,r)
47179  * else:
47180  */
47181  break;
47182  default:
47183 
47184  /* "ctransportCoefficients.pyx":8115
47185  * l2project2Tensor(r.shape[0],r.shape[1],r.shape[2],dV,r)
47186  * else:
47187  * assert 0 # <<<<<<<<<<<<<<
47188  * def conservativeHeadRichardsJLeverettEvaluate(np.ndarray materialTypes,
47189  * const double rho,
47190  */
47191  #ifndef CYTHON_WITHOUT_ASSERTIONS
47192  if (unlikely(!Py_OptimizeFlag)) {
47193  if (unlikely(!0)) {
47194  PyErr_SetNone(PyExc_AssertionError);
47195  __PYX_ERR(0, 8115, __pyx_L1_error)
47196  }
47197  }
47198  #endif
47199  break;
47200  }
47201 
47202  /* "ctransportCoefficients.pyx":8105
47203  * <double*> dV.data,
47204  * <double*> r.data)
47205  * def L2projectEvaluate(int rank, # <<<<<<<<<<<<<<
47206  * np.ndarray dV,
47207  * np.ndarray r):
47208  */
47209 
47210  /* function exit code */
47211  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
47212  goto __pyx_L0;
47213  __pyx_L1_error:;
47214  __Pyx_XDECREF(__pyx_t_1);
47215  __Pyx_XDECREF(__pyx_t_2);
47216  __Pyx_XDECREF(__pyx_t_3);
47217  __Pyx_XDECREF(__pyx_t_4);
47218  __Pyx_XDECREF(__pyx_t_5);
47219  __Pyx_XDECREF(__pyx_t_7);
47220  __Pyx_XDECREF(__pyx_t_8);
47221  __Pyx_AddTraceback("ctransportCoefficients.L2projectEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
47222  __pyx_r = NULL;
47223  __pyx_L0:;
47224  __Pyx_XGIVEREF(__pyx_r);
47225  __Pyx_RefNannyFinishContext();
47226  return __pyx_r;
47227 }
47228 
47229 /* "ctransportCoefficients.pyx":8116
47230  * else:
47231  * assert 0
47232  * def conservativeHeadRichardsJLeverettEvaluate(np.ndarray materialTypes, # <<<<<<<<<<<<<<
47233  * const double rho,
47234  * const double beta,
47235  */
47236 
47237 /* Python wrapper */
47238 static PyObject *__pyx_pw_22ctransportCoefficients_259conservativeHeadRichardsJLeverettEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
47239 static PyMethodDef __pyx_mdef_22ctransportCoefficients_259conservativeHeadRichardsJLeverettEvaluate = {"conservativeHeadRichardsJLeverettEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_259conservativeHeadRichardsJLeverettEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
47240 static PyObject *__pyx_pw_22ctransportCoefficients_259conservativeHeadRichardsJLeverettEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
47241  PyArrayObject *__pyx_v_materialTypes = 0;
47242  double __pyx_v_rho;
47243  double __pyx_v_beta;
47244  PyArrayObject *__pyx_v_gravity = 0;
47245  PyArrayObject *__pyx_v_phi = 0;
47246  PyArrayObject *__pyx_v_psiD = 0;
47247  PyArrayObject *__pyx_v_ns = 0;
47248  PyArrayObject *__pyx_v_nk = 0;
47249  PyArrayObject *__pyx_v_S_wirr = 0;
47250  PyArrayObject *__pyx_v_S_nwr = 0;
47251  PyArrayObject *__pyx_v_kr0 = 0;
47252  PyArrayObject *__pyx_v_u = 0;
47253  PyArrayObject *__pyx_v_mass = 0;
47254  PyArrayObject *__pyx_v_dmass = 0;
47255  PyArrayObject *__pyx_v_f = 0;
47256  PyArrayObject *__pyx_v_df = 0;
47257  PyArrayObject *__pyx_v_a = 0;
47258  PyArrayObject *__pyx_v_da = 0;
47259  int __pyx_lineno = 0;
47260  const char *__pyx_filename = NULL;
47261  int __pyx_clineno = 0;
47262  PyObject *__pyx_r = 0;
47263  __Pyx_RefNannyDeclarations
47264  __Pyx_RefNannySetupContext("conservativeHeadRichardsJLeverettEvaluate (wrapper)", 0);
47265  {
47266  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_materialTypes,&__pyx_n_s_rho,&__pyx_n_s_beta,&__pyx_n_s_gravity,&__pyx_n_s_phi,&__pyx_n_s_psiD,&__pyx_n_s_ns,&__pyx_n_s_nk,&__pyx_n_s_S_wirr,&__pyx_n_s_S_nwr,&__pyx_n_s_kr0,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
47267  PyObject* values[18] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
47268  if (unlikely(__pyx_kwds)) {
47269  Py_ssize_t kw_args;
47270  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
47271  switch (pos_args) {
47272  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
47273  CYTHON_FALLTHROUGH;
47274  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
47275  CYTHON_FALLTHROUGH;
47276  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
47277  CYTHON_FALLTHROUGH;
47278  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
47279  CYTHON_FALLTHROUGH;
47280  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
47281  CYTHON_FALLTHROUGH;
47282  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
47283  CYTHON_FALLTHROUGH;
47284  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
47285  CYTHON_FALLTHROUGH;
47286  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
47287  CYTHON_FALLTHROUGH;
47288  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
47289  CYTHON_FALLTHROUGH;
47290  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
47291  CYTHON_FALLTHROUGH;
47292  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
47293  CYTHON_FALLTHROUGH;
47294  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
47295  CYTHON_FALLTHROUGH;
47296  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
47297  CYTHON_FALLTHROUGH;
47298  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
47299  CYTHON_FALLTHROUGH;
47300  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
47301  CYTHON_FALLTHROUGH;
47302  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
47303  CYTHON_FALLTHROUGH;
47304  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
47305  CYTHON_FALLTHROUGH;
47306  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
47307  CYTHON_FALLTHROUGH;
47308  case 0: break;
47309  default: goto __pyx_L5_argtuple_error;
47310  }
47311  kw_args = PyDict_Size(__pyx_kwds);
47312  switch (pos_args) {
47313  case 0:
47314  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_materialTypes)) != 0)) kw_args--;
47315  else goto __pyx_L5_argtuple_error;
47316  CYTHON_FALLTHROUGH;
47317  case 1:
47318  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
47319  else {
47320  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 1); __PYX_ERR(0, 8116, __pyx_L3_error)
47321  }
47322  CYTHON_FALLTHROUGH;
47323  case 2:
47324  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_beta)) != 0)) kw_args--;
47325  else {
47326  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 2); __PYX_ERR(0, 8116, __pyx_L3_error)
47327  }
47328  CYTHON_FALLTHROUGH;
47329  case 3:
47330  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
47331  else {
47332  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 3); __PYX_ERR(0, 8116, __pyx_L3_error)
47333  }
47334  CYTHON_FALLTHROUGH;
47335  case 4:
47336  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
47337  else {
47338  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 4); __PYX_ERR(0, 8116, __pyx_L3_error)
47339  }
47340  CYTHON_FALLTHROUGH;
47341  case 5:
47342  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psiD)) != 0)) kw_args--;
47343  else {
47344  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 5); __PYX_ERR(0, 8116, __pyx_L3_error)
47345  }
47346  CYTHON_FALLTHROUGH;
47347  case 6:
47348  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ns)) != 0)) kw_args--;
47349  else {
47350  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 6); __PYX_ERR(0, 8116, __pyx_L3_error)
47351  }
47352  CYTHON_FALLTHROUGH;
47353  case 7:
47354  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nk)) != 0)) kw_args--;
47355  else {
47356  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 7); __PYX_ERR(0, 8116, __pyx_L3_error)
47357  }
47358  CYTHON_FALLTHROUGH;
47359  case 8:
47360  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_S_wirr)) != 0)) kw_args--;
47361  else {
47362  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 8); __PYX_ERR(0, 8116, __pyx_L3_error)
47363  }
47364  CYTHON_FALLTHROUGH;
47365  case 9:
47366  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_S_nwr)) != 0)) kw_args--;
47367  else {
47368  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 9); __PYX_ERR(0, 8116, __pyx_L3_error)
47369  }
47370  CYTHON_FALLTHROUGH;
47371  case 10:
47372  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kr0)) != 0)) kw_args--;
47373  else {
47374  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 10); __PYX_ERR(0, 8116, __pyx_L3_error)
47375  }
47376  CYTHON_FALLTHROUGH;
47377  case 11:
47378  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
47379  else {
47380  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 11); __PYX_ERR(0, 8116, __pyx_L3_error)
47381  }
47382  CYTHON_FALLTHROUGH;
47383  case 12:
47384  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
47385  else {
47386  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 12); __PYX_ERR(0, 8116, __pyx_L3_error)
47387  }
47388  CYTHON_FALLTHROUGH;
47389  case 13:
47390  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
47391  else {
47392  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 13); __PYX_ERR(0, 8116, __pyx_L3_error)
47393  }
47394  CYTHON_FALLTHROUGH;
47395  case 14:
47396  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
47397  else {
47398  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 14); __PYX_ERR(0, 8116, __pyx_L3_error)
47399  }
47400  CYTHON_FALLTHROUGH;
47401  case 15:
47402  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
47403  else {
47404  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 15); __PYX_ERR(0, 8116, __pyx_L3_error)
47405  }
47406  CYTHON_FALLTHROUGH;
47407  case 16:
47408  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
47409  else {
47410  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 16); __PYX_ERR(0, 8116, __pyx_L3_error)
47411  }
47412  CYTHON_FALLTHROUGH;
47413  case 17:
47414  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
47415  else {
47416  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 17); __PYX_ERR(0, 8116, __pyx_L3_error)
47417  }
47418  }
47419  if (unlikely(kw_args > 0)) {
47420  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "conservativeHeadRichardsJLeverettEvaluate") < 0)) __PYX_ERR(0, 8116, __pyx_L3_error)
47421  }
47422  } else if (PyTuple_GET_SIZE(__pyx_args) != 18) {
47423  goto __pyx_L5_argtuple_error;
47424  } else {
47425  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
47426  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
47427  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
47428  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
47429  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
47430  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
47431  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
47432  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
47433  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
47434  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
47435  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
47436  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
47437  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
47438  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
47439  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
47440  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
47441  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
47442  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
47443  }
47444  __pyx_v_materialTypes = ((PyArrayObject *)values[0]);
47445  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8117, __pyx_L3_error)
47446  __pyx_v_beta = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_beta == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8118, __pyx_L3_error)
47447  __pyx_v_gravity = ((PyArrayObject *)values[3]);
47448  __pyx_v_phi = ((PyArrayObject *)values[4]);
47449  __pyx_v_psiD = ((PyArrayObject *)values[5]);
47450  __pyx_v_ns = ((PyArrayObject *)values[6]);
47451  __pyx_v_nk = ((PyArrayObject *)values[7]);
47452  __pyx_v_S_wirr = ((PyArrayObject *)values[8]);
47453  __pyx_v_S_nwr = ((PyArrayObject *)values[9]);
47454  __pyx_v_kr0 = ((PyArrayObject *)values[10]);
47455  __pyx_v_u = ((PyArrayObject *)values[11]);
47456  __pyx_v_mass = ((PyArrayObject *)values[12]);
47457  __pyx_v_dmass = ((PyArrayObject *)values[13]);
47458  __pyx_v_f = ((PyArrayObject *)values[14]);
47459  __pyx_v_df = ((PyArrayObject *)values[15]);
47460  __pyx_v_a = ((PyArrayObject *)values[16]);
47461  __pyx_v_da = ((PyArrayObject *)values[17]);
47462  }
47463  goto __pyx_L4_argument_unpacking_done;
47464  __pyx_L5_argtuple_error:;
47465  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8116, __pyx_L3_error)
47466  __pyx_L3_error:;
47467  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsJLeverettEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
47468  __Pyx_RefNannyFinishContext();
47469  return NULL;
47470  __pyx_L4_argument_unpacking_done:;
47471  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_materialTypes), __pyx_ptype_5numpy_ndarray, 1, "materialTypes", 0))) __PYX_ERR(0, 8116, __pyx_L1_error)
47472  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1, "gravity", 0))) __PYX_ERR(0, 8119, __pyx_L1_error)
47473  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 8120, __pyx_L1_error)
47474  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psiD), __pyx_ptype_5numpy_ndarray, 1, "psiD", 0))) __PYX_ERR(0, 8121, __pyx_L1_error)
47475  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ns), __pyx_ptype_5numpy_ndarray, 1, "ns", 0))) __PYX_ERR(0, 8122, __pyx_L1_error)
47476  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nk), __pyx_ptype_5numpy_ndarray, 1, "nk", 0))) __PYX_ERR(0, 8123, __pyx_L1_error)
47477  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_S_wirr), __pyx_ptype_5numpy_ndarray, 1, "S_wirr", 0))) __PYX_ERR(0, 8124, __pyx_L1_error)
47478  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_S_nwr), __pyx_ptype_5numpy_ndarray, 1, "S_nwr", 0))) __PYX_ERR(0, 8125, __pyx_L1_error)
47479  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kr0), __pyx_ptype_5numpy_ndarray, 1, "kr0", 0))) __PYX_ERR(0, 8126, __pyx_L1_error)
47480  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 8127, __pyx_L1_error)
47481  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1, "mass", 0))) __PYX_ERR(0, 8128, __pyx_L1_error)
47482  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1, "dmass", 0))) __PYX_ERR(0, 8129, __pyx_L1_error)
47483  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 8130, __pyx_L1_error)
47484  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 8131, __pyx_L1_error)
47485  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 8132, __pyx_L1_error)
47486  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 8133, __pyx_L1_error)
47487  __pyx_r = __pyx_pf_22ctransportCoefficients_258conservativeHeadRichardsJLeverettEvaluate(__pyx_self, __pyx_v_materialTypes, __pyx_v_rho, __pyx_v_beta, __pyx_v_gravity, __pyx_v_phi, __pyx_v_psiD, __pyx_v_ns, __pyx_v_nk, __pyx_v_S_wirr, __pyx_v_S_nwr, __pyx_v_kr0, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
47488 
47489  /* function exit code */
47490  goto __pyx_L0;
47491  __pyx_L1_error:;
47492  __pyx_r = NULL;
47493  __pyx_L0:;
47494  __Pyx_RefNannyFinishContext();
47495  return __pyx_r;
47496 }
47497 
47498 static PyObject *__pyx_pf_22ctransportCoefficients_258conservativeHeadRichardsJLeverettEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_materialTypes, double __pyx_v_rho, double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_psiD, PyArrayObject *__pyx_v_ns, PyArrayObject *__pyx_v_nk, PyArrayObject *__pyx_v_S_wirr, PyArrayObject *__pyx_v_S_nwr, PyArrayObject *__pyx_v_kr0, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
47499  PyObject *__pyx_r = NULL;
47500  __Pyx_RefNannyDeclarations
47501  PyObject *__pyx_t_1 = NULL;
47502  PyObject *__pyx_t_2 = NULL;
47503  PyObject *__pyx_t_3 = NULL;
47504  int __pyx_t_4;
47505  int __pyx_lineno = 0;
47506  const char *__pyx_filename = NULL;
47507  int __pyx_clineno = 0;
47508  __Pyx_RefNannySetupContext("conservativeHeadRichardsJLeverettEvaluate", 0);
47509 
47510  /* "ctransportCoefficients.pyx":8134
47511  * np.ndarray a,
47512  * np.ndarray da):
47513  * cconservativeHeadRichardsJLeverett(f.size/f.shape[f.ndim-1]/f.shape[f.ndim-2], # <<<<<<<<<<<<<<
47514  * f.shape[f.ndim-2],
47515  * f.shape[f.ndim-1],
47516  */
47517  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_f), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8134, __pyx_L1_error)
47518  __Pyx_GOTREF(__pyx_t_1);
47519  __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8134, __pyx_L1_error)
47520  __Pyx_GOTREF(__pyx_t_2);
47521  __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8134, __pyx_L1_error)
47522  __Pyx_GOTREF(__pyx_t_3);
47523  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
47524  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
47525  __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_f->dimensions[(__pyx_v_f->nd - 2)])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8134, __pyx_L1_error)
47526  __Pyx_GOTREF(__pyx_t_2);
47527  __pyx_t_1 = __Pyx_PyNumber_Divide(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8134, __pyx_L1_error)
47528  __Pyx_GOTREF(__pyx_t_1);
47529  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
47530  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
47531  __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8134, __pyx_L1_error)
47532  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
47533 
47534  /* "ctransportCoefficients.pyx":8154
47535  * <double*> df.data,
47536  * <double*> a.data,
47537  * <double*> da.data) # <<<<<<<<<<<<<<
47538  * def conservativeHeadRichardsJLeverettAniEvaluate(np.ndarray materialTypes,
47539  * const double rho,
47540  */
47541  conservativeHeadRichardsJLeverett(__pyx_t_4, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 2)]), (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), ((int *)__pyx_v_materialTypes->data), __pyx_v_rho, __pyx_v_beta, ((double *)__pyx_v_gravity->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_psiD->data), ((double *)__pyx_v_ns->data), ((double *)__pyx_v_nk->data), ((double *)__pyx_v_S_wirr->data), ((double *)__pyx_v_S_nwr->data), ((double *)__pyx_v_kr0->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_mass->data), ((double *)__pyx_v_dmass->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data));
47542 
47543  /* "ctransportCoefficients.pyx":8116
47544  * else:
47545  * assert 0
47546  * def conservativeHeadRichardsJLeverettEvaluate(np.ndarray materialTypes, # <<<<<<<<<<<<<<
47547  * const double rho,
47548  * const double beta,
47549  */
47550 
47551  /* function exit code */
47552  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
47553  goto __pyx_L0;
47554  __pyx_L1_error:;
47555  __Pyx_XDECREF(__pyx_t_1);
47556  __Pyx_XDECREF(__pyx_t_2);
47557  __Pyx_XDECREF(__pyx_t_3);
47558  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsJLeverettEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
47559  __pyx_r = NULL;
47560  __pyx_L0:;
47561  __Pyx_XGIVEREF(__pyx_r);
47562  __Pyx_RefNannyFinishContext();
47563  return __pyx_r;
47564 }
47565 
47566 /* "ctransportCoefficients.pyx":8155
47567  * <double*> a.data,
47568  * <double*> da.data)
47569  * def conservativeHeadRichardsJLeverettAniEvaluate(np.ndarray materialTypes, # <<<<<<<<<<<<<<
47570  * const double rho,
47571  * const double beta,
47572  */
47573 
47574 /* Python wrapper */
47575 static PyObject *__pyx_pw_22ctransportCoefficients_261conservativeHeadRichardsJLeverettAniEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
47576 static PyMethodDef __pyx_mdef_22ctransportCoefficients_261conservativeHeadRichardsJLeverettAniEvaluate = {"conservativeHeadRichardsJLeverettAniEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_261conservativeHeadRichardsJLeverettAniEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
47577 static PyObject *__pyx_pw_22ctransportCoefficients_261conservativeHeadRichardsJLeverettAniEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
47578  PyArrayObject *__pyx_v_materialTypes = 0;
47579  double __pyx_v_rho;
47580  double __pyx_v_beta;
47581  PyArrayObject *__pyx_v_gravity = 0;
47582  PyArrayObject *__pyx_v_phi = 0;
47583  PyArrayObject *__pyx_v_psiD = 0;
47584  PyArrayObject *__pyx_v_ns = 0;
47585  PyArrayObject *__pyx_v_nk = 0;
47586  PyArrayObject *__pyx_v_S_wirr = 0;
47587  PyArrayObject *__pyx_v_S_nwr = 0;
47588  PyArrayObject *__pyx_v_kr0x = 0;
47589  PyArrayObject *__pyx_v_kr0y = 0;
47590  PyArrayObject *__pyx_v_kr0z = 0;
47591  PyArrayObject *__pyx_v_u = 0;
47592  PyArrayObject *__pyx_v_mass = 0;
47593  PyArrayObject *__pyx_v_dmass = 0;
47594  PyArrayObject *__pyx_v_f = 0;
47595  PyArrayObject *__pyx_v_df = 0;
47596  PyArrayObject *__pyx_v_a = 0;
47597  PyArrayObject *__pyx_v_da = 0;
47598  int __pyx_lineno = 0;
47599  const char *__pyx_filename = NULL;
47600  int __pyx_clineno = 0;
47601  PyObject *__pyx_r = 0;
47602  __Pyx_RefNannyDeclarations
47603  __Pyx_RefNannySetupContext("conservativeHeadRichardsJLeverettAniEvaluate (wrapper)", 0);
47604  {
47605  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_materialTypes,&__pyx_n_s_rho,&__pyx_n_s_beta,&__pyx_n_s_gravity,&__pyx_n_s_phi,&__pyx_n_s_psiD,&__pyx_n_s_ns,&__pyx_n_s_nk,&__pyx_n_s_S_wirr,&__pyx_n_s_S_nwr,&__pyx_n_s_kr0x,&__pyx_n_s_kr0y,&__pyx_n_s_kr0z,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
47606  PyObject* values[20] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
47607  if (unlikely(__pyx_kwds)) {
47608  Py_ssize_t kw_args;
47609  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
47610  switch (pos_args) {
47611  case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
47612  CYTHON_FALLTHROUGH;
47613  case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
47614  CYTHON_FALLTHROUGH;
47615  case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
47616  CYTHON_FALLTHROUGH;
47617  case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
47618  CYTHON_FALLTHROUGH;
47619  case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
47620  CYTHON_FALLTHROUGH;
47621  case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
47622  CYTHON_FALLTHROUGH;
47623  case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
47624  CYTHON_FALLTHROUGH;
47625  case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
47626  CYTHON_FALLTHROUGH;
47627  case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
47628  CYTHON_FALLTHROUGH;
47629  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
47630  CYTHON_FALLTHROUGH;
47631  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
47632  CYTHON_FALLTHROUGH;
47633  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
47634  CYTHON_FALLTHROUGH;
47635  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
47636  CYTHON_FALLTHROUGH;
47637  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
47638  CYTHON_FALLTHROUGH;
47639  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
47640  CYTHON_FALLTHROUGH;
47641  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
47642  CYTHON_FALLTHROUGH;
47643  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
47644  CYTHON_FALLTHROUGH;
47645  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
47646  CYTHON_FALLTHROUGH;
47647  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
47648  CYTHON_FALLTHROUGH;
47649  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
47650  CYTHON_FALLTHROUGH;
47651  case 0: break;
47652  default: goto __pyx_L5_argtuple_error;
47653  }
47654  kw_args = PyDict_Size(__pyx_kwds);
47655  switch (pos_args) {
47656  case 0:
47657  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_materialTypes)) != 0)) kw_args--;
47658  else goto __pyx_L5_argtuple_error;
47659  CYTHON_FALLTHROUGH;
47660  case 1:
47661  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
47662  else {
47663  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 1); __PYX_ERR(0, 8155, __pyx_L3_error)
47664  }
47665  CYTHON_FALLTHROUGH;
47666  case 2:
47667  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_beta)) != 0)) kw_args--;
47668  else {
47669  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 2); __PYX_ERR(0, 8155, __pyx_L3_error)
47670  }
47671  CYTHON_FALLTHROUGH;
47672  case 3:
47673  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
47674  else {
47675  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 3); __PYX_ERR(0, 8155, __pyx_L3_error)
47676  }
47677  CYTHON_FALLTHROUGH;
47678  case 4:
47679  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
47680  else {
47681  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 4); __PYX_ERR(0, 8155, __pyx_L3_error)
47682  }
47683  CYTHON_FALLTHROUGH;
47684  case 5:
47685  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psiD)) != 0)) kw_args--;
47686  else {
47687  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 5); __PYX_ERR(0, 8155, __pyx_L3_error)
47688  }
47689  CYTHON_FALLTHROUGH;
47690  case 6:
47691  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ns)) != 0)) kw_args--;
47692  else {
47693  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 6); __PYX_ERR(0, 8155, __pyx_L3_error)
47694  }
47695  CYTHON_FALLTHROUGH;
47696  case 7:
47697  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nk)) != 0)) kw_args--;
47698  else {
47699  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 7); __PYX_ERR(0, 8155, __pyx_L3_error)
47700  }
47701  CYTHON_FALLTHROUGH;
47702  case 8:
47703  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_S_wirr)) != 0)) kw_args--;
47704  else {
47705  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 8); __PYX_ERR(0, 8155, __pyx_L3_error)
47706  }
47707  CYTHON_FALLTHROUGH;
47708  case 9:
47709  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_S_nwr)) != 0)) kw_args--;
47710  else {
47711  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 9); __PYX_ERR(0, 8155, __pyx_L3_error)
47712  }
47713  CYTHON_FALLTHROUGH;
47714  case 10:
47715  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kr0x)) != 0)) kw_args--;
47716  else {
47717  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 10); __PYX_ERR(0, 8155, __pyx_L3_error)
47718  }
47719  CYTHON_FALLTHROUGH;
47720  case 11:
47721  if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kr0y)) != 0)) kw_args--;
47722  else {
47723  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 11); __PYX_ERR(0, 8155, __pyx_L3_error)
47724  }
47725  CYTHON_FALLTHROUGH;
47726  case 12:
47727  if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kr0z)) != 0)) kw_args--;
47728  else {
47729  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 12); __PYX_ERR(0, 8155, __pyx_L3_error)
47730  }
47731  CYTHON_FALLTHROUGH;
47732  case 13:
47733  if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
47734  else {
47735  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 13); __PYX_ERR(0, 8155, __pyx_L3_error)
47736  }
47737  CYTHON_FALLTHROUGH;
47738  case 14:
47739  if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
47740  else {
47741  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 14); __PYX_ERR(0, 8155, __pyx_L3_error)
47742  }
47743  CYTHON_FALLTHROUGH;
47744  case 15:
47745  if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
47746  else {
47747  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 15); __PYX_ERR(0, 8155, __pyx_L3_error)
47748  }
47749  CYTHON_FALLTHROUGH;
47750  case 16:
47751  if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
47752  else {
47753  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 16); __PYX_ERR(0, 8155, __pyx_L3_error)
47754  }
47755  CYTHON_FALLTHROUGH;
47756  case 17:
47757  if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
47758  else {
47759  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 17); __PYX_ERR(0, 8155, __pyx_L3_error)
47760  }
47761  CYTHON_FALLTHROUGH;
47762  case 18:
47763  if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
47764  else {
47765  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 18); __PYX_ERR(0, 8155, __pyx_L3_error)
47766  }
47767  CYTHON_FALLTHROUGH;
47768  case 19:
47769  if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
47770  else {
47771  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 19); __PYX_ERR(0, 8155, __pyx_L3_error)
47772  }
47773  }
47774  if (unlikely(kw_args > 0)) {
47775  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "conservativeHeadRichardsJLeverettAniEvaluate") < 0)) __PYX_ERR(0, 8155, __pyx_L3_error)
47776  }
47777  } else if (PyTuple_GET_SIZE(__pyx_args) != 20) {
47778  goto __pyx_L5_argtuple_error;
47779  } else {
47780  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
47781  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
47782  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
47783  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
47784  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
47785  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
47786  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
47787  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
47788  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
47789  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
47790  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
47791  values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
47792  values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
47793  values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
47794  values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
47795  values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
47796  values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
47797  values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
47798  values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
47799  values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
47800  }
47801  __pyx_v_materialTypes = ((PyArrayObject *)values[0]);
47802  __pyx_v_rho = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_rho == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8156, __pyx_L3_error)
47803  __pyx_v_beta = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_beta == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8157, __pyx_L3_error)
47804  __pyx_v_gravity = ((PyArrayObject *)values[3]);
47805  __pyx_v_phi = ((PyArrayObject *)values[4]);
47806  __pyx_v_psiD = ((PyArrayObject *)values[5]);
47807  __pyx_v_ns = ((PyArrayObject *)values[6]);
47808  __pyx_v_nk = ((PyArrayObject *)values[7]);
47809  __pyx_v_S_wirr = ((PyArrayObject *)values[8]);
47810  __pyx_v_S_nwr = ((PyArrayObject *)values[9]);
47811  __pyx_v_kr0x = ((PyArrayObject *)values[10]);
47812  __pyx_v_kr0y = ((PyArrayObject *)values[11]);
47813  __pyx_v_kr0z = ((PyArrayObject *)values[12]);
47814  __pyx_v_u = ((PyArrayObject *)values[13]);
47815  __pyx_v_mass = ((PyArrayObject *)values[14]);
47816  __pyx_v_dmass = ((PyArrayObject *)values[15]);
47817  __pyx_v_f = ((PyArrayObject *)values[16]);
47818  __pyx_v_df = ((PyArrayObject *)values[17]);
47819  __pyx_v_a = ((PyArrayObject *)values[18]);
47820  __pyx_v_da = ((PyArrayObject *)values[19]);
47821  }
47822  goto __pyx_L4_argument_unpacking_done;
47823  __pyx_L5_argtuple_error:;
47824  __Pyx_RaiseArgtupleInvalid("conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8155, __pyx_L3_error)
47825  __pyx_L3_error:;
47826  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsJLeverettAniEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
47827  __Pyx_RefNannyFinishContext();
47828  return NULL;
47829  __pyx_L4_argument_unpacking_done:;
47830  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_materialTypes), __pyx_ptype_5numpy_ndarray, 1, "materialTypes", 0))) __PYX_ERR(0, 8155, __pyx_L1_error)
47831  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1, "gravity", 0))) __PYX_ERR(0, 8158, __pyx_L1_error)
47832  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1, "phi", 0))) __PYX_ERR(0, 8159, __pyx_L1_error)
47833  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psiD), __pyx_ptype_5numpy_ndarray, 1, "psiD", 0))) __PYX_ERR(0, 8160, __pyx_L1_error)
47834  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ns), __pyx_ptype_5numpy_ndarray, 1, "ns", 0))) __PYX_ERR(0, 8161, __pyx_L1_error)
47835  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nk), __pyx_ptype_5numpy_ndarray, 1, "nk", 0))) __PYX_ERR(0, 8162, __pyx_L1_error)
47836  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_S_wirr), __pyx_ptype_5numpy_ndarray, 1, "S_wirr", 0))) __PYX_ERR(0, 8163, __pyx_L1_error)
47837  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_S_nwr), __pyx_ptype_5numpy_ndarray, 1, "S_nwr", 0))) __PYX_ERR(0, 8164, __pyx_L1_error)
47838  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kr0x), __pyx_ptype_5numpy_ndarray, 1, "kr0x", 0))) __PYX_ERR(0, 8165, __pyx_L1_error)
47839  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kr0y), __pyx_ptype_5numpy_ndarray, 1, "kr0y", 0))) __PYX_ERR(0, 8166, __pyx_L1_error)
47840  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kr0z), __pyx_ptype_5numpy_ndarray, 1, "kr0z", 0))) __PYX_ERR(0, 8167, __pyx_L1_error)
47841  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 8168, __pyx_L1_error)
47842  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1, "mass", 0))) __PYX_ERR(0, 8169, __pyx_L1_error)
47843  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1, "dmass", 0))) __PYX_ERR(0, 8170, __pyx_L1_error)
47844  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1, "f", 0))) __PYX_ERR(0, 8171, __pyx_L1_error)
47845  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1, "df", 0))) __PYX_ERR(0, 8172, __pyx_L1_error)
47846  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 8173, __pyx_L1_error)
47847  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 8174, __pyx_L1_error)
47848  __pyx_r = __pyx_pf_22ctransportCoefficients_260conservativeHeadRichardsJLeverettAniEvaluate(__pyx_self, __pyx_v_materialTypes, __pyx_v_rho, __pyx_v_beta, __pyx_v_gravity, __pyx_v_phi, __pyx_v_psiD, __pyx_v_ns, __pyx_v_nk, __pyx_v_S_wirr, __pyx_v_S_nwr, __pyx_v_kr0x, __pyx_v_kr0y, __pyx_v_kr0z, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
47849 
47850  /* function exit code */
47851  goto __pyx_L0;
47852  __pyx_L1_error:;
47853  __pyx_r = NULL;
47854  __pyx_L0:;
47855  __Pyx_RefNannyFinishContext();
47856  return __pyx_r;
47857 }
47858 
47859 static PyObject *__pyx_pf_22ctransportCoefficients_260conservativeHeadRichardsJLeverettAniEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_materialTypes, double __pyx_v_rho, double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_psiD, PyArrayObject *__pyx_v_ns, PyArrayObject *__pyx_v_nk, PyArrayObject *__pyx_v_S_wirr, PyArrayObject *__pyx_v_S_nwr, PyArrayObject *__pyx_v_kr0x, PyArrayObject *__pyx_v_kr0y, PyArrayObject *__pyx_v_kr0z, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
47860  PyObject *__pyx_r = NULL;
47861  __Pyx_RefNannyDeclarations
47862  PyObject *__pyx_t_1 = NULL;
47863  PyObject *__pyx_t_2 = NULL;
47864  PyObject *__pyx_t_3 = NULL;
47865  int __pyx_t_4;
47866  int __pyx_lineno = 0;
47867  const char *__pyx_filename = NULL;
47868  int __pyx_clineno = 0;
47869  __Pyx_RefNannySetupContext("conservativeHeadRichardsJLeverettAniEvaluate", 0);
47870 
47871  /* "ctransportCoefficients.pyx":8175
47872  * np.ndarray a,
47873  * np.ndarray da):
47874  * cconservativeHeadRichardsJLeverettAni(f.size/f.shape[f.ndim-1]/f.shape[f.ndim-2], # <<<<<<<<<<<<<<
47875  * f.shape[f.ndim-2],
47876  * f.shape[f.ndim-1],
47877  */
47878  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_f), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8175, __pyx_L1_error)
47879  __Pyx_GOTREF(__pyx_t_1);
47880  __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8175, __pyx_L1_error)
47881  __Pyx_GOTREF(__pyx_t_2);
47882  __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8175, __pyx_L1_error)
47883  __Pyx_GOTREF(__pyx_t_3);
47884  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
47885  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
47886  __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_f->dimensions[(__pyx_v_f->nd - 2)])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8175, __pyx_L1_error)
47887  __Pyx_GOTREF(__pyx_t_2);
47888  __pyx_t_1 = __Pyx_PyNumber_Divide(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8175, __pyx_L1_error)
47889  __Pyx_GOTREF(__pyx_t_1);
47890  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
47891  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
47892  __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8175, __pyx_L1_error)
47893  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
47894 
47895  /* "ctransportCoefficients.pyx":8197
47896  * <double*> df.data,
47897  * <double*> a.data,
47898  * <double*> da.data) # <<<<<<<<<<<<<<
47899  * def diffusiveWave1DCoefficientsEvaluate(const double alpha,
47900  * const double gamma,
47901  */
47902  conservativeHeadRichardsJLeverettAni(__pyx_t_4, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 2)]), (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), ((int *)__pyx_v_materialTypes->data), __pyx_v_rho, __pyx_v_beta, ((double *)__pyx_v_gravity->data), ((double *)__pyx_v_phi->data), ((double *)__pyx_v_psiD->data), ((double *)__pyx_v_ns->data), ((double *)__pyx_v_nk->data), ((double *)__pyx_v_S_wirr->data), ((double *)__pyx_v_S_nwr->data), ((double *)__pyx_v_kr0x->data), ((double *)__pyx_v_kr0y->data), ((double *)__pyx_v_kr0z->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_mass->data), ((double *)__pyx_v_dmass->data), ((double *)__pyx_v_f->data), ((double *)__pyx_v_df->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data));
47903 
47904  /* "ctransportCoefficients.pyx":8155
47905  * <double*> a.data,
47906  * <double*> da.data)
47907  * def conservativeHeadRichardsJLeverettAniEvaluate(np.ndarray materialTypes, # <<<<<<<<<<<<<<
47908  * const double rho,
47909  * const double beta,
47910  */
47911 
47912  /* function exit code */
47913  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
47914  goto __pyx_L0;
47915  __pyx_L1_error:;
47916  __Pyx_XDECREF(__pyx_t_1);
47917  __Pyx_XDECREF(__pyx_t_2);
47918  __Pyx_XDECREF(__pyx_t_3);
47919  __Pyx_AddTraceback("ctransportCoefficients.conservativeHeadRichardsJLeverettAniEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
47920  __pyx_r = NULL;
47921  __pyx_L0:;
47922  __Pyx_XGIVEREF(__pyx_r);
47923  __Pyx_RefNannyFinishContext();
47924  return __pyx_r;
47925 }
47926 
47927 /* "ctransportCoefficients.pyx":8198
47928  * <double*> a.data,
47929  * <double*> da.data)
47930  * def diffusiveWave1DCoefficientsEvaluate(const double alpha, # <<<<<<<<<<<<<<
47931  * const double gamma,
47932  * const double epsilon,
47933  */
47934 
47935 /* Python wrapper */
47936 static PyObject *__pyx_pw_22ctransportCoefficients_263diffusiveWave1DCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
47937 static PyMethodDef __pyx_mdef_22ctransportCoefficients_263diffusiveWave1DCoefficientsEvaluate = {"diffusiveWave1DCoefficientsEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_263diffusiveWave1DCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
47938 static PyObject *__pyx_pw_22ctransportCoefficients_263diffusiveWave1DCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
47939  double __pyx_v_alpha;
47940  double __pyx_v_gamma;
47941  double __pyx_v_epsilon;
47942  PyArrayObject *__pyx_v_x = 0;
47943  PyArrayObject *__pyx_v_u = 0;
47944  PyArrayObject *__pyx_v_grad_u = 0;
47945  PyArrayObject *__pyx_v_m = 0;
47946  PyArrayObject *__pyx_v_dm = 0;
47947  PyArrayObject *__pyx_v_a = 0;
47948  PyArrayObject *__pyx_v_da = 0;
47949  int __pyx_lineno = 0;
47950  const char *__pyx_filename = NULL;
47951  int __pyx_clineno = 0;
47952  PyObject *__pyx_r = 0;
47953  __Pyx_RefNannyDeclarations
47954  __Pyx_RefNannySetupContext("diffusiveWave1DCoefficientsEvaluate (wrapper)", 0);
47955  {
47956  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_alpha,&__pyx_n_s_gamma,&__pyx_n_s_epsilon,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_grad_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_a,&__pyx_n_s_da,0};
47957  PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
47958  if (unlikely(__pyx_kwds)) {
47959  Py_ssize_t kw_args;
47960  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
47961  switch (pos_args) {
47962  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
47963  CYTHON_FALLTHROUGH;
47964  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
47965  CYTHON_FALLTHROUGH;
47966  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
47967  CYTHON_FALLTHROUGH;
47968  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
47969  CYTHON_FALLTHROUGH;
47970  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
47971  CYTHON_FALLTHROUGH;
47972  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
47973  CYTHON_FALLTHROUGH;
47974  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
47975  CYTHON_FALLTHROUGH;
47976  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
47977  CYTHON_FALLTHROUGH;
47978  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
47979  CYTHON_FALLTHROUGH;
47980  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
47981  CYTHON_FALLTHROUGH;
47982  case 0: break;
47983  default: goto __pyx_L5_argtuple_error;
47984  }
47985  kw_args = PyDict_Size(__pyx_kwds);
47986  switch (pos_args) {
47987  case 0:
47988  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
47989  else goto __pyx_L5_argtuple_error;
47990  CYTHON_FALLTHROUGH;
47991  case 1:
47992  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gamma)) != 0)) kw_args--;
47993  else {
47994  __Pyx_RaiseArgtupleInvalid("diffusiveWave1DCoefficientsEvaluate", 1, 10, 10, 1); __PYX_ERR(0, 8198, __pyx_L3_error)
47995  }
47996  CYTHON_FALLTHROUGH;
47997  case 2:
47998  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
47999  else {
48000  __Pyx_RaiseArgtupleInvalid("diffusiveWave1DCoefficientsEvaluate", 1, 10, 10, 2); __PYX_ERR(0, 8198, __pyx_L3_error)
48001  }
48002  CYTHON_FALLTHROUGH;
48003  case 3:
48004  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
48005  else {
48006  __Pyx_RaiseArgtupleInvalid("diffusiveWave1DCoefficientsEvaluate", 1, 10, 10, 3); __PYX_ERR(0, 8198, __pyx_L3_error)
48007  }
48008  CYTHON_FALLTHROUGH;
48009  case 4:
48010  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
48011  else {
48012  __Pyx_RaiseArgtupleInvalid("diffusiveWave1DCoefficientsEvaluate", 1, 10, 10, 4); __PYX_ERR(0, 8198, __pyx_L3_error)
48013  }
48014  CYTHON_FALLTHROUGH;
48015  case 5:
48016  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
48017  else {
48018  __Pyx_RaiseArgtupleInvalid("diffusiveWave1DCoefficientsEvaluate", 1, 10, 10, 5); __PYX_ERR(0, 8198, __pyx_L3_error)
48019  }
48020  CYTHON_FALLTHROUGH;
48021  case 6:
48022  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
48023  else {
48024  __Pyx_RaiseArgtupleInvalid("diffusiveWave1DCoefficientsEvaluate", 1, 10, 10, 6); __PYX_ERR(0, 8198, __pyx_L3_error)
48025  }
48026  CYTHON_FALLTHROUGH;
48027  case 7:
48028  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
48029  else {
48030  __Pyx_RaiseArgtupleInvalid("diffusiveWave1DCoefficientsEvaluate", 1, 10, 10, 7); __PYX_ERR(0, 8198, __pyx_L3_error)
48031  }
48032  CYTHON_FALLTHROUGH;
48033  case 8:
48034  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
48035  else {
48036  __Pyx_RaiseArgtupleInvalid("diffusiveWave1DCoefficientsEvaluate", 1, 10, 10, 8); __PYX_ERR(0, 8198, __pyx_L3_error)
48037  }
48038  CYTHON_FALLTHROUGH;
48039  case 9:
48040  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
48041  else {
48042  __Pyx_RaiseArgtupleInvalid("diffusiveWave1DCoefficientsEvaluate", 1, 10, 10, 9); __PYX_ERR(0, 8198, __pyx_L3_error)
48043  }
48044  }
48045  if (unlikely(kw_args > 0)) {
48046  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "diffusiveWave1DCoefficientsEvaluate") < 0)) __PYX_ERR(0, 8198, __pyx_L3_error)
48047  }
48048  } else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
48049  goto __pyx_L5_argtuple_error;
48050  } else {
48051  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
48052  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
48053  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
48054  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
48055  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
48056  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
48057  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
48058  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
48059  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
48060  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
48061  }
48062  __pyx_v_alpha = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_alpha == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8198, __pyx_L3_error)
48063  __pyx_v_gamma = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_gamma == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8199, __pyx_L3_error)
48064  __pyx_v_epsilon = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_epsilon == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8200, __pyx_L3_error)
48065  __pyx_v_x = ((PyArrayObject *)values[3]);
48066  __pyx_v_u = ((PyArrayObject *)values[4]);
48067  __pyx_v_grad_u = ((PyArrayObject *)values[5]);
48068  __pyx_v_m = ((PyArrayObject *)values[6]);
48069  __pyx_v_dm = ((PyArrayObject *)values[7]);
48070  __pyx_v_a = ((PyArrayObject *)values[8]);
48071  __pyx_v_da = ((PyArrayObject *)values[9]);
48072  }
48073  goto __pyx_L4_argument_unpacking_done;
48074  __pyx_L5_argtuple_error:;
48075  __Pyx_RaiseArgtupleInvalid("diffusiveWave1DCoefficientsEvaluate", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8198, __pyx_L3_error)
48076  __pyx_L3_error:;
48077  __Pyx_AddTraceback("ctransportCoefficients.diffusiveWave1DCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
48078  __Pyx_RefNannyFinishContext();
48079  return NULL;
48080  __pyx_L4_argument_unpacking_done:;
48081  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1, "x", 0))) __PYX_ERR(0, 8201, __pyx_L1_error)
48082  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 8202, __pyx_L1_error)
48083  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1, "grad_u", 0))) __PYX_ERR(0, 8203, __pyx_L1_error)
48084  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 8204, __pyx_L1_error)
48085  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 8205, __pyx_L1_error)
48086  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 8206, __pyx_L1_error)
48087  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 8207, __pyx_L1_error)
48088  __pyx_r = __pyx_pf_22ctransportCoefficients_262diffusiveWave1DCoefficientsEvaluate(__pyx_self, __pyx_v_alpha, __pyx_v_gamma, __pyx_v_epsilon, __pyx_v_x, __pyx_v_u, __pyx_v_grad_u, __pyx_v_m, __pyx_v_dm, __pyx_v_a, __pyx_v_da);
48089 
48090  /* function exit code */
48091  goto __pyx_L0;
48092  __pyx_L1_error:;
48093  __pyx_r = NULL;
48094  __pyx_L0:;
48095  __Pyx_RefNannyFinishContext();
48096  return __pyx_r;
48097 }
48098 
48099 static PyObject *__pyx_pf_22ctransportCoefficients_262diffusiveWave1DCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_alpha, double __pyx_v_gamma, double __pyx_v_epsilon, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
48100  PyObject *__pyx_r = NULL;
48101  __Pyx_RefNannyDeclarations
48102  PyObject *__pyx_t_1 = NULL;
48103  int __pyx_t_2;
48104  int __pyx_lineno = 0;
48105  const char *__pyx_filename = NULL;
48106  int __pyx_clineno = 0;
48107  __Pyx_RefNannySetupContext("diffusiveWave1DCoefficientsEvaluate", 0);
48108 
48109  /* "ctransportCoefficients.pyx":8208
48110  * np.ndarray a,
48111  * np.ndarray da):
48112  * cdiffusiveWave1DEvaluate(u.size, # <<<<<<<<<<<<<<
48113  * alpha,
48114  * gamma,
48115  */
48116  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8208, __pyx_L1_error)
48117  __Pyx_GOTREF(__pyx_t_1);
48118  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8208, __pyx_L1_error)
48119  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
48120 
48121  /* "ctransportCoefficients.pyx":8218
48122  * <double*> dm.data,
48123  * <double*> a.data,
48124  * <double*> da.data) # <<<<<<<<<<<<<<
48125  * def diffusiveWave2DCoefficientsEvaluate(const int nd,
48126  * const double alpha,
48127  */
48128  diffusiveWave1DEvaluate(__pyx_t_2, __pyx_v_alpha, __pyx_v_gamma, __pyx_v_epsilon, ((double *)__pyx_v_x->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_grad_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data));
48129 
48130  /* "ctransportCoefficients.pyx":8198
48131  * <double*> a.data,
48132  * <double*> da.data)
48133  * def diffusiveWave1DCoefficientsEvaluate(const double alpha, # <<<<<<<<<<<<<<
48134  * const double gamma,
48135  * const double epsilon,
48136  */
48137 
48138  /* function exit code */
48139  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
48140  goto __pyx_L0;
48141  __pyx_L1_error:;
48142  __Pyx_XDECREF(__pyx_t_1);
48143  __Pyx_AddTraceback("ctransportCoefficients.diffusiveWave1DCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
48144  __pyx_r = NULL;
48145  __pyx_L0:;
48146  __Pyx_XGIVEREF(__pyx_r);
48147  __Pyx_RefNannyFinishContext();
48148  return __pyx_r;
48149 }
48150 
48151 /* "ctransportCoefficients.pyx":8219
48152  * <double*> a.data,
48153  * <double*> da.data)
48154  * def diffusiveWave2DCoefficientsEvaluate(const int nd, # <<<<<<<<<<<<<<
48155  * const double alpha,
48156  * const double gamma,
48157  */
48158 
48159 /* Python wrapper */
48160 static PyObject *__pyx_pw_22ctransportCoefficients_265diffusiveWave2DCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
48161 static PyMethodDef __pyx_mdef_22ctransportCoefficients_265diffusiveWave2DCoefficientsEvaluate = {"diffusiveWave2DCoefficientsEvaluate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_265diffusiveWave2DCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
48162 static PyObject *__pyx_pw_22ctransportCoefficients_265diffusiveWave2DCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
48163  int __pyx_v_nd;
48164  double __pyx_v_alpha;
48165  double __pyx_v_gamma;
48166  double __pyx_v_epsilon;
48167  PyArrayObject *__pyx_v_x = 0;
48168  PyArrayObject *__pyx_v_u = 0;
48169  PyArrayObject *__pyx_v_grad_u = 0;
48170  PyArrayObject *__pyx_v_m = 0;
48171  PyArrayObject *__pyx_v_dm = 0;
48172  PyArrayObject *__pyx_v_a = 0;
48173  PyArrayObject *__pyx_v_da = 0;
48174  int __pyx_lineno = 0;
48175  const char *__pyx_filename = NULL;
48176  int __pyx_clineno = 0;
48177  PyObject *__pyx_r = 0;
48178  __Pyx_RefNannyDeclarations
48179  __Pyx_RefNannySetupContext("diffusiveWave2DCoefficientsEvaluate (wrapper)", 0);
48180  {
48181  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nd,&__pyx_n_s_alpha,&__pyx_n_s_gamma,&__pyx_n_s_epsilon,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_grad_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_a,&__pyx_n_s_da,0};
48182  PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0};
48183  if (unlikely(__pyx_kwds)) {
48184  Py_ssize_t kw_args;
48185  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
48186  switch (pos_args) {
48187  case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
48188  CYTHON_FALLTHROUGH;
48189  case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
48190  CYTHON_FALLTHROUGH;
48191  case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
48192  CYTHON_FALLTHROUGH;
48193  case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
48194  CYTHON_FALLTHROUGH;
48195  case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
48196  CYTHON_FALLTHROUGH;
48197  case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
48198  CYTHON_FALLTHROUGH;
48199  case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
48200  CYTHON_FALLTHROUGH;
48201  case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
48202  CYTHON_FALLTHROUGH;
48203  case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
48204  CYTHON_FALLTHROUGH;
48205  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
48206  CYTHON_FALLTHROUGH;
48207  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
48208  CYTHON_FALLTHROUGH;
48209  case 0: break;
48210  default: goto __pyx_L5_argtuple_error;
48211  }
48212  kw_args = PyDict_Size(__pyx_kwds);
48213  switch (pos_args) {
48214  case 0:
48215  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nd)) != 0)) kw_args--;
48216  else goto __pyx_L5_argtuple_error;
48217  CYTHON_FALLTHROUGH;
48218  case 1:
48219  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
48220  else {
48221  __Pyx_RaiseArgtupleInvalid("diffusiveWave2DCoefficientsEvaluate", 1, 11, 11, 1); __PYX_ERR(0, 8219, __pyx_L3_error)
48222  }
48223  CYTHON_FALLTHROUGH;
48224  case 2:
48225  if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gamma)) != 0)) kw_args--;
48226  else {
48227  __Pyx_RaiseArgtupleInvalid("diffusiveWave2DCoefficientsEvaluate", 1, 11, 11, 2); __PYX_ERR(0, 8219, __pyx_L3_error)
48228  }
48229  CYTHON_FALLTHROUGH;
48230  case 3:
48231  if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
48232  else {
48233  __Pyx_RaiseArgtupleInvalid("diffusiveWave2DCoefficientsEvaluate", 1, 11, 11, 3); __PYX_ERR(0, 8219, __pyx_L3_error)
48234  }
48235  CYTHON_FALLTHROUGH;
48236  case 4:
48237  if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
48238  else {
48239  __Pyx_RaiseArgtupleInvalid("diffusiveWave2DCoefficientsEvaluate", 1, 11, 11, 4); __PYX_ERR(0, 8219, __pyx_L3_error)
48240  }
48241  CYTHON_FALLTHROUGH;
48242  case 5:
48243  if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
48244  else {
48245  __Pyx_RaiseArgtupleInvalid("diffusiveWave2DCoefficientsEvaluate", 1, 11, 11, 5); __PYX_ERR(0, 8219, __pyx_L3_error)
48246  }
48247  CYTHON_FALLTHROUGH;
48248  case 6:
48249  if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
48250  else {
48251  __Pyx_RaiseArgtupleInvalid("diffusiveWave2DCoefficientsEvaluate", 1, 11, 11, 6); __PYX_ERR(0, 8219, __pyx_L3_error)
48252  }
48253  CYTHON_FALLTHROUGH;
48254  case 7:
48255  if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
48256  else {
48257  __Pyx_RaiseArgtupleInvalid("diffusiveWave2DCoefficientsEvaluate", 1, 11, 11, 7); __PYX_ERR(0, 8219, __pyx_L3_error)
48258  }
48259  CYTHON_FALLTHROUGH;
48260  case 8:
48261  if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
48262  else {
48263  __Pyx_RaiseArgtupleInvalid("diffusiveWave2DCoefficientsEvaluate", 1, 11, 11, 8); __PYX_ERR(0, 8219, __pyx_L3_error)
48264  }
48265  CYTHON_FALLTHROUGH;
48266  case 9:
48267  if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
48268  else {
48269  __Pyx_RaiseArgtupleInvalid("diffusiveWave2DCoefficientsEvaluate", 1, 11, 11, 9); __PYX_ERR(0, 8219, __pyx_L3_error)
48270  }
48271  CYTHON_FALLTHROUGH;
48272  case 10:
48273  if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
48274  else {
48275  __Pyx_RaiseArgtupleInvalid("diffusiveWave2DCoefficientsEvaluate", 1, 11, 11, 10); __PYX_ERR(0, 8219, __pyx_L3_error)
48276  }
48277  }
48278  if (unlikely(kw_args > 0)) {
48279  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "diffusiveWave2DCoefficientsEvaluate") < 0)) __PYX_ERR(0, 8219, __pyx_L3_error)
48280  }
48281  } else if (PyTuple_GET_SIZE(__pyx_args) != 11) {
48282  goto __pyx_L5_argtuple_error;
48283  } else {
48284  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
48285  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
48286  values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
48287  values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
48288  values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
48289  values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
48290  values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
48291  values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
48292  values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
48293  values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
48294  values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
48295  }
48296  __pyx_v_nd = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_nd == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8219, __pyx_L3_error)
48297  __pyx_v_alpha = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_alpha == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8220, __pyx_L3_error)
48298  __pyx_v_gamma = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_gamma == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8221, __pyx_L3_error)
48299  __pyx_v_epsilon = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_epsilon == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8222, __pyx_L3_error)
48300  __pyx_v_x = ((PyArrayObject *)values[4]);
48301  __pyx_v_u = ((PyArrayObject *)values[5]);
48302  __pyx_v_grad_u = ((PyArrayObject *)values[6]);
48303  __pyx_v_m = ((PyArrayObject *)values[7]);
48304  __pyx_v_dm = ((PyArrayObject *)values[8]);
48305  __pyx_v_a = ((PyArrayObject *)values[9]);
48306  __pyx_v_da = ((PyArrayObject *)values[10]);
48307  }
48308  goto __pyx_L4_argument_unpacking_done;
48309  __pyx_L5_argtuple_error:;
48310  __Pyx_RaiseArgtupleInvalid("diffusiveWave2DCoefficientsEvaluate", 1, 11, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8219, __pyx_L3_error)
48311  __pyx_L3_error:;
48312  __Pyx_AddTraceback("ctransportCoefficients.diffusiveWave2DCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
48313  __Pyx_RefNannyFinishContext();
48314  return NULL;
48315  __pyx_L4_argument_unpacking_done:;
48316  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1, "x", 0))) __PYX_ERR(0, 8223, __pyx_L1_error)
48317  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1, "u", 0))) __PYX_ERR(0, 8224, __pyx_L1_error)
48318  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1, "grad_u", 0))) __PYX_ERR(0, 8225, __pyx_L1_error)
48319  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1, "m", 0))) __PYX_ERR(0, 8226, __pyx_L1_error)
48320  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1, "dm", 0))) __PYX_ERR(0, 8227, __pyx_L1_error)
48321  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1, "a", 0))) __PYX_ERR(0, 8228, __pyx_L1_error)
48322  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1, "da", 0))) __PYX_ERR(0, 8229, __pyx_L1_error)
48323  __pyx_r = __pyx_pf_22ctransportCoefficients_264diffusiveWave2DCoefficientsEvaluate(__pyx_self, __pyx_v_nd, __pyx_v_alpha, __pyx_v_gamma, __pyx_v_epsilon, __pyx_v_x, __pyx_v_u, __pyx_v_grad_u, __pyx_v_m, __pyx_v_dm, __pyx_v_a, __pyx_v_da);
48324 
48325  /* function exit code */
48326  goto __pyx_L0;
48327  __pyx_L1_error:;
48328  __pyx_r = NULL;
48329  __pyx_L0:;
48330  __Pyx_RefNannyFinishContext();
48331  return __pyx_r;
48332 }
48333 
48334 static PyObject *__pyx_pf_22ctransportCoefficients_264diffusiveWave2DCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_nd, double __pyx_v_alpha, double __pyx_v_gamma, double __pyx_v_epsilon, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
48335  PyObject *__pyx_r = NULL;
48336  __Pyx_RefNannyDeclarations
48337  PyObject *__pyx_t_1 = NULL;
48338  int __pyx_t_2;
48339  int __pyx_lineno = 0;
48340  const char *__pyx_filename = NULL;
48341  int __pyx_clineno = 0;
48342  __Pyx_RefNannySetupContext("diffusiveWave2DCoefficientsEvaluate", 0);
48343 
48344  /* "ctransportCoefficients.pyx":8231
48345  * np.ndarray da):
48346  * cdiffusiveWave2DEvaluate(nd,
48347  * u.size, # <<<<<<<<<<<<<<
48348  * alpha,
48349  * gamma,
48350  */
48351  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8231, __pyx_L1_error)
48352  __Pyx_GOTREF(__pyx_t_1);
48353  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8231, __pyx_L1_error)
48354  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
48355 
48356  /* "ctransportCoefficients.pyx":8230
48357  * np.ndarray a,
48358  * np.ndarray da):
48359  * cdiffusiveWave2DEvaluate(nd, # <<<<<<<<<<<<<<
48360  * u.size,
48361  * alpha,
48362  */
48363  diffusiveWave2DEvaluate(__pyx_v_nd, __pyx_t_2, __pyx_v_alpha, __pyx_v_gamma, __pyx_v_epsilon, ((double *)__pyx_v_x->data), ((double *)__pyx_v_u->data), ((double *)__pyx_v_grad_u->data), ((double *)__pyx_v_m->data), ((double *)__pyx_v_dm->data), ((double *)__pyx_v_a->data), ((double *)__pyx_v_da->data));
48364 
48365  /* "ctransportCoefficients.pyx":8219
48366  * <double*> a.data,
48367  * <double*> da.data)
48368  * def diffusiveWave2DCoefficientsEvaluate(const int nd, # <<<<<<<<<<<<<<
48369  * const double alpha,
48370  * const double gamma,
48371  */
48372 
48373  /* function exit code */
48374  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
48375  goto __pyx_L0;
48376  __pyx_L1_error:;
48377  __Pyx_XDECREF(__pyx_t_1);
48378  __Pyx_AddTraceback("ctransportCoefficients.diffusiveWave2DCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
48379  __pyx_r = NULL;
48380  __pyx_L0:;
48381  __Pyx_XGIVEREF(__pyx_r);
48382  __Pyx_RefNannyFinishContext();
48383  return __pyx_r;
48384 }
48385 
48386 /* "ctransportCoefficients.pyx":8243
48387  * <double*> da.data)
48388  *
48389  * def smoothedHeaviside (double eps, double phi): # <<<<<<<<<<<<<<
48390  * return csmoothedHeaviside(eps,phi)
48391  * def smoothedHeaviside_integral (double eps, double phi):
48392  */
48393 
48394 /* Python wrapper */
48395 static PyObject *__pyx_pw_22ctransportCoefficients_267smoothedHeaviside(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
48396 static PyMethodDef __pyx_mdef_22ctransportCoefficients_267smoothedHeaviside = {"smoothedHeaviside", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_267smoothedHeaviside, METH_VARARGS|METH_KEYWORDS, 0};
48397 static PyObject *__pyx_pw_22ctransportCoefficients_267smoothedHeaviside(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
48398  double __pyx_v_eps;
48399  double __pyx_v_phi;
48400  int __pyx_lineno = 0;
48401  const char *__pyx_filename = NULL;
48402  int __pyx_clineno = 0;
48403  PyObject *__pyx_r = 0;
48404  __Pyx_RefNannyDeclarations
48405  __Pyx_RefNannySetupContext("smoothedHeaviside (wrapper)", 0);
48406  {
48407  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_phi,0};
48408  PyObject* values[2] = {0,0};
48409  if (unlikely(__pyx_kwds)) {
48410  Py_ssize_t kw_args;
48411  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
48412  switch (pos_args) {
48413  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
48414  CYTHON_FALLTHROUGH;
48415  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
48416  CYTHON_FALLTHROUGH;
48417  case 0: break;
48418  default: goto __pyx_L5_argtuple_error;
48419  }
48420  kw_args = PyDict_Size(__pyx_kwds);
48421  switch (pos_args) {
48422  case 0:
48423  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
48424  else goto __pyx_L5_argtuple_error;
48425  CYTHON_FALLTHROUGH;
48426  case 1:
48427  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
48428  else {
48429  __Pyx_RaiseArgtupleInvalid("smoothedHeaviside", 1, 2, 2, 1); __PYX_ERR(0, 8243, __pyx_L3_error)
48430  }
48431  }
48432  if (unlikely(kw_args > 0)) {
48433  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "smoothedHeaviside") < 0)) __PYX_ERR(0, 8243, __pyx_L3_error)
48434  }
48435  } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
48436  goto __pyx_L5_argtuple_error;
48437  } else {
48438  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
48439  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
48440  }
48441  __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8243, __pyx_L3_error)
48442  __pyx_v_phi = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_phi == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8243, __pyx_L3_error)
48443  }
48444  goto __pyx_L4_argument_unpacking_done;
48445  __pyx_L5_argtuple_error:;
48446  __Pyx_RaiseArgtupleInvalid("smoothedHeaviside", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8243, __pyx_L3_error)
48447  __pyx_L3_error:;
48448  __Pyx_AddTraceback("ctransportCoefficients.smoothedHeaviside", __pyx_clineno, __pyx_lineno, __pyx_filename);
48449  __Pyx_RefNannyFinishContext();
48450  return NULL;
48451  __pyx_L4_argument_unpacking_done:;
48452  __pyx_r = __pyx_pf_22ctransportCoefficients_266smoothedHeaviside(__pyx_self, __pyx_v_eps, __pyx_v_phi);
48453 
48454  /* function exit code */
48455  __Pyx_RefNannyFinishContext();
48456  return __pyx_r;
48457 }
48458 
48459 static PyObject *__pyx_pf_22ctransportCoefficients_266smoothedHeaviside(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, double __pyx_v_phi) {
48460  PyObject *__pyx_r = NULL;
48461  __Pyx_RefNannyDeclarations
48462  PyObject *__pyx_t_1 = NULL;
48463  int __pyx_lineno = 0;
48464  const char *__pyx_filename = NULL;
48465  int __pyx_clineno = 0;
48466  __Pyx_RefNannySetupContext("smoothedHeaviside", 0);
48467 
48468  /* "ctransportCoefficients.pyx":8244
48469  *
48470  * def smoothedHeaviside (double eps, double phi):
48471  * return csmoothedHeaviside(eps,phi) # <<<<<<<<<<<<<<
48472  * def smoothedHeaviside_integral (double eps, double phi):
48473  * return csmoothedHeaviside_integral(eps,phi)
48474  */
48475  __Pyx_XDECREF(__pyx_r);
48476  __pyx_t_1 = PyFloat_FromDouble(smoothedHeaviside(__pyx_v_eps, __pyx_v_phi)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8244, __pyx_L1_error)
48477  __Pyx_GOTREF(__pyx_t_1);
48478  __pyx_r = __pyx_t_1;
48479  __pyx_t_1 = 0;
48480  goto __pyx_L0;
48481 
48482  /* "ctransportCoefficients.pyx":8243
48483  * <double*> da.data)
48484  *
48485  * def smoothedHeaviside (double eps, double phi): # <<<<<<<<<<<<<<
48486  * return csmoothedHeaviside(eps,phi)
48487  * def smoothedHeaviside_integral (double eps, double phi):
48488  */
48489 
48490  /* function exit code */
48491  __pyx_L1_error:;
48492  __Pyx_XDECREF(__pyx_t_1);
48493  __Pyx_AddTraceback("ctransportCoefficients.smoothedHeaviside", __pyx_clineno, __pyx_lineno, __pyx_filename);
48494  __pyx_r = NULL;
48495  __pyx_L0:;
48496  __Pyx_XGIVEREF(__pyx_r);
48497  __Pyx_RefNannyFinishContext();
48498  return __pyx_r;
48499 }
48500 
48501 /* "ctransportCoefficients.pyx":8245
48502  * def smoothedHeaviside (double eps, double phi):
48503  * return csmoothedHeaviside(eps,phi)
48504  * def smoothedHeaviside_integral (double eps, double phi): # <<<<<<<<<<<<<<
48505  * return csmoothedHeaviside_integral(eps,phi)
48506  * def smoothedDirac (double eps, double phi):
48507  */
48508 
48509 /* Python wrapper */
48510 static PyObject *__pyx_pw_22ctransportCoefficients_269smoothedHeaviside_integral(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
48511 static PyMethodDef __pyx_mdef_22ctransportCoefficients_269smoothedHeaviside_integral = {"smoothedHeaviside_integral", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_269smoothedHeaviside_integral, METH_VARARGS|METH_KEYWORDS, 0};
48512 static PyObject *__pyx_pw_22ctransportCoefficients_269smoothedHeaviside_integral(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
48513  double __pyx_v_eps;
48514  double __pyx_v_phi;
48515  int __pyx_lineno = 0;
48516  const char *__pyx_filename = NULL;
48517  int __pyx_clineno = 0;
48518  PyObject *__pyx_r = 0;
48519  __Pyx_RefNannyDeclarations
48520  __Pyx_RefNannySetupContext("smoothedHeaviside_integral (wrapper)", 0);
48521  {
48522  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_phi,0};
48523  PyObject* values[2] = {0,0};
48524  if (unlikely(__pyx_kwds)) {
48525  Py_ssize_t kw_args;
48526  const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
48527  switch (pos_args) {
48528  case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
48529  CYTHON_FALLTHROUGH;
48530  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
48531  CYTHON_FALLTHROUGH;
48532  case 0: break;
48533  default: goto __pyx_L5_argtuple_error;
48534  }
48535  kw_args = PyDict_Size(__pyx_kwds);
48536  switch (pos_args) {
48537  case 0:
48538  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
48539  else goto __pyx_L5_argtuple_error;
48540  CYTHON_FALLTHROUGH;
48541  case 1:
48542  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
48543  else {
48544  __Pyx_RaiseArgtupleInvalid("smoothedHeaviside_integral", 1, 2, 2, 1); __PYX_ERR(0, 8245, __pyx_L3_error)
48545  }
48546  }
48547  if (unlikely(kw_args > 0)) {
48548  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "smoothedHeaviside_integral") < 0)) __PYX_ERR(0, 8245, __pyx_L3_error)
48549  }
48550  } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
48551  goto __pyx_L5_argtuple_error;
48552  } else {
48553  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
48554  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
48555  }
48556  __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8245, __pyx_L3_error)
48557  __pyx_v_phi = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_phi == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8245, __pyx_L3_error)
48558  }
48559  goto __pyx_L4_argument_unpacking_done;
48560  __pyx_L5_argtuple_error:;
48561  __Pyx_RaiseArgtupleInvalid("smoothedHeaviside_integral", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8245, __pyx_L3_error)
48562  __pyx_L3_error:;
48563  __Pyx_AddTraceback("ctransportCoefficients.smoothedHeaviside_integral", __pyx_clineno, __pyx_lineno, __pyx_filename);
48564  __Pyx_RefNannyFinishContext();
48565  return NULL;
48566  __pyx_L4_argument_unpacking_done:;
48567  __pyx_r = __pyx_pf_22ctransportCoefficients_268smoothedHeaviside_integral(__pyx_self, __pyx_v_eps, __pyx_v_phi);
48568 
48569  /* function exit code */
48570  __Pyx_RefNannyFinishContext();
48571  return __pyx_r;
48572 }
48573 
48574 static PyObject *__pyx_pf_22ctransportCoefficients_268smoothedHeaviside_integral(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, double __pyx_v_phi) {
48575  PyObject *__pyx_r = NULL;
48576  __Pyx_RefNannyDeclarations
48577  PyObject *__pyx_t_1 = NULL;
48578  int __pyx_lineno = 0;
48579  const char *__pyx_filename = NULL;
48580  int __pyx_clineno = 0;
48581  __Pyx_RefNannySetupContext("smoothedHeaviside_integral", 0);
48582 
48583  /* "ctransportCoefficients.pyx":8246
48584  * return csmoothedHeaviside(eps,phi)
48585  * def smoothedHeaviside_integral (double eps, double phi):
48586  * return csmoothedHeaviside_integral(eps,phi) # <<<<<<<<<<<<<<
48587  * def smoothedDirac (double eps, double phi):
48588  * return csmoothedDirac(eps,phi)
48589  */
48590  __Pyx_XDECREF(__pyx_r);
48591  __pyx_t_1 = PyFloat_FromDouble(smoothedHeaviside_integral(__pyx_v_eps, __pyx_v_phi)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8246, __pyx_L1_error)
48592  __Pyx_GOTREF(__pyx_t_1);
48593  __pyx_r = __pyx_t_1;
48594  __pyx_t_1 = 0;
48595  goto __pyx_L0;
48596 
48597  /* "ctransportCoefficients.pyx":8245
48598  * def smoothedHeaviside (double eps, double phi):
48599  * return csmoothedHeaviside(eps,phi)
48600  * def smoothedHeaviside_integral (double eps, double phi): # <<<<<<<<<<<<<<
48601  * return csmoothedHeaviside_integral(eps,phi)
48602  * def smoothedDirac (double eps, double phi):
48603  */
48604 
48605  /* function exit code */
48606  __pyx_L1_error:;
48607  __Pyx_XDECREF(__pyx_t_1);
48608  __Pyx_AddTraceback("ctransportCoefficients.smoothedHeaviside_integral", __pyx_clineno, __pyx_lineno, __pyx_filename);
48609  __pyx_r = NULL;
48610  __pyx_L0:;
48611  __Pyx_XGIVEREF(__pyx_r);
48612  __Pyx_RefNannyFinishContext();
48613  return __pyx_r;
48614 }
48615 
48616 /* "ctransportCoefficients.pyx":8247
48617  * def smoothedHeaviside_integral (double eps, double phi):
48618  * return csmoothedHeaviside_integral(eps,phi)
48619  * def smoothedDirac (double eps, double phi): # <<<<<<<<<<<<<<
48620  * return csmoothedDirac(eps,phi)
48621  *
48622  */
48623 
48624 /* Python wrapper */
48625 static PyObject *__pyx_pw_22ctransportCoefficients_271smoothedDirac(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
48626 static PyMethodDef __pyx_mdef_22ctransportCoefficients_271smoothedDirac = {"smoothedDirac", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_271smoothedDirac, METH_VARARGS|METH_KEYWORDS, 0};
48627 static PyObject *__pyx_pw_22ctransportCoefficients_271smoothedDirac(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
48628  double __pyx_v_eps;
48629  double __pyx_v_phi;
48630  int __pyx_lineno = 0;
48631  const char *__pyx_filename = NULL;
48632  int __pyx_clineno = 0;
48633  PyObject *__pyx_r = 0;
48634  __Pyx_RefNannyDeclarations
48635  __Pyx_RefNannySetupContext("smoothedDirac (wrapper)", 0);
48636  {
48637  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_phi,0};
48638  PyObject* values[2] = {0,0};
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 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
48644  CYTHON_FALLTHROUGH;
48645  case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
48646  CYTHON_FALLTHROUGH;
48647  case 0: break;
48648  default: goto __pyx_L5_argtuple_error;
48649  }
48650  kw_args = PyDict_Size(__pyx_kwds);
48651  switch (pos_args) {
48652  case 0:
48653  if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
48654  else goto __pyx_L5_argtuple_error;
48655  CYTHON_FALLTHROUGH;
48656  case 1:
48657  if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
48658  else {
48659  __Pyx_RaiseArgtupleInvalid("smoothedDirac", 1, 2, 2, 1); __PYX_ERR(0, 8247, __pyx_L3_error)
48660  }
48661  }
48662  if (unlikely(kw_args > 0)) {
48663  if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "smoothedDirac") < 0)) __PYX_ERR(0, 8247, __pyx_L3_error)
48664  }
48665  } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
48666  goto __pyx_L5_argtuple_error;
48667  } else {
48668  values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
48669  values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
48670  }
48671  __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_eps == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8247, __pyx_L3_error)
48672  __pyx_v_phi = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_phi == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8247, __pyx_L3_error)
48673  }
48674  goto __pyx_L4_argument_unpacking_done;
48675  __pyx_L5_argtuple_error:;
48676  __Pyx_RaiseArgtupleInvalid("smoothedDirac", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8247, __pyx_L3_error)
48677  __pyx_L3_error:;
48678  __Pyx_AddTraceback("ctransportCoefficients.smoothedDirac", __pyx_clineno, __pyx_lineno, __pyx_filename);
48679  __Pyx_RefNannyFinishContext();
48680  return NULL;
48681  __pyx_L4_argument_unpacking_done:;
48682  __pyx_r = __pyx_pf_22ctransportCoefficients_270smoothedDirac(__pyx_self, __pyx_v_eps, __pyx_v_phi);
48683 
48684  /* function exit code */
48685  __Pyx_RefNannyFinishContext();
48686  return __pyx_r;
48687 }
48688 
48689 static PyObject *__pyx_pf_22ctransportCoefficients_270smoothedDirac(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_eps, double __pyx_v_phi) {
48690  PyObject *__pyx_r = NULL;
48691  __Pyx_RefNannyDeclarations
48692  PyObject *__pyx_t_1 = NULL;
48693  int __pyx_lineno = 0;
48694  const char *__pyx_filename = NULL;
48695  int __pyx_clineno = 0;
48696  __Pyx_RefNannySetupContext("smoothedDirac", 0);
48697 
48698  /* "ctransportCoefficients.pyx":8248
48699  * return csmoothedHeaviside_integral(eps,phi)
48700  * def smoothedDirac (double eps, double phi):
48701  * return csmoothedDirac(eps,phi) # <<<<<<<<<<<<<<
48702  *
48703  * ##------------
48704  */
48705  __Pyx_XDECREF(__pyx_r);
48706  __pyx_t_1 = PyFloat_FromDouble(smoothedDirac(__pyx_v_eps, __pyx_v_phi)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8248, __pyx_L1_error)
48707  __Pyx_GOTREF(__pyx_t_1);
48708  __pyx_r = __pyx_t_1;
48709  __pyx_t_1 = 0;
48710  goto __pyx_L0;
48711 
48712  /* "ctransportCoefficients.pyx":8247
48713  * def smoothedHeaviside_integral (double eps, double phi):
48714  * return csmoothedHeaviside_integral(eps,phi)
48715  * def smoothedDirac (double eps, double phi): # <<<<<<<<<<<<<<
48716  * return csmoothedDirac(eps,phi)
48717  *
48718  */
48719 
48720  /* function exit code */
48721  __pyx_L1_error:;
48722  __Pyx_XDECREF(__pyx_t_1);
48723  __Pyx_AddTraceback("ctransportCoefficients.smoothedDirac", __pyx_clineno, __pyx_lineno, __pyx_filename);
48724  __pyx_r = NULL;
48725  __pyx_L0:;
48726  __Pyx_XGIVEREF(__pyx_r);
48727  __Pyx_RefNannyFinishContext();
48728  return __pyx_r;
48729 }
48730 
48731 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":735
48732  * ctypedef npy_cdouble complex_t
48733  *
48734  * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
48735  * return PyArray_MultiIterNew(1, <void*>a)
48736  *
48737  */
48738 
48739 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) {
48740  PyObject *__pyx_r = NULL;
48741  __Pyx_RefNannyDeclarations
48742  PyObject *__pyx_t_1 = NULL;
48743  int __pyx_lineno = 0;
48744  const char *__pyx_filename = NULL;
48745  int __pyx_clineno = 0;
48746  __Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 0);
48747 
48748  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":736
48749  *
48750  * cdef inline object PyArray_MultiIterNew1(a):
48751  * return PyArray_MultiIterNew(1, <void*>a) # <<<<<<<<<<<<<<
48752  *
48753  * cdef inline object PyArray_MultiIterNew2(a, b):
48754  */
48755  __Pyx_XDECREF(__pyx_r);
48756  __pyx_t_1 = PyArray_MultiIterNew(1, ((void *)__pyx_v_a)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 736, __pyx_L1_error)
48757  __Pyx_GOTREF(__pyx_t_1);
48758  __pyx_r = __pyx_t_1;
48759  __pyx_t_1 = 0;
48760  goto __pyx_L0;
48761 
48762  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":735
48763  * ctypedef npy_cdouble complex_t
48764  *
48765  * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
48766  * return PyArray_MultiIterNew(1, <void*>a)
48767  *
48768  */
48769 
48770  /* function exit code */
48771  __pyx_L1_error:;
48772  __Pyx_XDECREF(__pyx_t_1);
48773  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename);
48774  __pyx_r = 0;
48775  __pyx_L0:;
48776  __Pyx_XGIVEREF(__pyx_r);
48777  __Pyx_RefNannyFinishContext();
48778  return __pyx_r;
48779 }
48780 
48781 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":738
48782  * return PyArray_MultiIterNew(1, <void*>a)
48783  *
48784  * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
48785  * return PyArray_MultiIterNew(2, <void*>a, <void*>b)
48786  *
48787  */
48788 
48789 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) {
48790  PyObject *__pyx_r = NULL;
48791  __Pyx_RefNannyDeclarations
48792  PyObject *__pyx_t_1 = NULL;
48793  int __pyx_lineno = 0;
48794  const char *__pyx_filename = NULL;
48795  int __pyx_clineno = 0;
48796  __Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 0);
48797 
48798  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":739
48799  *
48800  * cdef inline object PyArray_MultiIterNew2(a, b):
48801  * return PyArray_MultiIterNew(2, <void*>a, <void*>b) # <<<<<<<<<<<<<<
48802  *
48803  * cdef inline object PyArray_MultiIterNew3(a, b, c):
48804  */
48805  __Pyx_XDECREF(__pyx_r);
48806  __pyx_t_1 = PyArray_MultiIterNew(2, ((void *)__pyx_v_a), ((void *)__pyx_v_b)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 739, __pyx_L1_error)
48807  __Pyx_GOTREF(__pyx_t_1);
48808  __pyx_r = __pyx_t_1;
48809  __pyx_t_1 = 0;
48810  goto __pyx_L0;
48811 
48812  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":738
48813  * return PyArray_MultiIterNew(1, <void*>a)
48814  *
48815  * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
48816  * return PyArray_MultiIterNew(2, <void*>a, <void*>b)
48817  *
48818  */
48819 
48820  /* function exit code */
48821  __pyx_L1_error:;
48822  __Pyx_XDECREF(__pyx_t_1);
48823  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename);
48824  __pyx_r = 0;
48825  __pyx_L0:;
48826  __Pyx_XGIVEREF(__pyx_r);
48827  __Pyx_RefNannyFinishContext();
48828  return __pyx_r;
48829 }
48830 
48831 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":741
48832  * return PyArray_MultiIterNew(2, <void*>a, <void*>b)
48833  *
48834  * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<<
48835  * return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
48836  *
48837  */
48838 
48839 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c) {
48840  PyObject *__pyx_r = NULL;
48841  __Pyx_RefNannyDeclarations
48842  PyObject *__pyx_t_1 = NULL;
48843  int __pyx_lineno = 0;
48844  const char *__pyx_filename = NULL;
48845  int __pyx_clineno = 0;
48846  __Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 0);
48847 
48848  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":742
48849  *
48850  * cdef inline object PyArray_MultiIterNew3(a, b, c):
48851  * return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c) # <<<<<<<<<<<<<<
48852  *
48853  * cdef inline object PyArray_MultiIterNew4(a, b, c, d):
48854  */
48855  __Pyx_XDECREF(__pyx_r);
48856  __pyx_t_1 = PyArray_MultiIterNew(3, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 742, __pyx_L1_error)
48857  __Pyx_GOTREF(__pyx_t_1);
48858  __pyx_r = __pyx_t_1;
48859  __pyx_t_1 = 0;
48860  goto __pyx_L0;
48861 
48862  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":741
48863  * return PyArray_MultiIterNew(2, <void*>a, <void*>b)
48864  *
48865  * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<<
48866  * return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
48867  *
48868  */
48869 
48870  /* function exit code */
48871  __pyx_L1_error:;
48872  __Pyx_XDECREF(__pyx_t_1);
48873  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew3", __pyx_clineno, __pyx_lineno, __pyx_filename);
48874  __pyx_r = 0;
48875  __pyx_L0:;
48876  __Pyx_XGIVEREF(__pyx_r);
48877  __Pyx_RefNannyFinishContext();
48878  return __pyx_r;
48879 }
48880 
48881 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":744
48882  * return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
48883  *
48884  * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<<
48885  * return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
48886  *
48887  */
48888 
48889 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) {
48890  PyObject *__pyx_r = NULL;
48891  __Pyx_RefNannyDeclarations
48892  PyObject *__pyx_t_1 = NULL;
48893  int __pyx_lineno = 0;
48894  const char *__pyx_filename = NULL;
48895  int __pyx_clineno = 0;
48896  __Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 0);
48897 
48898  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":745
48899  *
48900  * cdef inline object PyArray_MultiIterNew4(a, b, c, d):
48901  * return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d) # <<<<<<<<<<<<<<
48902  *
48903  * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
48904  */
48905  __Pyx_XDECREF(__pyx_r);
48906  __pyx_t_1 = PyArray_MultiIterNew(4, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 745, __pyx_L1_error)
48907  __Pyx_GOTREF(__pyx_t_1);
48908  __pyx_r = __pyx_t_1;
48909  __pyx_t_1 = 0;
48910  goto __pyx_L0;
48911 
48912  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":744
48913  * return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
48914  *
48915  * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<<
48916  * return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
48917  *
48918  */
48919 
48920  /* function exit code */
48921  __pyx_L1_error:;
48922  __Pyx_XDECREF(__pyx_t_1);
48923  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew4", __pyx_clineno, __pyx_lineno, __pyx_filename);
48924  __pyx_r = 0;
48925  __pyx_L0:;
48926  __Pyx_XGIVEREF(__pyx_r);
48927  __Pyx_RefNannyFinishContext();
48928  return __pyx_r;
48929 }
48930 
48931 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":747
48932  * return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
48933  *
48934  * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<<
48935  * return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
48936  *
48937  */
48938 
48939 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) {
48940  PyObject *__pyx_r = NULL;
48941  __Pyx_RefNannyDeclarations
48942  PyObject *__pyx_t_1 = NULL;
48943  int __pyx_lineno = 0;
48944  const char *__pyx_filename = NULL;
48945  int __pyx_clineno = 0;
48946  __Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 0);
48947 
48948  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":748
48949  *
48950  * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
48951  * return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e) # <<<<<<<<<<<<<<
48952  *
48953  * cdef inline tuple PyDataType_SHAPE(dtype d):
48954  */
48955  __Pyx_XDECREF(__pyx_r);
48956  __pyx_t_1 = PyArray_MultiIterNew(5, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d), ((void *)__pyx_v_e)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 748, __pyx_L1_error)
48957  __Pyx_GOTREF(__pyx_t_1);
48958  __pyx_r = __pyx_t_1;
48959  __pyx_t_1 = 0;
48960  goto __pyx_L0;
48961 
48962  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":747
48963  * return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
48964  *
48965  * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<<
48966  * return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
48967  *
48968  */
48969 
48970  /* function exit code */
48971  __pyx_L1_error:;
48972  __Pyx_XDECREF(__pyx_t_1);
48973  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew5", __pyx_clineno, __pyx_lineno, __pyx_filename);
48974  __pyx_r = 0;
48975  __pyx_L0:;
48976  __Pyx_XGIVEREF(__pyx_r);
48977  __Pyx_RefNannyFinishContext();
48978  return __pyx_r;
48979 }
48980 
48981 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":750
48982  * return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
48983  *
48984  * cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<<
48985  * if PyDataType_HASSUBARRAY(d):
48986  * return <tuple>d.subarray.shape
48987  */
48988 
48989 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__pyx_v_d) {
48990  PyObject *__pyx_r = NULL;
48991  __Pyx_RefNannyDeclarations
48992  int __pyx_t_1;
48993  __Pyx_RefNannySetupContext("PyDataType_SHAPE", 0);
48994 
48995  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":751
48996  *
48997  * cdef inline tuple PyDataType_SHAPE(dtype d):
48998  * if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<<
48999  * return <tuple>d.subarray.shape
49000  * else:
49001  */
49002  __pyx_t_1 = (PyDataType_HASSUBARRAY(__pyx_v_d) != 0);
49003  if (__pyx_t_1) {
49004 
49005  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":752
49006  * cdef inline tuple PyDataType_SHAPE(dtype d):
49007  * if PyDataType_HASSUBARRAY(d):
49008  * return <tuple>d.subarray.shape # <<<<<<<<<<<<<<
49009  * else:
49010  * return ()
49011  */
49012  __Pyx_XDECREF(__pyx_r);
49013  __Pyx_INCREF(((PyObject*)__pyx_v_d->subarray->shape));
49014  __pyx_r = ((PyObject*)__pyx_v_d->subarray->shape);
49015  goto __pyx_L0;
49016 
49017  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":751
49018  *
49019  * cdef inline tuple PyDataType_SHAPE(dtype d):
49020  * if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<<
49021  * return <tuple>d.subarray.shape
49022  * else:
49023  */
49024  }
49025 
49026  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":754
49027  * return <tuple>d.subarray.shape
49028  * else:
49029  * return () # <<<<<<<<<<<<<<
49030  *
49031  *
49032  */
49033  /*else*/ {
49034  __Pyx_XDECREF(__pyx_r);
49035  __Pyx_INCREF(__pyx_empty_tuple);
49036  __pyx_r = __pyx_empty_tuple;
49037  goto __pyx_L0;
49038  }
49039 
49040  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":750
49041  * return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
49042  *
49043  * cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<<
49044  * if PyDataType_HASSUBARRAY(d):
49045  * return <tuple>d.subarray.shape
49046  */
49047 
49048  /* function exit code */
49049  __pyx_L0:;
49050  __Pyx_XGIVEREF(__pyx_r);
49051  __Pyx_RefNannyFinishContext();
49052  return __pyx_r;
49053 }
49054 
49055 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":929
49056  * int _import_umath() except -1
49057  *
49058  * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<<
49059  * Py_INCREF(base) # important to do this before stealing the reference below!
49060  * PyArray_SetBaseObject(arr, base)
49061  */
49062 
49063 static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_arr, PyObject *__pyx_v_base) {
49064  __Pyx_RefNannyDeclarations
49065  __Pyx_RefNannySetupContext("set_array_base", 0);
49066 
49067  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":930
49068  *
49069  * cdef inline void set_array_base(ndarray arr, object base):
49070  * Py_INCREF(base) # important to do this before stealing the reference below! # <<<<<<<<<<<<<<
49071  * PyArray_SetBaseObject(arr, base)
49072  *
49073  */
49074  Py_INCREF(__pyx_v_base);
49075 
49076  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":931
49077  * cdef inline void set_array_base(ndarray arr, object base):
49078  * Py_INCREF(base) # important to do this before stealing the reference below!
49079  * PyArray_SetBaseObject(arr, base) # <<<<<<<<<<<<<<
49080  *
49081  * cdef inline object get_array_base(ndarray arr):
49082  */
49083  (void)(PyArray_SetBaseObject(__pyx_v_arr, __pyx_v_base));
49084 
49085  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":929
49086  * int _import_umath() except -1
49087  *
49088  * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<<
49089  * Py_INCREF(base) # important to do this before stealing the reference below!
49090  * PyArray_SetBaseObject(arr, base)
49091  */
49092 
49093  /* function exit code */
49094  __Pyx_RefNannyFinishContext();
49095 }
49096 
49097 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":933
49098  * PyArray_SetBaseObject(arr, base)
49099  *
49100  * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<<
49101  * base = PyArray_BASE(arr)
49102  * if base is NULL:
49103  */
49104 
49105 static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__pyx_v_arr) {
49106  PyObject *__pyx_v_base;
49107  PyObject *__pyx_r = NULL;
49108  __Pyx_RefNannyDeclarations
49109  int __pyx_t_1;
49110  __Pyx_RefNannySetupContext("get_array_base", 0);
49111 
49112  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":934
49113  *
49114  * cdef inline object get_array_base(ndarray arr):
49115  * base = PyArray_BASE(arr) # <<<<<<<<<<<<<<
49116  * if base is NULL:
49117  * return None
49118  */
49119  __pyx_v_base = PyArray_BASE(__pyx_v_arr);
49120 
49121  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":935
49122  * cdef inline object get_array_base(ndarray arr):
49123  * base = PyArray_BASE(arr)
49124  * if base is NULL: # <<<<<<<<<<<<<<
49125  * return None
49126  * return <object>base
49127  */
49128  __pyx_t_1 = ((__pyx_v_base == NULL) != 0);
49129  if (__pyx_t_1) {
49130 
49131  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":936
49132  * base = PyArray_BASE(arr)
49133  * if base is NULL:
49134  * return None # <<<<<<<<<<<<<<
49135  * return <object>base
49136  *
49137  */
49138  __Pyx_XDECREF(__pyx_r);
49139  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
49140  goto __pyx_L0;
49141 
49142  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":935
49143  * cdef inline object get_array_base(ndarray arr):
49144  * base = PyArray_BASE(arr)
49145  * if base is NULL: # <<<<<<<<<<<<<<
49146  * return None
49147  * return <object>base
49148  */
49149  }
49150 
49151  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":937
49152  * if base is NULL:
49153  * return None
49154  * return <object>base # <<<<<<<<<<<<<<
49155  *
49156  * # Versions of the import_* functions which are more suitable for
49157  */
49158  __Pyx_XDECREF(__pyx_r);
49159  __Pyx_INCREF(((PyObject *)__pyx_v_base));
49160  __pyx_r = ((PyObject *)__pyx_v_base);
49161  goto __pyx_L0;
49162 
49163  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":933
49164  * PyArray_SetBaseObject(arr, base)
49165  *
49166  * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<<
49167  * base = PyArray_BASE(arr)
49168  * if base is NULL:
49169  */
49170 
49171  /* function exit code */
49172  __pyx_L0:;
49173  __Pyx_XGIVEREF(__pyx_r);
49174  __Pyx_RefNannyFinishContext();
49175  return __pyx_r;
49176 }
49177 
49178 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":941
49179  * # Versions of the import_* functions which are more suitable for
49180  * # Cython code.
49181  * cdef inline int import_array() except -1: # <<<<<<<<<<<<<<
49182  * try:
49183  * __pyx_import_array()
49184  */
49185 
49186 static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
49187  int __pyx_r;
49188  __Pyx_RefNannyDeclarations
49189  PyObject *__pyx_t_1 = NULL;
49190  PyObject *__pyx_t_2 = NULL;
49191  PyObject *__pyx_t_3 = NULL;
49192  int __pyx_t_4;
49193  PyObject *__pyx_t_5 = NULL;
49194  PyObject *__pyx_t_6 = NULL;
49195  PyObject *__pyx_t_7 = NULL;
49196  PyObject *__pyx_t_8 = NULL;
49197  int __pyx_lineno = 0;
49198  const char *__pyx_filename = NULL;
49199  int __pyx_clineno = 0;
49200  __Pyx_RefNannySetupContext("import_array", 0);
49201 
49202  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":942
49203  * # Cython code.
49204  * cdef inline int import_array() except -1:
49205  * try: # <<<<<<<<<<<<<<
49206  * __pyx_import_array()
49207  * except Exception:
49208  */
49209  {
49210  __Pyx_PyThreadState_declare
49211  __Pyx_PyThreadState_assign
49212  __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
49213  __Pyx_XGOTREF(__pyx_t_1);
49214  __Pyx_XGOTREF(__pyx_t_2);
49215  __Pyx_XGOTREF(__pyx_t_3);
49216  /*try:*/ {
49217 
49218  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":943
49219  * cdef inline int import_array() except -1:
49220  * try:
49221  * __pyx_import_array() # <<<<<<<<<<<<<<
49222  * except Exception:
49223  * raise ImportError("numpy.core.multiarray failed to import")
49224  */
49225  __pyx_t_4 = _import_array(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(1, 943, __pyx_L3_error)
49226 
49227  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":942
49228  * # Cython code.
49229  * cdef inline int import_array() except -1:
49230  * try: # <<<<<<<<<<<<<<
49231  * __pyx_import_array()
49232  * except Exception:
49233  */
49234  }
49235  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
49236  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
49237  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
49238  goto __pyx_L8_try_end;
49239  __pyx_L3_error:;
49240 
49241  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":944
49242  * try:
49243  * __pyx_import_array()
49244  * except Exception: # <<<<<<<<<<<<<<
49245  * raise ImportError("numpy.core.multiarray failed to import")
49246  *
49247  */
49248  __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
49249  if (__pyx_t_4) {
49250  __Pyx_AddTraceback("numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
49251  if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(1, 944, __pyx_L5_except_error)
49252  __Pyx_GOTREF(__pyx_t_5);
49253  __Pyx_GOTREF(__pyx_t_6);
49254  __Pyx_GOTREF(__pyx_t_7);
49255 
49256  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":945
49257  * __pyx_import_array()
49258  * except Exception:
49259  * raise ImportError("numpy.core.multiarray failed to import") # <<<<<<<<<<<<<<
49260  *
49261  * cdef inline int import_umath() except -1:
49262  */
49263  __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 945, __pyx_L5_except_error)
49264  __Pyx_GOTREF(__pyx_t_8);
49265  __Pyx_Raise(__pyx_t_8, 0, 0, 0);
49266  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
49267  __PYX_ERR(1, 945, __pyx_L5_except_error)
49268  }
49269  goto __pyx_L5_except_error;
49270  __pyx_L5_except_error:;
49271 
49272  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":942
49273  * # Cython code.
49274  * cdef inline int import_array() except -1:
49275  * try: # <<<<<<<<<<<<<<
49276  * __pyx_import_array()
49277  * except Exception:
49278  */
49279  __Pyx_XGIVEREF(__pyx_t_1);
49280  __Pyx_XGIVEREF(__pyx_t_2);
49281  __Pyx_XGIVEREF(__pyx_t_3);
49282  __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
49283  goto __pyx_L1_error;
49284  __pyx_L8_try_end:;
49285  }
49286 
49287  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":941
49288  * # Versions of the import_* functions which are more suitable for
49289  * # Cython code.
49290  * cdef inline int import_array() except -1: # <<<<<<<<<<<<<<
49291  * try:
49292  * __pyx_import_array()
49293  */
49294 
49295  /* function exit code */
49296  __pyx_r = 0;
49297  goto __pyx_L0;
49298  __pyx_L1_error:;
49299  __Pyx_XDECREF(__pyx_t_5);
49300  __Pyx_XDECREF(__pyx_t_6);
49301  __Pyx_XDECREF(__pyx_t_7);
49302  __Pyx_XDECREF(__pyx_t_8);
49303  __Pyx_AddTraceback("numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
49304  __pyx_r = -1;
49305  __pyx_L0:;
49306  __Pyx_RefNannyFinishContext();
49307  return __pyx_r;
49308 }
49309 
49310 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":947
49311  * raise ImportError("numpy.core.multiarray failed to import")
49312  *
49313  * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<<
49314  * try:
49315  * _import_umath()
49316  */
49317 
49318 static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
49319  int __pyx_r;
49320  __Pyx_RefNannyDeclarations
49321  PyObject *__pyx_t_1 = NULL;
49322  PyObject *__pyx_t_2 = NULL;
49323  PyObject *__pyx_t_3 = NULL;
49324  int __pyx_t_4;
49325  PyObject *__pyx_t_5 = NULL;
49326  PyObject *__pyx_t_6 = NULL;
49327  PyObject *__pyx_t_7 = NULL;
49328  PyObject *__pyx_t_8 = NULL;
49329  int __pyx_lineno = 0;
49330  const char *__pyx_filename = NULL;
49331  int __pyx_clineno = 0;
49332  __Pyx_RefNannySetupContext("import_umath", 0);
49333 
49334  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":948
49335  *
49336  * cdef inline int import_umath() except -1:
49337  * try: # <<<<<<<<<<<<<<
49338  * _import_umath()
49339  * except Exception:
49340  */
49341  {
49342  __Pyx_PyThreadState_declare
49343  __Pyx_PyThreadState_assign
49344  __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
49345  __Pyx_XGOTREF(__pyx_t_1);
49346  __Pyx_XGOTREF(__pyx_t_2);
49347  __Pyx_XGOTREF(__pyx_t_3);
49348  /*try:*/ {
49349 
49350  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":949
49351  * cdef inline int import_umath() except -1:
49352  * try:
49353  * _import_umath() # <<<<<<<<<<<<<<
49354  * except Exception:
49355  * raise ImportError("numpy.core.umath failed to import")
49356  */
49357  __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(1, 949, __pyx_L3_error)
49358 
49359  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":948
49360  *
49361  * cdef inline int import_umath() except -1:
49362  * try: # <<<<<<<<<<<<<<
49363  * _import_umath()
49364  * except Exception:
49365  */
49366  }
49367  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
49368  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
49369  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
49370  goto __pyx_L8_try_end;
49371  __pyx_L3_error:;
49372 
49373  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":950
49374  * try:
49375  * _import_umath()
49376  * except Exception: # <<<<<<<<<<<<<<
49377  * raise ImportError("numpy.core.umath failed to import")
49378  *
49379  */
49380  __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
49381  if (__pyx_t_4) {
49382  __Pyx_AddTraceback("numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename);
49383  if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(1, 950, __pyx_L5_except_error)
49384  __Pyx_GOTREF(__pyx_t_5);
49385  __Pyx_GOTREF(__pyx_t_6);
49386  __Pyx_GOTREF(__pyx_t_7);
49387 
49388  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":951
49389  * _import_umath()
49390  * except Exception:
49391  * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<<
49392  *
49393  * cdef inline int import_ufunc() except -1:
49394  */
49395  __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 951, __pyx_L5_except_error)
49396  __Pyx_GOTREF(__pyx_t_8);
49397  __Pyx_Raise(__pyx_t_8, 0, 0, 0);
49398  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
49399  __PYX_ERR(1, 951, __pyx_L5_except_error)
49400  }
49401  goto __pyx_L5_except_error;
49402  __pyx_L5_except_error:;
49403 
49404  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":948
49405  *
49406  * cdef inline int import_umath() except -1:
49407  * try: # <<<<<<<<<<<<<<
49408  * _import_umath()
49409  * except Exception:
49410  */
49411  __Pyx_XGIVEREF(__pyx_t_1);
49412  __Pyx_XGIVEREF(__pyx_t_2);
49413  __Pyx_XGIVEREF(__pyx_t_3);
49414  __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
49415  goto __pyx_L1_error;
49416  __pyx_L8_try_end:;
49417  }
49418 
49419  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":947
49420  * raise ImportError("numpy.core.multiarray failed to import")
49421  *
49422  * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<<
49423  * try:
49424  * _import_umath()
49425  */
49426 
49427  /* function exit code */
49428  __pyx_r = 0;
49429  goto __pyx_L0;
49430  __pyx_L1_error:;
49431  __Pyx_XDECREF(__pyx_t_5);
49432  __Pyx_XDECREF(__pyx_t_6);
49433  __Pyx_XDECREF(__pyx_t_7);
49434  __Pyx_XDECREF(__pyx_t_8);
49435  __Pyx_AddTraceback("numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename);
49436  __pyx_r = -1;
49437  __pyx_L0:;
49438  __Pyx_RefNannyFinishContext();
49439  return __pyx_r;
49440 }
49441 
49442 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":953
49443  * raise ImportError("numpy.core.umath failed to import")
49444  *
49445  * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<<
49446  * try:
49447  * _import_umath()
49448  */
49449 
49450 static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
49451  int __pyx_r;
49452  __Pyx_RefNannyDeclarations
49453  PyObject *__pyx_t_1 = NULL;
49454  PyObject *__pyx_t_2 = NULL;
49455  PyObject *__pyx_t_3 = NULL;
49456  int __pyx_t_4;
49457  PyObject *__pyx_t_5 = NULL;
49458  PyObject *__pyx_t_6 = NULL;
49459  PyObject *__pyx_t_7 = NULL;
49460  PyObject *__pyx_t_8 = NULL;
49461  int __pyx_lineno = 0;
49462  const char *__pyx_filename = NULL;
49463  int __pyx_clineno = 0;
49464  __Pyx_RefNannySetupContext("import_ufunc", 0);
49465 
49466  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":954
49467  *
49468  * cdef inline int import_ufunc() except -1:
49469  * try: # <<<<<<<<<<<<<<
49470  * _import_umath()
49471  * except Exception:
49472  */
49473  {
49474  __Pyx_PyThreadState_declare
49475  __Pyx_PyThreadState_assign
49476  __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
49477  __Pyx_XGOTREF(__pyx_t_1);
49478  __Pyx_XGOTREF(__pyx_t_2);
49479  __Pyx_XGOTREF(__pyx_t_3);
49480  /*try:*/ {
49481 
49482  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":955
49483  * cdef inline int import_ufunc() except -1:
49484  * try:
49485  * _import_umath() # <<<<<<<<<<<<<<
49486  * except Exception:
49487  * raise ImportError("numpy.core.umath failed to import")
49488  */
49489  __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(1, 955, __pyx_L3_error)
49490 
49491  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":954
49492  *
49493  * cdef inline int import_ufunc() except -1:
49494  * try: # <<<<<<<<<<<<<<
49495  * _import_umath()
49496  * except Exception:
49497  */
49498  }
49499  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
49500  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
49501  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
49502  goto __pyx_L8_try_end;
49503  __pyx_L3_error:;
49504 
49505  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":956
49506  * try:
49507  * _import_umath()
49508  * except Exception: # <<<<<<<<<<<<<<
49509  * raise ImportError("numpy.core.umath failed to import")
49510  *
49511  */
49512  __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
49513  if (__pyx_t_4) {
49514  __Pyx_AddTraceback("numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
49515  if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(1, 956, __pyx_L5_except_error)
49516  __Pyx_GOTREF(__pyx_t_5);
49517  __Pyx_GOTREF(__pyx_t_6);
49518  __Pyx_GOTREF(__pyx_t_7);
49519 
49520  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":957
49521  * _import_umath()
49522  * except Exception:
49523  * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<<
49524  *
49525  * cdef extern from *:
49526  */
49527  __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 957, __pyx_L5_except_error)
49528  __Pyx_GOTREF(__pyx_t_8);
49529  __Pyx_Raise(__pyx_t_8, 0, 0, 0);
49530  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
49531  __PYX_ERR(1, 957, __pyx_L5_except_error)
49532  }
49533  goto __pyx_L5_except_error;
49534  __pyx_L5_except_error:;
49535 
49536  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":954
49537  *
49538  * cdef inline int import_ufunc() except -1:
49539  * try: # <<<<<<<<<<<<<<
49540  * _import_umath()
49541  * except Exception:
49542  */
49543  __Pyx_XGIVEREF(__pyx_t_1);
49544  __Pyx_XGIVEREF(__pyx_t_2);
49545  __Pyx_XGIVEREF(__pyx_t_3);
49546  __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
49547  goto __pyx_L1_error;
49548  __pyx_L8_try_end:;
49549  }
49550 
49551  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":953
49552  * raise ImportError("numpy.core.umath failed to import")
49553  *
49554  * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<<
49555  * try:
49556  * _import_umath()
49557  */
49558 
49559  /* function exit code */
49560  __pyx_r = 0;
49561  goto __pyx_L0;
49562  __pyx_L1_error:;
49563  __Pyx_XDECREF(__pyx_t_5);
49564  __Pyx_XDECREF(__pyx_t_6);
49565  __Pyx_XDECREF(__pyx_t_7);
49566  __Pyx_XDECREF(__pyx_t_8);
49567  __Pyx_AddTraceback("numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
49568  __pyx_r = -1;
49569  __pyx_L0:;
49570  __Pyx_RefNannyFinishContext();
49571  return __pyx_r;
49572 }
49573 
49574 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":967
49575  *
49576  *
49577  * cdef inline bint is_timedelta64_object(object obj): # <<<<<<<<<<<<<<
49578  * """
49579  * Cython equivalent of `isinstance(obj, np.timedelta64)`
49580  */
49581 
49582 static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_obj) {
49583  int __pyx_r;
49584  __Pyx_RefNannyDeclarations
49585  __Pyx_RefNannySetupContext("is_timedelta64_object", 0);
49586 
49587  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":979
49588  * bool
49589  * """
49590  * return PyObject_TypeCheck(obj, &PyTimedeltaArrType_Type) # <<<<<<<<<<<<<<
49591  *
49592  *
49593  */
49594  __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyTimedeltaArrType_Type));
49595  goto __pyx_L0;
49596 
49597  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":967
49598  *
49599  *
49600  * cdef inline bint is_timedelta64_object(object obj): # <<<<<<<<<<<<<<
49601  * """
49602  * Cython equivalent of `isinstance(obj, np.timedelta64)`
49603  */
49604 
49605  /* function exit code */
49606  __pyx_L0:;
49607  __Pyx_RefNannyFinishContext();
49608  return __pyx_r;
49609 }
49610 
49611 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":982
49612  *
49613  *
49614  * cdef inline bint is_datetime64_object(object obj): # <<<<<<<<<<<<<<
49615  * """
49616  * Cython equivalent of `isinstance(obj, np.datetime64)`
49617  */
49618 
49619 static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_obj) {
49620  int __pyx_r;
49621  __Pyx_RefNannyDeclarations
49622  __Pyx_RefNannySetupContext("is_datetime64_object", 0);
49623 
49624  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":994
49625  * bool
49626  * """
49627  * return PyObject_TypeCheck(obj, &PyDatetimeArrType_Type) # <<<<<<<<<<<<<<
49628  *
49629  *
49630  */
49631  __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyDatetimeArrType_Type));
49632  goto __pyx_L0;
49633 
49634  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":982
49635  *
49636  *
49637  * cdef inline bint is_datetime64_object(object obj): # <<<<<<<<<<<<<<
49638  * """
49639  * Cython equivalent of `isinstance(obj, np.datetime64)`
49640  */
49641 
49642  /* function exit code */
49643  __pyx_L0:;
49644  __Pyx_RefNannyFinishContext();
49645  return __pyx_r;
49646 }
49647 
49648 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":997
49649  *
49650  *
49651  * cdef inline npy_datetime get_datetime64_value(object obj) nogil: # <<<<<<<<<<<<<<
49652  * """
49653  * returns the int64 value underlying scalar numpy datetime64 object
49654  */
49655 
49656 static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *__pyx_v_obj) {
49657  npy_datetime __pyx_r;
49658 
49659  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":1004
49660  * also needed. That can be found using `get_datetime64_unit`.
49661  * """
49662  * return (<PyDatetimeScalarObject*>obj).obval # <<<<<<<<<<<<<<
49663  *
49664  *
49665  */
49666  __pyx_r = ((PyDatetimeScalarObject *)__pyx_v_obj)->obval;
49667  goto __pyx_L0;
49668 
49669  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":997
49670  *
49671  *
49672  * cdef inline npy_datetime get_datetime64_value(object obj) nogil: # <<<<<<<<<<<<<<
49673  * """
49674  * returns the int64 value underlying scalar numpy datetime64 object
49675  */
49676 
49677  /* function exit code */
49678  __pyx_L0:;
49679  return __pyx_r;
49680 }
49681 
49682 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":1007
49683  *
49684  *
49685  * cdef inline npy_timedelta get_timedelta64_value(object obj) nogil: # <<<<<<<<<<<<<<
49686  * """
49687  * returns the int64 value underlying scalar numpy timedelta64 object
49688  */
49689 
49690 static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject *__pyx_v_obj) {
49691  npy_timedelta __pyx_r;
49692 
49693  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":1011
49694  * returns the int64 value underlying scalar numpy timedelta64 object
49695  * """
49696  * return (<PyTimedeltaScalarObject*>obj).obval # <<<<<<<<<<<<<<
49697  *
49698  *
49699  */
49700  __pyx_r = ((PyTimedeltaScalarObject *)__pyx_v_obj)->obval;
49701  goto __pyx_L0;
49702 
49703  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":1007
49704  *
49705  *
49706  * cdef inline npy_timedelta get_timedelta64_value(object obj) nogil: # <<<<<<<<<<<<<<
49707  * """
49708  * returns the int64 value underlying scalar numpy timedelta64 object
49709  */
49710 
49711  /* function exit code */
49712  __pyx_L0:;
49713  return __pyx_r;
49714 }
49715 
49716 /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":1014
49717  *
49718  *
49719  * cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) nogil: # <<<<<<<<<<<<<<
49720  * """
49721  * returns the unit part of the dtype for a numpy datetime64 object.
49722  */
49723 
49724 static CYTHON_INLINE NPY_DATETIMEUNIT __pyx_f_5numpy_get_datetime64_unit(PyObject *__pyx_v_obj) {
49725  NPY_DATETIMEUNIT __pyx_r;
49726 
49727  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":1018
49728  * returns the unit part of the dtype for a numpy datetime64 object.
49729  * """
49730  * return <NPY_DATETIMEUNIT>(<PyDatetimeScalarObject*>obj).obmeta.base # <<<<<<<<<<<<<<
49731  */
49732  __pyx_r = ((NPY_DATETIMEUNIT)((PyDatetimeScalarObject *)__pyx_v_obj)->obmeta.base);
49733  goto __pyx_L0;
49734 
49735  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":1014
49736  *
49737  *
49738  * cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) nogil: # <<<<<<<<<<<<<<
49739  * """
49740  * returns the unit part of the dtype for a numpy datetime64 object.
49741  */
49742 
49743  /* function exit code */
49744  __pyx_L0:;
49745  return __pyx_r;
49746 }
49747 
49748 static PyMethodDef __pyx_methods[] = {
49749  {0, 0, 0, 0}
49750 };
49751 
49752 #if PY_MAJOR_VERSION >= 3
49753 #if CYTHON_PEP489_MULTI_PHASE_INIT
49754 static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/
49755 static int __pyx_pymod_exec_ctransportCoefficients(PyObject* module); /*proto*/
49756 static PyModuleDef_Slot __pyx_moduledef_slots[] = {
49757  {Py_mod_create, (void*)__pyx_pymod_create},
49758  {Py_mod_exec, (void*)__pyx_pymod_exec_ctransportCoefficients},
49759  {0, NULL}
49760 };
49761 #endif
49762 
49763 static struct PyModuleDef __pyx_moduledef = {
49764  PyModuleDef_HEAD_INIT,
49765  "ctransportCoefficients",
49766  0, /* m_doc */
49767  #if CYTHON_PEP489_MULTI_PHASE_INIT
49768  0, /* m_size */
49769  #else
49770  -1, /* m_size */
49771  #endif
49772  __pyx_methods /* m_methods */,
49773  #if CYTHON_PEP489_MULTI_PHASE_INIT
49774  __pyx_moduledef_slots, /* m_slots */
49775  #else
49776  NULL, /* m_reload */
49777  #endif
49778  NULL, /* m_traverse */
49779  NULL, /* m_clear */
49780  NULL /* m_free */
49781 };
49782 #endif
49783 #ifndef CYTHON_SMALL_CODE
49784 #if defined(__clang__)
49785  #define CYTHON_SMALL_CODE
49786 #elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
49787  #define CYTHON_SMALL_CODE __attribute__((cold))
49788 #else
49789  #define CYTHON_SMALL_CODE
49790 #endif
49791 #endif
49792 
49793 static __Pyx_StringTabEntry __pyx_string_tab[] = {
49794  {&__pyx_n_s_A, __pyx_k_A, sizeof(__pyx_k_A), 0, 0, 1, 1},
49795  {&__pyx_n_s_A1, __pyx_k_A1, sizeof(__pyx_k_A1), 0, 0, 1, 1},
49796  {&__pyx_n_s_A2, __pyx_k_A2, sizeof(__pyx_k_A2), 0, 0, 1, 1},
49797  {&__pyx_n_s_B, __pyx_k_B, sizeof(__pyx_k_B), 0, 0, 1, 1},
49798  {&__pyx_n_s_B1, __pyx_k_B1, sizeof(__pyx_k_B1), 0, 0, 1, 1},
49799  {&__pyx_n_s_B2, __pyx_k_B2, sizeof(__pyx_k_B2), 0, 0, 1, 1},
49800  {&__pyx_n_s_Bcon, __pyx_k_Bcon, sizeof(__pyx_k_Bcon), 0, 0, 1, 1},
49801  {&__pyx_n_s_Bcon1, __pyx_k_Bcon1, sizeof(__pyx_k_Bcon1), 0, 0, 1, 1},
49802  {&__pyx_n_s_Bcon2, __pyx_k_Bcon2, sizeof(__pyx_k_Bcon2), 0, 0, 1, 1},
49803  {&__pyx_n_s_C, __pyx_k_C, sizeof(__pyx_k_C), 0, 0, 1, 1},
49804  {&__pyx_n_s_C1, __pyx_k_C1, sizeof(__pyx_k_C1), 0, 0, 1, 1},
49805  {&__pyx_n_s_C2, __pyx_k_C2, sizeof(__pyx_k_C2), 0, 0, 1, 1},
49806  {&__pyx_n_s_E, __pyx_k_E, sizeof(__pyx_k_E), 0, 0, 1, 1},
49807  {&__pyx_n_s_E0, __pyx_k_E0, sizeof(__pyx_k_E0), 0, 0, 1, 1},
49808  {&__pyx_n_s_H, __pyx_k_H, sizeof(__pyx_k_H), 0, 0, 1, 1},
49809  {&__pyx_n_s_HJBurgersEvaluate, __pyx_k_HJBurgersEvaluate, sizeof(__pyx_k_HJBurgersEvaluate), 0, 0, 1, 1},
49810  {&__pyx_n_s_H_vof, __pyx_k_H_vof, sizeof(__pyx_k_H_vof), 0, 0, 1, 1},
49811  {&__pyx_n_s_ImportError, __pyx_k_ImportError, sizeof(__pyx_k_ImportError), 0, 0, 1, 1},
49812  {&__pyx_n_s_KWs, __pyx_k_KWs, sizeof(__pyx_k_KWs), 0, 0, 1, 1},
49813  {&__pyx_n_s_K_h, __pyx_k_K_h, sizeof(__pyx_k_K_h), 0, 0, 1, 1},
49814  {&__pyx_n_s_K_m, __pyx_k_K_m, sizeof(__pyx_k_K_m), 0, 0, 1, 1},
49815  {&__pyx_n_s_K_w, __pyx_k_K_w, sizeof(__pyx_k_K_w), 0, 0, 1, 1},
49816  {&__pyx_n_s_Km, __pyx_k_Km, sizeof(__pyx_k_Km), 0, 0, 1, 1},
49817  {&__pyx_n_s_Kox_C, __pyx_k_Kox_C, sizeof(__pyx_k_Kox_C), 0, 0, 1, 1},
49818  {&__pyx_n_s_Kox_E, __pyx_k_Kox_E, sizeof(__pyx_k_Kox_E), 0, 0, 1, 1},
49819  {&__pyx_n_s_Kox_X, __pyx_k_Kox_X, sizeof(__pyx_k_Kox_X), 0, 0, 1, 1},
49820  {&__pyx_n_s_Kox_max, __pyx_k_Kox_max, sizeof(__pyx_k_Kox_max), 0, 0, 1, 1},
49821  {&__pyx_n_s_Kp, __pyx_k_Kp, sizeof(__pyx_k_Kp), 0, 0, 1, 1},
49822  {&__pyx_n_s_L2projectEvaluate, __pyx_k_L2projectEvaluate, sizeof(__pyx_k_L2projectEvaluate), 0, 0, 1, 1},
49823  {&__pyx_n_s_Lambda, __pyx_k_Lambda, sizeof(__pyx_k_Lambda), 0, 0, 1, 1},
49824  {&__pyx_n_s_Lambda_aniso_types, __pyx_k_Lambda_aniso_types, sizeof(__pyx_k_Lambda_aniso_types), 0, 0, 1, 1},
49825  {&__pyx_n_s_Lambda_dry_types, __pyx_k_Lambda_dry_types, sizeof(__pyx_k_Lambda_dry_types), 0, 0, 1, 1},
49826  {&__pyx_n_s_Lambda_penalty, __pyx_k_Lambda_penalty, sizeof(__pyx_k_Lambda_penalty), 0, 0, 1, 1},
49827  {&__pyx_n_s_Lambda_sat_types, __pyx_k_Lambda_sat_types, sizeof(__pyx_k_Lambda_sat_types), 0, 0, 1, 1},
49828  {&__pyx_n_s_Laplace_2D_Evaluate, __pyx_k_Laplace_2D_Evaluate, sizeof(__pyx_k_Laplace_2D_Evaluate), 0, 0, 1, 1},
49829  {&__pyx_n_s_Laplace_3D_Evaluate, __pyx_k_Laplace_3D_Evaluate, sizeof(__pyx_k_Laplace_3D_Evaluate), 0, 0, 1, 1},
49830  {&__pyx_n_s_LinearElasticity_1D_Evaluate, __pyx_k_LinearElasticity_1D_Evaluate, sizeof(__pyx_k_LinearElasticity_1D_Evaluate), 0, 0, 1, 1},
49831  {&__pyx_n_s_LinearElasticity_2D_Evaluate, __pyx_k_LinearElasticity_2D_Evaluate, sizeof(__pyx_k_LinearElasticity_2D_Evaluate), 0, 0, 1, 1},
49832  {&__pyx_n_s_LinearElasticity_3D_Evaluate, __pyx_k_LinearElasticity_3D_Evaluate, sizeof(__pyx_k_LinearElasticity_3D_Evaluate), 0, 0, 1, 1},
49833  {&__pyx_n_s_M, __pyx_k_M, sizeof(__pyx_k_M), 0, 0, 1, 1},
49834  {&__pyx_n_s_M1, __pyx_k_M1, sizeof(__pyx_k_M1), 0, 0, 1, 1},
49835  {&__pyx_n_s_M2, __pyx_k_M2, sizeof(__pyx_k_M2), 0, 0, 1, 1},
49836  {&__pyx_n_s_Mass_2D_Evaluate, __pyx_k_Mass_2D_Evaluate, sizeof(__pyx_k_Mass_2D_Evaluate), 0, 0, 1, 1},
49837  {&__pyx_n_s_Mass_3D_Evaluate, __pyx_k_Mass_3D_Evaluate, sizeof(__pyx_k_Mass_3D_Evaluate), 0, 0, 1, 1},
49838  {&__pyx_n_s_MovingMesh_1D_Evaluate, __pyx_k_MovingMesh_1D_Evaluate, sizeof(__pyx_k_MovingMesh_1D_Evaluate), 0, 0, 1, 1},
49839  {&__pyx_n_s_MovingMesh_2D_Evaluate, __pyx_k_MovingMesh_2D_Evaluate, sizeof(__pyx_k_MovingMesh_2D_Evaluate), 0, 0, 1, 1},
49840  {&__pyx_n_s_MovingMesh_3D_Evaluate, __pyx_k_MovingMesh_3D_Evaluate, sizeof(__pyx_k_MovingMesh_3D_Evaluate), 0, 0, 1, 1},
49841  {&__pyx_n_s_NavierStokes_2D_Evaluate, __pyx_k_NavierStokes_2D_Evaluate, sizeof(__pyx_k_NavierStokes_2D_Evaluate), 0, 0, 1, 1},
49842  {&__pyx_n_s_NavierStokes_3D_Evaluate, __pyx_k_NavierStokes_3D_Evaluate, sizeof(__pyx_k_NavierStokes_3D_Evaluate), 0, 0, 1, 1},
49843  {&__pyx_n_s_ReynoldsAveragedNavierStokes_kEp, __pyx_k_ReynoldsAveragedNavierStokes_kEp, sizeof(__pyx_k_ReynoldsAveragedNavierStokes_kEp), 0, 0, 1, 1},
49844  {&__pyx_n_s_ReynoldsAveragedNavierStokes_kEp_2, __pyx_k_ReynoldsAveragedNavierStokes_kEp_2, sizeof(__pyx_k_ReynoldsAveragedNavierStokes_kEp_2), 0, 0, 1, 1},
49845  {&__pyx_n_s_ReynoldsAveragedNavierStokes_kEp_3, __pyx_k_ReynoldsAveragedNavierStokes_kEp_3, sizeof(__pyx_k_ReynoldsAveragedNavierStokes_kEp_3), 0, 0, 1, 1},
49846  {&__pyx_n_s_ReynoldsAveragedNavierStokes_kEp_4, __pyx_k_ReynoldsAveragedNavierStokes_kEp_4, sizeof(__pyx_k_ReynoldsAveragedNavierStokes_kEp_4), 0, 0, 1, 1},
49847  {&__pyx_n_s_S, __pyx_k_S, sizeof(__pyx_k_S), 0, 0, 1, 1},
49848  {&__pyx_n_s_S_nwr, __pyx_k_S_nwr, sizeof(__pyx_k_S_nwr), 0, 0, 1, 1},
49849  {&__pyx_n_s_S_wirr, __pyx_k_S_wirr, sizeof(__pyx_k_S_wirr), 0, 0, 1, 1},
49850  {&__pyx_n_s_StokesP_2D_Evaluate, __pyx_k_StokesP_2D_Evaluate, sizeof(__pyx_k_StokesP_2D_Evaluate), 0, 0, 1, 1},
49851  {&__pyx_n_s_StokesP_3D_Evaluate, __pyx_k_StokesP_3D_Evaluate, sizeof(__pyx_k_StokesP_3D_Evaluate), 0, 0, 1, 1},
49852  {&__pyx_n_s_Stokes_2D_Evaluate, __pyx_k_Stokes_2D_Evaluate, sizeof(__pyx_k_Stokes_2D_Evaluate), 0, 0, 1, 1},
49853  {&__pyx_n_s_Stokes_3D_Evaluate, __pyx_k_Stokes_3D_Evaluate, sizeof(__pyx_k_Stokes_3D_Evaluate), 0, 0, 1, 1},
49854  {&__pyx_n_s_ThreephaseNavierStokes_ST_LS_SO, __pyx_k_ThreephaseNavierStokes_ST_LS_SO, sizeof(__pyx_k_ThreephaseNavierStokes_ST_LS_SO), 0, 0, 1, 1},
49855  {&__pyx_n_s_ThreephaseNavierStokes_ST_LS_SO_2, __pyx_k_ThreephaseNavierStokes_ST_LS_SO_2, sizeof(__pyx_k_ThreephaseNavierStokes_ST_LS_SO_2), 0, 0, 1, 1},
49856  {&__pyx_n_s_TwoPhaseAdvection_2D_Evaluate, __pyx_k_TwoPhaseAdvection_2D_Evaluate, sizeof(__pyx_k_TwoPhaseAdvection_2D_Evaluate), 0, 0, 1, 1},
49857  {&__pyx_n_s_TwophaseNavierStokes_LS_SO_2D_Ev, __pyx_k_TwophaseNavierStokes_LS_SO_2D_Ev, sizeof(__pyx_k_TwophaseNavierStokes_LS_SO_2D_Ev), 0, 0, 1, 1},
49858  {&__pyx_n_s_TwophaseNavierStokes_LS_SO_3D_Ev, __pyx_k_TwophaseNavierStokes_LS_SO_3D_Ev, sizeof(__pyx_k_TwophaseNavierStokes_LS_SO_3D_Ev), 0, 0, 1, 1},
49859  {&__pyx_n_s_TwophaseNavierStokes_ST_LS_SO_2D, __pyx_k_TwophaseNavierStokes_ST_LS_SO_2D, sizeof(__pyx_k_TwophaseNavierStokes_ST_LS_SO_2D), 0, 0, 1, 1},
49860  {&__pyx_n_s_TwophaseNavierStokes_ST_LS_SO_2D_2, __pyx_k_TwophaseNavierStokes_ST_LS_SO_2D_2, sizeof(__pyx_k_TwophaseNavierStokes_ST_LS_SO_2D_2), 0, 0, 1, 1},
49861  {&__pyx_n_s_TwophaseNavierStokes_ST_LS_SO_3D, __pyx_k_TwophaseNavierStokes_ST_LS_SO_3D, sizeof(__pyx_k_TwophaseNavierStokes_ST_LS_SO_3D), 0, 0, 1, 1},
49862  {&__pyx_n_s_TwophaseNavierStokes_ST_LS_SO_3D_2, __pyx_k_TwophaseNavierStokes_ST_LS_SO_3D_2, sizeof(__pyx_k_TwophaseNavierStokes_ST_LS_SO_3D_2), 0, 0, 1, 1},
49863  {&__pyx_n_s_TwophaseNavierStokes_VOF_SO_2D_E, __pyx_k_TwophaseNavierStokes_VOF_SO_2D_E, sizeof(__pyx_k_TwophaseNavierStokes_VOF_SO_2D_E), 0, 0, 1, 1},
49864  {&__pyx_n_s_TwophaseNavierStokes_VOF_SO_3D_E, __pyx_k_TwophaseNavierStokes_VOF_SO_3D_E, sizeof(__pyx_k_TwophaseNavierStokes_VOF_SO_3D_E), 0, 0, 1, 1},
49865  {&__pyx_n_s_TwophaseStokes_LS_SO_2D_Evaluate, __pyx_k_TwophaseStokes_LS_SO_2D_Evaluate, sizeof(__pyx_k_TwophaseStokes_LS_SO_2D_Evaluate), 0, 0, 1, 1},
49866  {&__pyx_n_s_TwophaseStokes_LS_SO_3D_Evaluate, __pyx_k_TwophaseStokes_LS_SO_3D_Evaluate, sizeof(__pyx_k_TwophaseStokes_LS_SO_3D_Evaluate), 0, 0, 1, 1},
49867  {&__pyx_n_s_TwophaseStokes_VOF_SO_2D_Evaluat, __pyx_k_TwophaseStokes_VOF_SO_2D_Evaluat, sizeof(__pyx_k_TwophaseStokes_VOF_SO_2D_Evaluat), 0, 0, 1, 1},
49868  {&__pyx_n_s_TwophaseStokes_VOF_SO_3D_Evaluat, __pyx_k_TwophaseStokes_VOF_SO_3D_Evaluat, sizeof(__pyx_k_TwophaseStokes_VOF_SO_3D_Evaluat), 0, 0, 1, 1},
49869  {&__pyx_n_s_VOFCoefficientsEvaluate, __pyx_k_VOFCoefficientsEvaluate, sizeof(__pyx_k_VOFCoefficientsEvaluate), 0, 0, 1, 1},
49870  {&__pyx_n_s_VolumeAveragedNavierStokesFullDe, __pyx_k_VolumeAveragedNavierStokesFullDe, sizeof(__pyx_k_VolumeAveragedNavierStokesFullDe), 0, 0, 1, 1},
49871  {&__pyx_n_s_VolumeAveragedNavierStokesFullDe_2, __pyx_k_VolumeAveragedNavierStokesFullDe_2, sizeof(__pyx_k_VolumeAveragedNavierStokesFullDe_2), 0, 0, 1, 1},
49872  {&__pyx_n_s_VolumeAveragedTwophaseNavierStok, __pyx_k_VolumeAveragedTwophaseNavierStok, sizeof(__pyx_k_VolumeAveragedTwophaseNavierStok), 0, 0, 1, 1},
49873  {&__pyx_n_s_VolumeAveragedTwophaseNavierStok_2, __pyx_k_VolumeAveragedTwophaseNavierStok_2, sizeof(__pyx_k_VolumeAveragedTwophaseNavierStok_2), 0, 0, 1, 1},
49874  {&__pyx_n_s_VolumeAveragedTwophaseNavierStok_3, __pyx_k_VolumeAveragedTwophaseNavierStok_3, sizeof(__pyx_k_VolumeAveragedTwophaseNavierStok_3), 0, 0, 1, 1},
49875  {&__pyx_n_s_VolumeAveragedTwophaseNavierStok_4, __pyx_k_VolumeAveragedTwophaseNavierStok_4, sizeof(__pyx_k_VolumeAveragedTwophaseNavierStok_4), 0, 0, 1, 1},
49876  {&__pyx_n_s_VolumeAveragedVOFCoefficientsEva, __pyx_k_VolumeAveragedVOFCoefficientsEva, sizeof(__pyx_k_VolumeAveragedVOFCoefficientsEva), 0, 0, 1, 1},
49877  {&__pyx_n_s_Yield, __pyx_k_Yield, sizeof(__pyx_k_Yield), 0, 0, 1, 1},
49878  {&__pyx_n_s_Z_tot, __pyx_k_Z_tot, sizeof(__pyx_k_Z_tot), 0, 0, 1, 1},
49879  {&__pyx_n_s_a, __pyx_k_a, sizeof(__pyx_k_a), 0, 0, 1, 1},
49880  {&__pyx_n_s_a_avg, __pyx_k_a_avg, sizeof(__pyx_k_a_avg), 0, 0, 1, 1},
49881  {&__pyx_n_s_a_c, __pyx_k_a_c, sizeof(__pyx_k_a_c), 0, 0, 1, 1},
49882  {&__pyx_n_s_a_e, __pyx_k_a_e, sizeof(__pyx_k_a_e), 0, 0, 1, 1},
49883  {&__pyx_n_s_a_h, __pyx_k_a_h, sizeof(__pyx_k_a_h), 0, 0, 1, 1},
49884  {&__pyx_n_s_a_k, __pyx_k_a_k, sizeof(__pyx_k_a_k), 0, 0, 1, 1},
49885  {&__pyx_n_s_a_m, __pyx_k_a_m, sizeof(__pyx_k_a_m), 0, 0, 1, 1},
49886  {&__pyx_n_s_advectiveFlux, __pyx_k_advectiveFlux, sizeof(__pyx_k_advectiveFlux), 0, 0, 1, 1},
49887  {&__pyx_n_s_alpha, __pyx_k_alpha, sizeof(__pyx_k_alpha), 0, 0, 1, 1},
49888  {&__pyx_n_s_alpha_L, __pyx_k_alpha_L, sizeof(__pyx_k_alpha_L), 0, 0, 1, 1},
49889  {&__pyx_n_s_alpha_L_types, __pyx_k_alpha_L_types, sizeof(__pyx_k_alpha_L_types), 0, 0, 1, 1},
49890  {&__pyx_n_s_alpha_T, __pyx_k_alpha_T, sizeof(__pyx_k_alpha_T), 0, 0, 1, 1},
49891  {&__pyx_n_s_alpha_T_types, __pyx_k_alpha_T_types, sizeof(__pyx_k_alpha_T_types), 0, 0, 1, 1},
49892  {&__pyx_n_s_applyContactLineSlip, __pyx_k_applyContactLineSlip, sizeof(__pyx_k_applyContactLineSlip), 0, 0, 1, 1},
49893  {&__pyx_n_s_applyContactLineSlipJacobian, __pyx_k_applyContactLineSlipJacobian, sizeof(__pyx_k_applyContactLineSlipJacobian), 0, 0, 1, 1},
49894  {&__pyx_n_s_b, __pyx_k_b, sizeof(__pyx_k_b), 0, 0, 1, 1},
49895  {&__pyx_n_s_bedFrictionCoefficient, __pyx_k_bedFrictionCoefficient, sizeof(__pyx_k_bedFrictionCoefficient), 0, 0, 1, 1},
49896  {&__pyx_n_s_bedFrictionPower, __pyx_k_bedFrictionPower, sizeof(__pyx_k_bedFrictionPower), 0, 0, 1, 1},
49897  {&__pyx_n_s_beta, __pyx_k_beta, sizeof(__pyx_k_beta), 0, 0, 1, 1},
49898  {&__pyx_n_s_boundaryPenaltyCoef, __pyx_k_boundaryPenaltyCoef, sizeof(__pyx_k_boundaryPenaltyCoef), 0, 0, 1, 1},
49899  {&__pyx_n_s_burgersDiagonalVelEvaluate, __pyx_k_burgersDiagonalVelEvaluate, sizeof(__pyx_k_burgersDiagonalVelEvaluate), 0, 0, 1, 1},
49900  {&__pyx_n_s_burgersDiagonalVelHJEvaluate, __pyx_k_burgersDiagonalVelHJEvaluate, sizeof(__pyx_k_burgersDiagonalVelHJEvaluate), 0, 0, 1, 1},
49901  {&__pyx_n_s_cLevelSetCoefficientsEvaluate, __pyx_k_cLevelSetCoefficientsEvaluate, sizeof(__pyx_k_cLevelSetCoefficientsEvaluate), 0, 0, 1, 1},
49902  {&__pyx_n_s_c_1, __pyx_k_c_1, sizeof(__pyx_k_c_1), 0, 0, 1, 1},
49903  {&__pyx_n_s_c_2, __pyx_k_c_2, sizeof(__pyx_k_c_2), 0, 0, 1, 1},
49904  {&__pyx_n_s_c_c, __pyx_k_c_c, sizeof(__pyx_k_c_c), 0, 0, 1, 1},
49905  {&__pyx_n_s_c_e, __pyx_k_c_e, sizeof(__pyx_k_c_e), 0, 0, 1, 1},
49906  {&__pyx_n_s_c_h, __pyx_k_c_h, sizeof(__pyx_k_c_h), 0, 0, 1, 1},
49907  {&__pyx_n_s_c_m, __pyx_k_c_m, sizeof(__pyx_k_c_m), 0, 0, 1, 1},
49908  {&__pyx_n_s_c_mu, __pyx_k_c_mu, sizeof(__pyx_k_c_mu), 0, 0, 1, 1},
49909  {&__pyx_n_s_c_x, __pyx_k_c_x, sizeof(__pyx_k_c_x), 0, 0, 1, 1},
49910  {&__pyx_n_s_calculateEddyViscosity_Smagorins, __pyx_k_calculateEddyViscosity_Smagorins, sizeof(__pyx_k_calculateEddyViscosity_Smagorins), 0, 0, 1, 1},
49911  {&__pyx_n_s_calculateEddyViscosity_Smagorins_2, __pyx_k_calculateEddyViscosity_Smagorins_2, sizeof(__pyx_k_calculateEddyViscosity_Smagorins_2), 0, 0, 1, 1},
49912  {&__pyx_n_s_calculateEddyViscosity_Smagorins_3, __pyx_k_calculateEddyViscosity_Smagorins_3, sizeof(__pyx_k_calculateEddyViscosity_Smagorins_3), 0, 0, 1, 1},
49913  {&__pyx_n_s_calculateEddyViscosity_Smagorins_4, __pyx_k_calculateEddyViscosity_Smagorins_4, sizeof(__pyx_k_calculateEddyViscosity_Smagorins_4), 0, 0, 1, 1},
49914  {&__pyx_n_s_calculateWaveFunction3d_ref, __pyx_k_calculateWaveFunction3d_ref, sizeof(__pyx_k_calculateWaveFunction3d_ref), 0, 0, 1, 1},
49915  {&__pyx_n_s_centers, __pyx_k_centers, sizeof(__pyx_k_centers), 0, 0, 1, 1},
49916  {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback, sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1},
49917  {&__pyx_n_s_colind, __pyx_k_colind, sizeof(__pyx_k_colind), 0, 0, 1, 1},
49918  {&__pyx_n_s_computeAverages, __pyx_k_computeAverages, sizeof(__pyx_k_computeAverages), 0, 0, 1, 1},
49919  {&__pyx_n_s_conservativeHeadRichardsBCBfromM, __pyx_k_conservativeHeadRichardsBCBfromM, sizeof(__pyx_k_conservativeHeadRichardsBCBfromM), 0, 0, 1, 1},
49920  {&__pyx_n_s_conservativeHeadRichardsBrooksCo, __pyx_k_conservativeHeadRichardsBrooksCo, sizeof(__pyx_k_conservativeHeadRichardsBrooksCo), 0, 0, 1, 1},
49921  {&__pyx_n_s_conservativeHeadRichardsBrooksCo_2, __pyx_k_conservativeHeadRichardsBrooksCo_2, sizeof(__pyx_k_conservativeHeadRichardsBrooksCo_2), 0, 0, 1, 1},
49922  {&__pyx_n_s_conservativeHeadRichardsJLeveret, __pyx_k_conservativeHeadRichardsJLeveret, sizeof(__pyx_k_conservativeHeadRichardsJLeveret), 0, 0, 1, 1},
49923  {&__pyx_n_s_conservativeHeadRichardsJLeveret_2, __pyx_k_conservativeHeadRichardsJLeveret_2, sizeof(__pyx_k_conservativeHeadRichardsJLeveret_2), 0, 0, 1, 1},
49924  {&__pyx_n_s_conservativeHeadRichardsL2projBn, __pyx_k_conservativeHeadRichardsL2projBn, sizeof(__pyx_k_conservativeHeadRichardsL2projBn), 0, 0, 1, 1},
49925  {&__pyx_n_s_conservativeHeadRichardsL2projMu, __pyx_k_conservativeHeadRichardsL2projMu, sizeof(__pyx_k_conservativeHeadRichardsL2projMu), 0, 0, 1, 1},
49926  {&__pyx_n_s_conservativeHeadRichardsL2projMu_2, __pyx_k_conservativeHeadRichardsL2projMu_2, sizeof(__pyx_k_conservativeHeadRichardsL2projMu_2), 0, 0, 1, 1},
49927  {&__pyx_n_s_conservativeHeadRichardsMualemVa, __pyx_k_conservativeHeadRichardsMualemVa, sizeof(__pyx_k_conservativeHeadRichardsMualemVa), 0, 0, 1, 1},
49928  {&__pyx_n_s_conservativeHeadRichardsMualemVa_2, __pyx_k_conservativeHeadRichardsMualemVa_2, sizeof(__pyx_k_conservativeHeadRichardsMualemVa_2), 0, 0, 1, 1},
49929  {&__pyx_n_s_conservativeHeadRichardsMualemVa_3, __pyx_k_conservativeHeadRichardsMualemVa_3, sizeof(__pyx_k_conservativeHeadRichardsMualemVa_3), 0, 0, 1, 1},
49930  {&__pyx_n_s_conservativeHeadRichardsMualemVa_4, __pyx_k_conservativeHeadRichardsMualemVa_4, sizeof(__pyx_k_conservativeHeadRichardsMualemVa_4), 0, 0, 1, 1},
49931  {&__pyx_n_s_conservativeHeadRichardsMualemVa_5, __pyx_k_conservativeHeadRichardsMualemVa_5, sizeof(__pyx_k_conservativeHeadRichardsMualemVa_5), 0, 0, 1, 1},
49932  {&__pyx_n_s_conservativeHeadRichardsMualemVa_6, __pyx_k_conservativeHeadRichardsMualemVa_6, sizeof(__pyx_k_conservativeHeadRichardsMualemVa_6), 0, 0, 1, 1},
49933  {&__pyx_n_s_conservativeHeadRichardsMualemVa_7, __pyx_k_conservativeHeadRichardsMualemVa_7, sizeof(__pyx_k_conservativeHeadRichardsMualemVa_7), 0, 0, 1, 1},
49934  {&__pyx_n_s_conservativeSatRichardsBrooksCor, __pyx_k_conservativeSatRichardsBrooksCor, sizeof(__pyx_k_conservativeSatRichardsBrooksCor), 0, 0, 1, 1},
49935  {&__pyx_n_s_conservativeSatRichardsMualemVan, __pyx_k_conservativeSatRichardsMualemVan, sizeof(__pyx_k_conservativeSatRichardsMualemVan), 0, 0, 1, 1},
49936  {&__pyx_n_s_conservativeTotalHeadRichardsMua, __pyx_k_conservativeTotalHeadRichardsMua, sizeof(__pyx_k_conservativeTotalHeadRichardsMua), 0, 0, 1, 1},
49937  {&__pyx_n_s_constantNormalVelocityLevelSetEv, __pyx_k_constantNormalVelocityLevelSetEv, sizeof(__pyx_k_constantNormalVelocityLevelSetEv), 0, 0, 1, 1},
49938  {&__pyx_n_s_constantVelocityLevelSetEvaluate, __pyx_k_constantVelocityLevelSetEvaluate, sizeof(__pyx_k_constantVelocityLevelSetEvaluate), 0, 0, 1, 1},
49939  {&__pyx_n_s_ctransportCoefficients, __pyx_k_ctransportCoefficients, sizeof(__pyx_k_ctransportCoefficients), 0, 0, 1, 1},
49940  {&__pyx_n_s_d, __pyx_k_d, sizeof(__pyx_k_d), 0, 0, 1, 1},
49941  {&__pyx_n_s_dH, __pyx_k_dH, sizeof(__pyx_k_dH), 0, 0, 1, 1},
49942  {&__pyx_n_s_dV, __pyx_k_dV, sizeof(__pyx_k_dV), 0, 0, 1, 1},
49943  {&__pyx_n_s_d_c, __pyx_k_d_c, sizeof(__pyx_k_d_c), 0, 0, 1, 1},
49944  {&__pyx_n_s_d_e, __pyx_k_d_e, sizeof(__pyx_k_d_e), 0, 0, 1, 1},
49945  {&__pyx_n_s_d_h, __pyx_k_d_h, sizeof(__pyx_k_d_h), 0, 0, 1, 1},
49946  {&__pyx_n_s_d_m, __pyx_k_d_m, sizeof(__pyx_k_d_m), 0, 0, 1, 1},
49947  {&__pyx_n_s_da, __pyx_k_da, sizeof(__pyx_k_da), 0, 0, 1, 1},
49948  {&__pyx_n_s_da_avg, __pyx_k_da_avg, sizeof(__pyx_k_da_avg), 0, 0, 1, 1},
49949  {&__pyx_n_s_da_e_de, __pyx_k_da_e_de, sizeof(__pyx_k_da_e_de), 0, 0, 1, 1},
49950  {&__pyx_n_s_da_e_dk, __pyx_k_da_e_dk, sizeof(__pyx_k_da_e_dk), 0, 0, 1, 1},
49951  {&__pyx_n_s_da_k_de, __pyx_k_da_k_de, sizeof(__pyx_k_da_k_de), 0, 0, 1, 1},
49952  {&__pyx_n_s_da_k_dk, __pyx_k_da_k_dk, sizeof(__pyx_k_da_k_dk), 0, 0, 1, 1},
49953  {&__pyx_n_s_darcySharpInterfaceFlowEvaluate, __pyx_k_darcySharpInterfaceFlowEvaluate, sizeof(__pyx_k_darcySharpInterfaceFlowEvaluate), 0, 0, 1, 1},
49954  {&__pyx_n_s_darcySharpInterfaceFlowImEvaluat, __pyx_k_darcySharpInterfaceFlowImEvaluat, sizeof(__pyx_k_darcySharpInterfaceFlowImEvaluat), 0, 0, 1, 1},
49955  {&__pyx_n_s_db_dx, __pyx_k_db_dx, sizeof(__pyx_k_db_dx), 0, 0, 1, 1},
49956  {&__pyx_n_s_det_J, __pyx_k_det_J, sizeof(__pyx_k_det_J), 0, 0, 1, 1},
49957  {&__pyx_n_s_df, __pyx_k_df, sizeof(__pyx_k_df), 0, 0, 1, 1},
49958  {&__pyx_n_s_df_avg, __pyx_k_df_avg, sizeof(__pyx_k_df_avg), 0, 0, 1, 1},
49959  {&__pyx_n_s_df_c, __pyx_k_df_c, sizeof(__pyx_k_df_c), 0, 0, 1, 1},
49960  {&__pyx_n_s_df_e, __pyx_k_df_e, sizeof(__pyx_k_df_e), 0, 0, 1, 1},
49961  {&__pyx_n_s_df_h, __pyx_k_df_h, sizeof(__pyx_k_df_h), 0, 0, 1, 1},
49962  {&__pyx_n_s_df_k, __pyx_k_df_k, sizeof(__pyx_k_df_k), 0, 0, 1, 1},
49963  {&__pyx_n_s_df_m, __pyx_k_df_m, sizeof(__pyx_k_df_m), 0, 0, 1, 1},
49964  {&__pyx_n_s_dh, __pyx_k_dh, sizeof(__pyx_k_dh), 0, 0, 1, 1},
49965  {&__pyx_n_s_diffusiveFlux, __pyx_k_diffusiveFlux, sizeof(__pyx_k_diffusiveFlux), 0, 0, 1, 1},
49966  {&__pyx_n_s_diffusiveWave1DCoefficientsEvalu, __pyx_k_diffusiveWave1DCoefficientsEvalu, sizeof(__pyx_k_diffusiveWave1DCoefficientsEvalu), 0, 0, 1, 1},
49967  {&__pyx_n_s_diffusiveWave2DCoefficientsEvalu, __pyx_k_diffusiveWave2DCoefficientsEvalu, sizeof(__pyx_k_diffusiveWave2DCoefficientsEvalu), 0, 0, 1, 1},
49968  {&__pyx_n_s_disRotatingPulseVelEvaluate, __pyx_k_disRotatingPulseVelEvaluate, sizeof(__pyx_k_disRotatingPulseVelEvaluate), 0, 0, 1, 1},
49969  {&__pyx_n_s_disVelEvaluate, __pyx_k_disVelEvaluate, sizeof(__pyx_k_disVelEvaluate), 0, 0, 1, 1},
49970  {&__pyx_n_s_dm, __pyx_k_dm, sizeof(__pyx_k_dm), 0, 0, 1, 1},
49971  {&__pyx_n_s_dm_c, __pyx_k_dm_c, sizeof(__pyx_k_dm_c), 0, 0, 1, 1},
49972  {&__pyx_n_s_dm_e, __pyx_k_dm_e, sizeof(__pyx_k_dm_e), 0, 0, 1, 1},
49973  {&__pyx_n_s_dm_h_h, __pyx_k_dm_h_h, sizeof(__pyx_k_dm_h_h), 0, 0, 1, 1},
49974  {&__pyx_n_s_dm_h_m, __pyx_k_dm_h_m, sizeof(__pyx_k_dm_h_m), 0, 0, 1, 1},
49975  {&__pyx_n_s_dm_k, __pyx_k_dm_k, sizeof(__pyx_k_dm_k), 0, 0, 1, 1},
49976  {&__pyx_n_s_dm_m_h, __pyx_k_dm_m_h, sizeof(__pyx_k_dm_m_h), 0, 0, 1, 1},
49977  {&__pyx_n_s_dm_m_m, __pyx_k_dm_m_m, sizeof(__pyx_k_dm_m_m), 0, 0, 1, 1},
49978  {&__pyx_n_s_dm_x, __pyx_k_dm_x, sizeof(__pyx_k_dm_x), 0, 0, 1, 1},
49979  {&__pyx_n_s_dmass, __pyx_k_dmass, sizeof(__pyx_k_dmass), 0, 0, 1, 1},
49980  {&__pyx_n_s_dmass_acc_dh, __pyx_k_dmass_acc_dh, sizeof(__pyx_k_dmass_acc_dh), 0, 0, 1, 1},
49981  {&__pyx_n_s_dmass_adv_dhu, __pyx_k_dmass_adv_dhu, sizeof(__pyx_k_dmass_adv_dhu), 0, 0, 1, 1},
49982  {&__pyx_n_s_dmass_adv_dhv, __pyx_k_dmass_adv_dhv, sizeof(__pyx_k_dmass_adv_dhv), 0, 0, 1, 1},
49983  {&__pyx_n_s_dmass_adv_p, __pyx_k_dmass_adv_p, sizeof(__pyx_k_dmass_adv_p), 0, 0, 1, 1},
49984  {&__pyx_n_s_dmass_adv_u, __pyx_k_dmass_adv_u, sizeof(__pyx_k_dmass_adv_u), 0, 0, 1, 1},
49985  {&__pyx_n_s_dmass_adv_v, __pyx_k_dmass_adv_v, sizeof(__pyx_k_dmass_adv_v), 0, 0, 1, 1},
49986  {&__pyx_n_s_dmass_adv_w, __pyx_k_dmass_adv_w, sizeof(__pyx_k_dmass_adv_w), 0, 0, 1, 1},
49987  {&__pyx_n_s_dmom_acc_dhu, __pyx_k_dmom_acc_dhu, sizeof(__pyx_k_dmom_acc_dhu), 0, 0, 1, 1},
49988  {&__pyx_n_s_dmom_adv_dh, __pyx_k_dmom_adv_dh, sizeof(__pyx_k_dmom_adv_dh), 0, 0, 1, 1},
49989  {&__pyx_n_s_dmom_adv_dhu, __pyx_k_dmom_adv_dhu, sizeof(__pyx_k_dmom_adv_dhu), 0, 0, 1, 1},
49990  {&__pyx_n_s_dmom_p_acc_p, __pyx_k_dmom_p_acc_p, sizeof(__pyx_k_dmom_p_acc_p), 0, 0, 1, 1},
49991  {&__pyx_n_s_dmom_source_dh, __pyx_k_dmom_source_dh, sizeof(__pyx_k_dmom_source_dh), 0, 0, 1, 1},
49992  {&__pyx_n_s_dmom_source_dhu, __pyx_k_dmom_source_dhu, sizeof(__pyx_k_dmom_source_dhu), 0, 0, 1, 1},
49993  {&__pyx_n_s_dmom_u_acc_dhu, __pyx_k_dmom_u_acc_dhu, sizeof(__pyx_k_dmom_u_acc_dhu), 0, 0, 1, 1},
49994  {&__pyx_n_s_dmom_u_acc_u, __pyx_k_dmom_u_acc_u, sizeof(__pyx_k_dmom_u_acc_u), 0, 0, 1, 1},
49995  {&__pyx_n_s_dmom_u_adv_dh, __pyx_k_dmom_u_adv_dh, sizeof(__pyx_k_dmom_u_adv_dh), 0, 0, 1, 1},
49996  {&__pyx_n_s_dmom_u_adv_dhu, __pyx_k_dmom_u_adv_dhu, sizeof(__pyx_k_dmom_u_adv_dhu), 0, 0, 1, 1},
49997  {&__pyx_n_s_dmom_u_adv_dhv, __pyx_k_dmom_u_adv_dhv, sizeof(__pyx_k_dmom_u_adv_dhv), 0, 0, 1, 1},
49998  {&__pyx_n_s_dmom_u_adv_p, __pyx_k_dmom_u_adv_p, sizeof(__pyx_k_dmom_u_adv_p), 0, 0, 1, 1},
49999  {&__pyx_n_s_dmom_u_adv_u, __pyx_k_dmom_u_adv_u, sizeof(__pyx_k_dmom_u_adv_u), 0, 0, 1, 1},
50000  {&__pyx_n_s_dmom_u_adv_v, __pyx_k_dmom_u_adv_v, sizeof(__pyx_k_dmom_u_adv_v), 0, 0, 1, 1},
50001  {&__pyx_n_s_dmom_u_adv_w, __pyx_k_dmom_u_adv_w, sizeof(__pyx_k_dmom_u_adv_w), 0, 0, 1, 1},
50002  {&__pyx_n_s_dmom_u_ham_grad_p, __pyx_k_dmom_u_ham_grad_p, sizeof(__pyx_k_dmom_u_ham_grad_p), 0, 0, 1, 1},
50003  {&__pyx_n_s_dmom_u_source_dh, __pyx_k_dmom_u_source_dh, sizeof(__pyx_k_dmom_u_source_dh), 0, 0, 1, 1},
50004  {&__pyx_n_s_dmom_u_source_dhu, __pyx_k_dmom_u_source_dhu, sizeof(__pyx_k_dmom_u_source_dhu), 0, 0, 1, 1},
50005  {&__pyx_n_s_dmom_u_source_dhv, __pyx_k_dmom_u_source_dhv, sizeof(__pyx_k_dmom_u_source_dhv), 0, 0, 1, 1},
50006  {&__pyx_n_s_dmom_u_source_u, __pyx_k_dmom_u_source_u, sizeof(__pyx_k_dmom_u_source_u), 0, 0, 1, 1},
50007  {&__pyx_n_s_dmom_u_source_v, __pyx_k_dmom_u_source_v, sizeof(__pyx_k_dmom_u_source_v), 0, 0, 1, 1},
50008  {&__pyx_n_s_dmom_u_source_w, __pyx_k_dmom_u_source_w, sizeof(__pyx_k_dmom_u_source_w), 0, 0, 1, 1},
50009  {&__pyx_n_s_dmom_v_acc_dhv, __pyx_k_dmom_v_acc_dhv, sizeof(__pyx_k_dmom_v_acc_dhv), 0, 0, 1, 1},
50010  {&__pyx_n_s_dmom_v_acc_v, __pyx_k_dmom_v_acc_v, sizeof(__pyx_k_dmom_v_acc_v), 0, 0, 1, 1},
50011  {&__pyx_n_s_dmom_v_adv_dh, __pyx_k_dmom_v_adv_dh, sizeof(__pyx_k_dmom_v_adv_dh), 0, 0, 1, 1},
50012  {&__pyx_n_s_dmom_v_adv_dhu, __pyx_k_dmom_v_adv_dhu, sizeof(__pyx_k_dmom_v_adv_dhu), 0, 0, 1, 1},
50013  {&__pyx_n_s_dmom_v_adv_dhv, __pyx_k_dmom_v_adv_dhv, sizeof(__pyx_k_dmom_v_adv_dhv), 0, 0, 1, 1},
50014  {&__pyx_n_s_dmom_v_adv_p, __pyx_k_dmom_v_adv_p, sizeof(__pyx_k_dmom_v_adv_p), 0, 0, 1, 1},
50015  {&__pyx_n_s_dmom_v_adv_u, __pyx_k_dmom_v_adv_u, sizeof(__pyx_k_dmom_v_adv_u), 0, 0, 1, 1},
50016  {&__pyx_n_s_dmom_v_adv_v, __pyx_k_dmom_v_adv_v, sizeof(__pyx_k_dmom_v_adv_v), 0, 0, 1, 1},
50017  {&__pyx_n_s_dmom_v_adv_w, __pyx_k_dmom_v_adv_w, sizeof(__pyx_k_dmom_v_adv_w), 0, 0, 1, 1},
50018  {&__pyx_n_s_dmom_v_ham_grad_p, __pyx_k_dmom_v_ham_grad_p, sizeof(__pyx_k_dmom_v_ham_grad_p), 0, 0, 1, 1},
50019  {&__pyx_n_s_dmom_v_source_dh, __pyx_k_dmom_v_source_dh, sizeof(__pyx_k_dmom_v_source_dh), 0, 0, 1, 1},
50020  {&__pyx_n_s_dmom_v_source_dhu, __pyx_k_dmom_v_source_dhu, sizeof(__pyx_k_dmom_v_source_dhu), 0, 0, 1, 1},
50021  {&__pyx_n_s_dmom_v_source_dhv, __pyx_k_dmom_v_source_dhv, sizeof(__pyx_k_dmom_v_source_dhv), 0, 0, 1, 1},
50022  {&__pyx_n_s_dmom_v_source_u, __pyx_k_dmom_v_source_u, sizeof(__pyx_k_dmom_v_source_u), 0, 0, 1, 1},
50023  {&__pyx_n_s_dmom_v_source_v, __pyx_k_dmom_v_source_v, sizeof(__pyx_k_dmom_v_source_v), 0, 0, 1, 1},
50024  {&__pyx_n_s_dmom_v_source_w, __pyx_k_dmom_v_source_w, sizeof(__pyx_k_dmom_v_source_w), 0, 0, 1, 1},
50025  {&__pyx_n_s_dmom_w_acc_w, __pyx_k_dmom_w_acc_w, sizeof(__pyx_k_dmom_w_acc_w), 0, 0, 1, 1},
50026  {&__pyx_n_s_dmom_w_adv_p, __pyx_k_dmom_w_adv_p, sizeof(__pyx_k_dmom_w_adv_p), 0, 0, 1, 1},
50027  {&__pyx_n_s_dmom_w_adv_u, __pyx_k_dmom_w_adv_u, sizeof(__pyx_k_dmom_w_adv_u), 0, 0, 1, 1},
50028  {&__pyx_n_s_dmom_w_adv_v, __pyx_k_dmom_w_adv_v, sizeof(__pyx_k_dmom_w_adv_v), 0, 0, 1, 1},
50029  {&__pyx_n_s_dmom_w_adv_w, __pyx_k_dmom_w_adv_w, sizeof(__pyx_k_dmom_w_adv_w), 0, 0, 1, 1},
50030  {&__pyx_n_s_dmom_w_ham_grad_p, __pyx_k_dmom_w_ham_grad_p, sizeof(__pyx_k_dmom_w_ham_grad_p), 0, 0, 1, 1},
50031  {&__pyx_n_s_dmom_w_source_u, __pyx_k_dmom_w_source_u, sizeof(__pyx_k_dmom_w_source_u), 0, 0, 1, 1},
50032  {&__pyx_n_s_dmom_w_source_v, __pyx_k_dmom_w_source_v, sizeof(__pyx_k_dmom_w_source_v), 0, 0, 1, 1},
50033  {&__pyx_n_s_dmom_w_source_w, __pyx_k_dmom_w_source_w, sizeof(__pyx_k_dmom_w_source_w), 0, 0, 1, 1},
50034  {&__pyx_n_s_dphi, __pyx_k_dphi, sizeof(__pyx_k_dphi), 0, 0, 1, 1},
50035  {&__pyx_n_s_dphi_e, __pyx_k_dphi_e, sizeof(__pyx_k_dphi_e), 0, 0, 1, 1},
50036  {&__pyx_n_s_dphi_h, __pyx_k_dphi_h, sizeof(__pyx_k_dphi_h), 0, 0, 1, 1},
50037  {&__pyx_n_s_dphi_k, __pyx_k_dphi_k, sizeof(__pyx_k_dphi_k), 0, 0, 1, 1},
50038  {&__pyx_n_s_dphi_pot, __pyx_k_dphi_pot, sizeof(__pyx_k_dphi_pot), 0, 0, 1, 1},
50039  {&__pyx_n_s_dr, __pyx_k_dr, sizeof(__pyx_k_dr), 0, 0, 1, 1},
50040  {&__pyx_n_s_dr_c_dc, __pyx_k_dr_c_dc, sizeof(__pyx_k_dr_c_dc), 0, 0, 1, 1},
50041  {&__pyx_n_s_dr_c_de, __pyx_k_dr_c_de, sizeof(__pyx_k_dr_c_de), 0, 0, 1, 1},
50042  {&__pyx_n_s_dr_c_dx, __pyx_k_dr_c_dx, sizeof(__pyx_k_dr_c_dx), 0, 0, 1, 1},
50043  {&__pyx_n_s_dr_e_dc, __pyx_k_dr_e_dc, sizeof(__pyx_k_dr_e_dc), 0, 0, 1, 1},
50044  {&__pyx_n_s_dr_e_de, __pyx_k_dr_e_de, sizeof(__pyx_k_dr_e_de), 0, 0, 1, 1},
50045  {&__pyx_n_s_dr_e_dk, __pyx_k_dr_e_dk, sizeof(__pyx_k_dr_e_dk), 0, 0, 1, 1},
50046  {&__pyx_n_s_dr_e_dx, __pyx_k_dr_e_dx, sizeof(__pyx_k_dr_e_dx), 0, 0, 1, 1},
50047  {&__pyx_n_s_dr_h_dh, __pyx_k_dr_h_dh, sizeof(__pyx_k_dr_h_dh), 0, 0, 1, 1},
50048  {&__pyx_n_s_dr_h_dm, __pyx_k_dr_h_dm, sizeof(__pyx_k_dr_h_dm), 0, 0, 1, 1},
50049  {&__pyx_n_s_dr_k_de, __pyx_k_dr_k_de, sizeof(__pyx_k_dr_k_de), 0, 0, 1, 1},
50050  {&__pyx_n_s_dr_k_dk, __pyx_k_dr_k_dk, sizeof(__pyx_k_dr_k_dk), 0, 0, 1, 1},
50051  {&__pyx_n_s_dr_m_dh, __pyx_k_dr_m_dh, sizeof(__pyx_k_dr_m_dh), 0, 0, 1, 1},
50052  {&__pyx_n_s_dr_m_dm, __pyx_k_dr_m_dm, sizeof(__pyx_k_dr_m_dm), 0, 0, 1, 1},
50053  {&__pyx_n_s_dr_x_dc, __pyx_k_dr_x_dc, sizeof(__pyx_k_dr_x_dc), 0, 0, 1, 1},
50054  {&__pyx_n_s_dr_x_de, __pyx_k_dr_x_de, sizeof(__pyx_k_dr_x_de), 0, 0, 1, 1},
50055  {&__pyx_n_s_dr_x_dx, __pyx_k_dr_x_dx, sizeof(__pyx_k_dr_x_dx), 0, 0, 1, 1},
50056  {&__pyx_n_s_eddyViscosity, __pyx_k_eddyViscosity, sizeof(__pyx_k_eddyViscosity), 0, 0, 1, 1},
50057  {&__pyx_n_s_eddyViscosity_2D_Update, __pyx_k_eddyViscosity_2D_Update, sizeof(__pyx_k_eddyViscosity_2D_Update), 0, 0, 1, 1},
50058  {&__pyx_n_s_eddyViscosity_2D_Update_sd, __pyx_k_eddyViscosity_2D_Update_sd, sizeof(__pyx_k_eddyViscosity_2D_Update_sd), 0, 0, 1, 1},
50059  {&__pyx_n_s_eddyViscosity_3D_Update, __pyx_k_eddyViscosity_3D_Update, sizeof(__pyx_k_eddyViscosity_3D_Update), 0, 0, 1, 1},
50060  {&__pyx_n_s_eddyViscosity_3D_Update_sd, __pyx_k_eddyViscosity_3D_Update_sd, sizeof(__pyx_k_eddyViscosity_3D_Update_sd), 0, 0, 1, 1},
50061  {&__pyx_n_s_eikonalEquationEvaluate, __pyx_k_eikonalEquationEvaluate, sizeof(__pyx_k_eikonalEquationEvaluate), 0, 0, 1, 1},
50062  {&__pyx_n_s_elementBoundaryElementsArray, __pyx_k_elementBoundaryElementsArray, sizeof(__pyx_k_elementBoundaryElementsArray), 0, 0, 1, 1},
50063  {&__pyx_n_s_elementDiameter, __pyx_k_elementDiameter, sizeof(__pyx_k_elementDiameter), 0, 0, 1, 1},
50064  {&__pyx_n_s_elementDiametersArray, __pyx_k_elementDiametersArray, sizeof(__pyx_k_elementDiametersArray), 0, 0, 1, 1},
50065  {&__pyx_n_s_eps, __pyx_k_eps, sizeof(__pyx_k_eps), 0, 0, 1, 1},
50066  {&__pyx_n_s_epsDiffusion, __pyx_k_epsDiffusion, sizeof(__pyx_k_epsDiffusion), 0, 0, 1, 1},
50067  {&__pyx_n_s_epsDirac, __pyx_k_epsDirac, sizeof(__pyx_k_epsDirac), 0, 0, 1, 1},
50068  {&__pyx_n_s_epsFact, __pyx_k_epsFact, sizeof(__pyx_k_epsFact), 0, 0, 1, 1},
50069  {&__pyx_n_s_epsHeaviside, __pyx_k_epsHeaviside, sizeof(__pyx_k_epsHeaviside), 0, 0, 1, 1},
50070  {&__pyx_n_s_eps_mu, __pyx_k_eps_mu, sizeof(__pyx_k_eps_mu), 0, 0, 1, 1},
50071  {&__pyx_n_s_eps_rho, __pyx_k_eps_rho, sizeof(__pyx_k_eps_rho), 0, 0, 1, 1},
50072  {&__pyx_n_s_epsilon, __pyx_k_epsilon, sizeof(__pyx_k_epsilon), 0, 0, 1, 1},
50073  {&__pyx_n_s_epsilon_freeze_factor, __pyx_k_epsilon_freeze_factor, sizeof(__pyx_k_epsilon_freeze_factor), 0, 0, 1, 1},
50074  {&__pyx_n_s_evaluateBuckleyLeverettLiuExampl, __pyx_k_evaluateBuckleyLeverettLiuExampl, sizeof(__pyx_k_evaluateBuckleyLeverettLiuExampl), 0, 0, 1, 1},
50075  {&__pyx_n_s_f, __pyx_k_f, sizeof(__pyx_k_f), 0, 0, 1, 1},
50076  {&__pyx_n_s_f_avg, __pyx_k_f_avg, sizeof(__pyx_k_f_avg), 0, 0, 1, 1},
50077  {&__pyx_n_s_f_c, __pyx_k_f_c, sizeof(__pyx_k_f_c), 0, 0, 1, 1},
50078  {&__pyx_n_s_f_e, __pyx_k_f_e, sizeof(__pyx_k_f_e), 0, 0, 1, 1},
50079  {&__pyx_n_s_f_h, __pyx_k_f_h, sizeof(__pyx_k_f_h), 0, 0, 1, 1},
50080  {&__pyx_n_s_f_k, __pyx_k_f_k, sizeof(__pyx_k_f_k), 0, 0, 1, 1},
50081  {&__pyx_n_s_f_m, __pyx_k_f_m, sizeof(__pyx_k_f_m), 0, 0, 1, 1},
50082  {&__pyx_n_s_fluxJacobian, __pyx_k_fluxJacobian, sizeof(__pyx_k_fluxJacobian), 0, 0, 1, 1},
50083  {&__pyx_n_s_freeze_nodes_tmp, __pyx_k_freeze_nodes_tmp, sizeof(__pyx_k_freeze_nodes_tmp), 0, 0, 1, 1},
50084  {&__pyx_n_s_g, __pyx_k_g, sizeof(__pyx_k_g), 0, 0, 1, 1},
50085  {&__pyx_n_s_gamma, __pyx_k_gamma, sizeof(__pyx_k_gamma), 0, 0, 1, 1},
50086  {&__pyx_n_s_grad_b, __pyx_k_grad_b, sizeof(__pyx_k_grad_b), 0, 0, 1, 1},
50087  {&__pyx_n_s_grad_k, __pyx_k_grad_k, sizeof(__pyx_k_grad_k), 0, 0, 1, 1},
50088  {&__pyx_n_s_grad_p, __pyx_k_grad_p, sizeof(__pyx_k_grad_p), 0, 0, 1, 1},
50089  {&__pyx_n_s_grad_phi, __pyx_k_grad_phi, sizeof(__pyx_k_grad_phi), 0, 0, 1, 1},
50090  {&__pyx_n_s_grad_u, __pyx_k_grad_u, sizeof(__pyx_k_grad_u), 0, 0, 1, 1},
50091  {&__pyx_n_s_grad_v, __pyx_k_grad_v, sizeof(__pyx_k_grad_v), 0, 0, 1, 1},
50092  {&__pyx_n_s_grad_w, __pyx_k_grad_w, sizeof(__pyx_k_grad_w), 0, 0, 1, 1},
50093  {&__pyx_n_s_gradu, __pyx_k_gradu, sizeof(__pyx_k_gradu), 0, 0, 1, 1},
50094  {&__pyx_n_s_gradv, __pyx_k_gradv, sizeof(__pyx_k_gradv), 0, 0, 1, 1},
50095  {&__pyx_n_s_gradw, __pyx_k_gradw, sizeof(__pyx_k_gradw), 0, 0, 1, 1},
50096  {&__pyx_n_s_gravity, __pyx_k_gravity, sizeof(__pyx_k_gravity), 0, 0, 1, 1},
50097  {&__pyx_n_s_gravity_u, __pyx_k_gravity_u, sizeof(__pyx_k_gravity_u), 0, 0, 1, 1},
50098  {&__pyx_n_s_groundwaterBiodegradation01Evalu, __pyx_k_groundwaterBiodegradation01Evalu, sizeof(__pyx_k_groundwaterBiodegradation01Evalu), 0, 0, 1, 1},
50099  {&__pyx_n_s_groundwaterBryantDawsonIonExEval, __pyx_k_groundwaterBryantDawsonIonExEval, sizeof(__pyx_k_groundwaterBryantDawsonIonExEval), 0, 0, 1, 1},
50100  {&__pyx_n_s_groundwaterTransportCoefficients, __pyx_k_groundwaterTransportCoefficients, sizeof(__pyx_k_groundwaterTransportCoefficients), 0, 0, 1, 1},
50101  {&__pyx_n_s_groundwaterTransportCoefficients_2, __pyx_k_groundwaterTransportCoefficients_2, sizeof(__pyx_k_groundwaterTransportCoefficients_2), 0, 0, 1, 1},
50102  {&__pyx_n_s_h, __pyx_k_h, sizeof(__pyx_k_h), 0, 0, 1, 1},
50103  {&__pyx_n_s_h_e, __pyx_k_h_e, sizeof(__pyx_k_h_e), 0, 0, 1, 1},
50104  {&__pyx_n_s_h_eps, __pyx_k_h_eps, sizeof(__pyx_k_h_eps), 0, 0, 1, 1},
50105  {&__pyx_n_s_hu, __pyx_k_hu, sizeof(__pyx_k_hu), 0, 0, 1, 1},
50106  {&__pyx_n_s_hv, __pyx_k_hv, sizeof(__pyx_k_hv), 0, 0, 1, 1},
50107  {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1},
50108  {&__pyx_n_s_isDOFBoundary, __pyx_k_isDOFBoundary, sizeof(__pyx_k_isDOFBoundary), 0, 0, 1, 1},
50109  {&__pyx_n_s_k, __pyx_k_k, sizeof(__pyx_k_k), 0, 0, 1, 1},
50110  {&__pyx_n_s_kEpsilon_2D_Evaluate, __pyx_k_kEpsilon_2D_Evaluate, sizeof(__pyx_k_kEpsilon_2D_Evaluate), 0, 0, 1, 1},
50111  {&__pyx_n_s_kEpsilon_2D_Evaluate_sd, __pyx_k_kEpsilon_2D_Evaluate_sd, sizeof(__pyx_k_kEpsilon_2D_Evaluate_sd), 0, 0, 1, 1},
50112  {&__pyx_n_s_kEpsilon_3D_Evaluate, __pyx_k_kEpsilon_3D_Evaluate, sizeof(__pyx_k_kEpsilon_3D_Evaluate), 0, 0, 1, 1},
50113  {&__pyx_n_s_kEpsilon_3D_Evaluate_sd, __pyx_k_kEpsilon_3D_Evaluate_sd, sizeof(__pyx_k_kEpsilon_3D_Evaluate_sd), 0, 0, 1, 1},
50114  {&__pyx_n_s_kEpsilon_epsilon_2D_Evaluate_sd, __pyx_k_kEpsilon_epsilon_2D_Evaluate_sd, sizeof(__pyx_k_kEpsilon_epsilon_2D_Evaluate_sd), 0, 0, 1, 1},
50115  {&__pyx_n_s_kEpsilon_epsilon_3D_Evaluate_sd, __pyx_k_kEpsilon_epsilon_3D_Evaluate_sd, sizeof(__pyx_k_kEpsilon_epsilon_3D_Evaluate_sd), 0, 0, 1, 1},
50116  {&__pyx_n_s_kEpsilon_k_2D_Evaluate_sd, __pyx_k_kEpsilon_k_2D_Evaluate_sd, sizeof(__pyx_k_kEpsilon_k_2D_Evaluate_sd), 0, 0, 1, 1},
50117  {&__pyx_n_s_kEpsilon_k_3D_Evaluate_sd, __pyx_k_kEpsilon_k_3D_Evaluate_sd, sizeof(__pyx_k_kEpsilon_k_3D_Evaluate_sd), 0, 0, 1, 1},
50118  {&__pyx_n_s_k_d, __pyx_k_k_d, sizeof(__pyx_k_k_d), 0, 0, 1, 1},
50119  {&__pyx_n_s_kappa, __pyx_k_kappa, sizeof(__pyx_k_kappa), 0, 0, 1, 1},
50120  {&__pyx_n_s_killNonlinearDrag, __pyx_k_killNonlinearDrag, sizeof(__pyx_k_killNonlinearDrag), 0, 0, 1, 1},
50121  {&__pyx_n_s_kr0, __pyx_k_kr0, sizeof(__pyx_k_kr0), 0, 0, 1, 1},
50122  {&__pyx_n_s_kr0x, __pyx_k_kr0x, sizeof(__pyx_k_kr0x), 0, 0, 1, 1},
50123  {&__pyx_n_s_kr0y, __pyx_k_kr0y, sizeof(__pyx_k_kr0y), 0, 0, 1, 1},
50124  {&__pyx_n_s_kr0z, __pyx_k_kr0z, sizeof(__pyx_k_kr0z), 0, 0, 1, 1},
50125  {&__pyx_n_s_l2project2Tensor, __pyx_k_l2project2Tensor, sizeof(__pyx_k_l2project2Tensor), 0, 0, 1, 1},
50126  {&__pyx_n_s_l2projectScalar, __pyx_k_l2projectScalar, sizeof(__pyx_k_l2projectScalar), 0, 0, 1, 1},
50127  {&__pyx_n_s_l2projectVector, __pyx_k_l2projectVector, sizeof(__pyx_k_l2projectVector), 0, 0, 1, 1},
50128  {&__pyx_n_s_levelSetConservationCoefficients, __pyx_k_levelSetConservationCoefficients, sizeof(__pyx_k_levelSetConservationCoefficients), 0, 0, 1, 1},
50129  {&__pyx_n_s_levelSetConservationCoefficients_2, __pyx_k_levelSetConservationCoefficients_2, sizeof(__pyx_k_levelSetConservationCoefficients_2), 0, 0, 1, 1},
50130  {&__pyx_n_s_levelSetCurvatureCoefficientsEva, __pyx_k_levelSetCurvatureCoefficientsEva, sizeof(__pyx_k_levelSetCurvatureCoefficientsEva), 0, 0, 1, 1},
50131  {&__pyx_n_s_linearADR_ConstantCoefficientsEv, __pyx_k_linearADR_ConstantCoefficientsEv, sizeof(__pyx_k_linearADR_ConstantCoefficientsEv), 0, 0, 1, 1},
50132  {&__pyx_n_s_linearize_at_zero, __pyx_k_linearize_at_zero, sizeof(__pyx_k_linearize_at_zero), 0, 0, 1, 1},
50133  {&__pyx_n_s_m, __pyx_k_m, sizeof(__pyx_k_m), 0, 0, 1, 1},
50134  {&__pyx_n_s_m_c, __pyx_k_m_c, sizeof(__pyx_k_m_c), 0, 0, 1, 1},
50135  {&__pyx_n_s_m_e, __pyx_k_m_e, sizeof(__pyx_k_m_e), 0, 0, 1, 1},
50136  {&__pyx_n_s_m_h, __pyx_k_m_h, sizeof(__pyx_k_m_h), 0, 0, 1, 1},
50137  {&__pyx_n_s_m_k, __pyx_k_m_k, sizeof(__pyx_k_m_k), 0, 0, 1, 1},
50138  {&__pyx_n_s_m_m, __pyx_k_m_m, sizeof(__pyx_k_m_m), 0, 0, 1, 1},
50139  {&__pyx_n_s_m_x, __pyx_k_m_x, sizeof(__pyx_k_m_x), 0, 0, 1, 1},
50140  {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1},
50141  {&__pyx_n_s_mass, __pyx_k_mass, sizeof(__pyx_k_mass), 0, 0, 1, 1},
50142  {&__pyx_n_s_mass_acc, __pyx_k_mass_acc, sizeof(__pyx_k_mass_acc), 0, 0, 1, 1},
50143  {&__pyx_n_s_mass_adv, __pyx_k_mass_adv, sizeof(__pyx_k_mass_adv), 0, 0, 1, 1},
50144  {&__pyx_n_s_materialTypes, __pyx_k_materialTypes, sizeof(__pyx_k_materialTypes), 0, 0, 1, 1},
50145  {&__pyx_n_s_meanGrainSize, __pyx_k_meanGrainSize, sizeof(__pyx_k_meanGrainSize), 0, 0, 1, 1},
50146  {&__pyx_n_s_mesh_dof, __pyx_k_mesh_dof, sizeof(__pyx_k_mesh_dof), 0, 0, 1, 1},
50147  {&__pyx_n_s_mesh_l2g, __pyx_k_mesh_l2g, sizeof(__pyx_k_mesh_l2g), 0, 0, 1, 1},
50148  {&__pyx_n_s_mesh_trial_ref, __pyx_k_mesh_trial_ref, sizeof(__pyx_k_mesh_trial_ref), 0, 0, 1, 1},
50149  {&__pyx_n_s_mom_acc, __pyx_k_mom_acc, sizeof(__pyx_k_mom_acc), 0, 0, 1, 1},
50150  {&__pyx_n_s_mom_adv, __pyx_k_mom_adv, sizeof(__pyx_k_mom_adv), 0, 0, 1, 1},
50151  {&__pyx_n_s_mom_diff, __pyx_k_mom_diff, sizeof(__pyx_k_mom_diff), 0, 0, 1, 1},
50152  {&__pyx_n_s_mom_p_acc, __pyx_k_mom_p_acc, sizeof(__pyx_k_mom_p_acc), 0, 0, 1, 1},
50153  {&__pyx_n_s_mom_p_diff_ten, __pyx_k_mom_p_diff_ten, sizeof(__pyx_k_mom_p_diff_ten), 0, 0, 1, 1},
50154  {&__pyx_n_s_mom_source, __pyx_k_mom_source, sizeof(__pyx_k_mom_source), 0, 0, 1, 1},
50155  {&__pyx_n_s_mom_u_acc, __pyx_k_mom_u_acc, sizeof(__pyx_k_mom_u_acc), 0, 0, 1, 1},
50156  {&__pyx_n_s_mom_u_adv, __pyx_k_mom_u_adv, sizeof(__pyx_k_mom_u_adv), 0, 0, 1, 1},
50157  {&__pyx_n_s_mom_u_diff, __pyx_k_mom_u_diff, sizeof(__pyx_k_mom_u_diff), 0, 0, 1, 1},
50158  {&__pyx_n_s_mom_u_diff_ten, __pyx_k_mom_u_diff_ten, sizeof(__pyx_k_mom_u_diff_ten), 0, 0, 1, 1},
50159  {&__pyx_n_s_mom_u_ham, __pyx_k_mom_u_ham, sizeof(__pyx_k_mom_u_ham), 0, 0, 1, 1},
50160  {&__pyx_n_s_mom_u_source, __pyx_k_mom_u_source, sizeof(__pyx_k_mom_u_source), 0, 0, 1, 1},
50161  {&__pyx_n_s_mom_uv_diff_ten, __pyx_k_mom_uv_diff_ten, sizeof(__pyx_k_mom_uv_diff_ten), 0, 0, 1, 1},
50162  {&__pyx_n_s_mom_uw_diff_ten, __pyx_k_mom_uw_diff_ten, sizeof(__pyx_k_mom_uw_diff_ten), 0, 0, 1, 1},
50163  {&__pyx_n_s_mom_v_acc, __pyx_k_mom_v_acc, sizeof(__pyx_k_mom_v_acc), 0, 0, 1, 1},
50164  {&__pyx_n_s_mom_v_adv, __pyx_k_mom_v_adv, sizeof(__pyx_k_mom_v_adv), 0, 0, 1, 1},
50165  {&__pyx_n_s_mom_v_diff, __pyx_k_mom_v_diff, sizeof(__pyx_k_mom_v_diff), 0, 0, 1, 1},
50166  {&__pyx_n_s_mom_v_diff_ten, __pyx_k_mom_v_diff_ten, sizeof(__pyx_k_mom_v_diff_ten), 0, 0, 1, 1},
50167  {&__pyx_n_s_mom_v_ham, __pyx_k_mom_v_ham, sizeof(__pyx_k_mom_v_ham), 0, 0, 1, 1},
50168  {&__pyx_n_s_mom_v_source, __pyx_k_mom_v_source, sizeof(__pyx_k_mom_v_source), 0, 0, 1, 1},
50169  {&__pyx_n_s_mom_vu_diff_ten, __pyx_k_mom_vu_diff_ten, sizeof(__pyx_k_mom_vu_diff_ten), 0, 0, 1, 1},
50170  {&__pyx_n_s_mom_vw_diff_ten, __pyx_k_mom_vw_diff_ten, sizeof(__pyx_k_mom_vw_diff_ten), 0, 0, 1, 1},
50171  {&__pyx_n_s_mom_w_acc, __pyx_k_mom_w_acc, sizeof(__pyx_k_mom_w_acc), 0, 0, 1, 1},
50172  {&__pyx_n_s_mom_w_adv, __pyx_k_mom_w_adv, sizeof(__pyx_k_mom_w_adv), 0, 0, 1, 1},
50173  {&__pyx_n_s_mom_w_diff_ten, __pyx_k_mom_w_diff_ten, sizeof(__pyx_k_mom_w_diff_ten), 0, 0, 1, 1},
50174  {&__pyx_n_s_mom_w_ham, __pyx_k_mom_w_ham, sizeof(__pyx_k_mom_w_ham), 0, 0, 1, 1},
50175  {&__pyx_n_s_mom_w_source, __pyx_k_mom_w_source, sizeof(__pyx_k_mom_w_source), 0, 0, 1, 1},
50176  {&__pyx_n_s_mom_wu_diff_ten, __pyx_k_mom_wu_diff_ten, sizeof(__pyx_k_mom_wu_diff_ten), 0, 0, 1, 1},
50177  {&__pyx_n_s_mom_wv_diff_ten, __pyx_k_mom_wv_diff_ten, sizeof(__pyx_k_mom_wv_diff_ten), 0, 0, 1, 1},
50178  {&__pyx_n_s_mu, __pyx_k_mu, sizeof(__pyx_k_mu), 0, 0, 1, 1},
50179  {&__pyx_n_s_n, __pyx_k_n, sizeof(__pyx_k_n), 0, 0, 1, 1},
50180  {&__pyx_n_s_nDOF_trial_element, __pyx_k_nDOF_trial_element, sizeof(__pyx_k_nDOF_trial_element), 0, 0, 1, 1},
50181  {&__pyx_n_s_nElements_global, __pyx_k_nElements_global, sizeof(__pyx_k_nElements_global), 0, 0, 1, 1},
50182  {&__pyx_n_s_nPoints, __pyx_k_nPoints, sizeof(__pyx_k_nPoints), 0, 0, 1, 1},
50183  {&__pyx_n_s_nPointsPerSimplex, __pyx_k_nPointsPerSimplex, sizeof(__pyx_k_nPointsPerSimplex), 0, 0, 1, 1},
50184  {&__pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_k_nQuadraturePoints_elementBoundar, sizeof(__pyx_k_nQuadraturePoints_elementBoundar), 0, 0, 1, 1},
50185  {&__pyx_n_s_nSimplex, __pyx_k_nSimplex, sizeof(__pyx_k_nSimplex), 0, 0, 1, 1},
50186  {&__pyx_n_s_nSimplices, __pyx_k_nSimplices, sizeof(__pyx_k_nSimplices), 0, 0, 1, 1},
50187  {&__pyx_n_s_nSpace, __pyx_k_nSpace, sizeof(__pyx_k_nSpace), 0, 0, 1, 1},
50188  {&__pyx_n_s_n_global, __pyx_k_n_global, sizeof(__pyx_k_n_global), 0, 0, 1, 1},
50189  {&__pyx_n_s_n_s, __pyx_k_n_s, sizeof(__pyx_k_n_s), 0, 0, 1, 1},
50190  {&__pyx_n_s_n_vg, __pyx_k_n_vg, sizeof(__pyx_k_n_vg), 0, 0, 1, 1},
50191  {&__pyx_n_s_name, __pyx_k_name, sizeof(__pyx_k_name), 0, 0, 1, 1},
50192  {&__pyx_n_s_ncLevelSetCoefficientsEvaluate, __pyx_k_ncLevelSetCoefficientsEvaluate, sizeof(__pyx_k_ncLevelSetCoefficientsEvaluate), 0, 0, 1, 1},
50193  {&__pyx_n_s_nd, __pyx_k_nd, sizeof(__pyx_k_nd), 0, 0, 1, 1},
50194  {&__pyx_n_s_nk, __pyx_k_nk, sizeof(__pyx_k_nk), 0, 0, 1, 1},
50195  {&__pyx_n_s_nonlinearADR_pqrstDualEvaluate, __pyx_k_nonlinearADR_pqrstDualEvaluate, sizeof(__pyx_k_nonlinearADR_pqrstDualEvaluate), 0, 0, 1, 1},
50196  {&__pyx_n_s_nonlinearADR_pqrstEvaluate, __pyx_k_nonlinearADR_pqrstEvaluate, sizeof(__pyx_k_nonlinearADR_pqrstEvaluate), 0, 0, 1, 1},
50197  {&__pyx_n_s_np, __pyx_k_np, sizeof(__pyx_k_np), 0, 0, 1, 1},
50198  {&__pyx_n_s_ns, __pyx_k_ns, sizeof(__pyx_k_ns), 0, 0, 1, 1},
50199  {&__pyx_n_s_nu, __pyx_k_nu, sizeof(__pyx_k_nu), 0, 0, 1, 1},
50200  {&__pyx_n_s_nu_0, __pyx_k_nu_0, sizeof(__pyx_k_nu_0), 0, 0, 1, 1},
50201  {&__pyx_n_s_nu_1, __pyx_k_nu_1, sizeof(__pyx_k_nu_1), 0, 0, 1, 1},
50202  {&__pyx_n_s_nu_s, __pyx_k_nu_s, sizeof(__pyx_k_nu_s), 0, 0, 1, 1},
50203  {&__pyx_n_s_nu_t, __pyx_k_nu_t, sizeof(__pyx_k_nu_t), 0, 0, 1, 1},
50204  {&__pyx_n_s_numpy, __pyx_k_numpy, sizeof(__pyx_k_numpy), 0, 0, 1, 1},
50205  {&__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},
50206  {&__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},
50207  {&__pyx_n_s_offset, __pyx_k_offset, sizeof(__pyx_k_offset), 0, 0, 1, 1},
50208  {&__pyx_n_s_omega, __pyx_k_omega, sizeof(__pyx_k_omega), 0, 0, 1, 1},
50209  {&__pyx_n_s_omega_s_x, __pyx_k_omega_s_x, sizeof(__pyx_k_omega_s_x), 0, 0, 1, 1},
50210  {&__pyx_n_s_omega_s_y, __pyx_k_omega_s_y, sizeof(__pyx_k_omega_s_y), 0, 0, 1, 1},
50211  {&__pyx_n_s_omega_s_z, __pyx_k_omega_s_z, sizeof(__pyx_k_omega_s_z), 0, 0, 1, 1},
50212  {&__pyx_n_s_omega_types, __pyx_k_omega_types, sizeof(__pyx_k_omega_types), 0, 0, 1, 1},
50213  {&__pyx_n_s_p, __pyx_k_p, sizeof(__pyx_k_p), 0, 0, 1, 1},
50214  {&__pyx_n_s_p1, __pyx_k_p1, sizeof(__pyx_k_p1), 0, 0, 1, 1},
50215  {&__pyx_n_s_p2, __pyx_k_p2, sizeof(__pyx_k_p2), 0, 0, 1, 1},
50216  {&__pyx_n_s_p_pow, __pyx_k_p_pow, sizeof(__pyx_k_p_pow), 0, 0, 1, 1},
50217  {&__pyx_n_s_pc_eps, __pyx_k_pc_eps, sizeof(__pyx_k_pc_eps), 0, 0, 1, 1},
50218  {&__pyx_n_s_pd, __pyx_k_pd, sizeof(__pyx_k_pd), 0, 0, 1, 1},
50219  {&__pyx_n_s_phi, __pyx_k_phi, sizeof(__pyx_k_phi), 0, 0, 1, 1},
50220  {&__pyx_n_s_phi_e, __pyx_k_phi_e, sizeof(__pyx_k_phi_e), 0, 0, 1, 1},
50221  {&__pyx_n_s_phi_h, __pyx_k_phi_h, sizeof(__pyx_k_phi_h), 0, 0, 1, 1},
50222  {&__pyx_n_s_phi_k, __pyx_k_phi_k, sizeof(__pyx_k_phi_k), 0, 0, 1, 1},
50223  {&__pyx_n_s_phi_ls, __pyx_k_phi_ls, sizeof(__pyx_k_phi_ls), 0, 0, 1, 1},
50224  {&__pyx_n_s_phi_pot, __pyx_k_phi_pot, sizeof(__pyx_k_phi_pot), 0, 0, 1, 1},
50225  {&__pyx_n_s_phi_s, __pyx_k_phi_s, sizeof(__pyx_k_phi_s), 0, 0, 1, 1},
50226  {&__pyx_n_s_porosity, __pyx_k_porosity, sizeof(__pyx_k_porosity), 0, 0, 1, 1},
50227  {&__pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_k_proteus_ctransportCoefficients_p, sizeof(__pyx_k_proteus_ctransportCoefficients_p), 0, 0, 1, 0},
50228  {&__pyx_n_s_psiD, __pyx_k_psiD, sizeof(__pyx_k_psiD), 0, 0, 1, 1},
50229  {&__pyx_n_s_q1, __pyx_k_q1, sizeof(__pyx_k_q1), 0, 0, 1, 1},
50230  {&__pyx_n_s_q2, __pyx_k_q2, sizeof(__pyx_k_q2), 0, 0, 1, 1},
50231  {&__pyx_n_s_q_pow, __pyx_k_q_pow, sizeof(__pyx_k_q_pow), 0, 0, 1, 1},
50232  {&__pyx_n_s_quadraturePointToElementBoundary, __pyx_k_quadraturePointToElementBoundary, sizeof(__pyx_k_quadraturePointToElementBoundary), 0, 0, 1, 1},
50233  {&__pyx_n_s_r, __pyx_k_r, sizeof(__pyx_k_r), 0, 0, 1, 1},
50234  {&__pyx_n_s_r1, __pyx_k_r1, sizeof(__pyx_k_r1), 0, 0, 1, 1},
50235  {&__pyx_n_s_r2, __pyx_k_r2, sizeof(__pyx_k_r2), 0, 0, 1, 1},
50236  {&__pyx_n_s_r_c, __pyx_k_r_c, sizeof(__pyx_k_r_c), 0, 0, 1, 1},
50237  {&__pyx_n_s_r_e, __pyx_k_r_e, sizeof(__pyx_k_r_e), 0, 0, 1, 1},
50238  {&__pyx_n_s_r_h, __pyx_k_r_h, sizeof(__pyx_k_r_h), 0, 0, 1, 1},
50239  {&__pyx_n_s_r_k, __pyx_k_r_k, sizeof(__pyx_k_r_k), 0, 0, 1, 1},
50240  {&__pyx_n_s_r_m, __pyx_k_r_m, sizeof(__pyx_k_r_m), 0, 0, 1, 1},
50241  {&__pyx_n_s_r_pow, __pyx_k_r_pow, sizeof(__pyx_k_r_pow), 0, 0, 1, 1},
50242  {&__pyx_n_s_r_x, __pyx_k_r_x, sizeof(__pyx_k_r_x), 0, 0, 1, 1},
50243  {&__pyx_n_s_radii, __pyx_k_radii, sizeof(__pyx_k_radii), 0, 0, 1, 1},
50244  {&__pyx_n_s_rank, __pyx_k_rank, sizeof(__pyx_k_rank), 0, 0, 1, 1},
50245  {&__pyx_n_s_redistanceLevelSetCoefficientsEv, __pyx_k_redistanceLevelSetCoefficientsEv, sizeof(__pyx_k_redistanceLevelSetCoefficientsEv), 0, 0, 1, 1},
50246  {&__pyx_n_s_redistanceLevelSetCoefficientsWi, __pyx_k_redistanceLevelSetCoefficientsWi, sizeof(__pyx_k_redistanceLevelSetCoefficientsWi), 0, 0, 1, 1},
50247  {&__pyx_n_s_redistanceLevelSetSandFCoefficie, __pyx_k_redistanceLevelSetSandFCoefficie, sizeof(__pyx_k_redistanceLevelSetSandFCoefficie), 0, 0, 1, 1},
50248  {&__pyx_n_s_rh, __pyx_k_rh, sizeof(__pyx_k_rh), 0, 0, 1, 1},
50249  {&__pyx_n_s_rho, __pyx_k_rho, sizeof(__pyx_k_rho), 0, 0, 1, 1},
50250  {&__pyx_n_s_rhoM, __pyx_k_rhoM, sizeof(__pyx_k_rhoM), 0, 0, 1, 1},
50251  {&__pyx_n_s_rhoP, __pyx_k_rhoP, sizeof(__pyx_k_rhoP), 0, 0, 1, 1},
50252  {&__pyx_n_s_rho_0, __pyx_k_rho_0, sizeof(__pyx_k_rho_0), 0, 0, 1, 1},
50253  {&__pyx_n_s_rho_1, __pyx_k_rho_1, sizeof(__pyx_k_rho_1), 0, 0, 1, 1},
50254  {&__pyx_n_s_rho_n, __pyx_k_rho_n, sizeof(__pyx_k_rho_n), 0, 0, 1, 1},
50255  {&__pyx_n_s_rho_s, __pyx_k_rho_s, sizeof(__pyx_k_rho_s), 0, 0, 1, 1},
50256  {&__pyx_n_s_rho_s_types, __pyx_k_rho_s_types, sizeof(__pyx_k_rho_s_types), 0, 0, 1, 1},
50257  {&__pyx_n_s_rho_w, __pyx_k_rho_w, sizeof(__pyx_k_rho_w), 0, 0, 1, 1},
50258  {&__pyx_n_s_rhs, __pyx_k_rhs, sizeof(__pyx_k_rhs), 0, 0, 1, 1},
50259  {&__pyx_n_s_rotatingPulseVelEvaluate, __pyx_k_rotatingPulseVelEvaluate, sizeof(__pyx_k_rotatingPulseVelEvaluate), 0, 0, 1, 1},
50260  {&__pyx_n_s_rowptr, __pyx_k_rowptr, sizeof(__pyx_k_rowptr), 0, 0, 1, 1},
50261  {&__pyx_n_s_s1, __pyx_k_s1, sizeof(__pyx_k_s1), 0, 0, 1, 1},
50262  {&__pyx_n_s_s2, __pyx_k_s2, sizeof(__pyx_k_s2), 0, 0, 1, 1},
50263  {&__pyx_n_s_s_pow, __pyx_k_s_pow, sizeof(__pyx_k_s_pow), 0, 0, 1, 1},
50264  {&__pyx_n_s_scriptedSphereMotionSignedDistan, __pyx_k_scriptedSphereMotionSignedDistan, sizeof(__pyx_k_scriptedSphereMotionSignedDistan), 0, 0, 1, 1},
50265  {&__pyx_n_s_seepageBrezis, __pyx_k_seepageBrezis, sizeof(__pyx_k_seepageBrezis), 0, 0, 1, 1},
50266  {&__pyx_n_s_self_a, __pyx_k_self_a, sizeof(__pyx_k_self_a), 0, 0, 1, 1},
50267  {&__pyx_n_s_self_v, __pyx_k_self_v, sizeof(__pyx_k_self_v), 0, 0, 1, 1},
50268  {&__pyx_n_s_setSimpleWeakDirichletConditions, __pyx_k_setSimpleWeakDirichletConditions, sizeof(__pyx_k_setSimpleWeakDirichletConditions), 0, 0, 1, 1},
50269  {&__pyx_n_s_setWeakDirichletConditionsForLev, __pyx_k_setWeakDirichletConditionsForLev, sizeof(__pyx_k_setWeakDirichletConditionsForLev), 0, 0, 1, 1},
50270  {&__pyx_n_s_shallowWater_1D_Evaluate, __pyx_k_shallowWater_1D_Evaluate, sizeof(__pyx_k_shallowWater_1D_Evaluate), 0, 0, 1, 1},
50271  {&__pyx_n_s_shallowWater_2D_Evaluate, __pyx_k_shallowWater_2D_Evaluate, sizeof(__pyx_k_shallowWater_2D_Evaluate), 0, 0, 1, 1},
50272  {&__pyx_n_s_sigma, __pyx_k_sigma, sizeof(__pyx_k_sigma), 0, 0, 1, 1},
50273  {&__pyx_n_s_sigma_e, __pyx_k_sigma_e, sizeof(__pyx_k_sigma_e), 0, 0, 1, 1},
50274  {&__pyx_n_s_sigma_k, __pyx_k_sigma_k, sizeof(__pyx_k_sigma_k), 0, 0, 1, 1},
50275  {&__pyx_n_s_size, __pyx_k_size, sizeof(__pyx_k_size), 0, 0, 1, 1},
50276  {&__pyx_n_s_smagorinskyConstant, __pyx_k_smagorinskyConstant, sizeof(__pyx_k_smagorinskyConstant), 0, 0, 1, 1},
50277  {&__pyx_n_s_smagorinskyConstant_0, __pyx_k_smagorinskyConstant_0, sizeof(__pyx_k_smagorinskyConstant_0), 0, 0, 1, 1},
50278  {&__pyx_n_s_smagorinskyConstant_1, __pyx_k_smagorinskyConstant_1, sizeof(__pyx_k_smagorinskyConstant_1), 0, 0, 1, 1},
50279  {&__pyx_n_s_smoothedDirac, __pyx_k_smoothedDirac, sizeof(__pyx_k_smoothedDirac), 0, 0, 1, 1},
50280  {&__pyx_n_s_smoothedHeaviside, __pyx_k_smoothedHeaviside, sizeof(__pyx_k_smoothedHeaviside), 0, 0, 1, 1},
50281  {&__pyx_n_s_smoothedHeaviside_integral, __pyx_k_smoothedHeaviside_integral, sizeof(__pyx_k_smoothedHeaviside_integral), 0, 0, 1, 1},
50282  {&__pyx_n_s_source, __pyx_k_source, sizeof(__pyx_k_source), 0, 0, 1, 1},
50283  {&__pyx_n_s_specificHeat_n, __pyx_k_specificHeat_n, sizeof(__pyx_k_specificHeat_n), 0, 0, 1, 1},
50284  {&__pyx_n_s_specificHeat_s_types, __pyx_k_specificHeat_s_types, sizeof(__pyx_k_specificHeat_s_types), 0, 0, 1, 1},
50285  {&__pyx_n_s_specificHeat_w, __pyx_k_specificHeat_w, sizeof(__pyx_k_specificHeat_w), 0, 0, 1, 1},
50286  {&__pyx_n_s_t, __pyx_k_t, sizeof(__pyx_k_t), 0, 0, 1, 1},
50287  {&__pyx_n_s_t1, __pyx_k_t1, sizeof(__pyx_k_t1), 0, 0, 1, 1},
50288  {&__pyx_n_s_t2, __pyx_k_t2, sizeof(__pyx_k_t2), 0, 0, 1, 1},
50289  {&__pyx_n_s_t_pow, __pyx_k_t_pow, sizeof(__pyx_k_t_pow), 0, 0, 1, 1},
50290  {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1},
50291  {&__pyx_n_s_theta, __pyx_k_theta, sizeof(__pyx_k_theta), 0, 0, 1, 1},
50292  {&__pyx_n_s_thetaR, __pyx_k_thetaR, sizeof(__pyx_k_thetaR), 0, 0, 1, 1},
50293  {&__pyx_n_s_thetaS, __pyx_k_thetaS, sizeof(__pyx_k_thetaS), 0, 0, 1, 1},
50294  {&__pyx_n_s_thetaSR, __pyx_k_thetaSR, sizeof(__pyx_k_thetaSR), 0, 0, 1, 1},
50295  {&__pyx_n_s_thetaS_types, __pyx_k_thetaS_types, sizeof(__pyx_k_thetaS_types), 0, 0, 1, 1},
50296  {&__pyx_n_s_twophaseLevelSetCoefficientsEval, __pyx_k_twophaseLevelSetCoefficientsEval, sizeof(__pyx_k_twophaseLevelSetCoefficientsEval), 0, 0, 1, 1},
50297  {&__pyx_n_s_twophaseLevelSetCoefficientsEval_2, __pyx_k_twophaseLevelSetCoefficientsEval_2, sizeof(__pyx_k_twophaseLevelSetCoefficientsEval_2), 0, 0, 1, 1},
50298  {&__pyx_n_s_twophaseLevelSetCoefficientsUpda, __pyx_k_twophaseLevelSetCoefficientsUpda, sizeof(__pyx_k_twophaseLevelSetCoefficientsUpda), 0, 0, 1, 1},
50299  {&__pyx_n_s_twophasePotentialFlowEvaluate, __pyx_k_twophasePotentialFlowEvaluate, sizeof(__pyx_k_twophasePotentialFlowEvaluate), 0, 0, 1, 1},
50300  {&__pyx_n_s_twophasePotentialFlowUpdateFreeS, __pyx_k_twophasePotentialFlowUpdateFreeS, sizeof(__pyx_k_twophasePotentialFlowUpdateFreeS), 0, 0, 1, 1},
50301  {&__pyx_n_s_twophaseSignedDistanceCoefficien, __pyx_k_twophaseSignedDistanceCoefficien, sizeof(__pyx_k_twophaseSignedDistanceCoefficien), 0, 0, 1, 1},
50302  {&__pyx_n_s_twophaseSignedDistanceUpdateSign, __pyx_k_twophaseSignedDistanceUpdateSign, sizeof(__pyx_k_twophaseSignedDistanceUpdateSign), 0, 0, 1, 1},
50303  {&__pyx_n_s_u, __pyx_k_u, sizeof(__pyx_k_u), 0, 0, 1, 1},
50304  {&__pyx_n_s_u_dof, __pyx_k_u_dof, sizeof(__pyx_k_u_dof), 0, 0, 1, 1},
50305  {&__pyx_n_s_u_force, __pyx_k_u_force, sizeof(__pyx_k_u_force), 0, 0, 1, 1},
50306  {&__pyx_n_s_u_l2g, __pyx_k_u_l2g, sizeof(__pyx_k_u_l2g), 0, 0, 1, 1},
50307  {&__pyx_n_s_u_levelSet, __pyx_k_u_levelSet, sizeof(__pyx_k_u_levelSet), 0, 0, 1, 1},
50308  {&__pyx_n_s_u_ls, __pyx_k_u_ls, sizeof(__pyx_k_u_ls), 0, 0, 1, 1},
50309  {&__pyx_n_s_unitCubeRotationEvaluate, __pyx_k_unitCubeRotationEvaluate, sizeof(__pyx_k_unitCubeRotationEvaluate), 0, 0, 1, 1},
50310  {&__pyx_n_s_unitSquareRotationEvaluate, __pyx_k_unitSquareRotationEvaluate, sizeof(__pyx_k_unitSquareRotationEvaluate), 0, 0, 1, 1},
50311  {&__pyx_n_s_unitSquareRotationLevelSetEvalua, __pyx_k_unitSquareRotationLevelSetEvalua, sizeof(__pyx_k_unitSquareRotationLevelSetEvalua), 0, 0, 1, 1},
50312  {&__pyx_n_s_unitSquareVortexEvaluate, __pyx_k_unitSquareVortexEvaluate, sizeof(__pyx_k_unitSquareVortexEvaluate), 0, 0, 1, 1},
50313  {&__pyx_n_s_unitSquareVortexLevelSetEvaluate, __pyx_k_unitSquareVortexLevelSetEvaluate, sizeof(__pyx_k_unitSquareVortexLevelSetEvaluate), 0, 0, 1, 1},
50314  {&__pyx_n_s_upwindFlag, __pyx_k_upwindFlag, sizeof(__pyx_k_upwindFlag), 0, 0, 1, 1},
50315  {&__pyx_n_s_uu_diff_ten, __pyx_k_uu_diff_ten, sizeof(__pyx_k_uu_diff_ten), 0, 0, 1, 1},
50316  {&__pyx_n_s_uv_diff_ten, __pyx_k_uv_diff_ten, sizeof(__pyx_k_uv_diff_ten), 0, 0, 1, 1},
50317  {&__pyx_n_s_uw_diff_ten, __pyx_k_uw_diff_ten, sizeof(__pyx_k_uw_diff_ten), 0, 0, 1, 1},
50318  {&__pyx_n_s_v, __pyx_k_v, sizeof(__pyx_k_v), 0, 0, 1, 1},
50319  {&__pyx_n_s_vIn, __pyx_k_vIn, sizeof(__pyx_k_vIn), 0, 0, 1, 1},
50320  {&__pyx_n_s_vOut, __pyx_k_vOut, sizeof(__pyx_k_vOut), 0, 0, 1, 1},
50321  {&__pyx_n_s_v_force, __pyx_k_v_force, sizeof(__pyx_k_v_force), 0, 0, 1, 1},
50322  {&__pyx_n_s_v_scale, __pyx_k_v_scale, sizeof(__pyx_k_v_scale), 0, 0, 1, 1},
50323  {&__pyx_n_s_variablySaturatedGroundwaterEner, __pyx_k_variablySaturatedGroundwaterEner, sizeof(__pyx_k_variablySaturatedGroundwaterEner), 0, 0, 1, 1},
50324  {&__pyx_n_s_variablySaturatedGroundwaterTran, __pyx_k_variablySaturatedGroundwaterTran, sizeof(__pyx_k_variablySaturatedGroundwaterTran), 0, 0, 1, 1},
50325  {&__pyx_n_s_velocity, __pyx_k_velocity, sizeof(__pyx_k_velocity), 0, 0, 1, 1},
50326  {&__pyx_n_s_vof, __pyx_k_vof, sizeof(__pyx_k_vof), 0, 0, 1, 1},
50327  {&__pyx_n_s_vol_frac, __pyx_k_vol_frac, sizeof(__pyx_k_vol_frac), 0, 0, 1, 1},
50328  {&__pyx_n_s_volumePenaltyCoef, __pyx_k_volumePenaltyCoef, sizeof(__pyx_k_volumePenaltyCoef), 0, 0, 1, 1},
50329  {&__pyx_n_s_vu_diff_ten, __pyx_k_vu_diff_ten, sizeof(__pyx_k_vu_diff_ten), 0, 0, 1, 1},
50330  {&__pyx_n_s_vv_diff_ten, __pyx_k_vv_diff_ten, sizeof(__pyx_k_vv_diff_ten), 0, 0, 1, 1},
50331  {&__pyx_n_s_vw_diff_ten, __pyx_k_vw_diff_ten, sizeof(__pyx_k_vw_diff_ten), 0, 0, 1, 1},
50332  {&__pyx_n_s_w, __pyx_k_w, sizeof(__pyx_k_w), 0, 0, 1, 1},
50333  {&__pyx_n_s_w_force, __pyx_k_w_force, sizeof(__pyx_k_w_force), 0, 0, 1, 1},
50334  {&__pyx_n_s_waterDepth, __pyx_k_waterDepth, sizeof(__pyx_k_waterDepth), 0, 0, 1, 1},
50335  {&__pyx_n_s_waveCelerity, __pyx_k_waveCelerity, sizeof(__pyx_k_waveCelerity), 0, 0, 1, 1},
50336  {&__pyx_n_s_waveFlag, __pyx_k_waveFlag, sizeof(__pyx_k_waveFlag), 0, 0, 1, 1},
50337  {&__pyx_n_s_waveFrequency, __pyx_k_waveFrequency, sizeof(__pyx_k_waveFrequency), 0, 0, 1, 1},
50338  {&__pyx_n_s_waveHeight, __pyx_k_waveHeight, sizeof(__pyx_k_waveHeight), 0, 0, 1, 1},
50339  {&__pyx_n_s_waveNumber, __pyx_k_waveNumber, sizeof(__pyx_k_waveNumber), 0, 0, 1, 1},
50340  {&__pyx_n_s_weakDirichletConditionFlags, __pyx_k_weakDirichletConditionFlags, sizeof(__pyx_k_weakDirichletConditionFlags), 0, 0, 1, 1},
50341  {&__pyx_n_s_wu_diff_ten, __pyx_k_wu_diff_ten, sizeof(__pyx_k_wu_diff_ten), 0, 0, 1, 1},
50342  {&__pyx_n_s_wv_diff_ten, __pyx_k_wv_diff_ten, sizeof(__pyx_k_wv_diff_ten), 0, 0, 1, 1},
50343  {&__pyx_n_s_ww_diff_ten, __pyx_k_ww_diff_ten, sizeof(__pyx_k_ww_diff_ten), 0, 0, 1, 1},
50344  {&__pyx_n_s_x, __pyx_k_x, sizeof(__pyx_k_x), 0, 0, 1, 1},
50345  {0, 0, 0, 0, 0, 0, 0}
50346 };
50347 static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) {
50348  __pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError); if (!__pyx_builtin_ImportError) __PYX_ERR(1, 945, __pyx_L1_error)
50349  return 0;
50350  __pyx_L1_error:;
50351  return -1;
50352 }
50353 
50354 static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
50355  __Pyx_RefNannyDeclarations
50356  __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);
50357 
50358  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":945
50359  * __pyx_import_array()
50360  * except Exception:
50361  * raise ImportError("numpy.core.multiarray failed to import") # <<<<<<<<<<<<<<
50362  *
50363  * cdef inline int import_umath() except -1:
50364  */
50365  __pyx_tuple_ = PyTuple_Pack(1, __pyx_kp_s_numpy_core_multiarray_failed_to); if (unlikely(!__pyx_tuple_)) __PYX_ERR(1, 945, __pyx_L1_error)
50366  __Pyx_GOTREF(__pyx_tuple_);
50367  __Pyx_GIVEREF(__pyx_tuple_);
50368 
50369  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":951
50370  * _import_umath()
50371  * except Exception:
50372  * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<<
50373  *
50374  * cdef inline int import_ufunc() except -1:
50375  */
50376  __pyx_tuple__2 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_umath_failed_to_impor); if (unlikely(!__pyx_tuple__2)) __PYX_ERR(1, 951, __pyx_L1_error)
50377  __Pyx_GOTREF(__pyx_tuple__2);
50378  __Pyx_GIVEREF(__pyx_tuple__2);
50379 
50380  /* "ctransportCoefficients.pyx":2816
50381  * double csmoothedDirac "smoothedDirac"(double eps, double phi)
50382  * ##======================
50383  * def linearADR_ConstantCoefficientsEvaluate(const double M, # <<<<<<<<<<<<<<
50384  * np.ndarray A,
50385  * np.ndarray B,
50386  */
50387  __pyx_tuple__3 = PyTuple_Pack(14, __pyx_n_s_M, __pyx_n_s_A, __pyx_n_s_B, __pyx_n_s_C, __pyx_n_s_t, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_r, __pyx_n_s_dr); if (unlikely(!__pyx_tuple__3)) __PYX_ERR(0, 2816, __pyx_L1_error)
50388  __Pyx_GOTREF(__pyx_tuple__3);
50389  __Pyx_GIVEREF(__pyx_tuple__3);
50390  __pyx_codeobj__4 = (PyObject*)__Pyx_PyCode_New(14, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__3, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_linearADR_ConstantCoefficientsEv, 2816, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__4)) __PYX_ERR(0, 2816, __pyx_L1_error)
50391 
50392  /* "ctransportCoefficients.pyx":2846
50393  * <double*> r.data,
50394  * <double*> dr.data)
50395  * def groundwaterTransportCoefficientsEvaluate(const double omega, # <<<<<<<<<<<<<<
50396  * const double d,
50397  * const double alpha_L,
50398  */
50399  __pyx_tuple__5 = PyTuple_Pack(11, __pyx_n_s_omega, __pyx_n_s_d, __pyx_n_s_alpha_L, __pyx_n_s_alpha_T, __pyx_n_s_v, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a); if (unlikely(!__pyx_tuple__5)) __PYX_ERR(0, 2846, __pyx_L1_error)
50400  __Pyx_GOTREF(__pyx_tuple__5);
50401  __Pyx_GIVEREF(__pyx_tuple__5);
50402  __pyx_codeobj__6 = (PyObject*)__Pyx_PyCode_New(11, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__5, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_groundwaterTransportCoefficients, 2846, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__6)) __PYX_ERR(0, 2846, __pyx_L1_error)
50403 
50404  /* "ctransportCoefficients.pyx":2870
50405  * <double*> df.data,
50406  * <double*> a.data)
50407  * def groundwaterBiodegradation01EvaluateFC(const double omega, # <<<<<<<<<<<<<<
50408  * const double d_c,
50409  * const double d_e,
50410  */
50411  __pyx_tuple__7 = PyTuple_Pack(39, __pyx_n_s_omega, __pyx_n_s_d_c, __pyx_n_s_d_e, __pyx_n_s_alpha_L, __pyx_n_s_alpha_T, __pyx_n_s_Kox_max, __pyx_n_s_Kox_C, __pyx_n_s_Kox_E, __pyx_n_s_Kox_X, __pyx_n_s_Yield, __pyx_n_s_k_d, __pyx_n_s_v, __pyx_n_s_c_c, __pyx_n_s_c_e, __pyx_n_s_c_x, __pyx_n_s_m_c, __pyx_n_s_dm_c, __pyx_n_s_m_e, __pyx_n_s_dm_e, __pyx_n_s_m_x, __pyx_n_s_dm_x, __pyx_n_s_f_c, __pyx_n_s_df_c, __pyx_n_s_f_e, __pyx_n_s_df_e, __pyx_n_s_a_c, __pyx_n_s_a_e, __pyx_n_s_r_c, __pyx_n_s_dr_c_dc, __pyx_n_s_dr_c_de, __pyx_n_s_dr_c_dx, __pyx_n_s_r_e, __pyx_n_s_dr_e_dc, __pyx_n_s_dr_e_de, __pyx_n_s_dr_e_dx, __pyx_n_s_r_x, __pyx_n_s_dr_x_dc, __pyx_n_s_dr_x_de, __pyx_n_s_dr_x_dx); if (unlikely(!__pyx_tuple__7)) __PYX_ERR(0, 2870, __pyx_L1_error)
50412  __Pyx_GOTREF(__pyx_tuple__7);
50413  __Pyx_GIVEREF(__pyx_tuple__7);
50414  __pyx_codeobj__8 = (PyObject*)__Pyx_PyCode_New(39, 0, 39, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__7, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_groundwaterBiodegradation01Evalu, 2870, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__8)) __PYX_ERR(0, 2870, __pyx_L1_error)
50415 
50416  /* "ctransportCoefficients.pyx":2950
50417  * <double*> dr_x_de.data,
50418  * <double*> dr_x_dx.data)
50419  * def groundwaterBryantDawsonIonExEvaluateFC(const double omega, # <<<<<<<<<<<<<<
50420  * const double d_m,
50421  * const double d_h,
50422  */
50423  __pyx_tuple__9 = PyTuple_Pack(32, __pyx_n_s_omega, __pyx_n_s_d_m, __pyx_n_s_d_h, __pyx_n_s_alpha_L, __pyx_n_s_alpha_T, __pyx_n_s_K_m, __pyx_n_s_K_h, __pyx_n_s_K_w, __pyx_n_s_Z_tot, __pyx_n_s_v, __pyx_n_s_c_m, __pyx_n_s_c_h, __pyx_n_s_m_m, __pyx_n_s_dm_m_m, __pyx_n_s_dm_m_h, __pyx_n_s_m_h, __pyx_n_s_dm_h_m, __pyx_n_s_dm_h_h, __pyx_n_s_f_m, __pyx_n_s_df_m, __pyx_n_s_f_h, __pyx_n_s_df_h, __pyx_n_s_a_m, __pyx_n_s_a_h, __pyx_n_s_phi_h, __pyx_n_s_dphi_h, __pyx_n_s_r_m, __pyx_n_s_dr_m_dm, __pyx_n_s_dr_m_dh, __pyx_n_s_r_h, __pyx_n_s_dr_h_dm, __pyx_n_s_dr_h_dh); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(0, 2950, __pyx_L1_error)
50424  __Pyx_GOTREF(__pyx_tuple__9);
50425  __Pyx_GIVEREF(__pyx_tuple__9);
50426  __pyx_codeobj__10 = (PyObject*)__Pyx_PyCode_New(32, 0, 32, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__9, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_groundwaterBryantDawsonIonExEval, 2950, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__10)) __PYX_ERR(0, 2950, __pyx_L1_error)
50427 
50428  /* "ctransportCoefficients.pyx":3016
50429  * <double*> dr_h_dm.data,
50430  * <double*> dr_h_dh.data)
50431  * def groundwaterTransportCoefficientsEvaluate_hetMat(const double d, # <<<<<<<<<<<<<<
50432  * np.ndarray materialTypes,
50433  * np.ndarray omega_types,
50434  */
50435  __pyx_tuple__11 = PyTuple_Pack(12, __pyx_n_s_d, __pyx_n_s_materialTypes, __pyx_n_s_omega_types, __pyx_n_s_alpha_L_types, __pyx_n_s_alpha_T_types, __pyx_n_s_v, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a); if (unlikely(!__pyx_tuple__11)) __PYX_ERR(0, 3016, __pyx_L1_error)
50436  __Pyx_GOTREF(__pyx_tuple__11);
50437  __Pyx_GIVEREF(__pyx_tuple__11);
50438  __pyx_codeobj__12 = (PyObject*)__Pyx_PyCode_New(12, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__11, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_groundwaterTransportCoefficients_2, 3016, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__12)) __PYX_ERR(0, 3016, __pyx_L1_error)
50439 
50440  /* "ctransportCoefficients.pyx":3045
50441  * <double*> a.data)
50442  *
50443  * def variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat(const double d, # <<<<<<<<<<<<<<
50444  * np.ndarray materialTypes,
50445  * np.ndarray theta,
50446  */
50447  __pyx_tuple__13 = PyTuple_Pack(14, __pyx_n_s_d, __pyx_n_s_materialTypes, __pyx_n_s_theta, __pyx_n_s_alpha_L_types, __pyx_n_s_alpha_T_types, __pyx_n_s_v, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_nSimplex, __pyx_n_s_nPointsPerSimplex); if (unlikely(!__pyx_tuple__13)) __PYX_ERR(0, 3045, __pyx_L1_error)
50448  __Pyx_GOTREF(__pyx_tuple__13);
50449  __Pyx_GIVEREF(__pyx_tuple__13);
50450  __pyx_codeobj__14 = (PyObject*)__Pyx_PyCode_New(12, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__13, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_variablySaturatedGroundwaterTran, 3045, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__14)) __PYX_ERR(0, 3045, __pyx_L1_error)
50451 
50452  /* "ctransportCoefficients.pyx":3081
50453  * else:
50454  * assert 0
50455  * def variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat(const double rho_w, # <<<<<<<<<<<<<<
50456  * const double rho_n,
50457  * const double specificHeat_w,
50458  */
50459  __pyx_tuple__15 = PyTuple_Pack(23, __pyx_n_s_rho_w, __pyx_n_s_rho_n, __pyx_n_s_specificHeat_w, __pyx_n_s_specificHeat_n, __pyx_n_s_materialTypes, __pyx_n_s_theta, __pyx_n_s_thetaS_types, __pyx_n_s_alpha_L_types, __pyx_n_s_alpha_T_types, __pyx_n_s_rho_s_types, __pyx_n_s_specificHeat_s_types, __pyx_n_s_Lambda_sat_types, __pyx_n_s_Lambda_dry_types, __pyx_n_s_Lambda_aniso_types, __pyx_n_s_v, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_nSimplex, __pyx_n_s_nPointsPerSimplex); if (unlikely(!__pyx_tuple__15)) __PYX_ERR(0, 3081, __pyx_L1_error)
50460  __Pyx_GOTREF(__pyx_tuple__15);
50461  __Pyx_GIVEREF(__pyx_tuple__15);
50462  __pyx_codeobj__16 = (PyObject*)__Pyx_PyCode_New(21, 0, 23, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__15, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_variablySaturatedGroundwaterEner, 3081, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__16)) __PYX_ERR(0, 3081, __pyx_L1_error)
50463 
50464  /* "ctransportCoefficients.pyx":3135
50465  * else:
50466  * assert 0
50467  * def nonlinearADR_pqrstEvaluate(const double M, # <<<<<<<<<<<<<<
50468  * np.ndarray A,
50469  * np.ndarray B,
50470  */
50471  __pyx_tuple__17 = PyTuple_Pack(22, __pyx_n_s_M, __pyx_n_s_A, __pyx_n_s_B, __pyx_n_s_C, __pyx_n_s_p_pow, __pyx_n_s_q_pow, __pyx_n_s_r_pow, __pyx_n_s_s_pow, __pyx_n_s_t_pow, __pyx_n_s_t, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_phi, __pyx_n_s_dphi, __pyx_n_s_r, __pyx_n_s_dr); if (unlikely(!__pyx_tuple__17)) __PYX_ERR(0, 3135, __pyx_L1_error)
50472  __Pyx_GOTREF(__pyx_tuple__17);
50473  __Pyx_GIVEREF(__pyx_tuple__17);
50474  __pyx_codeobj__18 = (PyObject*)__Pyx_PyCode_New(22, 0, 22, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__17, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_nonlinearADR_pqrstEvaluate, 3135, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__18)) __PYX_ERR(0, 3135, __pyx_L1_error)
50475 
50476  /* "ctransportCoefficients.pyx":3181
50477  * <double*> r.data,
50478  * <double*> dr.data)
50479  * def nonlinearADR_pqrstDualEvaluate(const int nPoints, # <<<<<<<<<<<<<<
50480  * const int nSpace,
50481  * const double M,
50482  */
50483  __pyx_tuple__19 = PyTuple_Pack(29, __pyx_n_s_nPoints, __pyx_n_s_nSpace, __pyx_n_s_M, __pyx_n_s_A, __pyx_n_s_B, __pyx_n_s_C, __pyx_n_s_p1, __pyx_n_s_q1, __pyx_n_s_r1, __pyx_n_s_s1, __pyx_n_s_t1, __pyx_n_s_p2, __pyx_n_s_q2, __pyx_n_s_r2, __pyx_n_s_s2, __pyx_n_s_t2, __pyx_n_s_t, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_phi, __pyx_n_s_dphi, __pyx_n_s_r, __pyx_n_s_dr); if (unlikely(!__pyx_tuple__19)) __PYX_ERR(0, 3181, __pyx_L1_error)
50484  __Pyx_GOTREF(__pyx_tuple__19);
50485  __Pyx_GIVEREF(__pyx_tuple__19);
50486  __pyx_codeobj__20 = (PyObject*)__Pyx_PyCode_New(29, 0, 29, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__19, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_nonlinearADR_pqrstDualEvaluate, 3181, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__20)) __PYX_ERR(0, 3181, __pyx_L1_error)
50487 
50488  /* "ctransportCoefficients.pyx":3239
50489  * <double*> r.data,
50490  * <double*> dr.data)
50491  * def unitSquareRotationEvaluate(np.ndarray x, # <<<<<<<<<<<<<<
50492  * np.ndarray u,
50493  * np.ndarray m,
50494  */
50495  __pyx_tuple__21 = PyTuple_Pack(6, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df); if (unlikely(!__pyx_tuple__21)) __PYX_ERR(0, 3239, __pyx_L1_error)
50496  __Pyx_GOTREF(__pyx_tuple__21);
50497  __Pyx_GIVEREF(__pyx_tuple__21);
50498  __pyx_codeobj__22 = (PyObject*)__Pyx_PyCode_New(6, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__21, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_unitSquareRotationEvaluate, 3239, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__22)) __PYX_ERR(0, 3239, __pyx_L1_error)
50499 
50500  /* "ctransportCoefficients.pyx":3253
50501  * <double*> f.data,
50502  * <double*> df.data)
50503  * def unitCubeRotationEvaluate(np.ndarray x, # <<<<<<<<<<<<<<
50504  * np.ndarray u,
50505  * np.ndarray m,
50506  */
50507  __pyx_tuple__23 = PyTuple_Pack(6, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df); if (unlikely(!__pyx_tuple__23)) __PYX_ERR(0, 3253, __pyx_L1_error)
50508  __Pyx_GOTREF(__pyx_tuple__23);
50509  __Pyx_GIVEREF(__pyx_tuple__23);
50510  __pyx_codeobj__24 = (PyObject*)__Pyx_PyCode_New(6, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__23, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_unitCubeRotationEvaluate, 3253, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__24)) __PYX_ERR(0, 3253, __pyx_L1_error)
50511 
50512  /* "ctransportCoefficients.pyx":3267
50513  * <double*> f.data,
50514  * <double*> df.data)
50515  * def rotatingPulseVelEvaluate(const int nPoints, # <<<<<<<<<<<<<<
50516  * const int nSpace,
50517  * const double self_a,
50518  */
50519  __pyx_tuple__25 = PyTuple_Pack(13, __pyx_n_s_nPoints, __pyx_n_s_nSpace, __pyx_n_s_self_a, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_phi, __pyx_n_s_dphi); if (unlikely(!__pyx_tuple__25)) __PYX_ERR(0, 3267, __pyx_L1_error)
50520  __Pyx_GOTREF(__pyx_tuple__25);
50521  __Pyx_GIVEREF(__pyx_tuple__25);
50522  __pyx_codeobj__26 = (PyObject*)__Pyx_PyCode_New(13, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__25, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_rotatingPulseVelEvaluate, 3267, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__26)) __PYX_ERR(0, 3267, __pyx_L1_error)
50523 
50524  /* "ctransportCoefficients.pyx":3293
50525  * <double*> phi.data,
50526  * <double*> dphi.data)
50527  * def disRotatingPulseVelEvaluate(const int nPoints, # <<<<<<<<<<<<<<
50528  * const int nSpace,
50529  * const double self_a,
50530  */
50531  __pyx_tuple__27 = PyTuple_Pack(13, __pyx_n_s_nPoints, __pyx_n_s_nSpace, __pyx_n_s_self_a, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_phi, __pyx_n_s_dphi); if (unlikely(!__pyx_tuple__27)) __PYX_ERR(0, 3293, __pyx_L1_error)
50532  __Pyx_GOTREF(__pyx_tuple__27);
50533  __Pyx_GIVEREF(__pyx_tuple__27);
50534  __pyx_codeobj__28 = (PyObject*)__Pyx_PyCode_New(13, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__27, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_disRotatingPulseVelEvaluate, 3293, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__28)) __PYX_ERR(0, 3293, __pyx_L1_error)
50535 
50536  /* "ctransportCoefficients.pyx":3319
50537  * <double*> phi.data,
50538  * <double*> dphi.data)
50539  * def disVelEvaluate(const int nPoints, # <<<<<<<<<<<<<<
50540  * const int nSpace,
50541  * const double self_a,
50542  */
50543  __pyx_tuple__29 = PyTuple_Pack(13, __pyx_n_s_nPoints, __pyx_n_s_nSpace, __pyx_n_s_self_a, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_phi, __pyx_n_s_dphi); if (unlikely(!__pyx_tuple__29)) __PYX_ERR(0, 3319, __pyx_L1_error)
50544  __Pyx_GOTREF(__pyx_tuple__29);
50545  __Pyx_GIVEREF(__pyx_tuple__29);
50546  __pyx_codeobj__30 = (PyObject*)__Pyx_PyCode_New(13, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__29, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_disVelEvaluate, 3319, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__30)) __PYX_ERR(0, 3319, __pyx_L1_error)
50547 
50548  /* "ctransportCoefficients.pyx":3345
50549  * <double*> phi.data,
50550  * <double*> dphi.data)
50551  * def burgersDiagonalVelEvaluate(const double self_a, # <<<<<<<<<<<<<<
50552  * np.ndarray self_v,
50553  * np.ndarray u,
50554  */
50555  __pyx_tuple__31 = PyTuple_Pack(10, __pyx_n_s_self_a, __pyx_n_s_self_v, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_phi, __pyx_n_s_dphi); if (unlikely(!__pyx_tuple__31)) __PYX_ERR(0, 3345, __pyx_L1_error)
50556  __Pyx_GOTREF(__pyx_tuple__31);
50557  __Pyx_GIVEREF(__pyx_tuple__31);
50558  __pyx_codeobj__32 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__31, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_burgersDiagonalVelEvaluate, 3345, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__32)) __PYX_ERR(0, 3345, __pyx_L1_error)
50559 
50560  /* "ctransportCoefficients.pyx":3367
50561  * <double*> phi.data,
50562  * <double*> dphi.data)
50563  * def burgersDiagonalVelHJEvaluate(const double self_a, # <<<<<<<<<<<<<<
50564  * np.ndarray self_v,
50565  * np.ndarray u,
50566  */
50567  __pyx_tuple__33 = PyTuple_Pack(11, __pyx_n_s_self_a, __pyx_n_s_self_v, __pyx_n_s_u, __pyx_n_s_grad_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_H, __pyx_n_s_dH, __pyx_n_s_a, __pyx_n_s_phi, __pyx_n_s_dphi); if (unlikely(!__pyx_tuple__33)) __PYX_ERR(0, 3367, __pyx_L1_error)
50568  __Pyx_GOTREF(__pyx_tuple__33);
50569  __Pyx_GIVEREF(__pyx_tuple__33);
50570  __pyx_codeobj__34 = (PyObject*)__Pyx_PyCode_New(11, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__33, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_burgersDiagonalVelHJEvaluate, 3367, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__34)) __PYX_ERR(0, 3367, __pyx_L1_error)
50571 
50572  /* "ctransportCoefficients.pyx":3391
50573  * <double*> phi.data,
50574  * <double*> dphi.data)
50575  * def twophasePotentialFlowEvaluate(int nPoints, # <<<<<<<<<<<<<<
50576  * int nSpace,
50577  * np.ndarray M,
50578  */
50579  __pyx_tuple__35 = PyTuple_Pack(20, __pyx_n_s_nPoints, __pyx_n_s_nSpace, __pyx_n_s_M, __pyx_n_s_A, __pyx_n_s_B, __pyx_n_s_Bcon, __pyx_n_s_C, __pyx_n_s_t, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_phi, __pyx_n_s_dphi, __pyx_n_s_r, __pyx_n_s_dr); if (unlikely(!__pyx_tuple__35)) __PYX_ERR(0, 3391, __pyx_L1_error)
50580  __Pyx_GOTREF(__pyx_tuple__35);
50581  __Pyx_GIVEREF(__pyx_tuple__35);
50582  __pyx_codeobj__36 = (PyObject*)__Pyx_PyCode_New(20, 0, 20, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__35, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_twophasePotentialFlowEvaluate, 3391, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__36)) __PYX_ERR(0, 3391, __pyx_L1_error)
50583 
50584  /* "ctransportCoefficients.pyx":3431
50585  * <double*> r.data,
50586  * <double*> dr.data)
50587  * def twophasePotentialFlowUpdateFreeSurface(int nPoints, # <<<<<<<<<<<<<<
50588  * int nSpace,
50589  * double eps,
50590  */
50591  __pyx_tuple__37 = PyTuple_Pack(19, __pyx_n_s_nPoints, __pyx_n_s_nSpace, __pyx_n_s_eps, __pyx_n_s_u_levelSet, __pyx_n_s_M1, __pyx_n_s_M2, __pyx_n_s_M, __pyx_n_s_A1, __pyx_n_s_A2, __pyx_n_s_A, __pyx_n_s_B1, __pyx_n_s_B2, __pyx_n_s_B, __pyx_n_s_Bcon1, __pyx_n_s_Bcon2, __pyx_n_s_Bcon, __pyx_n_s_C1, __pyx_n_s_C2, __pyx_n_s_C); if (unlikely(!__pyx_tuple__37)) __PYX_ERR(0, 3431, __pyx_L1_error)
50592  __Pyx_GOTREF(__pyx_tuple__37);
50593  __Pyx_GIVEREF(__pyx_tuple__37);
50594  __pyx_codeobj__38 = (PyObject*)__Pyx_PyCode_New(19, 0, 19, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__37, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_twophasePotentialFlowUpdateFreeS, 3431, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__38)) __PYX_ERR(0, 3431, __pyx_L1_error)
50595 
50596  /* "ctransportCoefficients.pyx":3469
50597  * C2,
50598  * <double*> C.data)
50599  * def twophaseLevelSetCoefficientsUpdateVelocity(int nPoints, # <<<<<<<<<<<<<<
50600  * int nSpace,
50601  * double v_scale,
50602  */
50603  __pyx_tuple__39 = PyTuple_Pack(5, __pyx_n_s_nPoints, __pyx_n_s_nSpace, __pyx_n_s_v_scale, __pyx_n_s_vIn, __pyx_n_s_vOut); if (unlikely(!__pyx_tuple__39)) __PYX_ERR(0, 3469, __pyx_L1_error)
50604  __Pyx_GOTREF(__pyx_tuple__39);
50605  __Pyx_GIVEREF(__pyx_tuple__39);
50606  __pyx_codeobj__40 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_twophaseLevelSetCoefficientsUpda, 3469, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__40)) __PYX_ERR(0, 3469, __pyx_L1_error)
50607 
50608  /* "ctransportCoefficients.pyx":3479
50609  * <double*> vIn.data,
50610  * <double*> vOut.data)
50611  * def twophaseLevelSetCoefficientsEvaluate(int nPoints, # <<<<<<<<<<<<<<
50612  * int nSpace,
50613  * np.ndarray B,
50614  */
50615  __pyx_tuple__41 = PyTuple_Pack(12, __pyx_n_s_nPoints, __pyx_n_s_nSpace, __pyx_n_s_B, __pyx_n_s_t, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_grad_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_h, __pyx_n_s_dh, __pyx_n_s_rh); if (unlikely(!__pyx_tuple__41)) __PYX_ERR(0, 3479, __pyx_L1_error)
50616  __Pyx_GOTREF(__pyx_tuple__41);
50617  __Pyx_GIVEREF(__pyx_tuple__41);
50618  __pyx_codeobj__42 = (PyObject*)__Pyx_PyCode_New(12, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__41, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_twophaseLevelSetCoefficientsEval, 3479, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__42)) __PYX_ERR(0, 3479, __pyx_L1_error)
50619 
50620  /* "ctransportCoefficients.pyx":3503
50621  * <double*> dh.data,
50622  * <double*> rh.data)
50623  * def twophaseLevelSetCoefficientsEvaluateCI(int nPoints, # <<<<<<<<<<<<<<
50624  * int nSpace,
50625  * np.ndarray B,
50626  */
50627  __pyx_tuple__43 = PyTuple_Pack(16, __pyx_n_s_nPoints, __pyx_n_s_nSpace, __pyx_n_s_B, __pyx_n_s_t, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_phi, __pyx_n_s_dphi, __pyx_n_s_r, __pyx_n_s_dr); if (unlikely(!__pyx_tuple__43)) __PYX_ERR(0, 3503, __pyx_L1_error)
50628  __Pyx_GOTREF(__pyx_tuple__43);
50629  __Pyx_GIVEREF(__pyx_tuple__43);
50630  __pyx_codeobj__44 = (PyObject*)__Pyx_PyCode_New(16, 0, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__43, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_twophaseLevelSetCoefficientsEval_2, 3503, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__44)) __PYX_ERR(0, 3503, __pyx_L1_error)
50631 
50632  /* "ctransportCoefficients.pyx":3535
50633  * <double*> r.data,
50634  * <double*> dr.data)
50635  * def ncLevelSetCoefficientsEvaluate(np.ndarray v, # <<<<<<<<<<<<<<
50636  * np.ndarray u,
50637  * np.ndarray grad_u,
50638  */
50639  __pyx_tuple__45 = PyTuple_Pack(7, __pyx_n_s_v, __pyx_n_s_u, __pyx_n_s_grad_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_H, __pyx_n_s_dH); if (unlikely(!__pyx_tuple__45)) __PYX_ERR(0, 3535, __pyx_L1_error)
50640  __Pyx_GOTREF(__pyx_tuple__45);
50641  __Pyx_GIVEREF(__pyx_tuple__45);
50642  __pyx_codeobj__46 = (PyObject*)__Pyx_PyCode_New(7, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__45, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_ncLevelSetCoefficientsEvaluate, 3535, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__46)) __PYX_ERR(0, 3535, __pyx_L1_error)
50643 
50644  /* "ctransportCoefficients.pyx":3551
50645  * <double*> H.data,
50646  * <double*> dH.data)
50647  * def cLevelSetCoefficientsEvaluate(np.ndarray v, # <<<<<<<<<<<<<<
50648  * np.ndarray u,
50649  * np.ndarray m,
50650  */
50651  __pyx_tuple__47 = PyTuple_Pack(6, __pyx_n_s_v, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df); if (unlikely(!__pyx_tuple__47)) __PYX_ERR(0, 3551, __pyx_L1_error)
50652  __Pyx_GOTREF(__pyx_tuple__47);
50653  __Pyx_GIVEREF(__pyx_tuple__47);
50654  __pyx_codeobj__48 = (PyObject*)__Pyx_PyCode_New(6, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_cLevelSetCoefficientsEvaluate, 3551, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__48)) __PYX_ERR(0, 3551, __pyx_L1_error)
50655 
50656  /* "ctransportCoefficients.pyx":3565
50657  * <double*> f.data,
50658  * <double*> df.data)
50659  * def VOFCoefficientsEvaluate(double eps, # <<<<<<<<<<<<<<
50660  * np.ndarray v,
50661  * np.ndarray phi,
50662  */
50663  __pyx_tuple__49 = PyTuple_Pack(8, __pyx_n_s_eps, __pyx_n_s_v, __pyx_n_s_phi, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df); if (unlikely(!__pyx_tuple__49)) __PYX_ERR(0, 3565, __pyx_L1_error)
50664  __Pyx_GOTREF(__pyx_tuple__49);
50665  __Pyx_GIVEREF(__pyx_tuple__49);
50666  __pyx_codeobj__50 = (PyObject*)__Pyx_PyCode_New(8, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_VOFCoefficientsEvaluate, 3565, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__50)) __PYX_ERR(0, 3565, __pyx_L1_error)
50667 
50668  /* "ctransportCoefficients.pyx":3583
50669  * <double*> f.data,
50670  * <double*> df.data)
50671  * def levelSetCurvatureCoefficientsEvaluate(np.ndarray grad_phi, # <<<<<<<<<<<<<<
50672  * np.ndarray u,
50673  * np.ndarray f,
50674  */
50675  __pyx_tuple__51 = PyTuple_Pack(5, __pyx_n_s_grad_phi, __pyx_n_s_u, __pyx_n_s_f, __pyx_n_s_r, __pyx_n_s_dr); if (unlikely(!__pyx_tuple__51)) __PYX_ERR(0, 3583, __pyx_L1_error)
50676  __Pyx_GOTREF(__pyx_tuple__51);
50677  __Pyx_GIVEREF(__pyx_tuple__51);
50678  __pyx_codeobj__52 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_levelSetCurvatureCoefficientsEva, 3583, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__52)) __PYX_ERR(0, 3583, __pyx_L1_error)
50679 
50680  /* "ctransportCoefficients.pyx":3595
50681  * <double*> r.data,
50682  * <double*> dr.data)
50683  * def twophaseSignedDistanceCoefficientsEvaluate(int nPoints, # <<<<<<<<<<<<<<
50684  * int nSpace,
50685  * np.ndarray S,
50686  */
50687  __pyx_tuple__53 = PyTuple_Pack(10, __pyx_n_s_nPoints, __pyx_n_s_nSpace, __pyx_n_s_S, __pyx_n_s_u, __pyx_n_s_grad_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_h, __pyx_n_s_dh, __pyx_n_s_rh); if (unlikely(!__pyx_tuple__53)) __PYX_ERR(0, 3595, __pyx_L1_error)
50688  __Pyx_GOTREF(__pyx_tuple__53);
50689  __Pyx_GIVEREF(__pyx_tuple__53);
50690  __pyx_codeobj__54 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__53, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_twophaseSignedDistanceCoefficien, 3595, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__54)) __PYX_ERR(0, 3595, __pyx_L1_error)
50691 
50692  /* "ctransportCoefficients.pyx":3615
50693  * <double*> dh.data,
50694  * <double*> rh.data)
50695  * def eikonalEquationEvaluate(double rhs, # <<<<<<<<<<<<<<
50696  * np.ndarray u,
50697  * np.ndarray grad_u,
50698  */
50699  __pyx_tuple__55 = PyTuple_Pack(8, __pyx_n_s_rhs, __pyx_n_s_u, __pyx_n_s_grad_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_H, __pyx_n_s_dH, __pyx_n_s_r); if (unlikely(!__pyx_tuple__55)) __PYX_ERR(0, 3615, __pyx_L1_error)
50700  __Pyx_GOTREF(__pyx_tuple__55);
50701  __Pyx_GIVEREF(__pyx_tuple__55);
50702  __pyx_codeobj__56 = (PyObject*)__Pyx_PyCode_New(8, 0, 8, 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_ctransportCoefficients_p, __pyx_n_s_eikonalEquationEvaluate, 3615, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__56)) __PYX_ERR(0, 3615, __pyx_L1_error)
50703 
50704  /* "ctransportCoefficients.pyx":3633
50705  * <double*> dH.data,
50706  * <double*> r.data)
50707  * def redistanceLevelSetCoefficientsEvaluate(double eps, # <<<<<<<<<<<<<<
50708  * np.ndarray u_levelSet,
50709  * np.ndarray u,
50710  */
50711  __pyx_tuple__57 = PyTuple_Pack(9, __pyx_n_s_eps, __pyx_n_s_u_levelSet, __pyx_n_s_u, __pyx_n_s_grad_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_H, __pyx_n_s_dH, __pyx_n_s_r); if (unlikely(!__pyx_tuple__57)) __PYX_ERR(0, 3633, __pyx_L1_error)
50712  __Pyx_GOTREF(__pyx_tuple__57);
50713  __Pyx_GIVEREF(__pyx_tuple__57);
50714  __pyx_codeobj__58 = (PyObject*)__Pyx_PyCode_New(9, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__57, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_redistanceLevelSetCoefficientsEv, 3633, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__58)) __PYX_ERR(0, 3633, __pyx_L1_error)
50715 
50716  /* "ctransportCoefficients.pyx":3653
50717  * <double*> dH.data,
50718  * <double*> r.data)
50719  * def redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate(double eps, # <<<<<<<<<<<<<<
50720  * double Lambda_penalty,
50721  * np.ndarray u_levelSet,
50722  */
50723  __pyx_tuple__59 = PyTuple_Pack(11, __pyx_n_s_eps, __pyx_n_s_Lambda_penalty, __pyx_n_s_u_levelSet, __pyx_n_s_u, __pyx_n_s_grad_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_H, __pyx_n_s_dH, __pyx_n_s_r, __pyx_n_s_dr); if (unlikely(!__pyx_tuple__59)) __PYX_ERR(0, 3653, __pyx_L1_error)
50724  __Pyx_GOTREF(__pyx_tuple__59);
50725  __Pyx_GIVEREF(__pyx_tuple__59);
50726  __pyx_codeobj__60 = (PyObject*)__Pyx_PyCode_New(11, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__59, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_redistanceLevelSetCoefficientsWi, 3653, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__60)) __PYX_ERR(0, 3653, __pyx_L1_error)
50727 
50728  /* "ctransportCoefficients.pyx":3677
50729  * <double*> r.data,
50730  * <double*> dr.data)
50731  * def redistanceLevelSetSandFCoefficientsEvaluate(double eps, # <<<<<<<<<<<<<<
50732  * np.ndarray u_levelSet,
50733  * np.ndarray dV,
50734  */
50735  __pyx_tuple__61 = PyTuple_Pack(12, __pyx_n_s_eps, __pyx_n_s_u_levelSet, __pyx_n_s_dV, __pyx_n_s_u, __pyx_n_s_grad_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_H, __pyx_n_s_dH, __pyx_n_s_r, __pyx_n_s_nSimplex, __pyx_n_s_nPointsPerSimplex); if (unlikely(!__pyx_tuple__61)) __PYX_ERR(0, 3677, __pyx_L1_error)
50736  __Pyx_GOTREF(__pyx_tuple__61);
50737  __Pyx_GIVEREF(__pyx_tuple__61);
50738  __pyx_codeobj__62 = (PyObject*)__Pyx_PyCode_New(10, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__61, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_redistanceLevelSetSandFCoefficie, 3677, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__62)) __PYX_ERR(0, 3677, __pyx_L1_error)
50739 
50740  /* "ctransportCoefficients.pyx":3709
50741  * else:
50742  * assert 0
50743  * def setWeakDirichletConditionsForLevelSet(int nElements_global, # <<<<<<<<<<<<<<
50744  * int nDOF_trial_element,
50745  * double epsilon_freeze_factor,
50746  */
50747  __pyx_tuple__63 = PyTuple_Pack(8, __pyx_n_s_nElements_global, __pyx_n_s_nDOF_trial_element, __pyx_n_s_epsilon_freeze_factor, __pyx_n_s_elementDiameter, __pyx_n_s_u_l2g, __pyx_n_s_u_dof, __pyx_n_s_freeze_nodes_tmp, __pyx_n_s_weakDirichletConditionFlags); if (unlikely(!__pyx_tuple__63)) __PYX_ERR(0, 3709, __pyx_L1_error)
50748  __Pyx_GOTREF(__pyx_tuple__63);
50749  __Pyx_GIVEREF(__pyx_tuple__63);
50750  __pyx_codeobj__64 = (PyObject*)__Pyx_PyCode_New(8, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__63, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_setWeakDirichletConditionsForLev, 3709, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__64)) __PYX_ERR(0, 3709, __pyx_L1_error)
50751 
50752  /* "ctransportCoefficients.pyx":3725
50753  * <int*> freeze_nodes_tmp.data,
50754  * <int*> weakDirichletConditionFlags.data)
50755  * def setSimpleWeakDirichletConditionsForLevelSet(int nElements_global, # <<<<<<<<<<<<<<
50756  * int nDOF_trial_element,
50757  * double epsilon_freeze_factor,
50758  */
50759  __pyx_tuple__65 = PyTuple_Pack(8, __pyx_n_s_nElements_global, __pyx_n_s_nDOF_trial_element, __pyx_n_s_epsilon_freeze_factor, __pyx_n_s_elementDiameter, __pyx_n_s_u_l2g, __pyx_n_s_u_dof, __pyx_n_s_freeze_nodes_tmp, __pyx_n_s_weakDirichletConditionFlags); if (unlikely(!__pyx_tuple__65)) __PYX_ERR(0, 3725, __pyx_L1_error)
50760  __Pyx_GOTREF(__pyx_tuple__65);
50761  __Pyx_GIVEREF(__pyx_tuple__65);
50762  __pyx_codeobj__66 = (PyObject*)__Pyx_PyCode_New(8, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__65, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_setSimpleWeakDirichletConditions, 3725, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__66)) __PYX_ERR(0, 3725, __pyx_L1_error)
50763 
50764  /* "ctransportCoefficients.pyx":3741
50765  * <int*> freeze_nodes_tmp.data,
50766  * <int*> weakDirichletConditionFlags.data)
50767  * def darcySharpInterfaceFlowEvaluate(double Km, # <<<<<<<<<<<<<<
50768  * double rhoM,
50769  * double Kp,
50770  */
50771  __pyx_tuple__67 = PyTuple_Pack(19, __pyx_n_s_Km, __pyx_n_s_rhoM, __pyx_n_s_Kp, __pyx_n_s_rhoP, __pyx_n_s_eps, __pyx_n_s_gravity_u, __pyx_n_s_u, __pyx_n_s_gradu, __pyx_n_s_u_levelSet, __pyx_n_s_phi_pot, __pyx_n_s_a, __pyx_n_s_f, __pyx_n_s_r, __pyx_n_s_m, __pyx_n_s_dphi_pot, __pyx_n_s_da, __pyx_n_s_df, __pyx_n_s_dr, __pyx_n_s_dm); if (unlikely(!__pyx_tuple__67)) __PYX_ERR(0, 3741, __pyx_L1_error)
50772  __Pyx_GOTREF(__pyx_tuple__67);
50773  __Pyx_GIVEREF(__pyx_tuple__67);
50774  __pyx_codeobj__68 = (PyObject*)__Pyx_PyCode_New(19, 0, 19, 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_ctransportCoefficients_p, __pyx_n_s_darcySharpInterfaceFlowEvaluate, 3741, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__68)) __PYX_ERR(0, 3741, __pyx_L1_error)
50775 
50776  /* "ctransportCoefficients.pyx":3781
50777  * <double*> dr.data,
50778  * <double*> dm.data)
50779  * def darcySharpInterfaceFlowImEvaluate(double Km, # <<<<<<<<<<<<<<
50780  * double rhoM,
50781  * double Kp,
50782  */
50783  __pyx_tuple__69 = PyTuple_Pack(19, __pyx_n_s_Km, __pyx_n_s_rhoM, __pyx_n_s_Kp, __pyx_n_s_rhoP, __pyx_n_s_eps, __pyx_n_s_gravity_u, __pyx_n_s_u, __pyx_n_s_gradu, __pyx_n_s_u_levelSet, __pyx_n_s_phi_pot, __pyx_n_s_a, __pyx_n_s_f, __pyx_n_s_r, __pyx_n_s_m, __pyx_n_s_dphi_pot, __pyx_n_s_da, __pyx_n_s_df, __pyx_n_s_dr, __pyx_n_s_dm); if (unlikely(!__pyx_tuple__69)) __PYX_ERR(0, 3781, __pyx_L1_error)
50784  __Pyx_GOTREF(__pyx_tuple__69);
50785  __Pyx_GIVEREF(__pyx_tuple__69);
50786  __pyx_codeobj__70 = (PyObject*)__Pyx_PyCode_New(19, 0, 19, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__69, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_darcySharpInterfaceFlowImEvaluat, 3781, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__70)) __PYX_ERR(0, 3781, __pyx_L1_error)
50787 
50788  /* "ctransportCoefficients.pyx":3819
50789  * <double*> dr.data,
50790  * <double*> dm.data)
50791  * def NavierStokes_2D_Evaluate(const double rho, # <<<<<<<<<<<<<<
50792  * const double nu,
50793  * np.ndarray g,
50794  */
50795  __pyx_tuple__71 = PyTuple_Pack(28, __pyx_n_s_rho, __pyx_n_s_nu, __pyx_n_s_g, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p); if (unlikely(!__pyx_tuple__71)) __PYX_ERR(0, 3819, __pyx_L1_error)
50796  __Pyx_GOTREF(__pyx_tuple__71);
50797  __Pyx_GIVEREF(__pyx_tuple__71);
50798  __pyx_codeobj__72 = (PyObject*)__Pyx_PyCode_New(28, 0, 28, 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_ctransportCoefficients_p, __pyx_n_s_NavierStokes_2D_Evaluate, 3819, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__72)) __PYX_ERR(0, 3819, __pyx_L1_error)
50799 
50800  /* "ctransportCoefficients.pyx":3876
50801  * <double*> mom_v_ham.data,
50802  * <double*> dmom_v_ham_grad_p.data)
50803  * def NavierStokes_3D_Evaluate(const double rho, # <<<<<<<<<<<<<<
50804  * const double nu,
50805  * np.ndarray g,
50806  */
50807  __pyx_tuple__73 = PyTuple_Pack(42, __pyx_n_s_rho, __pyx_n_s_nu, __pyx_n_s_g, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_w_acc_w, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_dmass_adv_w, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_dmom_u_adv_w, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_dmom_v_adv_w, __pyx_n_s_mom_w_adv, __pyx_n_s_dmom_w_adv_u, __pyx_n_s_dmom_w_adv_v, __pyx_n_s_dmom_w_adv_w, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p, __pyx_n_s_mom_w_ham, __pyx_n_s_dmom_w_ham_grad_p); if (unlikely(!__pyx_tuple__73)) __PYX_ERR(0, 3876, __pyx_L1_error)
50808  __Pyx_GOTREF(__pyx_tuple__73);
50809  __Pyx_GIVEREF(__pyx_tuple__73);
50810  __pyx_codeobj__74 = (PyObject*)__Pyx_PyCode_New(42, 0, 42, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__73, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_NavierStokes_3D_Evaluate, 3876, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__74)) __PYX_ERR(0, 3876, __pyx_L1_error)
50811 
50812  /* "ctransportCoefficients.pyx":3961
50813  * <double*> mom_w_ham.data,
50814  * <double*> dmom_w_ham_grad_p.data)
50815  * def Stokes_2D_Evaluate(const double rho, # <<<<<<<<<<<<<<
50816  * const double nu,
50817  * np.ndarray g,
50818  */
50819  __pyx_tuple__75 = PyTuple_Pack(22, __pyx_n_s_rho, __pyx_n_s_nu, __pyx_n_s_g, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p); if (unlikely(!__pyx_tuple__75)) __PYX_ERR(0, 3961, __pyx_L1_error)
50820  __Pyx_GOTREF(__pyx_tuple__75);
50821  __Pyx_GIVEREF(__pyx_tuple__75);
50822  __pyx_codeobj__76 = (PyObject*)__Pyx_PyCode_New(22, 0, 22, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__75, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_Stokes_2D_Evaluate, 3961, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__76)) __PYX_ERR(0, 3961, __pyx_L1_error)
50823 
50824  /* "ctransportCoefficients.pyx":4006
50825  * <double*> mom_v_ham.data,
50826  * <double*> dmom_v_ham_grad_p.data)
50827  * def StokesP_2D_Evaluate(const double rho, # <<<<<<<<<<<<<<
50828  * const double nu,
50829  * np.ndarray g,
50830  */
50831  __pyx_tuple__77 = PyTuple_Pack(21, __pyx_n_s_rho, __pyx_n_s_nu, __pyx_n_s_g, __pyx_n_s_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_p, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_p, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source); if (unlikely(!__pyx_tuple__77)) __PYX_ERR(0, 4006, __pyx_L1_error)
50832  __Pyx_GOTREF(__pyx_tuple__77);
50833  __Pyx_GIVEREF(__pyx_tuple__77);
50834  __pyx_codeobj__78 = (PyObject*)__Pyx_PyCode_New(21, 0, 21, 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_ctransportCoefficients_p, __pyx_n_s_StokesP_2D_Evaluate, 4006, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__78)) __PYX_ERR(0, 4006, __pyx_L1_error)
50835 
50836  /* "ctransportCoefficients.pyx":4049
50837  * <double*> mom_u_source.data,
50838  * <double*> mom_v_source.data)
50839  * def Stokes_3D_Evaluate(const double rho, # <<<<<<<<<<<<<<
50840  * const double nu,
50841  * np.ndarray g,
50842  */
50843  __pyx_tuple__79 = PyTuple_Pack(30, __pyx_n_s_rho, __pyx_n_s_nu, __pyx_n_s_g, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_w_acc_w, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_dmass_adv_w, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p, __pyx_n_s_mom_w_ham, __pyx_n_s_dmom_w_ham_grad_p); if (unlikely(!__pyx_tuple__79)) __PYX_ERR(0, 4049, __pyx_L1_error)
50844  __Pyx_GOTREF(__pyx_tuple__79);
50845  __Pyx_GIVEREF(__pyx_tuple__79);
50846  __pyx_codeobj__80 = (PyObject*)__Pyx_PyCode_New(30, 0, 30, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__79, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_Stokes_3D_Evaluate, 4049, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__80)) __PYX_ERR(0, 4049, __pyx_L1_error)
50847 
50848  /* "ctransportCoefficients.pyx":4110
50849  * <double*> mom_w_ham.data,
50850  * <double*> dmom_w_ham_grad_p.data)
50851  * def StokesP_3D_Evaluate(const int nPoints, # <<<<<<<<<<<<<<
50852  * const double rho,
50853  * const double nu,
50854  */
50855  __pyx_tuple__81 = PyTuple_Pack(30, __pyx_n_s_nPoints, __pyx_n_s_rho, __pyx_n_s_nu, __pyx_n_s_g, __pyx_n_s_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_w_acc_w, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_dmass_adv_w, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_p, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_p, __pyx_n_s_mom_w_adv, __pyx_n_s_dmom_w_adv_p, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source); if (unlikely(!__pyx_tuple__81)) __PYX_ERR(0, 4110, __pyx_L1_error)
50856  __Pyx_GOTREF(__pyx_tuple__81);
50857  __Pyx_GIVEREF(__pyx_tuple__81);
50858  __pyx_codeobj__82 = (PyObject*)__Pyx_PyCode_New(30, 0, 30, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__81, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_StokesP_3D_Evaluate, 4110, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__82)) __PYX_ERR(0, 4110, __pyx_L1_error)
50859 
50860  /* "ctransportCoefficients.pyx":4170
50861  * <double*> mom_v_source.data,
50862  * <double*> mom_w_source.data)
50863  * def TwophaseNavierStokes_LS_SO_2D_Evaluate(const double eps, # <<<<<<<<<<<<<<
50864  * const double rho_0,
50865  * const double nu_0,
50866  */
50867  __pyx_tuple__83 = PyTuple_Pack(32, __pyx_n_s_eps, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p); if (unlikely(!__pyx_tuple__83)) __PYX_ERR(0, 4170, __pyx_L1_error)
50868  __Pyx_GOTREF(__pyx_tuple__83);
50869  __Pyx_GIVEREF(__pyx_tuple__83);
50870  __pyx_codeobj__84 = (PyObject*)__Pyx_PyCode_New(32, 0, 32, 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_ctransportCoefficients_p, __pyx_n_s_TwophaseNavierStokes_LS_SO_2D_Ev, 4170, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__84)) __PYX_ERR(0, 4170, __pyx_L1_error)
50871 
50872  /* "ctransportCoefficients.pyx":4235
50873  * <double*> mom_v_ham.data,
50874  * <double*> dmom_v_ham_grad_p.data)
50875  * def TwophaseNavierStokes_ST_LS_SO_2D_Evaluate(const double eps_rho, # <<<<<<<<<<<<<<
50876  * const double eps_mu,
50877  * const double sigma,
50878  */
50879  __pyx_tuple__85 = PyTuple_Pack(38, __pyx_n_s_eps_rho, __pyx_n_s_eps_mu, __pyx_n_s_sigma, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_n, __pyx_n_s_kappa, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p); if (unlikely(!__pyx_tuple__85)) __PYX_ERR(0, 4235, __pyx_L1_error)
50880  __Pyx_GOTREF(__pyx_tuple__85);
50881  __Pyx_GIVEREF(__pyx_tuple__85);
50882  __pyx_codeobj__86 = (PyObject*)__Pyx_PyCode_New(38, 0, 38, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__85, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_TwophaseNavierStokes_ST_LS_SO_2D, 4235, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__86)) __PYX_ERR(0, 4235, __pyx_L1_error)
50883 
50884  /* "ctransportCoefficients.pyx":4312
50885  * <double*> mom_v_ham.data,
50886  * <double*> dmom_v_ham_grad_p.data)
50887  * def TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(const double eps_rho, # <<<<<<<<<<<<<<
50888  * const double eps_mu,
50889  * const double sigma,
50890  */
50891  __pyx_tuple__87 = PyTuple_Pack(38, __pyx_n_s_eps_rho, __pyx_n_s_eps_mu, __pyx_n_s_sigma, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_n, __pyx_n_s_kappa, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p); if (unlikely(!__pyx_tuple__87)) __PYX_ERR(0, 4312, __pyx_L1_error)
50892  __Pyx_GOTREF(__pyx_tuple__87);
50893  __Pyx_GIVEREF(__pyx_tuple__87);
50894  __pyx_codeobj__88 = (PyObject*)__Pyx_PyCode_New(38, 0, 38, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__87, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_TwophaseNavierStokes_ST_LS_SO_2D_2, 4312, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__88)) __PYX_ERR(0, 4312, __pyx_L1_error)
50895 
50896  /* "ctransportCoefficients.pyx":4389
50897  * <double*> mom_v_ham.data,
50898  * <double*> dmom_v_ham_grad_p.data)
50899  * def ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate(const double boundaryPenaltyCoef, # <<<<<<<<<<<<<<
50900  * const double volumePenaltyCoef,
50901  * const double eps_rho,
50902  */
50903  __pyx_tuple__89 = PyTuple_Pack(48, __pyx_n_s_boundaryPenaltyCoef, __pyx_n_s_volumePenaltyCoef, __pyx_n_s_eps_rho, __pyx_n_s_eps_mu, __pyx_n_s_sigma, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_rho_s, __pyx_n_s_nu_s, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_n, __pyx_n_s_kappa, __pyx_n_s_phi_s, __pyx_n_s_n_s, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_dmom_u_source_u, __pyx_n_s_dmom_u_source_v, __pyx_n_s_mom_v_source, __pyx_n_s_dmom_v_source_u, __pyx_n_s_dmom_v_source_v, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p); if (unlikely(!__pyx_tuple__89)) __PYX_ERR(0, 4389, __pyx_L1_error)
50904  __Pyx_GOTREF(__pyx_tuple__89);
50905  __Pyx_GIVEREF(__pyx_tuple__89);
50906  __pyx_codeobj__90 = (PyObject*)__Pyx_PyCode_New(48, 0, 48, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__89, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_ThreephaseNavierStokes_ST_LS_SO, 4389, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__90)) __PYX_ERR(0, 4389, __pyx_L1_error)
50907 
50908  /* "ctransportCoefficients.pyx":4486
50909  * <double*> mom_v_ham.data,
50910  * <double*> dmom_v_ham_grad_p.data)
50911  * def TwophaseNavierStokes_ST_LS_SO_3D_Evaluate(const double eps_rho, # <<<<<<<<<<<<<<
50912  * const double eps_mu,
50913  * const double sigma,
50914  */
50915  __pyx_tuple__91 = PyTuple_Pack(56, __pyx_n_s_eps_rho, __pyx_n_s_eps_mu, __pyx_n_s_sigma, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_n, __pyx_n_s_kappa, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_w_acc_w, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_dmass_adv_w, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_dmom_u_adv_w, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_dmom_v_adv_w, __pyx_n_s_mom_w_adv, __pyx_n_s_dmom_w_adv_u, __pyx_n_s_dmom_w_adv_v, __pyx_n_s_dmom_w_adv_w, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_uw_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_vw_diff_ten, __pyx_n_s_mom_wu_diff_ten, __pyx_n_s_mom_wv_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p, __pyx_n_s_mom_w_ham, __pyx_n_s_dmom_w_ham_grad_p); if (unlikely(!__pyx_tuple__91)) __PYX_ERR(0, 4486, __pyx_L1_error)
50916  __Pyx_GOTREF(__pyx_tuple__91);
50917  __Pyx_GIVEREF(__pyx_tuple__91);
50918  __pyx_codeobj__92 = (PyObject*)__Pyx_PyCode_New(56, 0, 56, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__91, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_TwophaseNavierStokes_ST_LS_SO_3D, 4486, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__92)) __PYX_ERR(0, 4486, __pyx_L1_error)
50919 
50920  /* "ctransportCoefficients.pyx":4599
50921  * <double*> mom_w_ham.data,
50922  * <double*> dmom_w_ham_grad_p.data)
50923  * def TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(const double eps_rho, # <<<<<<<<<<<<<<
50924  * const double eps_mu,
50925  * const double sigma,
50926  */
50927  __pyx_tuple__93 = PyTuple_Pack(56, __pyx_n_s_eps_rho, __pyx_n_s_eps_mu, __pyx_n_s_sigma, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_n, __pyx_n_s_kappa, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_w_acc_w, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_dmass_adv_w, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_dmom_u_adv_w, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_dmom_v_adv_w, __pyx_n_s_mom_w_adv, __pyx_n_s_dmom_w_adv_u, __pyx_n_s_dmom_w_adv_v, __pyx_n_s_dmom_w_adv_w, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_uw_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_vw_diff_ten, __pyx_n_s_mom_wu_diff_ten, __pyx_n_s_mom_wv_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p, __pyx_n_s_mom_w_ham, __pyx_n_s_dmom_w_ham_grad_p); if (unlikely(!__pyx_tuple__93)) __PYX_ERR(0, 4599, __pyx_L1_error)
50928  __Pyx_GOTREF(__pyx_tuple__93);
50929  __Pyx_GIVEREF(__pyx_tuple__93);
50930  __pyx_codeobj__94 = (PyObject*)__Pyx_PyCode_New(56, 0, 56, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__93, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_TwophaseNavierStokes_ST_LS_SO_3D_2, 4599, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__94)) __PYX_ERR(0, 4599, __pyx_L1_error)
50931 
50932  /* "ctransportCoefficients.pyx":4712
50933  * <double*> mom_w_ham.data,
50934  * <double*> dmom_w_ham_grad_p.data)
50935  * def ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate(const double boundaryPenaltyCoef, # <<<<<<<<<<<<<<
50936  * const double volumePenaltyCoef,
50937  * const double eps_rho,
50938  */
50939  __pyx_tuple__95 = PyTuple_Pack(71, __pyx_n_s_boundaryPenaltyCoef, __pyx_n_s_volumePenaltyCoef, __pyx_n_s_eps_rho, __pyx_n_s_eps_mu, __pyx_n_s_sigma, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_rho_s, __pyx_n_s_nu_s, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_n, __pyx_n_s_kappa, __pyx_n_s_phi_s, __pyx_n_s_n_s, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_w_acc_w, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_dmass_adv_w, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_dmom_u_adv_w, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_dmom_v_adv_w, __pyx_n_s_mom_w_adv, __pyx_n_s_dmom_w_adv_u, __pyx_n_s_dmom_w_adv_v, __pyx_n_s_dmom_w_adv_w, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_uw_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_vw_diff_ten, __pyx_n_s_mom_wu_diff_ten, __pyx_n_s_mom_wv_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_dmom_u_source_u, __pyx_n_s_dmom_u_source_v, __pyx_n_s_dmom_u_source_w, __pyx_n_s_mom_v_source, __pyx_n_s_dmom_v_source_u, __pyx_n_s_dmom_v_source_v, __pyx_n_s_dmom_v_source_w, __pyx_n_s_mom_w_source, __pyx_n_s_dmom_w_source_u, __pyx_n_s_dmom_w_source_v, __pyx_n_s_dmom_w_source_w, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p, __pyx_n_s_mom_w_ham, __pyx_n_s_dmom_w_ham_grad_p); if (unlikely(!__pyx_tuple__95)) __PYX_ERR(0, 4712, __pyx_L1_error)
50940  __Pyx_GOTREF(__pyx_tuple__95);
50941  __Pyx_GIVEREF(__pyx_tuple__95);
50942  __pyx_codeobj__96 = (PyObject*)__Pyx_PyCode_New(71, 0, 71, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__95, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_ThreephaseNavierStokes_ST_LS_SO_2, 4712, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__96)) __PYX_ERR(0, 4712, __pyx_L1_error)
50943 
50944  /* "ctransportCoefficients.pyx":4855
50945  * <double*> mom_w_ham.data,
50946  * <double*> dmom_w_ham_grad_p.data)
50947  * def TwophaseNavierStokes_LS_SO_3D_Evaluate(const double eps, # <<<<<<<<<<<<<<
50948  * const double rho_0,
50949  * const double nu_0,
50950  */
50951  __pyx_tuple__97 = PyTuple_Pack(46, __pyx_n_s_eps, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_w_acc_w, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_dmass_adv_w, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_dmom_u_adv_w, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_dmom_v_adv_w, __pyx_n_s_mom_w_adv, __pyx_n_s_dmom_w_adv_u, __pyx_n_s_dmom_w_adv_v, __pyx_n_s_dmom_w_adv_w, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p, __pyx_n_s_mom_w_ham, __pyx_n_s_dmom_w_ham_grad_p); if (unlikely(!__pyx_tuple__97)) __PYX_ERR(0, 4855, __pyx_L1_error)
50952  __Pyx_GOTREF(__pyx_tuple__97);
50953  __Pyx_GIVEREF(__pyx_tuple__97);
50954  __pyx_codeobj__98 = (PyObject*)__Pyx_PyCode_New(46, 0, 46, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__97, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_TwophaseNavierStokes_LS_SO_3D_Ev, 4855, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__98)) __PYX_ERR(0, 4855, __pyx_L1_error)
50955 
50956  /* "ctransportCoefficients.pyx":4948
50957  * <double*> mom_w_ham.data,
50958  * <double*> dmom_w_ham_grad_p.data)
50959  * def TwophaseStokes_LS_SO_2D_Evaluate(const double eps, # <<<<<<<<<<<<<<
50960  * const double rho_0,
50961  * const double nu_0,
50962  */
50963  __pyx_tuple__99 = PyTuple_Pack(26, __pyx_n_s_eps, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p); if (unlikely(!__pyx_tuple__99)) __PYX_ERR(0, 4948, __pyx_L1_error)
50964  __Pyx_GOTREF(__pyx_tuple__99);
50965  __Pyx_GIVEREF(__pyx_tuple__99);
50966  __pyx_codeobj__100 = (PyObject*)__Pyx_PyCode_New(26, 0, 26, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__99, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_TwophaseStokes_LS_SO_2D_Evaluate, 4948, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__100)) __PYX_ERR(0, 4948, __pyx_L1_error)
50967 
50968  /* "ctransportCoefficients.pyx":5001
50969  * <double*> mom_v_ham.data,
50970  * <double*> dmom_v_ham_grad_p.data)
50971  * def TwophaseStokes_LS_SO_3D_Evaluate(const double eps, # <<<<<<<<<<<<<<
50972  * const double rho_0,
50973  * const double nu_0,
50974  */
50975  __pyx_tuple__101 = PyTuple_Pack(34, __pyx_n_s_eps, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_w_acc_w, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_dmass_adv_w, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p, __pyx_n_s_mom_w_ham, __pyx_n_s_dmom_w_ham_grad_p); if (unlikely(!__pyx_tuple__101)) __PYX_ERR(0, 5001, __pyx_L1_error)
50976  __Pyx_GOTREF(__pyx_tuple__101);
50977  __Pyx_GIVEREF(__pyx_tuple__101);
50978  __pyx_codeobj__102 = (PyObject*)__Pyx_PyCode_New(34, 0, 34, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__101, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_TwophaseStokes_LS_SO_3D_Evaluate, 5001, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__102)) __PYX_ERR(0, 5001, __pyx_L1_error)
50979 
50980  /* "ctransportCoefficients.pyx":5070
50981  * <double*> mom_w_ham.data,
50982  * <double*> dmom_w_ham_grad_p.data)
50983  * def TwophaseNavierStokes_VOF_SO_2D_Evaluate(const double eps, # <<<<<<<<<<<<<<
50984  * const double rho_0,
50985  * const double nu_0,
50986  */
50987  __pyx_tuple__103 = PyTuple_Pack(32, __pyx_n_s_eps, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_g, __pyx_n_s_vof, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p); if (unlikely(!__pyx_tuple__103)) __PYX_ERR(0, 5070, __pyx_L1_error)
50988  __Pyx_GOTREF(__pyx_tuple__103);
50989  __Pyx_GIVEREF(__pyx_tuple__103);
50990  __pyx_codeobj__104 = (PyObject*)__Pyx_PyCode_New(32, 0, 32, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__103, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_TwophaseNavierStokes_VOF_SO_2D_E, 5070, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__104)) __PYX_ERR(0, 5070, __pyx_L1_error)
50991 
50992  /* "ctransportCoefficients.pyx":5135
50993  * <double*> mom_v_ham.data,
50994  * <double*> dmom_v_ham_grad_p.data)
50995  * def TwophaseNavierStokes_VOF_SO_3D_Evaluate(const double eps, # <<<<<<<<<<<<<<
50996  * const double rho_0,
50997  * const double nu_0,
50998  */
50999  __pyx_tuple__105 = PyTuple_Pack(46, __pyx_n_s_eps, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_g, __pyx_n_s_vof, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_w_acc_w, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_dmass_adv_w, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_dmom_u_adv_w, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_dmom_v_adv_w, __pyx_n_s_mom_w_adv, __pyx_n_s_dmom_w_adv_u, __pyx_n_s_dmom_w_adv_v, __pyx_n_s_dmom_w_adv_w, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p, __pyx_n_s_mom_w_ham, __pyx_n_s_dmom_w_ham_grad_p); if (unlikely(!__pyx_tuple__105)) __PYX_ERR(0, 5135, __pyx_L1_error)
51000  __Pyx_GOTREF(__pyx_tuple__105);
51001  __Pyx_GIVEREF(__pyx_tuple__105);
51002  __pyx_codeobj__106 = (PyObject*)__Pyx_PyCode_New(46, 0, 46, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__105, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_TwophaseNavierStokes_VOF_SO_3D_E, 5135, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__106)) __PYX_ERR(0, 5135, __pyx_L1_error)
51003 
51004  /* "ctransportCoefficients.pyx":5228
51005  * <double*> mom_w_ham.data,
51006  * <double*> dmom_w_ham_grad_p.data)
51007  * def TwophaseStokes_VOF_SO_2D_Evaluate(const double eps, # <<<<<<<<<<<<<<
51008  * const double rho_0,
51009  * const double nu_0,
51010  */
51011  __pyx_tuple__107 = PyTuple_Pack(26, __pyx_n_s_eps, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_g, __pyx_n_s_vof, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p); if (unlikely(!__pyx_tuple__107)) __PYX_ERR(0, 5228, __pyx_L1_error)
51012  __Pyx_GOTREF(__pyx_tuple__107);
51013  __Pyx_GIVEREF(__pyx_tuple__107);
51014  __pyx_codeobj__108 = (PyObject*)__Pyx_PyCode_New(26, 0, 26, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__107, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_TwophaseStokes_VOF_SO_2D_Evaluat, 5228, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__108)) __PYX_ERR(0, 5228, __pyx_L1_error)
51015 
51016  /* "ctransportCoefficients.pyx":5281
51017  * <double*> mom_v_ham.data,
51018  * <double*> dmom_v_ham_grad_p.data)
51019  * def TwophaseStokes_VOF_SO_3D_Evaluate(const double eps, # <<<<<<<<<<<<<<
51020  * const double rho_0,
51021  * const double nu_0,
51022  */
51023  __pyx_tuple__109 = PyTuple_Pack(34, __pyx_n_s_eps, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_g, __pyx_n_s_vof, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_w_acc_w, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_dmass_adv_w, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p, __pyx_n_s_mom_w_ham, __pyx_n_s_dmom_w_ham_grad_p); if (unlikely(!__pyx_tuple__109)) __PYX_ERR(0, 5281, __pyx_L1_error)
51024  __Pyx_GOTREF(__pyx_tuple__109);
51025  __Pyx_GIVEREF(__pyx_tuple__109);
51026  __pyx_codeobj__110 = (PyObject*)__Pyx_PyCode_New(34, 0, 34, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__109, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_TwophaseStokes_VOF_SO_3D_Evaluat, 5281, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__110)) __PYX_ERR(0, 5281, __pyx_L1_error)
51027 
51028  /* "ctransportCoefficients.pyx":5350
51029  * <double*> mom_w_ham.data,
51030  * <double*> dmom_w_ham_grad_p.data)
51031  * def unitSquareVortexEvaluate(double t, # <<<<<<<<<<<<<<
51032  * np.ndarray x,
51033  * np.ndarray u,
51034  */
51035  __pyx_tuple__111 = PyTuple_Pack(7, __pyx_n_s_t, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df); if (unlikely(!__pyx_tuple__111)) __PYX_ERR(0, 5350, __pyx_L1_error)
51036  __Pyx_GOTREF(__pyx_tuple__111);
51037  __Pyx_GIVEREF(__pyx_tuple__111);
51038  __pyx_codeobj__112 = (PyObject*)__Pyx_PyCode_New(7, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__111, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_unitSquareVortexEvaluate, 5350, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__112)) __PYX_ERR(0, 5350, __pyx_L1_error)
51039 
51040  /* "ctransportCoefficients.pyx":5366
51041  * <double*> f.data,
51042  * <double*> df.data)
51043  * def constantVelocityLevelSetEvaluate(np.ndarray b, # <<<<<<<<<<<<<<
51044  * np.ndarray x,
51045  * np.ndarray u,
51046  */
51047  __pyx_tuple__113 = PyTuple_Pack(10, __pyx_n_s_b, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_gradu, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_H, __pyx_n_s_dH); if (unlikely(!__pyx_tuple__113)) __PYX_ERR(0, 5366, __pyx_L1_error)
51048  __Pyx_GOTREF(__pyx_tuple__113);
51049  __Pyx_GIVEREF(__pyx_tuple__113);
51050  __pyx_codeobj__114 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__113, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_constantVelocityLevelSetEvaluate, 5366, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__114)) __PYX_ERR(0, 5366, __pyx_L1_error)
51051 
51052  /* "ctransportCoefficients.pyx":5388
51053  * <double*> H.data,
51054  * <double*> dH.data)
51055  * def constantNormalVelocityLevelSetEvaluate(double b, # <<<<<<<<<<<<<<
51056  * np.ndarray x,
51057  * np.ndarray u,
51058  */
51059  __pyx_tuple__115 = PyTuple_Pack(10, __pyx_n_s_b, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_gradu, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_H, __pyx_n_s_dH); if (unlikely(!__pyx_tuple__115)) __PYX_ERR(0, 5388, __pyx_L1_error)
51060  __Pyx_GOTREF(__pyx_tuple__115);
51061  __Pyx_GIVEREF(__pyx_tuple__115);
51062  __pyx_codeobj__116 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__115, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_constantNormalVelocityLevelSetEv, 5388, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__116)) __PYX_ERR(0, 5388, __pyx_L1_error)
51063 
51064  /* "ctransportCoefficients.pyx":5410
51065  * <double*> H.data,
51066  * <double*> dH.data)
51067  * def unitSquareVortexLevelSetEvaluate(double t, # <<<<<<<<<<<<<<
51068  * np.ndarray x,
51069  * np.ndarray u,
51070  */
51071  __pyx_tuple__117 = PyTuple_Pack(10, __pyx_n_s_t, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_gradu, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_H, __pyx_n_s_dH); if (unlikely(!__pyx_tuple__117)) __PYX_ERR(0, 5410, __pyx_L1_error)
51072  __Pyx_GOTREF(__pyx_tuple__117);
51073  __Pyx_GIVEREF(__pyx_tuple__117);
51074  __pyx_codeobj__118 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__117, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_unitSquareVortexLevelSetEvaluate, 5410, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__118)) __PYX_ERR(0, 5410, __pyx_L1_error)
51075 
51076  /* "ctransportCoefficients.pyx":5432
51077  * <double*> H.data,
51078  * <double*> dH.data)
51079  * def unitSquareRotationLevelSetEvaluate(double t, # <<<<<<<<<<<<<<
51080  * np.ndarray x,
51081  * np.ndarray u,
51082  */
51083  __pyx_tuple__119 = PyTuple_Pack(10, __pyx_n_s_t, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_gradu, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_H, __pyx_n_s_dH); if (unlikely(!__pyx_tuple__119)) __PYX_ERR(0, 5432, __pyx_L1_error)
51084  __Pyx_GOTREF(__pyx_tuple__119);
51085  __Pyx_GIVEREF(__pyx_tuple__119);
51086  __pyx_codeobj__120 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__119, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_unitSquareRotationLevelSetEvalua, 5432, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__120)) __PYX_ERR(0, 5432, __pyx_L1_error)
51087 
51088  /* "ctransportCoefficients.pyx":5454
51089  * <double*> H.data,
51090  * <double*> dH.data)
51091  * def HJBurgersEvaluate(const double offset, # <<<<<<<<<<<<<<
51092  * np.ndarray u,
51093  * np.ndarray gradu,
51094  */
51095  __pyx_tuple__121 = PyTuple_Pack(7, __pyx_n_s_offset, __pyx_n_s_u, __pyx_n_s_gradu, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_H, __pyx_n_s_dH); if (unlikely(!__pyx_tuple__121)) __PYX_ERR(0, 5454, __pyx_L1_error)
51096  __Pyx_GOTREF(__pyx_tuple__121);
51097  __Pyx_GIVEREF(__pyx_tuple__121);
51098  __pyx_codeobj__122 = (PyObject*)__Pyx_PyCode_New(7, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__121, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_HJBurgersEvaluate, 5454, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__122)) __PYX_ERR(0, 5454, __pyx_L1_error)
51099 
51100  /* "ctransportCoefficients.pyx":5470
51101  * <double*> H.data,
51102  * <double*> dH.data)
51103  * def conservativeHeadRichardsMualemVanGenuchtenHomEvaluate(const double rho, # <<<<<<<<<<<<<<
51104  * const double beta,
51105  * np.ndarray gravity,
51106  */
51107  __pyx_tuple__123 = PyTuple_Pack(19, __pyx_n_s_rho, __pyx_n_s_beta, __pyx_n_s_gravity, __pyx_n_s_x, __pyx_n_s_alpha, __pyx_n_s_n, __pyx_n_s_m, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_phi, __pyx_n_s_dphi); if (unlikely(!__pyx_tuple__123)) __PYX_ERR(0, 5470, __pyx_L1_error)
51108  __Pyx_GOTREF(__pyx_tuple__123);
51109  __Pyx_GIVEREF(__pyx_tuple__123);
51110  __pyx_codeobj__124 = (PyObject*)__Pyx_PyCode_New(19, 0, 19, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__123, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsMualemVa, 5470, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__124)) __PYX_ERR(0, 5470, __pyx_L1_error)
51111 
51112  /* "ctransportCoefficients.pyx":5510
51113  * <double*> phi.data,
51114  * <double*> dphi.data)
51115  * def conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate(const double rho, # <<<<<<<<<<<<<<
51116  * np.ndarray gravity,
51117  * const double alpha,
51118  */
51119  __pyx_tuple__125 = PyTuple_Pack(16, __pyx_n_s_rho, __pyx_n_s_gravity, __pyx_n_s_alpha, __pyx_n_s_n, __pyx_n_s_m, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_dV, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da); if (unlikely(!__pyx_tuple__125)) __PYX_ERR(0, 5510, __pyx_L1_error)
51120  __Pyx_GOTREF(__pyx_tuple__125);
51121  __Pyx_GIVEREF(__pyx_tuple__125);
51122  __pyx_codeobj__126 = (PyObject*)__Pyx_PyCode_New(16, 0, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__125, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsL2projMu, 5510, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__126)) __PYX_ERR(0, 5510, __pyx_L1_error)
51123 
51124  /* "ctransportCoefficients.pyx":5546
51125  * <double*> a.data,
51126  * <double*> da.data)
51127  * def conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate(const double rho, # <<<<<<<<<<<<<<
51128  * np.ndarray gravity,
51129  * const double alpha,
51130  */
51131  __pyx_tuple__127 = PyTuple_Pack(16, __pyx_n_s_rho, __pyx_n_s_gravity, __pyx_n_s_alpha, __pyx_n_s_n, __pyx_n_s_m, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_dV, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da); if (unlikely(!__pyx_tuple__127)) __PYX_ERR(0, 5546, __pyx_L1_error)
51132  __Pyx_GOTREF(__pyx_tuple__127);
51133  __Pyx_GIVEREF(__pyx_tuple__127);
51134  __pyx_codeobj__128 = (PyObject*)__Pyx_PyCode_New(16, 0, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__127, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsL2projBn, 5546, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__128)) __PYX_ERR(0, 5546, __pyx_L1_error)
51135 
51136  /* "ctransportCoefficients.pyx":5583
51137  * <double*> a.data,
51138  * <double*> da.data)
51139  * def conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate(const double rho, # <<<<<<<<<<<<<<
51140  * np.ndarray gravity,
51141  * np.ndarray alpha,
51142  */
51143  __pyx_tuple__129 = PyTuple_Pack(15, __pyx_n_s_rho, __pyx_n_s_gravity, __pyx_n_s_alpha, __pyx_n_s_n, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_dV, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da); if (unlikely(!__pyx_tuple__129)) __PYX_ERR(0, 5583, __pyx_L1_error)
51144  __Pyx_GOTREF(__pyx_tuple__129);
51145  __Pyx_GIVEREF(__pyx_tuple__129);
51146  __pyx_codeobj__130 = (PyObject*)__Pyx_PyCode_New(15, 0, 15, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__129, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsL2projMu_2, 5583, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__130)) __PYX_ERR(0, 5583, __pyx_L1_error)
51147 
51148  /* "ctransportCoefficients.pyx":5616
51149  * <double*> a.data,
51150  * <double*> da.data)
51151  * def conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate(const double rho, # <<<<<<<<<<<<<<
51152  * np.ndarray gravity,
51153  * np.ndarray x,
51154  */
51155  __pyx_tuple__131 = PyTuple_Pack(18, __pyx_n_s_rho, __pyx_n_s_gravity, __pyx_n_s_x, __pyx_n_s_alpha, __pyx_n_s_n, __pyx_n_s_m, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_phi, __pyx_n_s_dphi); if (unlikely(!__pyx_tuple__131)) __PYX_ERR(0, 5616, __pyx_L1_error)
51156  __Pyx_GOTREF(__pyx_tuple__131);
51157  __Pyx_GIVEREF(__pyx_tuple__131);
51158  __pyx_codeobj__132 = (PyObject*)__Pyx_PyCode_New(18, 0, 18, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__131, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeTotalHeadRichardsMua, 5616, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__132)) __PYX_ERR(0, 5616, __pyx_L1_error)
51159 
51160  /* "ctransportCoefficients.pyx":5654
51161  * <double*> phi.data,
51162  * <double*> dphi.data)
51163  * def conservativeHeadRichardsMualemVanGenuchten_sd_het(np.ndarray rowptr, # <<<<<<<<<<<<<<
51164  * np.ndarray colind,
51165  * np.ndarray materialTypes,
51166  */
51167  __pyx_tuple__133 = PyTuple_Pack(21, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_materialTypes, __pyx_n_s_rho, __pyx_n_s_beta, __pyx_n_s_gravity, __pyx_n_s_alpha, __pyx_n_s_n, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_vol_frac, __pyx_n_s_linearize_at_zero, __pyx_n_s_pc_eps); if (unlikely(!__pyx_tuple__133)) __PYX_ERR(0, 5654, __pyx_L1_error)
51168  __Pyx_GOTREF(__pyx_tuple__133);
51169  __Pyx_GIVEREF(__pyx_tuple__133);
51170  __pyx_codeobj__134 = (PyObject*)__Pyx_PyCode_New(21, 0, 21, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__133, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsMualemVa_2, 5654, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__134)) __PYX_ERR(0, 5654, __pyx_L1_error)
51171 
51172  /* "ctransportCoefficients.pyx":5723
51173  * <double*> da.data,
51174  * <double*> vol_frac.data)
51175  * def conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2(np.ndarray materialTypes, # <<<<<<<<<<<<<<
51176  * const double rho,
51177  * const double beta,
51178  */
51179  __pyx_tuple__135 = PyTuple_Pack(16, __pyx_n_s_materialTypes, __pyx_n_s_rho, __pyx_n_s_beta, __pyx_n_s_gravity, __pyx_n_s_alpha, __pyx_n_s_n, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da); if (unlikely(!__pyx_tuple__135)) __PYX_ERR(0, 5723, __pyx_L1_error)
51180  __Pyx_GOTREF(__pyx_tuple__135);
51181  __Pyx_GIVEREF(__pyx_tuple__135);
51182  __pyx_codeobj__136 = (PyObject*)__Pyx_PyCode_New(16, 0, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__135, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsMualemVa_3, 5723, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__136)) __PYX_ERR(0, 5723, __pyx_L1_error)
51183 
51184  /* "ctransportCoefficients.pyx":5758
51185  * <double*> a.data,
51186  * <double*> da.data)
51187  * def seepageBrezis(np.ndarray materialTypes, # <<<<<<<<<<<<<<
51188  * const double epsFact,
51189  * const double rho,
51190  */
51191  __pyx_tuple__137 = PyTuple_Pack(18, __pyx_n_s_materialTypes, __pyx_n_s_epsFact, __pyx_n_s_rho, __pyx_n_s_beta, __pyx_n_s_elementDiameter, __pyx_n_s_gravity, __pyx_n_s_alpha, __pyx_n_s_n, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da); if (unlikely(!__pyx_tuple__137)) __PYX_ERR(0, 5758, __pyx_L1_error)
51192  __Pyx_GOTREF(__pyx_tuple__137);
51193  __Pyx_GIVEREF(__pyx_tuple__137);
51194  __pyx_codeobj__138 = (PyObject*)__Pyx_PyCode_New(18, 0, 18, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__137, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_seepageBrezis, 5758, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__138)) __PYX_ERR(0, 5758, __pyx_L1_error)
51195 
51196  /* "ctransportCoefficients.pyx":5797
51197  * <double*> a.data,
51198  * <double*> da.data)
51199  * def conservativeHeadRichardsMualemVanGenuchtenHetEvaluate(const double rho, # <<<<<<<<<<<<<<
51200  * np.ndarray gravity,
51201  * np.ndarray alpha,
51202  */
51203  __pyx_tuple__139 = PyTuple_Pack(14, __pyx_n_s_rho, __pyx_n_s_gravity, __pyx_n_s_alpha, __pyx_n_s_n, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da); if (unlikely(!__pyx_tuple__139)) __PYX_ERR(0, 5797, __pyx_L1_error)
51204  __Pyx_GOTREF(__pyx_tuple__139);
51205  __Pyx_GIVEREF(__pyx_tuple__139);
51206  __pyx_codeobj__140 = (PyObject*)__Pyx_PyCode_New(14, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__139, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsMualemVa_4, 5797, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__140)) __PYX_ERR(0, 5797, __pyx_L1_error)
51207 
51208  /* "ctransportCoefficients.pyx":5827
51209  * <double*> a.data,
51210  * <double*> da.data)
51211  * def conservativeSatRichardsMualemVanGenuchtenHomEvaluate(const double rho, # <<<<<<<<<<<<<<
51212  * np.ndarray gravity,
51213  * np.ndarray x,
51214  */
51215  __pyx_tuple__141 = PyTuple_Pack(18, __pyx_n_s_rho, __pyx_n_s_gravity, __pyx_n_s_x, __pyx_n_s_alpha, __pyx_n_s_n, __pyx_n_s_m, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_phi, __pyx_n_s_dphi); if (unlikely(!__pyx_tuple__141)) __PYX_ERR(0, 5827, __pyx_L1_error)
51216  __Pyx_GOTREF(__pyx_tuple__141);
51217  __Pyx_GIVEREF(__pyx_tuple__141);
51218  __pyx_codeobj__142 = (PyObject*)__Pyx_PyCode_New(18, 0, 18, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__141, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeSatRichardsMualemVan, 5827, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__142)) __PYX_ERR(0, 5827, __pyx_L1_error)
51219 
51220  /* "ctransportCoefficients.pyx":5865
51221  * <double*> phi.data,
51222  * <double*> dphi.data)
51223  * def conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate(const double rho, # <<<<<<<<<<<<<<
51224  * np.ndarray gravity,
51225  * np.ndarray Lambda,
51226  */
51227  __pyx_tuple__143 = PyTuple_Pack(14, __pyx_n_s_rho, __pyx_n_s_gravity, __pyx_n_s_Lambda, __pyx_n_s_pd, __pyx_n_s_thetaR, __pyx_n_s_thetaS, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da); if (unlikely(!__pyx_tuple__143)) __PYX_ERR(0, 5865, __pyx_L1_error)
51228  __Pyx_GOTREF(__pyx_tuple__143);
51229  __Pyx_GIVEREF(__pyx_tuple__143);
51230  __pyx_codeobj__144 = (PyObject*)__Pyx_PyCode_New(14, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__143, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsBrooksCo, 5865, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__144)) __PYX_ERR(0, 5865, __pyx_L1_error)
51231 
51232  /* "ctransportCoefficients.pyx":5895
51233  * <double*> a.data,
51234  * <double*> da.data)
51235  * def conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate(const double rho, # <<<<<<<<<<<<<<
51236  * const double beta,
51237  * np.ndarray gravity,
51238  */
51239  __pyx_tuple__145 = PyTuple_Pack(15, __pyx_n_s_rho, __pyx_n_s_beta, __pyx_n_s_gravity, __pyx_n_s_Lambda, __pyx_n_s_pd, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da); if (unlikely(!__pyx_tuple__145)) __PYX_ERR(0, 5895, __pyx_L1_error)
51240  __Pyx_GOTREF(__pyx_tuple__145);
51241  __Pyx_GIVEREF(__pyx_tuple__145);
51242  __pyx_codeobj__146 = (PyObject*)__Pyx_PyCode_New(15, 0, 15, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__145, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsBrooksCo_2, 5895, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__146)) __PYX_ERR(0, 5895, __pyx_L1_error)
51243 
51244  /* "ctransportCoefficients.pyx":5927
51245  * <double*> a.data,
51246  * <double*> da.data)
51247  * def conservativeSatRichardsBrooksCoreyBurdineHomEvaluate(const int nPoints, # <<<<<<<<<<<<<<
51248  * const int nSpace,
51249  * const double rho,
51250  */
51251  __pyx_tuple__147 = PyTuple_Pack(18, __pyx_n_s_nPoints, __pyx_n_s_nSpace, __pyx_n_s_rho, __pyx_n_s_gravity, __pyx_n_s_Lambda, __pyx_n_s_pd, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_phi, __pyx_n_s_dphi); if (unlikely(!__pyx_tuple__147)) __PYX_ERR(0, 5927, __pyx_L1_error)
51252  __Pyx_GOTREF(__pyx_tuple__147);
51253  __Pyx_GIVEREF(__pyx_tuple__147);
51254  __pyx_codeobj__148 = (PyObject*)__Pyx_PyCode_New(18, 0, 18, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__147, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeSatRichardsBrooksCor, 5927, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__148)) __PYX_ERR(0, 5927, __pyx_L1_error)
51255 
51256  /* "ctransportCoefficients.pyx":5963
51257  * <double*> phi.data,
51258  * <double*> dphi.data)
51259  * def conservativeHeadRichardsBCBfromMVGHomEvaluate(const double rho, # <<<<<<<<<<<<<<
51260  * np.ndarray gravity,
51261  * const double alpha,
51262  */
51263  __pyx_tuple__149 = PyTuple_Pack(15, __pyx_n_s_rho, __pyx_n_s_gravity, __pyx_n_s_alpha, __pyx_n_s_n, __pyx_n_s_m, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da); if (unlikely(!__pyx_tuple__149)) __PYX_ERR(0, 5963, __pyx_L1_error)
51264  __Pyx_GOTREF(__pyx_tuple__149);
51265  __Pyx_GIVEREF(__pyx_tuple__149);
51266  __pyx_codeobj__150 = (PyObject*)__Pyx_PyCode_New(15, 0, 15, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__149, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsBCBfromM, 5963, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__150)) __PYX_ERR(0, 5963, __pyx_L1_error)
51267 
51268  /* "ctransportCoefficients.pyx":5995
51269  * <double*> a.data,
51270  * <double*> da.data)
51271  * def LinearElasticity_1D_Evaluate(const double E, # <<<<<<<<<<<<<<
51272  * const double nu,
51273  * np.ndarray g,
51274  */
51275  __pyx_tuple__151 = PyTuple_Pack(6, __pyx_n_s_E, __pyx_n_s_nu, __pyx_n_s_g, __pyx_n_s_u, __pyx_n_s_uu_diff_ten, __pyx_n_s_u_force); if (unlikely(!__pyx_tuple__151)) __PYX_ERR(0, 5995, __pyx_L1_error)
51276  __Pyx_GOTREF(__pyx_tuple__151);
51277  __Pyx_GIVEREF(__pyx_tuple__151);
51278  __pyx_codeobj__152 = (PyObject*)__Pyx_PyCode_New(6, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__151, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_LinearElasticity_1D_Evaluate, 5995, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__152)) __PYX_ERR(0, 5995, __pyx_L1_error)
51279 
51280  /* "ctransportCoefficients.pyx":6008
51281  * <double*> uu_diff_ten.data,
51282  * <double*> u_force.data)
51283  * def LinearElasticity_2D_Evaluate(const double E, # <<<<<<<<<<<<<<
51284  * const double nu,
51285  * np.ndarray g,
51286  */
51287  __pyx_tuple__153 = PyTuple_Pack(11, __pyx_n_s_E, __pyx_n_s_nu, __pyx_n_s_g, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_uu_diff_ten, __pyx_n_s_uv_diff_ten, __pyx_n_s_vu_diff_ten, __pyx_n_s_vv_diff_ten, __pyx_n_s_u_force, __pyx_n_s_v_force); if (unlikely(!__pyx_tuple__153)) __PYX_ERR(0, 6008, __pyx_L1_error)
51288  __Pyx_GOTREF(__pyx_tuple__153);
51289  __Pyx_GIVEREF(__pyx_tuple__153);
51290  __pyx_codeobj__154 = (PyObject*)__Pyx_PyCode_New(11, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__153, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_LinearElasticity_2D_Evaluate, 6008, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__154)) __PYX_ERR(0, 6008, __pyx_L1_error)
51291 
51292  /* "ctransportCoefficients.pyx":6031
51293  * <double*> u_force.data,
51294  * <double*> v_force.data)
51295  * def LinearElasticity_3D_Evaluate(const double E, # <<<<<<<<<<<<<<
51296  * const double nu,
51297  * np.ndarray g,
51298  */
51299  __pyx_tuple__155 = PyTuple_Pack(18, __pyx_n_s_E, __pyx_n_s_nu, __pyx_n_s_g, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_uu_diff_ten, __pyx_n_s_uv_diff_ten, __pyx_n_s_uw_diff_ten, __pyx_n_s_vu_diff_ten, __pyx_n_s_vv_diff_ten, __pyx_n_s_vw_diff_ten, __pyx_n_s_wu_diff_ten, __pyx_n_s_wv_diff_ten, __pyx_n_s_ww_diff_ten, __pyx_n_s_u_force, __pyx_n_s_v_force, __pyx_n_s_w_force); if (unlikely(!__pyx_tuple__155)) __PYX_ERR(0, 6031, __pyx_L1_error)
51300  __Pyx_GOTREF(__pyx_tuple__155);
51301  __Pyx_GIVEREF(__pyx_tuple__155);
51302  __pyx_codeobj__156 = (PyObject*)__Pyx_PyCode_New(18, 0, 18, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__155, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_LinearElasticity_3D_Evaluate, 6031, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__156)) __PYX_ERR(0, 6031, __pyx_L1_error)
51303 
51304  /* "ctransportCoefficients.pyx":6068
51305  * <double*> v_force.data,
51306  * <double*> w_force.data)
51307  * def MovingMesh_2D_Evaluate(const double E0, # <<<<<<<<<<<<<<
51308  * const double nu,
51309  * np.ndarray g,
51310  */
51311  __pyx_tuple__157 = PyTuple_Pack(12, __pyx_n_s_E0, __pyx_n_s_nu, __pyx_n_s_g, __pyx_n_s_det_J, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_uu_diff_ten, __pyx_n_s_uv_diff_ten, __pyx_n_s_vu_diff_ten, __pyx_n_s_vv_diff_ten, __pyx_n_s_u_force, __pyx_n_s_v_force); if (unlikely(!__pyx_tuple__157)) __PYX_ERR(0, 6068, __pyx_L1_error)
51312  __Pyx_GOTREF(__pyx_tuple__157);
51313  __Pyx_GIVEREF(__pyx_tuple__157);
51314  __pyx_codeobj__158 = (PyObject*)__Pyx_PyCode_New(12, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__157, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_MovingMesh_2D_Evaluate, 6068, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__158)) __PYX_ERR(0, 6068, __pyx_L1_error)
51315 
51316  /* "ctransportCoefficients.pyx":6093
51317  * <double*> u_force.data,
51318  * <double*> v_force.data)
51319  * def MovingMesh_3D_Evaluate(const double E0, # <<<<<<<<<<<<<<
51320  * const double nu,
51321  * np.ndarray g,
51322  */
51323  __pyx_tuple__159 = PyTuple_Pack(19, __pyx_n_s_E0, __pyx_n_s_nu, __pyx_n_s_g, __pyx_n_s_det_J, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_uu_diff_ten, __pyx_n_s_uv_diff_ten, __pyx_n_s_uw_diff_ten, __pyx_n_s_vu_diff_ten, __pyx_n_s_vv_diff_ten, __pyx_n_s_vw_diff_ten, __pyx_n_s_wu_diff_ten, __pyx_n_s_wv_diff_ten, __pyx_n_s_ww_diff_ten, __pyx_n_s_u_force, __pyx_n_s_v_force, __pyx_n_s_w_force); if (unlikely(!__pyx_tuple__159)) __PYX_ERR(0, 6093, __pyx_L1_error)
51324  __Pyx_GOTREF(__pyx_tuple__159);
51325  __Pyx_GIVEREF(__pyx_tuple__159);
51326  __pyx_codeobj__160 = (PyObject*)__Pyx_PyCode_New(19, 0, 19, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__159, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_MovingMesh_3D_Evaluate, 6093, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__160)) __PYX_ERR(0, 6093, __pyx_L1_error)
51327 
51328  /* "ctransportCoefficients.pyx":6132
51329  * <double*> v_force.data,
51330  * <double*> w_force.data)
51331  * def MovingMesh_1D_Evaluate(const double E0, # <<<<<<<<<<<<<<
51332  * const double nu,
51333  * np.ndarray g,
51334  */
51335  __pyx_tuple__161 = PyTuple_Pack(7, __pyx_n_s_E0, __pyx_n_s_nu, __pyx_n_s_g, __pyx_n_s_det_J, __pyx_n_s_u, __pyx_n_s_uu_diff_ten, __pyx_n_s_u_force); if (unlikely(!__pyx_tuple__161)) __PYX_ERR(0, 6132, __pyx_L1_error)
51336  __Pyx_GOTREF(__pyx_tuple__161);
51337  __Pyx_GIVEREF(__pyx_tuple__161);
51338  __pyx_codeobj__162 = (PyObject*)__Pyx_PyCode_New(7, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__161, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_MovingMesh_1D_Evaluate, 6132, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__162)) __PYX_ERR(0, 6132, __pyx_L1_error)
51339 
51340  /* "ctransportCoefficients.pyx":6147
51341  * <double*> uu_diff_ten.data,
51342  * <double*> u_force.data)
51343  * def levelSetConservationCoefficientsEvaluate(double epsHeaviside, # <<<<<<<<<<<<<<
51344  * double epsDirac,
51345  * double epsDiffusion,
51346  */
51347  __pyx_tuple__163 = PyTuple_Pack(9, __pyx_n_s_epsHeaviside, __pyx_n_s_epsDirac, __pyx_n_s_epsDiffusion, __pyx_n_s_u_ls, __pyx_n_s_H_vof, __pyx_n_s_u, __pyx_n_s_r, __pyx_n_s_dr, __pyx_n_s_a); if (unlikely(!__pyx_tuple__163)) __PYX_ERR(0, 6147, __pyx_L1_error)
51348  __Pyx_GOTREF(__pyx_tuple__163);
51349  __Pyx_GIVEREF(__pyx_tuple__163);
51350  __pyx_codeobj__164 = (PyObject*)__Pyx_PyCode_New(9, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__163, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_levelSetConservationCoefficients, 6147, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__164)) __PYX_ERR(0, 6147, __pyx_L1_error)
51351 
51352  /* "ctransportCoefficients.pyx":6167
51353  * <double*> dr.data,
51354  * <double*> a.data)
51355  * def levelSetConservationCoefficientsEvaluate_sd(double epsHeaviside, # <<<<<<<<<<<<<<
51356  * double epsDirac,
51357  * np.ndarray u_ls,
51358  */
51359  __pyx_tuple__165 = PyTuple_Pack(7, __pyx_n_s_epsHeaviside, __pyx_n_s_epsDirac, __pyx_n_s_u_ls, __pyx_n_s_H_vof, __pyx_n_s_u, __pyx_n_s_r, __pyx_n_s_dr); if (unlikely(!__pyx_tuple__165)) __PYX_ERR(0, 6167, __pyx_L1_error)
51360  __Pyx_GOTREF(__pyx_tuple__165);
51361  __Pyx_GIVEREF(__pyx_tuple__165);
51362  __pyx_codeobj__166 = (PyObject*)__Pyx_PyCode_New(7, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__165, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_levelSetConservationCoefficients_2, 6167, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__166)) __PYX_ERR(0, 6167, __pyx_L1_error)
51363 
51364  /* "ctransportCoefficients.pyx":6182
51365  * <double*> r.data,
51366  * <double*> dr.data)
51367  * def evaluateBuckleyLeverettLiuExample(np.ndarray x, # <<<<<<<<<<<<<<
51368  * np.ndarray u,
51369  * np.ndarray m,
51370  */
51371  __pyx_tuple__167 = PyTuple_Pack(7, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a); if (unlikely(!__pyx_tuple__167)) __PYX_ERR(0, 6182, __pyx_L1_error)
51372  __Pyx_GOTREF(__pyx_tuple__167);
51373  __Pyx_GIVEREF(__pyx_tuple__167);
51374  __pyx_codeobj__168 = (PyObject*)__Pyx_PyCode_New(7, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__167, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_evaluateBuckleyLeverettLiuExampl, 6182, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__168)) __PYX_ERR(0, 6182, __pyx_L1_error)
51375 
51376  /* "ctransportCoefficients.pyx":6198
51377  * <double*> df.data,
51378  * <double*> a.data)
51379  * def VolumeAveragedNavierStokesFullDevStress_2D_Evaluate(const double rho, # <<<<<<<<<<<<<<
51380  * const double mu,
51381  * np.ndarray meanGrainSize,
51382  */
51383  __pyx_tuple__169 = PyTuple_Pack(36, __pyx_n_s_rho, __pyx_n_s_mu, __pyx_n_s_meanGrainSize, __pyx_n_s_g, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_porosity, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_dmom_u_source_u, __pyx_n_s_dmom_u_source_v, __pyx_n_s_dmom_v_source_u, __pyx_n_s_dmom_v_source_v, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p); if (unlikely(!__pyx_tuple__169)) __PYX_ERR(0, 6198, __pyx_L1_error)
51384  __Pyx_GOTREF(__pyx_tuple__169);
51385  __Pyx_GIVEREF(__pyx_tuple__169);
51386  __pyx_codeobj__170 = (PyObject*)__Pyx_PyCode_New(36, 0, 36, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__169, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_VolumeAveragedNavierStokesFullDe, 6198, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__170)) __PYX_ERR(0, 6198, __pyx_L1_error)
51387 
51388  /* "ctransportCoefficients.pyx":6271
51389  * <double*> mom_v_ham.data,
51390  * <double*> dmom_v_ham_grad_p.data)
51391  * def VolumeAveragedNavierStokesFullDevStress_3D_Evaluate(const double rho, # <<<<<<<<<<<<<<
51392  * const double mu,
51393  * np.ndarray meanGrainSize,
51394  */
51395  __pyx_tuple__171 = PyTuple_Pack(59, __pyx_n_s_rho, __pyx_n_s_mu, __pyx_n_s_meanGrainSize, __pyx_n_s_g, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_porosity, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_w_acc_w, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_dmass_adv_w, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_dmom_u_adv_w, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_dmom_v_adv_w, __pyx_n_s_mom_w_adv, __pyx_n_s_dmom_w_adv_u, __pyx_n_s_dmom_w_adv_v, __pyx_n_s_dmom_w_adv_w, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_uw_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_vw_diff_ten, __pyx_n_s_mom_wu_diff_ten, __pyx_n_s_mom_wv_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source, __pyx_n_s_dmom_u_source_u, __pyx_n_s_dmom_u_source_v, __pyx_n_s_dmom_u_source_w, __pyx_n_s_dmom_v_source_u, __pyx_n_s_dmom_v_source_v, __pyx_n_s_dmom_v_source_w, __pyx_n_s_dmom_w_source_u, __pyx_n_s_dmom_w_source_v, __pyx_n_s_dmom_w_source_w, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p, __pyx_n_s_mom_w_ham, __pyx_n_s_dmom_w_ham_grad_p); if (unlikely(!__pyx_tuple__171)) __PYX_ERR(0, 6271, __pyx_L1_error)
51396  __Pyx_GOTREF(__pyx_tuple__171);
51397  __Pyx_GIVEREF(__pyx_tuple__171);
51398  __pyx_codeobj__172 = (PyObject*)__Pyx_PyCode_New(59, 0, 59, 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_ctransportCoefficients_p, __pyx_n_s_VolumeAveragedNavierStokesFullDe_2, 6271, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__172)) __PYX_ERR(0, 6271, __pyx_L1_error)
51399 
51400  /* "ctransportCoefficients.pyx":6390
51401  * <double*> mom_w_ham.data,
51402  * <double*> dmom_w_ham_grad_p.data)
51403  * def VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate(const int killNonlinearDrag, # <<<<<<<<<<<<<<
51404  * const double eps_rho,
51405  * const double eps_mu,
51406  */
51407  __pyx_tuple__173 = PyTuple_Pack(45, __pyx_n_s_killNonlinearDrag, __pyx_n_s_eps_rho, __pyx_n_s_eps_mu, __pyx_n_s_sigma, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_meanGrainSize, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_n, __pyx_n_s_kappa, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_porosity, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_dmom_u_source_u, __pyx_n_s_dmom_u_source_v, __pyx_n_s_dmom_v_source_u, __pyx_n_s_dmom_v_source_v, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p); if (unlikely(!__pyx_tuple__173)) __PYX_ERR(0, 6390, __pyx_L1_error)
51408  __Pyx_GOTREF(__pyx_tuple__173);
51409  __Pyx_GIVEREF(__pyx_tuple__173);
51410  __pyx_codeobj__174 = (PyObject*)__Pyx_PyCode_New(45, 0, 45, 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_ctransportCoefficients_p, __pyx_n_s_VolumeAveragedTwophaseNavierStok, 6390, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__174)) __PYX_ERR(0, 6390, __pyx_L1_error)
51411 
51412  /* "ctransportCoefficients.pyx":6481
51413  * <double*> mom_v_ham.data,
51414  * <double*> dmom_v_ham_grad_p.data)
51415  * def VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(const int killNonlinearDrag, # <<<<<<<<<<<<<<
51416  * const double eps_rho,
51417  * const double eps_mu,
51418  */
51419  __pyx_tuple__175 = PyTuple_Pack(45, __pyx_n_s_killNonlinearDrag, __pyx_n_s_eps_rho, __pyx_n_s_eps_mu, __pyx_n_s_sigma, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_meanGrainSize, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_n, __pyx_n_s_kappa, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_porosity, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_dmom_u_source_u, __pyx_n_s_dmom_u_source_v, __pyx_n_s_dmom_v_source_u, __pyx_n_s_dmom_v_source_v, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p); if (unlikely(!__pyx_tuple__175)) __PYX_ERR(0, 6481, __pyx_L1_error)
51420  __Pyx_GOTREF(__pyx_tuple__175);
51421  __Pyx_GIVEREF(__pyx_tuple__175);
51422  __pyx_codeobj__176 = (PyObject*)__Pyx_PyCode_New(45, 0, 45, 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_ctransportCoefficients_p, __pyx_n_s_VolumeAveragedTwophaseNavierStok_2, 6481, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__176)) __PYX_ERR(0, 6481, __pyx_L1_error)
51423 
51424  /* "ctransportCoefficients.pyx":6572
51425  * <double*> mom_v_ham.data,
51426  * <double*> dmom_v_ham_grad_p.data)
51427  * def VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate(const int killNonlinearDrag, # <<<<<<<<<<<<<<
51428  * const double eps_rho,
51429  * const double eps_mu,
51430  */
51431  __pyx_tuple__177 = PyTuple_Pack(68, __pyx_n_s_killNonlinearDrag, __pyx_n_s_eps_rho, __pyx_n_s_eps_mu, __pyx_n_s_sigma, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_meanGrainSize, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_n, __pyx_n_s_kappa, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_porosity, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_w_acc_w, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_dmass_adv_w, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_dmom_u_adv_w, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_dmom_v_adv_w, __pyx_n_s_mom_w_adv, __pyx_n_s_dmom_w_adv_u, __pyx_n_s_dmom_w_adv_v, __pyx_n_s_dmom_w_adv_w, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_uw_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_vw_diff_ten, __pyx_n_s_mom_wu_diff_ten, __pyx_n_s_mom_wv_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source, __pyx_n_s_dmom_u_source_u, __pyx_n_s_dmom_u_source_v, __pyx_n_s_dmom_u_source_w, __pyx_n_s_dmom_v_source_u, __pyx_n_s_dmom_v_source_v, __pyx_n_s_dmom_v_source_w, __pyx_n_s_dmom_w_source_u, __pyx_n_s_dmom_w_source_v, __pyx_n_s_dmom_w_source_w, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p, __pyx_n_s_mom_w_ham, __pyx_n_s_dmom_w_ham_grad_p); if (unlikely(!__pyx_tuple__177)) __PYX_ERR(0, 6572, __pyx_L1_error)
51432  __Pyx_GOTREF(__pyx_tuple__177);
51433  __Pyx_GIVEREF(__pyx_tuple__177);
51434  __pyx_codeobj__178 = (PyObject*)__Pyx_PyCode_New(68, 0, 68, 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_ctransportCoefficients_p, __pyx_n_s_VolumeAveragedTwophaseNavierStok_3, 6572, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__178)) __PYX_ERR(0, 6572, __pyx_L1_error)
51435 
51436  /* "ctransportCoefficients.pyx":6709
51437  * <double*> mom_w_ham.data,
51438  * <double*> dmom_w_ham_grad_p.data)
51439  * def VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(const int killNonlinearDrag, # <<<<<<<<<<<<<<
51440  * const double eps_rho,
51441  * const double eps_mu,
51442  */
51443  __pyx_tuple__179 = PyTuple_Pack(68, __pyx_n_s_killNonlinearDrag, __pyx_n_s_eps_rho, __pyx_n_s_eps_mu, __pyx_n_s_sigma, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_meanGrainSize, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_n, __pyx_n_s_kappa, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_porosity, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_w_acc_w, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_dmass_adv_w, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_dmom_u_adv_w, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_dmom_v_adv_w, __pyx_n_s_mom_w_adv, __pyx_n_s_dmom_w_adv_u, __pyx_n_s_dmom_w_adv_v, __pyx_n_s_dmom_w_adv_w, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_uw_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_vw_diff_ten, __pyx_n_s_mom_wu_diff_ten, __pyx_n_s_mom_wv_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source, __pyx_n_s_dmom_u_source_u, __pyx_n_s_dmom_u_source_v, __pyx_n_s_dmom_u_source_w, __pyx_n_s_dmom_v_source_u, __pyx_n_s_dmom_v_source_v, __pyx_n_s_dmom_v_source_w, __pyx_n_s_dmom_w_source_u, __pyx_n_s_dmom_w_source_v, __pyx_n_s_dmom_w_source_w, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p, __pyx_n_s_mom_w_ham, __pyx_n_s_dmom_w_ham_grad_p); if (unlikely(!__pyx_tuple__179)) __PYX_ERR(0, 6709, __pyx_L1_error)
51444  __Pyx_GOTREF(__pyx_tuple__179);
51445  __Pyx_GIVEREF(__pyx_tuple__179);
51446  __pyx_codeobj__180 = (PyObject*)__Pyx_PyCode_New(68, 0, 68, 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_ctransportCoefficients_p, __pyx_n_s_VolumeAveragedTwophaseNavierStok_4, 6709, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__180)) __PYX_ERR(0, 6709, __pyx_L1_error)
51447 
51448  /* "ctransportCoefficients.pyx":6846
51449  * <double*> mom_w_ham.data,
51450  * <double*> dmom_w_ham_grad_p.data)
51451  * def VolumeAveragedVOFCoefficientsEvaluate(double eps, # <<<<<<<<<<<<<<
51452  * np.ndarray v,
51453  * np.ndarray phi,
51454  */
51455  __pyx_tuple__181 = PyTuple_Pack(9, __pyx_n_s_eps, __pyx_n_s_v, __pyx_n_s_phi, __pyx_n_s_porosity, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df); if (unlikely(!__pyx_tuple__181)) __PYX_ERR(0, 6846, __pyx_L1_error)
51456  __Pyx_GOTREF(__pyx_tuple__181);
51457  __Pyx_GIVEREF(__pyx_tuple__181);
51458  __pyx_codeobj__182 = (PyObject*)__Pyx_PyCode_New(9, 0, 9, 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_ctransportCoefficients_p, __pyx_n_s_VolumeAveragedVOFCoefficientsEva, 6846, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__182)) __PYX_ERR(0, 6846, __pyx_L1_error)
51459 
51460  /* "ctransportCoefficients.pyx":6866
51461  * <double*> f.data,
51462  * <double*> df.data)
51463  * def kEpsilon_2D_Evaluate(double sigma_k, # <<<<<<<<<<<<<<
51464  * double sigma_e,
51465  * double c_1,
51466  */
51467  __pyx_tuple__183 = PyTuple_Pack(36, __pyx_n_s_sigma_k, __pyx_n_s_sigma_e, __pyx_n_s_c_1, __pyx_n_s_c_2, __pyx_n_s_c_mu, __pyx_n_s_c_e, __pyx_n_s_nu, __pyx_n_s_velocity, __pyx_n_s_gradu, __pyx_n_s_gradv, __pyx_n_s_k, __pyx_n_s_epsilon, __pyx_n_s_m_k, __pyx_n_s_dm_k, __pyx_n_s_m_e, __pyx_n_s_dm_e, __pyx_n_s_phi_k, __pyx_n_s_dphi_k, __pyx_n_s_phi_e, __pyx_n_s_dphi_e, __pyx_n_s_f_k, __pyx_n_s_df_k, __pyx_n_s_f_e, __pyx_n_s_df_e, __pyx_n_s_a_k, __pyx_n_s_da_k_dk, __pyx_n_s_da_k_de, __pyx_n_s_a_e, __pyx_n_s_da_e_dk, __pyx_n_s_da_e_de, __pyx_n_s_r_k, __pyx_n_s_dr_k_dk, __pyx_n_s_dr_k_de, __pyx_n_s_r_e, __pyx_n_s_dr_e_dk, __pyx_n_s_dr_e_de); if (unlikely(!__pyx_tuple__183)) __PYX_ERR(0, 6866, __pyx_L1_error)
51468  __Pyx_GOTREF(__pyx_tuple__183);
51469  __Pyx_GIVEREF(__pyx_tuple__183);
51470  __pyx_codeobj__184 = (PyObject*)__Pyx_PyCode_New(36, 0, 36, 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_ctransportCoefficients_p, __pyx_n_s_kEpsilon_2D_Evaluate, 6866, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__184)) __PYX_ERR(0, 6866, __pyx_L1_error)
51471 
51472  /* "ctransportCoefficients.pyx":6940
51473  * <double*> dr_e_dk.data,
51474  * <double*> dr_e_de.data)
51475  * def kEpsilon_2D_Evaluate_sd(double sigma_k, # <<<<<<<<<<<<<<
51476  * double sigma_e,
51477  * double c_1,
51478  */
51479  __pyx_tuple__185 = PyTuple_Pack(36, __pyx_n_s_sigma_k, __pyx_n_s_sigma_e, __pyx_n_s_c_1, __pyx_n_s_c_2, __pyx_n_s_c_mu, __pyx_n_s_c_e, __pyx_n_s_nu, __pyx_n_s_velocity, __pyx_n_s_gradu, __pyx_n_s_gradv, __pyx_n_s_k, __pyx_n_s_epsilon, __pyx_n_s_m_k, __pyx_n_s_dm_k, __pyx_n_s_m_e, __pyx_n_s_dm_e, __pyx_n_s_phi_k, __pyx_n_s_dphi_k, __pyx_n_s_phi_e, __pyx_n_s_dphi_e, __pyx_n_s_f_k, __pyx_n_s_df_k, __pyx_n_s_f_e, __pyx_n_s_df_e, __pyx_n_s_a_k, __pyx_n_s_da_k_dk, __pyx_n_s_da_k_de, __pyx_n_s_a_e, __pyx_n_s_da_e_dk, __pyx_n_s_da_e_de, __pyx_n_s_r_k, __pyx_n_s_dr_k_dk, __pyx_n_s_dr_k_de, __pyx_n_s_r_e, __pyx_n_s_dr_e_dk, __pyx_n_s_dr_e_de); if (unlikely(!__pyx_tuple__185)) __PYX_ERR(0, 6940, __pyx_L1_error)
51480  __Pyx_GOTREF(__pyx_tuple__185);
51481  __Pyx_GIVEREF(__pyx_tuple__185);
51482  __pyx_codeobj__186 = (PyObject*)__Pyx_PyCode_New(36, 0, 36, 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_ctransportCoefficients_p, __pyx_n_s_kEpsilon_2D_Evaluate_sd, 6940, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__186)) __PYX_ERR(0, 6940, __pyx_L1_error)
51483 
51484  /* "ctransportCoefficients.pyx":7014
51485  * <double*> dr_e_dk.data,
51486  * <double*> dr_e_de.data)
51487  * def kEpsilon_3D_Evaluate_sd(double sigma_k, # <<<<<<<<<<<<<<
51488  * double sigma_e,
51489  * double c_1,
51490  */
51491  __pyx_tuple__187 = PyTuple_Pack(37, __pyx_n_s_sigma_k, __pyx_n_s_sigma_e, __pyx_n_s_c_1, __pyx_n_s_c_2, __pyx_n_s_c_mu, __pyx_n_s_c_e, __pyx_n_s_nu, __pyx_n_s_velocity, __pyx_n_s_gradu, __pyx_n_s_gradv, __pyx_n_s_gradw, __pyx_n_s_k, __pyx_n_s_epsilon, __pyx_n_s_m_k, __pyx_n_s_dm_k, __pyx_n_s_m_e, __pyx_n_s_dm_e, __pyx_n_s_phi_k, __pyx_n_s_dphi_k, __pyx_n_s_phi_e, __pyx_n_s_dphi_e, __pyx_n_s_f_k, __pyx_n_s_df_k, __pyx_n_s_f_e, __pyx_n_s_df_e, __pyx_n_s_a_k, __pyx_n_s_da_k_dk, __pyx_n_s_da_k_de, __pyx_n_s_a_e, __pyx_n_s_da_e_dk, __pyx_n_s_da_e_de, __pyx_n_s_r_k, __pyx_n_s_dr_k_dk, __pyx_n_s_dr_k_de, __pyx_n_s_r_e, __pyx_n_s_dr_e_dk, __pyx_n_s_dr_e_de); if (unlikely(!__pyx_tuple__187)) __PYX_ERR(0, 7014, __pyx_L1_error)
51492  __Pyx_GOTREF(__pyx_tuple__187);
51493  __Pyx_GIVEREF(__pyx_tuple__187);
51494  __pyx_codeobj__188 = (PyObject*)__Pyx_PyCode_New(37, 0, 37, 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_ctransportCoefficients_p, __pyx_n_s_kEpsilon_3D_Evaluate_sd, 7014, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__188)) __PYX_ERR(0, 7014, __pyx_L1_error)
51495 
51496  /* "ctransportCoefficients.pyx":7090
51497  * <double*> dr_e_dk.data,
51498  * <double*> dr_e_de.data)
51499  * def kEpsilon_3D_Evaluate(double sigma_k, # <<<<<<<<<<<<<<
51500  * double sigma_e,
51501  * double c_1,
51502  */
51503  __pyx_tuple__189 = PyTuple_Pack(37, __pyx_n_s_sigma_k, __pyx_n_s_sigma_e, __pyx_n_s_c_1, __pyx_n_s_c_2, __pyx_n_s_c_mu, __pyx_n_s_c_e, __pyx_n_s_nu, __pyx_n_s_velocity, __pyx_n_s_gradu, __pyx_n_s_gradv, __pyx_n_s_gradw, __pyx_n_s_k, __pyx_n_s_epsilon, __pyx_n_s_m_k, __pyx_n_s_dm_k, __pyx_n_s_m_e, __pyx_n_s_dm_e, __pyx_n_s_phi_k, __pyx_n_s_dphi_k, __pyx_n_s_phi_e, __pyx_n_s_dphi_e, __pyx_n_s_f_k, __pyx_n_s_df_k, __pyx_n_s_f_e, __pyx_n_s_df_e, __pyx_n_s_a_k, __pyx_n_s_da_k_dk, __pyx_n_s_da_k_de, __pyx_n_s_a_e, __pyx_n_s_da_e_dk, __pyx_n_s_da_e_de, __pyx_n_s_r_k, __pyx_n_s_dr_k_dk, __pyx_n_s_dr_k_de, __pyx_n_s_r_e, __pyx_n_s_dr_e_dk, __pyx_n_s_dr_e_de); if (unlikely(!__pyx_tuple__189)) __PYX_ERR(0, 7090, __pyx_L1_error)
51504  __Pyx_GOTREF(__pyx_tuple__189);
51505  __Pyx_GIVEREF(__pyx_tuple__189);
51506  __pyx_codeobj__190 = (PyObject*)__Pyx_PyCode_New(37, 0, 37, 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_ctransportCoefficients_p, __pyx_n_s_kEpsilon_3D_Evaluate, 7090, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__190)) __PYX_ERR(0, 7090, __pyx_L1_error)
51507 
51508  /* "ctransportCoefficients.pyx":7166
51509  * <double*> dr_e_dk.data,
51510  * <double*> dr_e_de.data)
51511  * def kEpsilon_k_2D_Evaluate_sd(double sigma_k, # <<<<<<<<<<<<<<
51512  * double c_mu,
51513  * double nu,
51514  */
51515  __pyx_tuple__191 = PyTuple_Pack(18, __pyx_n_s_sigma_k, __pyx_n_s_c_mu, __pyx_n_s_nu, __pyx_n_s_velocity, __pyx_n_s_gradu, __pyx_n_s_gradv, __pyx_n_s_k, __pyx_n_s_epsilon, __pyx_n_s_m_k, __pyx_n_s_dm_k, __pyx_n_s_phi_k, __pyx_n_s_dphi_k, __pyx_n_s_f_k, __pyx_n_s_df_k, __pyx_n_s_a_k, __pyx_n_s_da_k_dk, __pyx_n_s_r_k, __pyx_n_s_dr_k_dk); if (unlikely(!__pyx_tuple__191)) __PYX_ERR(0, 7166, __pyx_L1_error)
51516  __Pyx_GOTREF(__pyx_tuple__191);
51517  __Pyx_GIVEREF(__pyx_tuple__191);
51518  __pyx_codeobj__192 = (PyObject*)__Pyx_PyCode_New(18, 0, 18, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__191, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_kEpsilon_k_2D_Evaluate_sd, 7166, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__192)) __PYX_ERR(0, 7166, __pyx_L1_error)
51519 
51520  /* "ctransportCoefficients.pyx":7204
51521  * <double*> r_k.data,
51522  * <double*> dr_k_dk.data)
51523  * def kEpsilon_epsilon_2D_Evaluate_sd(double sigma_e, # <<<<<<<<<<<<<<
51524  * double c_1,
51525  * double c_2,
51526  */
51527  __pyx_tuple__193 = PyTuple_Pack(21, __pyx_n_s_sigma_e, __pyx_n_s_c_1, __pyx_n_s_c_2, __pyx_n_s_c_mu, __pyx_n_s_c_e, __pyx_n_s_nu, __pyx_n_s_velocity, __pyx_n_s_gradu, __pyx_n_s_gradv, __pyx_n_s_k, __pyx_n_s_epsilon, __pyx_n_s_m_e, __pyx_n_s_dm_e, __pyx_n_s_phi_e, __pyx_n_s_dphi_e, __pyx_n_s_f_e, __pyx_n_s_df_e, __pyx_n_s_a_e, __pyx_n_s_da_e_de, __pyx_n_s_r_e, __pyx_n_s_dr_e_de); if (unlikely(!__pyx_tuple__193)) __PYX_ERR(0, 7204, __pyx_L1_error)
51528  __Pyx_GOTREF(__pyx_tuple__193);
51529  __Pyx_GIVEREF(__pyx_tuple__193);
51530  __pyx_codeobj__194 = (PyObject*)__Pyx_PyCode_New(21, 0, 21, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__193, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_kEpsilon_epsilon_2D_Evaluate_sd, 7204, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__194)) __PYX_ERR(0, 7204, __pyx_L1_error)
51531 
51532  /* "ctransportCoefficients.pyx":7248
51533  * <double*> r_e.data,
51534  * <double*> dr_e_de.data)
51535  * def kEpsilon_k_3D_Evaluate_sd(double sigma_k, # <<<<<<<<<<<<<<
51536  * double c_mu,
51537  * double nu,
51538  */
51539  __pyx_tuple__195 = PyTuple_Pack(19, __pyx_n_s_sigma_k, __pyx_n_s_c_mu, __pyx_n_s_nu, __pyx_n_s_velocity, __pyx_n_s_gradu, __pyx_n_s_gradv, __pyx_n_s_gradw, __pyx_n_s_k, __pyx_n_s_epsilon, __pyx_n_s_m_k, __pyx_n_s_dm_k, __pyx_n_s_phi_k, __pyx_n_s_dphi_k, __pyx_n_s_f_k, __pyx_n_s_df_k, __pyx_n_s_a_k, __pyx_n_s_da_k_dk, __pyx_n_s_r_k, __pyx_n_s_dr_k_dk); if (unlikely(!__pyx_tuple__195)) __PYX_ERR(0, 7248, __pyx_L1_error)
51540  __Pyx_GOTREF(__pyx_tuple__195);
51541  __Pyx_GIVEREF(__pyx_tuple__195);
51542  __pyx_codeobj__196 = (PyObject*)__Pyx_PyCode_New(19, 0, 19, 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_ctransportCoefficients_p, __pyx_n_s_kEpsilon_k_3D_Evaluate_sd, 7248, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__196)) __PYX_ERR(0, 7248, __pyx_L1_error)
51543 
51544  /* "ctransportCoefficients.pyx":7288
51545  * <double*> r_k.data,
51546  * <double*> dr_k_dk.data)
51547  * def kEpsilon_epsilon_3D_Evaluate_sd(double sigma_e, # <<<<<<<<<<<<<<
51548  * double c_1,
51549  * double c_2,
51550  */
51551  __pyx_tuple__197 = PyTuple_Pack(22, __pyx_n_s_sigma_e, __pyx_n_s_c_1, __pyx_n_s_c_2, __pyx_n_s_c_mu, __pyx_n_s_c_e, __pyx_n_s_nu, __pyx_n_s_velocity, __pyx_n_s_gradu, __pyx_n_s_gradv, __pyx_n_s_gradw, __pyx_n_s_k, __pyx_n_s_epsilon, __pyx_n_s_m_e, __pyx_n_s_dm_e, __pyx_n_s_phi_e, __pyx_n_s_dphi_e, __pyx_n_s_f_e, __pyx_n_s_df_e, __pyx_n_s_a_e, __pyx_n_s_da_e_de, __pyx_n_s_r_e, __pyx_n_s_dr_e_de); if (unlikely(!__pyx_tuple__197)) __PYX_ERR(0, 7288, __pyx_L1_error)
51552  __Pyx_GOTREF(__pyx_tuple__197);
51553  __Pyx_GIVEREF(__pyx_tuple__197);
51554  __pyx_codeobj__198 = (PyObject*)__Pyx_PyCode_New(22, 0, 22, 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_ctransportCoefficients_p, __pyx_n_s_kEpsilon_epsilon_3D_Evaluate_sd, 7288, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__198)) __PYX_ERR(0, 7288, __pyx_L1_error)
51555 
51556  /* "ctransportCoefficients.pyx":7334
51557  * <double*> r_e.data,
51558  * <double*> dr_e_de.data)
51559  * def ReynoldsAveragedNavierStokes_kEpsilon_2D_Update(const double nu, # <<<<<<<<<<<<<<
51560  * const double c_mu,
51561  * np.ndarray k,
51562  */
51563  __pyx_tuple__199 = PyTuple_Pack(11, __pyx_n_s_nu, __pyx_n_s_c_mu, __pyx_n_s_k, __pyx_n_s_grad_k, __pyx_n_s_epsilon, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source); if (unlikely(!__pyx_tuple__199)) __PYX_ERR(0, 7334, __pyx_L1_error)
51564  __Pyx_GOTREF(__pyx_tuple__199);
51565  __Pyx_GIVEREF(__pyx_tuple__199);
51566  __pyx_codeobj__200 = (PyObject*)__Pyx_PyCode_New(11, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__199, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_ReynoldsAveragedNavierStokes_kEp, 7334, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__200)) __PYX_ERR(0, 7334, __pyx_L1_error)
51567 
51568  /* "ctransportCoefficients.pyx":7357
51569  * <double*> mom_u_source.data,
51570  * <double*> mom_v_source.data)
51571  * def ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd(const double rho, # <<<<<<<<<<<<<<
51572  * const double nu,
51573  * const double c_mu,
51574  */
51575  __pyx_tuple__201 = PyTuple_Pack(12, __pyx_n_s_rho, __pyx_n_s_nu, __pyx_n_s_c_mu, __pyx_n_s_k, __pyx_n_s_grad_k, __pyx_n_s_epsilon, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source); if (unlikely(!__pyx_tuple__201)) __PYX_ERR(0, 7357, __pyx_L1_error)
51576  __Pyx_GOTREF(__pyx_tuple__201);
51577  __Pyx_GIVEREF(__pyx_tuple__201);
51578  __pyx_codeobj__202 = (PyObject*)__Pyx_PyCode_New(12, 0, 12, 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_ctransportCoefficients_p, __pyx_n_s_ReynoldsAveragedNavierStokes_kEp_2, 7357, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__202)) __PYX_ERR(0, 7357, __pyx_L1_error)
51579 
51580  /* "ctransportCoefficients.pyx":7382
51581  * <double*> mom_u_source.data,
51582  * <double*> mom_v_source.data)
51583  * def ReynoldsAveragedNavierStokes_kEpsilon_3D_Update(const double nu, # <<<<<<<<<<<<<<
51584  * const double c_mu,
51585  * np.ndarray k,
51586  */
51587  __pyx_tuple__203 = PyTuple_Pack(17, __pyx_n_s_nu, __pyx_n_s_c_mu, __pyx_n_s_k, __pyx_n_s_grad_k, __pyx_n_s_epsilon, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_uw_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_vw_diff_ten, __pyx_n_s_mom_wu_diff_ten, __pyx_n_s_mom_wv_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source); if (unlikely(!__pyx_tuple__203)) __PYX_ERR(0, 7382, __pyx_L1_error)
51588  __Pyx_GOTREF(__pyx_tuple__203);
51589  __Pyx_GIVEREF(__pyx_tuple__203);
51590  __pyx_codeobj__204 = (PyObject*)__Pyx_PyCode_New(17, 0, 17, 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_ctransportCoefficients_p, __pyx_n_s_ReynoldsAveragedNavierStokes_kEp_3, 7382, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__204)) __PYX_ERR(0, 7382, __pyx_L1_error)
51591 
51592  /* "ctransportCoefficients.pyx":7417
51593  * <double*> mom_v_source.data,
51594  * <double*> mom_w_source.data)
51595  * def ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd(const double nu, # <<<<<<<<<<<<<<
51596  * const double c_mu,
51597  * np.ndarray k,
51598  */
51599  __pyx_tuple__205 = PyTuple_Pack(17, __pyx_n_s_nu, __pyx_n_s_c_mu, __pyx_n_s_k, __pyx_n_s_grad_k, __pyx_n_s_epsilon, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_uw_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_vw_diff_ten, __pyx_n_s_mom_wu_diff_ten, __pyx_n_s_mom_wv_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source); if (unlikely(!__pyx_tuple__205)) __PYX_ERR(0, 7417, __pyx_L1_error)
51600  __Pyx_GOTREF(__pyx_tuple__205);
51601  __Pyx_GIVEREF(__pyx_tuple__205);
51602  __pyx_codeobj__206 = (PyObject*)__Pyx_PyCode_New(17, 0, 17, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__205, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_ReynoldsAveragedNavierStokes_kEp_4, 7417, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__206)) __PYX_ERR(0, 7417, __pyx_L1_error)
51603 
51604  /* "ctransportCoefficients.pyx":7452
51605  * <double*> mom_v_source.data,
51606  * <double*> mom_w_source.data)
51607  * def scriptedSphereMotionSignedDistance(const double t, # <<<<<<<<<<<<<<
51608  * np.ndarray radii,
51609  * np.ndarray centers,
51610  */
51611  __pyx_tuple__207 = PyTuple_Pack(6, __pyx_n_s_t, __pyx_n_s_radii, __pyx_n_s_centers, __pyx_n_s_x, __pyx_n_s_phi, __pyx_n_s_n); if (unlikely(!__pyx_tuple__207)) __PYX_ERR(0, 7452, __pyx_L1_error)
51612  __Pyx_GOTREF(__pyx_tuple__207);
51613  __Pyx_GIVEREF(__pyx_tuple__207);
51614  __pyx_codeobj__208 = (PyObject*)__Pyx_PyCode_New(6, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__207, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_scriptedSphereMotionSignedDistan, 7452, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__208)) __PYX_ERR(0, 7452, __pyx_L1_error)
51615 
51616  /* "ctransportCoefficients.pyx":7467
51617  * <double*> phi.data,
51618  * <double*> n.data)
51619  * def shallowWater_1D_Evaluate(const double h_eps, # <<<<<<<<<<<<<<
51620  * const double g,
51621  * const double bedFrictionCoefficient,
51622  */
51623  __pyx_tuple__209 = PyTuple_Pack(23, __pyx_n_s_h_eps, __pyx_n_s_g, __pyx_n_s_bedFrictionCoefficient, __pyx_n_s_bedFrictionPower, __pyx_n_s_eddyViscosity, __pyx_n_s_x, __pyx_n_s_db_dx, __pyx_n_s_h, __pyx_n_s_hu, __pyx_n_s_H, __pyx_n_s_mass_acc, __pyx_n_s_dmass_acc_dh, __pyx_n_s_mom_acc, __pyx_n_s_dmom_acc_dhu, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_dhu, __pyx_n_s_mom_adv, __pyx_n_s_dmom_adv_dh, __pyx_n_s_dmom_adv_dhu, __pyx_n_s_mom_source, __pyx_n_s_dmom_source_dh, __pyx_n_s_dmom_source_dhu, __pyx_n_s_mom_diff); if (unlikely(!__pyx_tuple__209)) __PYX_ERR(0, 7467, __pyx_L1_error)
51624  __Pyx_GOTREF(__pyx_tuple__209);
51625  __Pyx_GIVEREF(__pyx_tuple__209);
51626  __pyx_codeobj__210 = (PyObject*)__Pyx_PyCode_New(23, 0, 23, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__209, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_shallowWater_1D_Evaluate, 7467, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__210)) __PYX_ERR(0, 7467, __pyx_L1_error)
51627 
51628  /* "ctransportCoefficients.pyx":7514
51629  * <double*> dmom_source_dhu.data,
51630  * <double*> mom_diff.data)
51631  * def shallowWater_2D_Evaluate(const double h_eps, # <<<<<<<<<<<<<<
51632  * const double g,
51633  * const double bedFrictionCoefficient,
51634  */
51635  __pyx_tuple__211 = PyTuple_Pack(38, __pyx_n_s_h_eps, __pyx_n_s_g, __pyx_n_s_bedFrictionCoefficient, __pyx_n_s_bedFrictionPower, __pyx_n_s_eddyViscosity, __pyx_n_s_x, __pyx_n_s_grad_b, __pyx_n_s_h, __pyx_n_s_hu, __pyx_n_s_hv, __pyx_n_s_H, __pyx_n_s_mass_acc, __pyx_n_s_dmass_acc_dh, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_dhu, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_dhv, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_dhu, __pyx_n_s_dmass_adv_dhv, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_dh, __pyx_n_s_dmom_u_adv_dhu, __pyx_n_s_dmom_u_adv_dhv, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_dh, __pyx_n_s_dmom_v_adv_dhu, __pyx_n_s_dmom_v_adv_dhv, __pyx_n_s_mom_u_diff, __pyx_n_s_mom_v_diff, __pyx_n_s_mom_u_source, __pyx_n_s_dmom_u_source_dh, __pyx_n_s_dmom_u_source_dhu, __pyx_n_s_dmom_u_source_dhv, __pyx_n_s_mom_v_source, __pyx_n_s_dmom_v_source_dh, __pyx_n_s_dmom_v_source_dhu, __pyx_n_s_dmom_v_source_dhv); if (unlikely(!__pyx_tuple__211)) __PYX_ERR(0, 7514, __pyx_L1_error)
51636  __Pyx_GOTREF(__pyx_tuple__211);
51637  __Pyx_GIVEREF(__pyx_tuple__211);
51638  __pyx_codeobj__212 = (PyObject*)__Pyx_PyCode_New(38, 0, 38, 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_ctransportCoefficients_p, __pyx_n_s_shallowWater_2D_Evaluate, 7514, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__212)) __PYX_ERR(0, 7514, __pyx_L1_error)
51639 
51640  /* "ctransportCoefficients.pyx":7591
51641  * <double*> dmom_v_source_dhu.data,
51642  * <double*> dmom_v_source_dhv.data)
51643  * def conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind(const int upwindFlag, # <<<<<<<<<<<<<<
51644  * const int computeAverages,
51645  * const int nQuadraturePoints_elementBoundary,
51646  */
51647  __pyx_tuple__213 = PyTuple_Pack(28, __pyx_n_s_upwindFlag, __pyx_n_s_computeAverages, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_quadraturePointToElementBoundary, __pyx_n_s_materialTypes, __pyx_n_s_rho, __pyx_n_s_beta, __pyx_n_s_gravity, __pyx_n_s_alpha, __pyx_n_s_n_vg, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_gradu, __pyx_n_s_n_global, __pyx_n_s_dV, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f_avg, __pyx_n_s_df_avg, __pyx_n_s_a_avg, __pyx_n_s_da_avg, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da); if (unlikely(!__pyx_tuple__213)) __PYX_ERR(0, 7591, __pyx_L1_error)
51648  __Pyx_GOTREF(__pyx_tuple__213);
51649  __Pyx_GIVEREF(__pyx_tuple__213);
51650  __pyx_codeobj__214 = (PyObject*)__Pyx_PyCode_New(28, 0, 28, 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_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsMualemVa_5, 7591, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__214)) __PYX_ERR(0, 7591, __pyx_L1_error)
51651 
51652  /* "ctransportCoefficients.pyx":7650
51653  * <double*> a.data,
51654  * <double*> da.data)
51655  * def conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm(const int upwindFlag, # <<<<<<<<<<<<<<
51656  * const int computeAverages,
51657  * const int nQuadraturePoints_elementBoundary,
51658  */
51659  __pyx_tuple__215 = PyTuple_Pack(28, __pyx_n_s_upwindFlag, __pyx_n_s_computeAverages, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_quadraturePointToElementBoundary, __pyx_n_s_materialTypes, __pyx_n_s_rho, __pyx_n_s_beta, __pyx_n_s_gravity, __pyx_n_s_alpha, __pyx_n_s_n_vg, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_gradu, __pyx_n_s_n_global, __pyx_n_s_dV, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f_avg, __pyx_n_s_df_avg, __pyx_n_s_a_avg, __pyx_n_s_da_avg, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da); if (unlikely(!__pyx_tuple__215)) __PYX_ERR(0, 7650, __pyx_L1_error)
51660  __Pyx_GOTREF(__pyx_tuple__215);
51661  __Pyx_GIVEREF(__pyx_tuple__215);
51662  __pyx_codeobj__216 = (PyObject*)__Pyx_PyCode_New(28, 0, 28, 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_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsMualemVa_6, 7650, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__216)) __PYX_ERR(0, 7650, __pyx_L1_error)
51663 
51664  /* "ctransportCoefficients.pyx":7709
51665  * <double*> a.data,
51666  * <double*> da.data)
51667  * def conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd(const int upwindFlag, # <<<<<<<<<<<<<<
51668  * const int computeAverages,
51669  * const int nQuadraturePoints_elementBoundary,
51670  */
51671  __pyx_tuple__217 = PyTuple_Pack(30, __pyx_n_s_upwindFlag, __pyx_n_s_computeAverages, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_quadraturePointToElementBoundary, __pyx_n_s_materialTypes, __pyx_n_s_rho, __pyx_n_s_beta, __pyx_n_s_gravity, __pyx_n_s_alpha, __pyx_n_s_n_vg, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_gradu, __pyx_n_s_n_global, __pyx_n_s_dV, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f_avg, __pyx_n_s_df_avg, __pyx_n_s_a_avg, __pyx_n_s_da_avg, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da); if (unlikely(!__pyx_tuple__217)) __PYX_ERR(0, 7709, __pyx_L1_error)
51672  __Pyx_GOTREF(__pyx_tuple__217);
51673  __Pyx_GIVEREF(__pyx_tuple__217);
51674  __pyx_codeobj__218 = (PyObject*)__Pyx_PyCode_New(30, 0, 30, 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_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsMualemVa_7, 7709, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__218)) __PYX_ERR(0, 7709, __pyx_L1_error)
51675 
51676  /* "ctransportCoefficients.pyx":7772
51677  * <double*> a.data,
51678  * <double*> da.data)
51679  * def applyContactLineSlip(double eps, # <<<<<<<<<<<<<<
51680  * np.ndarray isDOFBoundary,
51681  * np.ndarray phi,
51682  */
51683  __pyx_tuple__219 = PyTuple_Pack(5, __pyx_n_s_eps, __pyx_n_s_isDOFBoundary, __pyx_n_s_phi, __pyx_n_s_advectiveFlux, __pyx_n_s_diffusiveFlux); if (unlikely(!__pyx_tuple__219)) __PYX_ERR(0, 7772, __pyx_L1_error)
51684  __Pyx_GOTREF(__pyx_tuple__219);
51685  __Pyx_GIVEREF(__pyx_tuple__219);
51686  __pyx_codeobj__220 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__219, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_applyContactLineSlip, 7772, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__220)) __PYX_ERR(0, 7772, __pyx_L1_error)
51687 
51688  /* "ctransportCoefficients.pyx":7784
51689  * <double*> advectiveFlux.data,
51690  * <double*> diffusiveFlux.data)
51691  * def applyContactLineSlipJacobian(double eps, # <<<<<<<<<<<<<<
51692  * np.ndarray isDOFBoundary,
51693  * np.ndarray phi,
51694  */
51695  __pyx_tuple__221 = PyTuple_Pack(4, __pyx_n_s_eps, __pyx_n_s_isDOFBoundary, __pyx_n_s_phi, __pyx_n_s_fluxJacobian); if (unlikely(!__pyx_tuple__221)) __PYX_ERR(0, 7784, __pyx_L1_error)
51696  __Pyx_GOTREF(__pyx_tuple__221);
51697  __Pyx_GIVEREF(__pyx_tuple__221);
51698  __pyx_codeobj__222 = (PyObject*)__Pyx_PyCode_New(4, 0, 4, 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_ctransportCoefficients_p, __pyx_n_s_applyContactLineSlipJacobian, 7784, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__222)) __PYX_ERR(0, 7784, __pyx_L1_error)
51699 
51700  /* "ctransportCoefficients.pyx":7795
51701  * <double*> phi.data,
51702  * <double*> fluxJacobian.data)
51703  * def calculateEddyViscosity_Smagorinsky_2D(const double smagorinskyConstant, # <<<<<<<<<<<<<<
51704  * np.ndarray h_e,
51705  * np.ndarray grad_u,
51706  */
51707  __pyx_tuple__223 = PyTuple_Pack(5, __pyx_n_s_smagorinskyConstant, __pyx_n_s_h_e, __pyx_n_s_grad_u, __pyx_n_s_grad_v, __pyx_n_s_nu_t); if (unlikely(!__pyx_tuple__223)) __PYX_ERR(0, 7795, __pyx_L1_error)
51708  __Pyx_GOTREF(__pyx_tuple__223);
51709  __Pyx_GIVEREF(__pyx_tuple__223);
51710  __pyx_codeobj__224 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 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_ctransportCoefficients_p, __pyx_n_s_calculateEddyViscosity_Smagorins, 7795, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__224)) __PYX_ERR(0, 7795, __pyx_L1_error)
51711 
51712  /* "ctransportCoefficients.pyx":7807
51713  * <double*> grad_v.data,
51714  * <double*> nu_t.data)
51715  * def calculateEddyViscosity_Smagorinsky_3D(const double smagorinskyConstant, # <<<<<<<<<<<<<<
51716  * np.ndarray h_e,
51717  * np.ndarray grad_u,
51718  */
51719  __pyx_tuple__225 = PyTuple_Pack(6, __pyx_n_s_smagorinskyConstant, __pyx_n_s_h_e, __pyx_n_s_grad_u, __pyx_n_s_grad_v, __pyx_n_s_grad_w, __pyx_n_s_nu_t); if (unlikely(!__pyx_tuple__225)) __PYX_ERR(0, 7807, __pyx_L1_error)
51720  __Pyx_GOTREF(__pyx_tuple__225);
51721  __Pyx_GIVEREF(__pyx_tuple__225);
51722  __pyx_codeobj__226 = (PyObject*)__Pyx_PyCode_New(6, 0, 6, 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_ctransportCoefficients_p, __pyx_n_s_calculateEddyViscosity_Smagorins_2, 7807, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__226)) __PYX_ERR(0, 7807, __pyx_L1_error)
51723 
51724  /* "ctransportCoefficients.pyx":7821
51725  * <double*> grad_w.data,
51726  * <double*> nu_t.data)
51727  * def calculateEddyViscosity_Smagorinsky2P_2D(const double smagorinskyConstant_0, # <<<<<<<<<<<<<<
51728  * const double smagorinskyConstant_1,
51729  * const double eps,
51730  */
51731  __pyx_tuple__227 = PyTuple_Pack(8, __pyx_n_s_smagorinskyConstant_0, __pyx_n_s_smagorinskyConstant_1, __pyx_n_s_eps, __pyx_n_s_phi_ls, __pyx_n_s_h_e, __pyx_n_s_grad_u, __pyx_n_s_grad_v, __pyx_n_s_nu_t); if (unlikely(!__pyx_tuple__227)) __PYX_ERR(0, 7821, __pyx_L1_error)
51732  __Pyx_GOTREF(__pyx_tuple__227);
51733  __Pyx_GIVEREF(__pyx_tuple__227);
51734  __pyx_codeobj__228 = (PyObject*)__Pyx_PyCode_New(8, 0, 8, 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_ctransportCoefficients_p, __pyx_n_s_calculateEddyViscosity_Smagorins_3, 7821, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__228)) __PYX_ERR(0, 7821, __pyx_L1_error)
51735 
51736  /* "ctransportCoefficients.pyx":7839
51737  * <double*> grad_v.data,
51738  * <double*> nu_t.data)
51739  * def calculateEddyViscosity_Smagorinsky2P_3D(const double smagorinskyConstant_0, # <<<<<<<<<<<<<<
51740  * const double smagorinskyConstant_1,
51741  * const double eps,
51742  */
51743  __pyx_tuple__229 = PyTuple_Pack(9, __pyx_n_s_smagorinskyConstant_0, __pyx_n_s_smagorinskyConstant_1, __pyx_n_s_eps, __pyx_n_s_phi_ls, __pyx_n_s_h_e, __pyx_n_s_grad_u, __pyx_n_s_grad_v, __pyx_n_s_grad_w, __pyx_n_s_nu_t); if (unlikely(!__pyx_tuple__229)) __PYX_ERR(0, 7839, __pyx_L1_error)
51744  __Pyx_GOTREF(__pyx_tuple__229);
51745  __Pyx_GIVEREF(__pyx_tuple__229);
51746  __pyx_codeobj__230 = (PyObject*)__Pyx_PyCode_New(9, 0, 9, 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_ctransportCoefficients_p, __pyx_n_s_calculateEddyViscosity_Smagorins_4, 7839, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__230)) __PYX_ERR(0, 7839, __pyx_L1_error)
51747 
51748  /* "ctransportCoefficients.pyx":7859
51749  * <double*> grad_w.data,
51750  * <double*> nu_t.data)
51751  * def eddyViscosity_2D_Update(np.ndarray nu_t, # <<<<<<<<<<<<<<
51752  * np.ndarray mom_u_diff_ten,
51753  * np.ndarray mom_v_diff_ten,
51754  */
51755  __pyx_tuple__231 = PyTuple_Pack(5, __pyx_n_s_nu_t, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_vu_diff_ten); if (unlikely(!__pyx_tuple__231)) __PYX_ERR(0, 7859, __pyx_L1_error)
51756  __Pyx_GOTREF(__pyx_tuple__231);
51757  __Pyx_GIVEREF(__pyx_tuple__231);
51758  __pyx_codeobj__232 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 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_ctransportCoefficients_p, __pyx_n_s_eddyViscosity_2D_Update, 7859, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__232)) __PYX_ERR(0, 7859, __pyx_L1_error)
51759 
51760  /* "ctransportCoefficients.pyx":7870
51761  * <double*> mom_uv_diff_ten.data,
51762  * <double*> mom_vu_diff_ten.data)
51763  * def eddyViscosity_2D_Update_sd(np.ndarray nu_t, # <<<<<<<<<<<<<<
51764  * np.ndarray mom_u_diff_ten,
51765  * np.ndarray mom_v_diff_ten,
51766  */
51767  __pyx_tuple__233 = PyTuple_Pack(5, __pyx_n_s_nu_t, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_vu_diff_ten); if (unlikely(!__pyx_tuple__233)) __PYX_ERR(0, 7870, __pyx_L1_error)
51768  __Pyx_GOTREF(__pyx_tuple__233);
51769  __Pyx_GIVEREF(__pyx_tuple__233);
51770  __pyx_codeobj__234 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__233, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_eddyViscosity_2D_Update_sd, 7870, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__234)) __PYX_ERR(0, 7870, __pyx_L1_error)
51771 
51772  /* "ctransportCoefficients.pyx":7881
51773  * <double*> mom_uv_diff_ten.data,
51774  * <double*> mom_vu_diff_ten.data)
51775  * def eddyViscosity_3D_Update(np.ndarray nu_t, # <<<<<<<<<<<<<<
51776  * np.ndarray mom_u_diff_ten,
51777  * np.ndarray mom_v_diff_ten,
51778  */
51779  __pyx_tuple__235 = PyTuple_Pack(10, __pyx_n_s_nu_t, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_uw_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_vw_diff_ten, __pyx_n_s_mom_wu_diff_ten, __pyx_n_s_mom_wv_diff_ten); if (unlikely(!__pyx_tuple__235)) __PYX_ERR(0, 7881, __pyx_L1_error)
51780  __Pyx_GOTREF(__pyx_tuple__235);
51781  __Pyx_GIVEREF(__pyx_tuple__235);
51782  __pyx_codeobj__236 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 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_ctransportCoefficients_p, __pyx_n_s_eddyViscosity_3D_Update, 7881, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__236)) __PYX_ERR(0, 7881, __pyx_L1_error)
51783 
51784  /* "ctransportCoefficients.pyx":7902
51785  * <double*> mom_wu_diff_ten.data,
51786  * <double*> mom_wv_diff_ten.data)
51787  * def eddyViscosity_3D_Update_sd(np.ndarray nu_t, # <<<<<<<<<<<<<<
51788  * np.ndarray mom_u_diff_ten,
51789  * np.ndarray mom_v_diff_ten,
51790  */
51791  __pyx_tuple__237 = PyTuple_Pack(10, __pyx_n_s_nu_t, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_uw_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_vw_diff_ten, __pyx_n_s_mom_wu_diff_ten, __pyx_n_s_mom_wv_diff_ten); if (unlikely(!__pyx_tuple__237)) __PYX_ERR(0, 7902, __pyx_L1_error)
51792  __Pyx_GOTREF(__pyx_tuple__237);
51793  __Pyx_GIVEREF(__pyx_tuple__237);
51794  __pyx_codeobj__238 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 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_ctransportCoefficients_p, __pyx_n_s_eddyViscosity_3D_Update_sd, 7902, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__238)) __PYX_ERR(0, 7902, __pyx_L1_error)
51795 
51796  /* "ctransportCoefficients.pyx":7923
51797  * <double*> mom_wu_diff_ten.data,
51798  * <double*> mom_wv_diff_ten.data)
51799  * def calculateWaveFunction3d_ref(np.ndarray mesh_trial_ref, # <<<<<<<<<<<<<<
51800  * np.ndarray mesh_dof,
51801  * np.ndarray mesh_l2g,
51802  */
51803  __pyx_tuple__239 = PyTuple_Pack(16, __pyx_n_s_mesh_trial_ref, __pyx_n_s_mesh_dof, __pyx_n_s_mesh_l2g, __pyx_n_s_elementDiametersArray, __pyx_n_s_omega_s_x, __pyx_n_s_omega_s_y, __pyx_n_s_omega_s_z, __pyx_n_s_t, __pyx_n_s_waveFlag, __pyx_n_s_epsFact, __pyx_n_s_waveHeight, __pyx_n_s_waveCelerity, __pyx_n_s_waveFrequency, __pyx_n_s_waveNumber, __pyx_n_s_waterDepth, __pyx_n_s_source); if (unlikely(!__pyx_tuple__239)) __PYX_ERR(0, 7923, __pyx_L1_error)
51804  __Pyx_GOTREF(__pyx_tuple__239);
51805  __Pyx_GIVEREF(__pyx_tuple__239);
51806  __pyx_codeobj__240 = (PyObject*)__Pyx_PyCode_New(16, 0, 16, 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_ctransportCoefficients_p, __pyx_n_s_calculateWaveFunction3d_ref, 7923, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__240)) __PYX_ERR(0, 7923, __pyx_L1_error)
51807 
51808  /* "ctransportCoefficients.pyx":7958
51809  * waterDepth,
51810  * <double*> source.data)
51811  * def Mass_2D_Evaluate(double rho, # <<<<<<<<<<<<<<
51812  * np.ndarray p,
51813  * np.ndarray u,
51814  */
51815  __pyx_tuple__241 = PyTuple_Pack(10, __pyx_n_s_rho, __pyx_n_s_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_mom_p_acc, __pyx_n_s_mom_u_acc, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_p_acc_p, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_dmom_v_acc_v); if (unlikely(!__pyx_tuple__241)) __PYX_ERR(0, 7958, __pyx_L1_error)
51816  __Pyx_GOTREF(__pyx_tuple__241);
51817  __Pyx_GIVEREF(__pyx_tuple__241);
51818  __pyx_codeobj__242 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__241, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_Mass_2D_Evaluate, 7958, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__242)) __PYX_ERR(0, 7958, __pyx_L1_error)
51819 
51820  /* "ctransportCoefficients.pyx":7979
51821  * <double*> dmom_u_acc_u.data,
51822  * <double*> dmom_v_acc_v.data)
51823  * def Mass_3D_Evaluate(double rho, # <<<<<<<<<<<<<<
51824  * np.ndarray p,
51825  * np.ndarray u,
51826  */
51827  __pyx_tuple__243 = PyTuple_Pack(13, __pyx_n_s_rho, __pyx_n_s_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_mom_p_acc, __pyx_n_s_mom_u_acc, __pyx_n_s_mom_v_acc, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_p_acc_p, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_dmom_w_acc_w); if (unlikely(!__pyx_tuple__243)) __PYX_ERR(0, 7979, __pyx_L1_error)
51828  __Pyx_GOTREF(__pyx_tuple__243);
51829  __Pyx_GIVEREF(__pyx_tuple__243);
51830  __pyx_codeobj__244 = (PyObject*)__Pyx_PyCode_New(13, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__243, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_Mass_3D_Evaluate, 7979, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__244)) __PYX_ERR(0, 7979, __pyx_L1_error)
51831 
51832  /* "ctransportCoefficients.pyx":8006
51833  * <double*> dmom_v_acc_v.data,
51834  * <double*> dmom_w_acc_w.data)
51835  * def TwoPhaseAdvection_2D_Evaluate(const double eps, # <<<<<<<<<<<<<<
51836  * const double rho_0,
51837  * const double nu_0,
51838  */
51839  __pyx_tuple__245 = PyTuple_Pack(19, __pyx_n_s_eps, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_phi, __pyx_n_s_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_p, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v); if (unlikely(!__pyx_tuple__245)) __PYX_ERR(0, 8006, __pyx_L1_error)
51840  __Pyx_GOTREF(__pyx_tuple__245);
51841  __Pyx_GIVEREF(__pyx_tuple__245);
51842  __pyx_codeobj__246 = (PyObject*)__Pyx_PyCode_New(19, 0, 19, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__245, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_TwoPhaseAdvection_2D_Evaluate, 8006, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__246)) __PYX_ERR(0, 8006, __pyx_L1_error)
51843 
51844  /* "ctransportCoefficients.pyx":8045
51845  * <double*> dmom_v_adv_u.data,
51846  * <double*> dmom_v_adv_v.data)
51847  * def twophaseSignedDistanceUpdateSignFunction(int nPoints, # <<<<<<<<<<<<<<
51848  * double eps,
51849  * np.ndarray u_levelSet,
51850  */
51851  __pyx_tuple__247 = PyTuple_Pack(4, __pyx_n_s_nPoints, __pyx_n_s_eps, __pyx_n_s_u_levelSet, __pyx_n_s_S); if (unlikely(!__pyx_tuple__247)) __PYX_ERR(0, 8045, __pyx_L1_error)
51852  __Pyx_GOTREF(__pyx_tuple__247);
51853  __Pyx_GIVEREF(__pyx_tuple__247);
51854  __pyx_codeobj__248 = (PyObject*)__Pyx_PyCode_New(4, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__247, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_twophaseSignedDistanceUpdateSign, 8045, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__248)) __PYX_ERR(0, 8045, __pyx_L1_error)
51855 
51856  /* "ctransportCoefficients.pyx":8053
51857  * <double*> u_levelSet.data,
51858  * <double*> S.data)
51859  * def Laplace_2D_Evaluate(np.ndarray p, # <<<<<<<<<<<<<<
51860  * np.ndarray u,
51861  * np.ndarray v,
51862  */
51863  __pyx_tuple__249 = PyTuple_Pack(7, __pyx_n_s_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_mom_p_diff_ten, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten); if (unlikely(!__pyx_tuple__249)) __PYX_ERR(0, 8053, __pyx_L1_error)
51864  __Pyx_GOTREF(__pyx_tuple__249);
51865  __Pyx_GIVEREF(__pyx_tuple__249);
51866  __pyx_codeobj__250 = (PyObject*)__Pyx_PyCode_New(7, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__249, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_Laplace_2D_Evaluate, 8053, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__250)) __PYX_ERR(0, 8053, __pyx_L1_error)
51867 
51868  /* "ctransportCoefficients.pyx":8064
51869  * <double*> mom_u_diff_ten.data,
51870  * <double*> mom_v_diff_ten.data)
51871  * def Laplace_3D_Evaluate(np.ndarray p, # <<<<<<<<<<<<<<
51872  * np.ndarray u,
51873  * np.ndarray v,
51874  */
51875  __pyx_tuple__251 = PyTuple_Pack(8, __pyx_n_s_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_mom_p_diff_ten, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten); if (unlikely(!__pyx_tuple__251)) __PYX_ERR(0, 8064, __pyx_L1_error)
51876  __Pyx_GOTREF(__pyx_tuple__251);
51877  __Pyx_GIVEREF(__pyx_tuple__251);
51878  __pyx_codeobj__252 = (PyObject*)__Pyx_PyCode_New(8, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__251, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_Laplace_3D_Evaluate, 8064, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__252)) __PYX_ERR(0, 8064, __pyx_L1_error)
51879 
51880  /* "ctransportCoefficients.pyx":8077
51881  * <double*> mom_v_diff_ten.data,
51882  * <double*> mom_w_diff_ten.data)
51883  * def l2projectScalar(const int nSimplices, # <<<<<<<<<<<<<<
51884  * const int nPointsPerSimplex,
51885  * np.ndarray dV,
51886  */
51887  __pyx_tuple__253 = PyTuple_Pack(4, __pyx_n_s_nSimplices, __pyx_n_s_nPointsPerSimplex, __pyx_n_s_dV, __pyx_n_s_r); if (unlikely(!__pyx_tuple__253)) __PYX_ERR(0, 8077, __pyx_L1_error)
51888  __Pyx_GOTREF(__pyx_tuple__253);
51889  __Pyx_GIVEREF(__pyx_tuple__253);
51890  __pyx_codeobj__254 = (PyObject*)__Pyx_PyCode_New(4, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__253, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_l2projectScalar, 8077, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__254)) __PYX_ERR(0, 8077, __pyx_L1_error)
51891 
51892  /* "ctransportCoefficients.pyx":8085
51893  * <double*> dV.data,
51894  * <double*> r.data)
51895  * def l2projectVector(const int nSimplices, # <<<<<<<<<<<<<<
51896  * const int nPointsPerSimplex,
51897  * const int nSpace,
51898  */
51899  __pyx_tuple__255 = PyTuple_Pack(5, __pyx_n_s_nSimplices, __pyx_n_s_nPointsPerSimplex, __pyx_n_s_nSpace, __pyx_n_s_dV, __pyx_n_s_r); if (unlikely(!__pyx_tuple__255)) __PYX_ERR(0, 8085, __pyx_L1_error)
51900  __Pyx_GOTREF(__pyx_tuple__255);
51901  __Pyx_GIVEREF(__pyx_tuple__255);
51902  __pyx_codeobj__256 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__255, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_l2projectVector, 8085, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__256)) __PYX_ERR(0, 8085, __pyx_L1_error)
51903 
51904  /* "ctransportCoefficients.pyx":8095
51905  * <double*> dV.data,
51906  * <double*> r.data)
51907  * def l2project2Tensor(const int nSimplices, # <<<<<<<<<<<<<<
51908  * const int nPointsPerSimplex,
51909  * const int nSpace,
51910  */
51911  __pyx_tuple__257 = PyTuple_Pack(5, __pyx_n_s_nSimplices, __pyx_n_s_nPointsPerSimplex, __pyx_n_s_nSpace, __pyx_n_s_dV, __pyx_n_s_r); if (unlikely(!__pyx_tuple__257)) __PYX_ERR(0, 8095, __pyx_L1_error)
51912  __Pyx_GOTREF(__pyx_tuple__257);
51913  __Pyx_GIVEREF(__pyx_tuple__257);
51914  __pyx_codeobj__258 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__257, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_l2project2Tensor, 8095, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__258)) __PYX_ERR(0, 8095, __pyx_L1_error)
51915 
51916  /* "ctransportCoefficients.pyx":8105
51917  * <double*> dV.data,
51918  * <double*> r.data)
51919  * def L2projectEvaluate(int rank, # <<<<<<<<<<<<<<
51920  * np.ndarray dV,
51921  * np.ndarray r):
51922  */
51923  __pyx_tuple__259 = PyTuple_Pack(3, __pyx_n_s_rank, __pyx_n_s_dV, __pyx_n_s_r); if (unlikely(!__pyx_tuple__259)) __PYX_ERR(0, 8105, __pyx_L1_error)
51924  __Pyx_GOTREF(__pyx_tuple__259);
51925  __Pyx_GIVEREF(__pyx_tuple__259);
51926  __pyx_codeobj__260 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__259, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_L2projectEvaluate, 8105, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__260)) __PYX_ERR(0, 8105, __pyx_L1_error)
51927 
51928  /* "ctransportCoefficients.pyx":8116
51929  * else:
51930  * assert 0
51931  * def conservativeHeadRichardsJLeverettEvaluate(np.ndarray materialTypes, # <<<<<<<<<<<<<<
51932  * const double rho,
51933  * const double beta,
51934  */
51935  __pyx_tuple__261 = PyTuple_Pack(18, __pyx_n_s_materialTypes, __pyx_n_s_rho, __pyx_n_s_beta, __pyx_n_s_gravity, __pyx_n_s_phi, __pyx_n_s_psiD, __pyx_n_s_ns, __pyx_n_s_nk, __pyx_n_s_S_wirr, __pyx_n_s_S_nwr, __pyx_n_s_kr0, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da); if (unlikely(!__pyx_tuple__261)) __PYX_ERR(0, 8116, __pyx_L1_error)
51936  __Pyx_GOTREF(__pyx_tuple__261);
51937  __Pyx_GIVEREF(__pyx_tuple__261);
51938  __pyx_codeobj__262 = (PyObject*)__Pyx_PyCode_New(18, 0, 18, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__261, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsJLeveret, 8116, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__262)) __PYX_ERR(0, 8116, __pyx_L1_error)
51939 
51940  /* "ctransportCoefficients.pyx":8155
51941  * <double*> a.data,
51942  * <double*> da.data)
51943  * def conservativeHeadRichardsJLeverettAniEvaluate(np.ndarray materialTypes, # <<<<<<<<<<<<<<
51944  * const double rho,
51945  * const double beta,
51946  */
51947  __pyx_tuple__263 = PyTuple_Pack(20, __pyx_n_s_materialTypes, __pyx_n_s_rho, __pyx_n_s_beta, __pyx_n_s_gravity, __pyx_n_s_phi, __pyx_n_s_psiD, __pyx_n_s_ns, __pyx_n_s_nk, __pyx_n_s_S_wirr, __pyx_n_s_S_nwr, __pyx_n_s_kr0x, __pyx_n_s_kr0y, __pyx_n_s_kr0z, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da); if (unlikely(!__pyx_tuple__263)) __PYX_ERR(0, 8155, __pyx_L1_error)
51948  __Pyx_GOTREF(__pyx_tuple__263);
51949  __Pyx_GIVEREF(__pyx_tuple__263);
51950  __pyx_codeobj__264 = (PyObject*)__Pyx_PyCode_New(20, 0, 20, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__263, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsJLeveret_2, 8155, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__264)) __PYX_ERR(0, 8155, __pyx_L1_error)
51951 
51952  /* "ctransportCoefficients.pyx":8198
51953  * <double*> a.data,
51954  * <double*> da.data)
51955  * def diffusiveWave1DCoefficientsEvaluate(const double alpha, # <<<<<<<<<<<<<<
51956  * const double gamma,
51957  * const double epsilon,
51958  */
51959  __pyx_tuple__265 = PyTuple_Pack(10, __pyx_n_s_alpha, __pyx_n_s_gamma, __pyx_n_s_epsilon, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_grad_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_a, __pyx_n_s_da); if (unlikely(!__pyx_tuple__265)) __PYX_ERR(0, 8198, __pyx_L1_error)
51960  __Pyx_GOTREF(__pyx_tuple__265);
51961  __Pyx_GIVEREF(__pyx_tuple__265);
51962  __pyx_codeobj__266 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__265, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_diffusiveWave1DCoefficientsEvalu, 8198, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__266)) __PYX_ERR(0, 8198, __pyx_L1_error)
51963 
51964  /* "ctransportCoefficients.pyx":8219
51965  * <double*> a.data,
51966  * <double*> da.data)
51967  * def diffusiveWave2DCoefficientsEvaluate(const int nd, # <<<<<<<<<<<<<<
51968  * const double alpha,
51969  * const double gamma,
51970  */
51971  __pyx_tuple__267 = PyTuple_Pack(11, __pyx_n_s_nd, __pyx_n_s_alpha, __pyx_n_s_gamma, __pyx_n_s_epsilon, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_grad_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_a, __pyx_n_s_da); if (unlikely(!__pyx_tuple__267)) __PYX_ERR(0, 8219, __pyx_L1_error)
51972  __Pyx_GOTREF(__pyx_tuple__267);
51973  __Pyx_GIVEREF(__pyx_tuple__267);
51974  __pyx_codeobj__268 = (PyObject*)__Pyx_PyCode_New(11, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__267, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_diffusiveWave2DCoefficientsEvalu, 8219, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__268)) __PYX_ERR(0, 8219, __pyx_L1_error)
51975 
51976  /* "ctransportCoefficients.pyx":8243
51977  * <double*> da.data)
51978  *
51979  * def smoothedHeaviside (double eps, double phi): # <<<<<<<<<<<<<<
51980  * return csmoothedHeaviside(eps,phi)
51981  * def smoothedHeaviside_integral (double eps, double phi):
51982  */
51983  __pyx_tuple__269 = PyTuple_Pack(2, __pyx_n_s_eps, __pyx_n_s_phi); if (unlikely(!__pyx_tuple__269)) __PYX_ERR(0, 8243, __pyx_L1_error)
51984  __Pyx_GOTREF(__pyx_tuple__269);
51985  __Pyx_GIVEREF(__pyx_tuple__269);
51986  __pyx_codeobj__270 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__269, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_smoothedHeaviside, 8243, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__270)) __PYX_ERR(0, 8243, __pyx_L1_error)
51987 
51988  /* "ctransportCoefficients.pyx":8245
51989  * def smoothedHeaviside (double eps, double phi):
51990  * return csmoothedHeaviside(eps,phi)
51991  * def smoothedHeaviside_integral (double eps, double phi): # <<<<<<<<<<<<<<
51992  * return csmoothedHeaviside_integral(eps,phi)
51993  * def smoothedDirac (double eps, double phi):
51994  */
51995  __pyx_tuple__271 = PyTuple_Pack(2, __pyx_n_s_eps, __pyx_n_s_phi); if (unlikely(!__pyx_tuple__271)) __PYX_ERR(0, 8245, __pyx_L1_error)
51996  __Pyx_GOTREF(__pyx_tuple__271);
51997  __Pyx_GIVEREF(__pyx_tuple__271);
51998  __pyx_codeobj__272 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__271, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_smoothedHeaviside_integral, 8245, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__272)) __PYX_ERR(0, 8245, __pyx_L1_error)
51999 
52000  /* "ctransportCoefficients.pyx":8247
52001  * def smoothedHeaviside_integral (double eps, double phi):
52002  * return csmoothedHeaviside_integral(eps,phi)
52003  * def smoothedDirac (double eps, double phi): # <<<<<<<<<<<<<<
52004  * return csmoothedDirac(eps,phi)
52005  *
52006  */
52007  __pyx_tuple__273 = PyTuple_Pack(2, __pyx_n_s_eps, __pyx_n_s_phi); if (unlikely(!__pyx_tuple__273)) __PYX_ERR(0, 8247, __pyx_L1_error)
52008  __Pyx_GOTREF(__pyx_tuple__273);
52009  __Pyx_GIVEREF(__pyx_tuple__273);
52010  __pyx_codeobj__274 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__273, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_smoothedDirac, 8247, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__274)) __PYX_ERR(0, 8247, __pyx_L1_error)
52011  __Pyx_RefNannyFinishContext();
52012  return 0;
52013  __pyx_L1_error:;
52014  __Pyx_RefNannyFinishContext();
52015  return -1;
52016 }
52017 
52018 static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void) {
52019  if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
52020  return 0;
52021  __pyx_L1_error:;
52022  return -1;
52023 }
52024 
52025 static CYTHON_SMALL_CODE int __Pyx_modinit_global_init_code(void); /*proto*/
52026 static CYTHON_SMALL_CODE int __Pyx_modinit_variable_export_code(void); /*proto*/
52027 static CYTHON_SMALL_CODE int __Pyx_modinit_function_export_code(void); /*proto*/
52028 static CYTHON_SMALL_CODE int __Pyx_modinit_type_init_code(void); /*proto*/
52029 static CYTHON_SMALL_CODE int __Pyx_modinit_type_import_code(void); /*proto*/
52030 static CYTHON_SMALL_CODE int __Pyx_modinit_variable_import_code(void); /*proto*/
52031 static CYTHON_SMALL_CODE int __Pyx_modinit_function_import_code(void); /*proto*/
52032 
52033 static int __Pyx_modinit_global_init_code(void) {
52034  __Pyx_RefNannyDeclarations
52035  __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0);
52036  /*--- Global init code ---*/
52037  __Pyx_RefNannyFinishContext();
52038  return 0;
52039 }
52040 
52041 static int __Pyx_modinit_variable_export_code(void) {
52042  __Pyx_RefNannyDeclarations
52043  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0);
52044  /*--- Variable export code ---*/
52045  __Pyx_RefNannyFinishContext();
52046  return 0;
52047 }
52048 
52049 static int __Pyx_modinit_function_export_code(void) {
52050  __Pyx_RefNannyDeclarations
52051  __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0);
52052  /*--- Function export code ---*/
52053  __Pyx_RefNannyFinishContext();
52054  return 0;
52055 }
52056 
52057 static int __Pyx_modinit_type_init_code(void) {
52058  __Pyx_RefNannyDeclarations
52059  __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0);
52060  /*--- Type init code ---*/
52061  __Pyx_RefNannyFinishContext();
52062  return 0;
52063 }
52064 
52065 static int __Pyx_modinit_type_import_code(void) {
52066  __Pyx_RefNannyDeclarations
52067  PyObject *__pyx_t_1 = NULL;
52068  int __pyx_lineno = 0;
52069  const char *__pyx_filename = NULL;
52070  int __pyx_clineno = 0;
52071  __Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0);
52072  /*--- Type import code ---*/
52073  __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error)
52074  __Pyx_GOTREF(__pyx_t_1);
52075  __pyx_ptype_7cpython_4type_type = __Pyx_ImportType(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type",
52076  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
52077  sizeof(PyTypeObject),
52078  #else
52079  sizeof(PyHeapTypeObject),
52080  #endif
52081  __Pyx_ImportType_CheckSize_Warn);
52082  if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(2, 9, __pyx_L1_error)
52083  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52084  __pyx_t_1 = PyImport_ImportModule("numpy"); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 200, __pyx_L1_error)
52085  __Pyx_GOTREF(__pyx_t_1);
52086  __pyx_ptype_5numpy_dtype = __Pyx_ImportType(__pyx_t_1, "numpy", "dtype", sizeof(PyArray_Descr), __Pyx_ImportType_CheckSize_Ignore);
52087  if (!__pyx_ptype_5numpy_dtype) __PYX_ERR(1, 200, __pyx_L1_error)
52088  __pyx_ptype_5numpy_flatiter = __Pyx_ImportType(__pyx_t_1, "numpy", "flatiter", sizeof(PyArrayIterObject), __Pyx_ImportType_CheckSize_Ignore);
52089  if (!__pyx_ptype_5numpy_flatiter) __PYX_ERR(1, 223, __pyx_L1_error)
52090  __pyx_ptype_5numpy_broadcast = __Pyx_ImportType(__pyx_t_1, "numpy", "broadcast", sizeof(PyArrayMultiIterObject), __Pyx_ImportType_CheckSize_Ignore);
52091  if (!__pyx_ptype_5numpy_broadcast) __PYX_ERR(1, 227, __pyx_L1_error)
52092  __pyx_ptype_5numpy_ndarray = __Pyx_ImportType(__pyx_t_1, "numpy", "ndarray", sizeof(PyArrayObject), __Pyx_ImportType_CheckSize_Ignore);
52093  if (!__pyx_ptype_5numpy_ndarray) __PYX_ERR(1, 239, __pyx_L1_error)
52094  __pyx_ptype_5numpy_generic = __Pyx_ImportType(__pyx_t_1, "numpy", "generic", sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
52095  if (!__pyx_ptype_5numpy_generic) __PYX_ERR(1, 771, __pyx_L1_error)
52096  __pyx_ptype_5numpy_number = __Pyx_ImportType(__pyx_t_1, "numpy", "number", sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
52097  if (!__pyx_ptype_5numpy_number) __PYX_ERR(1, 773, __pyx_L1_error)
52098  __pyx_ptype_5numpy_integer = __Pyx_ImportType(__pyx_t_1, "numpy", "integer", sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
52099  if (!__pyx_ptype_5numpy_integer) __PYX_ERR(1, 775, __pyx_L1_error)
52100  __pyx_ptype_5numpy_signedinteger = __Pyx_ImportType(__pyx_t_1, "numpy", "signedinteger", sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
52101  if (!__pyx_ptype_5numpy_signedinteger) __PYX_ERR(1, 777, __pyx_L1_error)
52102  __pyx_ptype_5numpy_unsignedinteger = __Pyx_ImportType(__pyx_t_1, "numpy", "unsignedinteger", sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
52103  if (!__pyx_ptype_5numpy_unsignedinteger) __PYX_ERR(1, 779, __pyx_L1_error)
52104  __pyx_ptype_5numpy_inexact = __Pyx_ImportType(__pyx_t_1, "numpy", "inexact", sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
52105  if (!__pyx_ptype_5numpy_inexact) __PYX_ERR(1, 781, __pyx_L1_error)
52106  __pyx_ptype_5numpy_floating = __Pyx_ImportType(__pyx_t_1, "numpy", "floating", sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
52107  if (!__pyx_ptype_5numpy_floating) __PYX_ERR(1, 783, __pyx_L1_error)
52108  __pyx_ptype_5numpy_complexfloating = __Pyx_ImportType(__pyx_t_1, "numpy", "complexfloating", sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
52109  if (!__pyx_ptype_5numpy_complexfloating) __PYX_ERR(1, 785, __pyx_L1_error)
52110  __pyx_ptype_5numpy_flexible = __Pyx_ImportType(__pyx_t_1, "numpy", "flexible", sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
52111  if (!__pyx_ptype_5numpy_flexible) __PYX_ERR(1, 787, __pyx_L1_error)
52112  __pyx_ptype_5numpy_character = __Pyx_ImportType(__pyx_t_1, "numpy", "character", sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
52113  if (!__pyx_ptype_5numpy_character) __PYX_ERR(1, 789, __pyx_L1_error)
52114  __pyx_ptype_5numpy_ufunc = __Pyx_ImportType(__pyx_t_1, "numpy", "ufunc", sizeof(PyUFuncObject), __Pyx_ImportType_CheckSize_Ignore);
52115  if (!__pyx_ptype_5numpy_ufunc) __PYX_ERR(1, 827, __pyx_L1_error)
52116  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52117  __Pyx_RefNannyFinishContext();
52118  return 0;
52119  __pyx_L1_error:;
52120  __Pyx_XDECREF(__pyx_t_1);
52121  __Pyx_RefNannyFinishContext();
52122  return -1;
52123 }
52124 
52125 static int __Pyx_modinit_variable_import_code(void) {
52126  __Pyx_RefNannyDeclarations
52127  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0);
52128  /*--- Variable import code ---*/
52129  __Pyx_RefNannyFinishContext();
52130  return 0;
52131 }
52132 
52133 static int __Pyx_modinit_function_import_code(void) {
52134  __Pyx_RefNannyDeclarations
52135  __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0);
52136  /*--- Function import code ---*/
52137  __Pyx_RefNannyFinishContext();
52138  return 0;
52139 }
52140 
52141 
52142 #ifndef CYTHON_NO_PYINIT_EXPORT
52143 #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
52144 #elif PY_MAJOR_VERSION < 3
52145 #ifdef __cplusplus
52146 #define __Pyx_PyMODINIT_FUNC extern "C" void
52147 #else
52148 #define __Pyx_PyMODINIT_FUNC void
52149 #endif
52150 #else
52151 #ifdef __cplusplus
52152 #define __Pyx_PyMODINIT_FUNC extern "C" PyObject *
52153 #else
52154 #define __Pyx_PyMODINIT_FUNC PyObject *
52155 #endif
52156 #endif
52157 
52158 
52159 #if PY_MAJOR_VERSION < 3
52160 __Pyx_PyMODINIT_FUNC initctransportCoefficients(void) CYTHON_SMALL_CODE; /*proto*/
52161 __Pyx_PyMODINIT_FUNC initctransportCoefficients(void)
52162 #else
52163 __Pyx_PyMODINIT_FUNC PyInit_ctransportCoefficients(void) CYTHON_SMALL_CODE; /*proto*/
52164 __Pyx_PyMODINIT_FUNC PyInit_ctransportCoefficients(void)
52165 #if CYTHON_PEP489_MULTI_PHASE_INIT
52166 {
52167  return PyModuleDef_Init(&__pyx_moduledef);
52168 }
52169 static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) {
52170  #if PY_VERSION_HEX >= 0x030700A1
52171  static PY_INT64_T main_interpreter_id = -1;
52172  PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp);
52173  if (main_interpreter_id == -1) {
52174  main_interpreter_id = current_id;
52175  return (unlikely(current_id == -1)) ? -1 : 0;
52176  } else if (unlikely(main_interpreter_id != current_id))
52177  #else
52178  static PyInterpreterState *main_interpreter = NULL;
52179  PyInterpreterState *current_interpreter = PyThreadState_Get()->interp;
52180  if (!main_interpreter) {
52181  main_interpreter = current_interpreter;
52182  } else if (unlikely(main_interpreter != current_interpreter))
52183  #endif
52184  {
52185  PyErr_SetString(
52186  PyExc_ImportError,
52187  "Interpreter change detected - this module can only be loaded into one interpreter per process.");
52188  return -1;
52189  }
52190  return 0;
52191 }
52192 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) {
52193  PyObject *value = PyObject_GetAttrString(spec, from_name);
52194  int result = 0;
52195  if (likely(value)) {
52196  if (allow_none || value != Py_None) {
52197  result = PyDict_SetItemString(moddict, to_name, value);
52198  }
52199  Py_DECREF(value);
52200  } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
52201  PyErr_Clear();
52202  } else {
52203  result = -1;
52204  }
52205  return result;
52206 }
52207 static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, CYTHON_UNUSED PyModuleDef *def) {
52208  PyObject *module = NULL, *moddict, *modname;
52209  if (__Pyx_check_single_interpreter())
52210  return NULL;
52211  if (__pyx_m)
52212  return __Pyx_NewRef(__pyx_m);
52213  modname = PyObject_GetAttrString(spec, "name");
52214  if (unlikely(!modname)) goto bad;
52215  module = PyModule_NewObject(modname);
52216  Py_DECREF(modname);
52217  if (unlikely(!module)) goto bad;
52218  moddict = PyModule_GetDict(module);
52219  if (unlikely(!moddict)) goto bad;
52220  if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__", 1) < 0)) goto bad;
52221  if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__", 1) < 0)) goto bad;
52222  if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__", 1) < 0)) goto bad;
52223  if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__", 0) < 0)) goto bad;
52224  return module;
52225 bad:
52226  Py_XDECREF(module);
52227  return NULL;
52228 }
52229 
52230 
52231 static CYTHON_SMALL_CODE int __pyx_pymod_exec_ctransportCoefficients(PyObject *__pyx_pyinit_module)
52232 #endif
52233 #endif
52234 {
52235  PyObject *__pyx_t_1 = NULL;
52236  int __pyx_lineno = 0;
52237  const char *__pyx_filename = NULL;
52238  int __pyx_clineno = 0;
52239  __Pyx_RefNannyDeclarations
52240  #if CYTHON_PEP489_MULTI_PHASE_INIT
52241  if (__pyx_m) {
52242  if (__pyx_m == __pyx_pyinit_module) return 0;
52243  PyErr_SetString(PyExc_RuntimeError, "Module 'ctransportCoefficients' has already been imported. Re-initialisation is not supported.");
52244  return -1;
52245  }
52246  #elif PY_MAJOR_VERSION >= 3
52247  if (__pyx_m) return __Pyx_NewRef(__pyx_m);
52248  #endif
52249  #if CYTHON_REFNANNY
52250 __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
52251 if (!__Pyx_RefNanny) {
52252  PyErr_Clear();
52253  __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
52254  if (!__Pyx_RefNanny)
52255  Py_FatalError("failed to import 'refnanny' module");
52256 }
52257 #endif
52258  __Pyx_RefNannySetupContext("__Pyx_PyMODINIT_FUNC PyInit_ctransportCoefficients(void)", 0);
52259  if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
52260  #ifdef __Pxy_PyFrame_Initialize_Offsets
52261  __Pxy_PyFrame_Initialize_Offsets();
52262  #endif
52263  __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error)
52264  __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error)
52265  __pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error)
52266  #ifdef __Pyx_CyFunction_USED
52267  if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
52268  #endif
52269  #ifdef __Pyx_FusedFunction_USED
52270  if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
52271  #endif
52272  #ifdef __Pyx_Coroutine_USED
52273  if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
52274  #endif
52275  #ifdef __Pyx_Generator_USED
52276  if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
52277  #endif
52278  #ifdef __Pyx_AsyncGen_USED
52279  if (__pyx_AsyncGen_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
52280  #endif
52281  #ifdef __Pyx_StopAsyncIteration_USED
52282  if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
52283  #endif
52284  /*--- Library function declarations ---*/
52285  /*--- Threads initialization code ---*/
52286  #if defined(WITH_THREAD) && PY_VERSION_HEX < 0x030700F0 && defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
52287  PyEval_InitThreads();
52288  #endif
52289  /*--- Module creation code ---*/
52290  #if CYTHON_PEP489_MULTI_PHASE_INIT
52291  __pyx_m = __pyx_pyinit_module;
52292  Py_INCREF(__pyx_m);
52293  #else
52294  #if PY_MAJOR_VERSION < 3
52295  __pyx_m = Py_InitModule4("ctransportCoefficients", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
52296  #else
52297  __pyx_m = PyModule_Create(&__pyx_moduledef);
52298  #endif
52299  if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error)
52300  #endif
52301  __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error)
52302  Py_INCREF(__pyx_d);
52303  __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
52304  Py_INCREF(__pyx_b);
52305  __pyx_cython_runtime = PyImport_AddModule((char *) "cython_runtime"); if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
52306  Py_INCREF(__pyx_cython_runtime);
52307  if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
52308  /*--- Initialize various global constants etc. ---*/
52309  if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
52310  #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
52311  if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
52312  #endif
52313  if (__pyx_module_is_main_ctransportCoefficients) {
52314  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_name, __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
52315  }
52316  #if PY_MAJOR_VERSION >= 3
52317  {
52318  PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error)
52319  if (!PyDict_GetItemString(modules, "ctransportCoefficients")) {
52320  if (unlikely(PyDict_SetItemString(modules, "ctransportCoefficients", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
52321  }
52322  }
52323  #endif
52324  /*--- Builtin init code ---*/
52325  if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
52326  /*--- Constants init code ---*/
52327  if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
52328  /*--- Global type/function init code ---*/
52329  (void)__Pyx_modinit_global_init_code();
52330  (void)__Pyx_modinit_variable_export_code();
52331  (void)__Pyx_modinit_function_export_code();
52332  (void)__Pyx_modinit_type_init_code();
52333  if (unlikely(__Pyx_modinit_type_import_code() < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
52334  (void)__Pyx_modinit_variable_import_code();
52335  (void)__Pyx_modinit_function_import_code();
52336  /*--- Execution code ---*/
52337  #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
52338  if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
52339  #endif
52340 
52341  /* "ctransportCoefficients.pyx":2
52342  * # A type of -*- python -*- file
52343  * import numpy as np # <<<<<<<<<<<<<<
52344  * cimport numpy as np
52345  * cdef extern from "transportCoefficients.h":
52346  */
52347  __pyx_t_1 = __Pyx_Import(__pyx_n_s_numpy, 0, -1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2, __pyx_L1_error)
52348  __Pyx_GOTREF(__pyx_t_1);
52349  if (PyDict_SetItem(__pyx_d, __pyx_n_s_np, __pyx_t_1) < 0) __PYX_ERR(0, 2, __pyx_L1_error)
52350  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52351 
52352  /* "ctransportCoefficients.pyx":2816
52353  * double csmoothedDirac "smoothedDirac"(double eps, double phi)
52354  * ##======================
52355  * def linearADR_ConstantCoefficientsEvaluate(const double M, # <<<<<<<<<<<<<<
52356  * np.ndarray A,
52357  * np.ndarray B,
52358  */
52359  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_1linearADR_ConstantCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2816, __pyx_L1_error)
52360  __Pyx_GOTREF(__pyx_t_1);
52361  if (PyDict_SetItem(__pyx_d, __pyx_n_s_linearADR_ConstantCoefficientsEv, __pyx_t_1) < 0) __PYX_ERR(0, 2816, __pyx_L1_error)
52362  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52363 
52364  /* "ctransportCoefficients.pyx":2846
52365  * <double*> r.data,
52366  * <double*> dr.data)
52367  * def groundwaterTransportCoefficientsEvaluate(const double omega, # <<<<<<<<<<<<<<
52368  * const double d,
52369  * const double alpha_L,
52370  */
52371  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_3groundwaterTransportCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2846, __pyx_L1_error)
52372  __Pyx_GOTREF(__pyx_t_1);
52373  if (PyDict_SetItem(__pyx_d, __pyx_n_s_groundwaterTransportCoefficients, __pyx_t_1) < 0) __PYX_ERR(0, 2846, __pyx_L1_error)
52374  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52375 
52376  /* "ctransportCoefficients.pyx":2870
52377  * <double*> df.data,
52378  * <double*> a.data)
52379  * def groundwaterBiodegradation01EvaluateFC(const double omega, # <<<<<<<<<<<<<<
52380  * const double d_c,
52381  * const double d_e,
52382  */
52383  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_5groundwaterBiodegradation01EvaluateFC, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2870, __pyx_L1_error)
52384  __Pyx_GOTREF(__pyx_t_1);
52385  if (PyDict_SetItem(__pyx_d, __pyx_n_s_groundwaterBiodegradation01Evalu, __pyx_t_1) < 0) __PYX_ERR(0, 2870, __pyx_L1_error)
52386  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52387 
52388  /* "ctransportCoefficients.pyx":2950
52389  * <double*> dr_x_de.data,
52390  * <double*> dr_x_dx.data)
52391  * def groundwaterBryantDawsonIonExEvaluateFC(const double omega, # <<<<<<<<<<<<<<
52392  * const double d_m,
52393  * const double d_h,
52394  */
52395  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_7groundwaterBryantDawsonIonExEvaluateFC, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2950, __pyx_L1_error)
52396  __Pyx_GOTREF(__pyx_t_1);
52397  if (PyDict_SetItem(__pyx_d, __pyx_n_s_groundwaterBryantDawsonIonExEval, __pyx_t_1) < 0) __PYX_ERR(0, 2950, __pyx_L1_error)
52398  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52399 
52400  /* "ctransportCoefficients.pyx":3016
52401  * <double*> dr_h_dm.data,
52402  * <double*> dr_h_dh.data)
52403  * def groundwaterTransportCoefficientsEvaluate_hetMat(const double d, # <<<<<<<<<<<<<<
52404  * np.ndarray materialTypes,
52405  * np.ndarray omega_types,
52406  */
52407  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_9groundwaterTransportCoefficientsEvaluate_hetMat, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3016, __pyx_L1_error)
52408  __Pyx_GOTREF(__pyx_t_1);
52409  if (PyDict_SetItem(__pyx_d, __pyx_n_s_groundwaterTransportCoefficients_2, __pyx_t_1) < 0) __PYX_ERR(0, 3016, __pyx_L1_error)
52410  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52411 
52412  /* "ctransportCoefficients.pyx":3045
52413  * <double*> a.data)
52414  *
52415  * def variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat(const double d, # <<<<<<<<<<<<<<
52416  * np.ndarray materialTypes,
52417  * np.ndarray theta,
52418  */
52419  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_11variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3045, __pyx_L1_error)
52420  __Pyx_GOTREF(__pyx_t_1);
52421  if (PyDict_SetItem(__pyx_d, __pyx_n_s_variablySaturatedGroundwaterTran, __pyx_t_1) < 0) __PYX_ERR(0, 3045, __pyx_L1_error)
52422  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52423 
52424  /* "ctransportCoefficients.pyx":3081
52425  * else:
52426  * assert 0
52427  * def variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat(const double rho_w, # <<<<<<<<<<<<<<
52428  * const double rho_n,
52429  * const double specificHeat_w,
52430  */
52431  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_13variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3081, __pyx_L1_error)
52432  __Pyx_GOTREF(__pyx_t_1);
52433  if (PyDict_SetItem(__pyx_d, __pyx_n_s_variablySaturatedGroundwaterEner, __pyx_t_1) < 0) __PYX_ERR(0, 3081, __pyx_L1_error)
52434  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52435 
52436  /* "ctransportCoefficients.pyx":3135
52437  * else:
52438  * assert 0
52439  * def nonlinearADR_pqrstEvaluate(const double M, # <<<<<<<<<<<<<<
52440  * np.ndarray A,
52441  * np.ndarray B,
52442  */
52443  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_15nonlinearADR_pqrstEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3135, __pyx_L1_error)
52444  __Pyx_GOTREF(__pyx_t_1);
52445  if (PyDict_SetItem(__pyx_d, __pyx_n_s_nonlinearADR_pqrstEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3135, __pyx_L1_error)
52446  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52447 
52448  /* "ctransportCoefficients.pyx":3181
52449  * <double*> r.data,
52450  * <double*> dr.data)
52451  * def nonlinearADR_pqrstDualEvaluate(const int nPoints, # <<<<<<<<<<<<<<
52452  * const int nSpace,
52453  * const double M,
52454  */
52455  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_17nonlinearADR_pqrstDualEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3181, __pyx_L1_error)
52456  __Pyx_GOTREF(__pyx_t_1);
52457  if (PyDict_SetItem(__pyx_d, __pyx_n_s_nonlinearADR_pqrstDualEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3181, __pyx_L1_error)
52458  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52459 
52460  /* "ctransportCoefficients.pyx":3239
52461  * <double*> r.data,
52462  * <double*> dr.data)
52463  * def unitSquareRotationEvaluate(np.ndarray x, # <<<<<<<<<<<<<<
52464  * np.ndarray u,
52465  * np.ndarray m,
52466  */
52467  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_19unitSquareRotationEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3239, __pyx_L1_error)
52468  __Pyx_GOTREF(__pyx_t_1);
52469  if (PyDict_SetItem(__pyx_d, __pyx_n_s_unitSquareRotationEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3239, __pyx_L1_error)
52470  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52471 
52472  /* "ctransportCoefficients.pyx":3253
52473  * <double*> f.data,
52474  * <double*> df.data)
52475  * def unitCubeRotationEvaluate(np.ndarray x, # <<<<<<<<<<<<<<
52476  * np.ndarray u,
52477  * np.ndarray m,
52478  */
52479  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_21unitCubeRotationEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3253, __pyx_L1_error)
52480  __Pyx_GOTREF(__pyx_t_1);
52481  if (PyDict_SetItem(__pyx_d, __pyx_n_s_unitCubeRotationEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3253, __pyx_L1_error)
52482  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52483 
52484  /* "ctransportCoefficients.pyx":3267
52485  * <double*> f.data,
52486  * <double*> df.data)
52487  * def rotatingPulseVelEvaluate(const int nPoints, # <<<<<<<<<<<<<<
52488  * const int nSpace,
52489  * const double self_a,
52490  */
52491  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_23rotatingPulseVelEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3267, __pyx_L1_error)
52492  __Pyx_GOTREF(__pyx_t_1);
52493  if (PyDict_SetItem(__pyx_d, __pyx_n_s_rotatingPulseVelEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3267, __pyx_L1_error)
52494  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52495 
52496  /* "ctransportCoefficients.pyx":3293
52497  * <double*> phi.data,
52498  * <double*> dphi.data)
52499  * def disRotatingPulseVelEvaluate(const int nPoints, # <<<<<<<<<<<<<<
52500  * const int nSpace,
52501  * const double self_a,
52502  */
52503  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_25disRotatingPulseVelEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3293, __pyx_L1_error)
52504  __Pyx_GOTREF(__pyx_t_1);
52505  if (PyDict_SetItem(__pyx_d, __pyx_n_s_disRotatingPulseVelEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3293, __pyx_L1_error)
52506  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52507 
52508  /* "ctransportCoefficients.pyx":3319
52509  * <double*> phi.data,
52510  * <double*> dphi.data)
52511  * def disVelEvaluate(const int nPoints, # <<<<<<<<<<<<<<
52512  * const int nSpace,
52513  * const double self_a,
52514  */
52515  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_27disVelEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3319, __pyx_L1_error)
52516  __Pyx_GOTREF(__pyx_t_1);
52517  if (PyDict_SetItem(__pyx_d, __pyx_n_s_disVelEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3319, __pyx_L1_error)
52518  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52519 
52520  /* "ctransportCoefficients.pyx":3345
52521  * <double*> phi.data,
52522  * <double*> dphi.data)
52523  * def burgersDiagonalVelEvaluate(const double self_a, # <<<<<<<<<<<<<<
52524  * np.ndarray self_v,
52525  * np.ndarray u,
52526  */
52527  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_29burgersDiagonalVelEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3345, __pyx_L1_error)
52528  __Pyx_GOTREF(__pyx_t_1);
52529  if (PyDict_SetItem(__pyx_d, __pyx_n_s_burgersDiagonalVelEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3345, __pyx_L1_error)
52530  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52531 
52532  /* "ctransportCoefficients.pyx":3367
52533  * <double*> phi.data,
52534  * <double*> dphi.data)
52535  * def burgersDiagonalVelHJEvaluate(const double self_a, # <<<<<<<<<<<<<<
52536  * np.ndarray self_v,
52537  * np.ndarray u,
52538  */
52539  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_31burgersDiagonalVelHJEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3367, __pyx_L1_error)
52540  __Pyx_GOTREF(__pyx_t_1);
52541  if (PyDict_SetItem(__pyx_d, __pyx_n_s_burgersDiagonalVelHJEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3367, __pyx_L1_error)
52542  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52543 
52544  /* "ctransportCoefficients.pyx":3391
52545  * <double*> phi.data,
52546  * <double*> dphi.data)
52547  * def twophasePotentialFlowEvaluate(int nPoints, # <<<<<<<<<<<<<<
52548  * int nSpace,
52549  * np.ndarray M,
52550  */
52551  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_33twophasePotentialFlowEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3391, __pyx_L1_error)
52552  __Pyx_GOTREF(__pyx_t_1);
52553  if (PyDict_SetItem(__pyx_d, __pyx_n_s_twophasePotentialFlowEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3391, __pyx_L1_error)
52554  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52555 
52556  /* "ctransportCoefficients.pyx":3431
52557  * <double*> r.data,
52558  * <double*> dr.data)
52559  * def twophasePotentialFlowUpdateFreeSurface(int nPoints, # <<<<<<<<<<<<<<
52560  * int nSpace,
52561  * double eps,
52562  */
52563  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_35twophasePotentialFlowUpdateFreeSurface, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3431, __pyx_L1_error)
52564  __Pyx_GOTREF(__pyx_t_1);
52565  if (PyDict_SetItem(__pyx_d, __pyx_n_s_twophasePotentialFlowUpdateFreeS, __pyx_t_1) < 0) __PYX_ERR(0, 3431, __pyx_L1_error)
52566  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52567 
52568  /* "ctransportCoefficients.pyx":3469
52569  * C2,
52570  * <double*> C.data)
52571  * def twophaseLevelSetCoefficientsUpdateVelocity(int nPoints, # <<<<<<<<<<<<<<
52572  * int nSpace,
52573  * double v_scale,
52574  */
52575  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_37twophaseLevelSetCoefficientsUpdateVelocity, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3469, __pyx_L1_error)
52576  __Pyx_GOTREF(__pyx_t_1);
52577  if (PyDict_SetItem(__pyx_d, __pyx_n_s_twophaseLevelSetCoefficientsUpda, __pyx_t_1) < 0) __PYX_ERR(0, 3469, __pyx_L1_error)
52578  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52579 
52580  /* "ctransportCoefficients.pyx":3479
52581  * <double*> vIn.data,
52582  * <double*> vOut.data)
52583  * def twophaseLevelSetCoefficientsEvaluate(int nPoints, # <<<<<<<<<<<<<<
52584  * int nSpace,
52585  * np.ndarray B,
52586  */
52587  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_39twophaseLevelSetCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3479, __pyx_L1_error)
52588  __Pyx_GOTREF(__pyx_t_1);
52589  if (PyDict_SetItem(__pyx_d, __pyx_n_s_twophaseLevelSetCoefficientsEval, __pyx_t_1) < 0) __PYX_ERR(0, 3479, __pyx_L1_error)
52590  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52591 
52592  /* "ctransportCoefficients.pyx":3503
52593  * <double*> dh.data,
52594  * <double*> rh.data)
52595  * def twophaseLevelSetCoefficientsEvaluateCI(int nPoints, # <<<<<<<<<<<<<<
52596  * int nSpace,
52597  * np.ndarray B,
52598  */
52599  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_41twophaseLevelSetCoefficientsEvaluateCI, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3503, __pyx_L1_error)
52600  __Pyx_GOTREF(__pyx_t_1);
52601  if (PyDict_SetItem(__pyx_d, __pyx_n_s_twophaseLevelSetCoefficientsEval_2, __pyx_t_1) < 0) __PYX_ERR(0, 3503, __pyx_L1_error)
52602  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52603 
52604  /* "ctransportCoefficients.pyx":3535
52605  * <double*> r.data,
52606  * <double*> dr.data)
52607  * def ncLevelSetCoefficientsEvaluate(np.ndarray v, # <<<<<<<<<<<<<<
52608  * np.ndarray u,
52609  * np.ndarray grad_u,
52610  */
52611  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_43ncLevelSetCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3535, __pyx_L1_error)
52612  __Pyx_GOTREF(__pyx_t_1);
52613  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ncLevelSetCoefficientsEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3535, __pyx_L1_error)
52614  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52615 
52616  /* "ctransportCoefficients.pyx":3551
52617  * <double*> H.data,
52618  * <double*> dH.data)
52619  * def cLevelSetCoefficientsEvaluate(np.ndarray v, # <<<<<<<<<<<<<<
52620  * np.ndarray u,
52621  * np.ndarray m,
52622  */
52623  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_45cLevelSetCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3551, __pyx_L1_error)
52624  __Pyx_GOTREF(__pyx_t_1);
52625  if (PyDict_SetItem(__pyx_d, __pyx_n_s_cLevelSetCoefficientsEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3551, __pyx_L1_error)
52626  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52627 
52628  /* "ctransportCoefficients.pyx":3565
52629  * <double*> f.data,
52630  * <double*> df.data)
52631  * def VOFCoefficientsEvaluate(double eps, # <<<<<<<<<<<<<<
52632  * np.ndarray v,
52633  * np.ndarray phi,
52634  */
52635  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_47VOFCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3565, __pyx_L1_error)
52636  __Pyx_GOTREF(__pyx_t_1);
52637  if (PyDict_SetItem(__pyx_d, __pyx_n_s_VOFCoefficientsEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3565, __pyx_L1_error)
52638  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52639 
52640  /* "ctransportCoefficients.pyx":3583
52641  * <double*> f.data,
52642  * <double*> df.data)
52643  * def levelSetCurvatureCoefficientsEvaluate(np.ndarray grad_phi, # <<<<<<<<<<<<<<
52644  * np.ndarray u,
52645  * np.ndarray f,
52646  */
52647  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_49levelSetCurvatureCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3583, __pyx_L1_error)
52648  __Pyx_GOTREF(__pyx_t_1);
52649  if (PyDict_SetItem(__pyx_d, __pyx_n_s_levelSetCurvatureCoefficientsEva, __pyx_t_1) < 0) __PYX_ERR(0, 3583, __pyx_L1_error)
52650  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52651 
52652  /* "ctransportCoefficients.pyx":3595
52653  * <double*> r.data,
52654  * <double*> dr.data)
52655  * def twophaseSignedDistanceCoefficientsEvaluate(int nPoints, # <<<<<<<<<<<<<<
52656  * int nSpace,
52657  * np.ndarray S,
52658  */
52659  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_51twophaseSignedDistanceCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3595, __pyx_L1_error)
52660  __Pyx_GOTREF(__pyx_t_1);
52661  if (PyDict_SetItem(__pyx_d, __pyx_n_s_twophaseSignedDistanceCoefficien, __pyx_t_1) < 0) __PYX_ERR(0, 3595, __pyx_L1_error)
52662  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52663 
52664  /* "ctransportCoefficients.pyx":3615
52665  * <double*> dh.data,
52666  * <double*> rh.data)
52667  * def eikonalEquationEvaluate(double rhs, # <<<<<<<<<<<<<<
52668  * np.ndarray u,
52669  * np.ndarray grad_u,
52670  */
52671  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_53eikonalEquationEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3615, __pyx_L1_error)
52672  __Pyx_GOTREF(__pyx_t_1);
52673  if (PyDict_SetItem(__pyx_d, __pyx_n_s_eikonalEquationEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3615, __pyx_L1_error)
52674  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52675 
52676  /* "ctransportCoefficients.pyx":3633
52677  * <double*> dH.data,
52678  * <double*> r.data)
52679  * def redistanceLevelSetCoefficientsEvaluate(double eps, # <<<<<<<<<<<<<<
52680  * np.ndarray u_levelSet,
52681  * np.ndarray u,
52682  */
52683  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_55redistanceLevelSetCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3633, __pyx_L1_error)
52684  __Pyx_GOTREF(__pyx_t_1);
52685  if (PyDict_SetItem(__pyx_d, __pyx_n_s_redistanceLevelSetCoefficientsEv, __pyx_t_1) < 0) __PYX_ERR(0, 3633, __pyx_L1_error)
52686  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52687 
52688  /* "ctransportCoefficients.pyx":3653
52689  * <double*> dH.data,
52690  * <double*> r.data)
52691  * def redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate(double eps, # <<<<<<<<<<<<<<
52692  * double Lambda_penalty,
52693  * np.ndarray u_levelSet,
52694  */
52695  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_57redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3653, __pyx_L1_error)
52696  __Pyx_GOTREF(__pyx_t_1);
52697  if (PyDict_SetItem(__pyx_d, __pyx_n_s_redistanceLevelSetCoefficientsWi, __pyx_t_1) < 0) __PYX_ERR(0, 3653, __pyx_L1_error)
52698  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52699 
52700  /* "ctransportCoefficients.pyx":3677
52701  * <double*> r.data,
52702  * <double*> dr.data)
52703  * def redistanceLevelSetSandFCoefficientsEvaluate(double eps, # <<<<<<<<<<<<<<
52704  * np.ndarray u_levelSet,
52705  * np.ndarray dV,
52706  */
52707  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_59redistanceLevelSetSandFCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3677, __pyx_L1_error)
52708  __Pyx_GOTREF(__pyx_t_1);
52709  if (PyDict_SetItem(__pyx_d, __pyx_n_s_redistanceLevelSetSandFCoefficie, __pyx_t_1) < 0) __PYX_ERR(0, 3677, __pyx_L1_error)
52710  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52711 
52712  /* "ctransportCoefficients.pyx":3709
52713  * else:
52714  * assert 0
52715  * def setWeakDirichletConditionsForLevelSet(int nElements_global, # <<<<<<<<<<<<<<
52716  * int nDOF_trial_element,
52717  * double epsilon_freeze_factor,
52718  */
52719  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_61setWeakDirichletConditionsForLevelSet, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3709, __pyx_L1_error)
52720  __Pyx_GOTREF(__pyx_t_1);
52721  if (PyDict_SetItem(__pyx_d, __pyx_n_s_setWeakDirichletConditionsForLev, __pyx_t_1) < 0) __PYX_ERR(0, 3709, __pyx_L1_error)
52722  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52723 
52724  /* "ctransportCoefficients.pyx":3725
52725  * <int*> freeze_nodes_tmp.data,
52726  * <int*> weakDirichletConditionFlags.data)
52727  * def setSimpleWeakDirichletConditionsForLevelSet(int nElements_global, # <<<<<<<<<<<<<<
52728  * int nDOF_trial_element,
52729  * double epsilon_freeze_factor,
52730  */
52731  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_63setSimpleWeakDirichletConditionsForLevelSet, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3725, __pyx_L1_error)
52732  __Pyx_GOTREF(__pyx_t_1);
52733  if (PyDict_SetItem(__pyx_d, __pyx_n_s_setSimpleWeakDirichletConditions, __pyx_t_1) < 0) __PYX_ERR(0, 3725, __pyx_L1_error)
52734  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52735 
52736  /* "ctransportCoefficients.pyx":3741
52737  * <int*> freeze_nodes_tmp.data,
52738  * <int*> weakDirichletConditionFlags.data)
52739  * def darcySharpInterfaceFlowEvaluate(double Km, # <<<<<<<<<<<<<<
52740  * double rhoM,
52741  * double Kp,
52742  */
52743  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_65darcySharpInterfaceFlowEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3741, __pyx_L1_error)
52744  __Pyx_GOTREF(__pyx_t_1);
52745  if (PyDict_SetItem(__pyx_d, __pyx_n_s_darcySharpInterfaceFlowEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3741, __pyx_L1_error)
52746  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52747 
52748  /* "ctransportCoefficients.pyx":3781
52749  * <double*> dr.data,
52750  * <double*> dm.data)
52751  * def darcySharpInterfaceFlowImEvaluate(double Km, # <<<<<<<<<<<<<<
52752  * double rhoM,
52753  * double Kp,
52754  */
52755  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_67darcySharpInterfaceFlowImEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3781, __pyx_L1_error)
52756  __Pyx_GOTREF(__pyx_t_1);
52757  if (PyDict_SetItem(__pyx_d, __pyx_n_s_darcySharpInterfaceFlowImEvaluat, __pyx_t_1) < 0) __PYX_ERR(0, 3781, __pyx_L1_error)
52758  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52759 
52760  /* "ctransportCoefficients.pyx":3819
52761  * <double*> dr.data,
52762  * <double*> dm.data)
52763  * def NavierStokes_2D_Evaluate(const double rho, # <<<<<<<<<<<<<<
52764  * const double nu,
52765  * np.ndarray g,
52766  */
52767  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_69NavierStokes_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3819, __pyx_L1_error)
52768  __Pyx_GOTREF(__pyx_t_1);
52769  if (PyDict_SetItem(__pyx_d, __pyx_n_s_NavierStokes_2D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3819, __pyx_L1_error)
52770  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52771 
52772  /* "ctransportCoefficients.pyx":3876
52773  * <double*> mom_v_ham.data,
52774  * <double*> dmom_v_ham_grad_p.data)
52775  * def NavierStokes_3D_Evaluate(const double rho, # <<<<<<<<<<<<<<
52776  * const double nu,
52777  * np.ndarray g,
52778  */
52779  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_71NavierStokes_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3876, __pyx_L1_error)
52780  __Pyx_GOTREF(__pyx_t_1);
52781  if (PyDict_SetItem(__pyx_d, __pyx_n_s_NavierStokes_3D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3876, __pyx_L1_error)
52782  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52783 
52784  /* "ctransportCoefficients.pyx":3961
52785  * <double*> mom_w_ham.data,
52786  * <double*> dmom_w_ham_grad_p.data)
52787  * def Stokes_2D_Evaluate(const double rho, # <<<<<<<<<<<<<<
52788  * const double nu,
52789  * np.ndarray g,
52790  */
52791  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_73Stokes_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3961, __pyx_L1_error)
52792  __Pyx_GOTREF(__pyx_t_1);
52793  if (PyDict_SetItem(__pyx_d, __pyx_n_s_Stokes_2D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3961, __pyx_L1_error)
52794  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52795 
52796  /* "ctransportCoefficients.pyx":4006
52797  * <double*> mom_v_ham.data,
52798  * <double*> dmom_v_ham_grad_p.data)
52799  * def StokesP_2D_Evaluate(const double rho, # <<<<<<<<<<<<<<
52800  * const double nu,
52801  * np.ndarray g,
52802  */
52803  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_75StokesP_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4006, __pyx_L1_error)
52804  __Pyx_GOTREF(__pyx_t_1);
52805  if (PyDict_SetItem(__pyx_d, __pyx_n_s_StokesP_2D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 4006, __pyx_L1_error)
52806  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52807 
52808  /* "ctransportCoefficients.pyx":4049
52809  * <double*> mom_u_source.data,
52810  * <double*> mom_v_source.data)
52811  * def Stokes_3D_Evaluate(const double rho, # <<<<<<<<<<<<<<
52812  * const double nu,
52813  * np.ndarray g,
52814  */
52815  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_77Stokes_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4049, __pyx_L1_error)
52816  __Pyx_GOTREF(__pyx_t_1);
52817  if (PyDict_SetItem(__pyx_d, __pyx_n_s_Stokes_3D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 4049, __pyx_L1_error)
52818  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52819 
52820  /* "ctransportCoefficients.pyx":4110
52821  * <double*> mom_w_ham.data,
52822  * <double*> dmom_w_ham_grad_p.data)
52823  * def StokesP_3D_Evaluate(const int nPoints, # <<<<<<<<<<<<<<
52824  * const double rho,
52825  * const double nu,
52826  */
52827  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_79StokesP_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4110, __pyx_L1_error)
52828  __Pyx_GOTREF(__pyx_t_1);
52829  if (PyDict_SetItem(__pyx_d, __pyx_n_s_StokesP_3D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 4110, __pyx_L1_error)
52830  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52831 
52832  /* "ctransportCoefficients.pyx":4170
52833  * <double*> mom_v_source.data,
52834  * <double*> mom_w_source.data)
52835  * def TwophaseNavierStokes_LS_SO_2D_Evaluate(const double eps, # <<<<<<<<<<<<<<
52836  * const double rho_0,
52837  * const double nu_0,
52838  */
52839  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_81TwophaseNavierStokes_LS_SO_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4170, __pyx_L1_error)
52840  __Pyx_GOTREF(__pyx_t_1);
52841  if (PyDict_SetItem(__pyx_d, __pyx_n_s_TwophaseNavierStokes_LS_SO_2D_Ev, __pyx_t_1) < 0) __PYX_ERR(0, 4170, __pyx_L1_error)
52842  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52843 
52844  /* "ctransportCoefficients.pyx":4235
52845  * <double*> mom_v_ham.data,
52846  * <double*> dmom_v_ham_grad_p.data)
52847  * def TwophaseNavierStokes_ST_LS_SO_2D_Evaluate(const double eps_rho, # <<<<<<<<<<<<<<
52848  * const double eps_mu,
52849  * const double sigma,
52850  */
52851  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_83TwophaseNavierStokes_ST_LS_SO_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4235, __pyx_L1_error)
52852  __Pyx_GOTREF(__pyx_t_1);
52853  if (PyDict_SetItem(__pyx_d, __pyx_n_s_TwophaseNavierStokes_ST_LS_SO_2D, __pyx_t_1) < 0) __PYX_ERR(0, 4235, __pyx_L1_error)
52854  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52855 
52856  /* "ctransportCoefficients.pyx":4312
52857  * <double*> mom_v_ham.data,
52858  * <double*> dmom_v_ham_grad_p.data)
52859  * def TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(const double eps_rho, # <<<<<<<<<<<<<<
52860  * const double eps_mu,
52861  * const double sigma,
52862  */
52863  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_85TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4312, __pyx_L1_error)
52864  __Pyx_GOTREF(__pyx_t_1);
52865  if (PyDict_SetItem(__pyx_d, __pyx_n_s_TwophaseNavierStokes_ST_LS_SO_2D_2, __pyx_t_1) < 0) __PYX_ERR(0, 4312, __pyx_L1_error)
52866  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52867 
52868  /* "ctransportCoefficients.pyx":4389
52869  * <double*> mom_v_ham.data,
52870  * <double*> dmom_v_ham_grad_p.data)
52871  * def ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate(const double boundaryPenaltyCoef, # <<<<<<<<<<<<<<
52872  * const double volumePenaltyCoef,
52873  * const double eps_rho,
52874  */
52875  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_87ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4389, __pyx_L1_error)
52876  __Pyx_GOTREF(__pyx_t_1);
52877  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ThreephaseNavierStokes_ST_LS_SO, __pyx_t_1) < 0) __PYX_ERR(0, 4389, __pyx_L1_error)
52878  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52879 
52880  /* "ctransportCoefficients.pyx":4486
52881  * <double*> mom_v_ham.data,
52882  * <double*> dmom_v_ham_grad_p.data)
52883  * def TwophaseNavierStokes_ST_LS_SO_3D_Evaluate(const double eps_rho, # <<<<<<<<<<<<<<
52884  * const double eps_mu,
52885  * const double sigma,
52886  */
52887  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_89TwophaseNavierStokes_ST_LS_SO_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4486, __pyx_L1_error)
52888  __Pyx_GOTREF(__pyx_t_1);
52889  if (PyDict_SetItem(__pyx_d, __pyx_n_s_TwophaseNavierStokes_ST_LS_SO_3D, __pyx_t_1) < 0) __PYX_ERR(0, 4486, __pyx_L1_error)
52890  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52891 
52892  /* "ctransportCoefficients.pyx":4599
52893  * <double*> mom_w_ham.data,
52894  * <double*> dmom_w_ham_grad_p.data)
52895  * def TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(const double eps_rho, # <<<<<<<<<<<<<<
52896  * const double eps_mu,
52897  * const double sigma,
52898  */
52899  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_91TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4599, __pyx_L1_error)
52900  __Pyx_GOTREF(__pyx_t_1);
52901  if (PyDict_SetItem(__pyx_d, __pyx_n_s_TwophaseNavierStokes_ST_LS_SO_3D_2, __pyx_t_1) < 0) __PYX_ERR(0, 4599, __pyx_L1_error)
52902  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52903 
52904  /* "ctransportCoefficients.pyx":4712
52905  * <double*> mom_w_ham.data,
52906  * <double*> dmom_w_ham_grad_p.data)
52907  * def ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate(const double boundaryPenaltyCoef, # <<<<<<<<<<<<<<
52908  * const double volumePenaltyCoef,
52909  * const double eps_rho,
52910  */
52911  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_93ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4712, __pyx_L1_error)
52912  __Pyx_GOTREF(__pyx_t_1);
52913  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ThreephaseNavierStokes_ST_LS_SO_2, __pyx_t_1) < 0) __PYX_ERR(0, 4712, __pyx_L1_error)
52914  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52915 
52916  /* "ctransportCoefficients.pyx":4855
52917  * <double*> mom_w_ham.data,
52918  * <double*> dmom_w_ham_grad_p.data)
52919  * def TwophaseNavierStokes_LS_SO_3D_Evaluate(const double eps, # <<<<<<<<<<<<<<
52920  * const double rho_0,
52921  * const double nu_0,
52922  */
52923  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_95TwophaseNavierStokes_LS_SO_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4855, __pyx_L1_error)
52924  __Pyx_GOTREF(__pyx_t_1);
52925  if (PyDict_SetItem(__pyx_d, __pyx_n_s_TwophaseNavierStokes_LS_SO_3D_Ev, __pyx_t_1) < 0) __PYX_ERR(0, 4855, __pyx_L1_error)
52926  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52927 
52928  /* "ctransportCoefficients.pyx":4948
52929  * <double*> mom_w_ham.data,
52930  * <double*> dmom_w_ham_grad_p.data)
52931  * def TwophaseStokes_LS_SO_2D_Evaluate(const double eps, # <<<<<<<<<<<<<<
52932  * const double rho_0,
52933  * const double nu_0,
52934  */
52935  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_97TwophaseStokes_LS_SO_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4948, __pyx_L1_error)
52936  __Pyx_GOTREF(__pyx_t_1);
52937  if (PyDict_SetItem(__pyx_d, __pyx_n_s_TwophaseStokes_LS_SO_2D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 4948, __pyx_L1_error)
52938  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52939 
52940  /* "ctransportCoefficients.pyx":5001
52941  * <double*> mom_v_ham.data,
52942  * <double*> dmom_v_ham_grad_p.data)
52943  * def TwophaseStokes_LS_SO_3D_Evaluate(const double eps, # <<<<<<<<<<<<<<
52944  * const double rho_0,
52945  * const double nu_0,
52946  */
52947  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_99TwophaseStokes_LS_SO_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5001, __pyx_L1_error)
52948  __Pyx_GOTREF(__pyx_t_1);
52949  if (PyDict_SetItem(__pyx_d, __pyx_n_s_TwophaseStokes_LS_SO_3D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 5001, __pyx_L1_error)
52950  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52951 
52952  /* "ctransportCoefficients.pyx":5070
52953  * <double*> mom_w_ham.data,
52954  * <double*> dmom_w_ham_grad_p.data)
52955  * def TwophaseNavierStokes_VOF_SO_2D_Evaluate(const double eps, # <<<<<<<<<<<<<<
52956  * const double rho_0,
52957  * const double nu_0,
52958  */
52959  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_101TwophaseNavierStokes_VOF_SO_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5070, __pyx_L1_error)
52960  __Pyx_GOTREF(__pyx_t_1);
52961  if (PyDict_SetItem(__pyx_d, __pyx_n_s_TwophaseNavierStokes_VOF_SO_2D_E, __pyx_t_1) < 0) __PYX_ERR(0, 5070, __pyx_L1_error)
52962  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52963 
52964  /* "ctransportCoefficients.pyx":5135
52965  * <double*> mom_v_ham.data,
52966  * <double*> dmom_v_ham_grad_p.data)
52967  * def TwophaseNavierStokes_VOF_SO_3D_Evaluate(const double eps, # <<<<<<<<<<<<<<
52968  * const double rho_0,
52969  * const double nu_0,
52970  */
52971  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_103TwophaseNavierStokes_VOF_SO_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5135, __pyx_L1_error)
52972  __Pyx_GOTREF(__pyx_t_1);
52973  if (PyDict_SetItem(__pyx_d, __pyx_n_s_TwophaseNavierStokes_VOF_SO_3D_E, __pyx_t_1) < 0) __PYX_ERR(0, 5135, __pyx_L1_error)
52974  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52975 
52976  /* "ctransportCoefficients.pyx":5228
52977  * <double*> mom_w_ham.data,
52978  * <double*> dmom_w_ham_grad_p.data)
52979  * def TwophaseStokes_VOF_SO_2D_Evaluate(const double eps, # <<<<<<<<<<<<<<
52980  * const double rho_0,
52981  * const double nu_0,
52982  */
52983  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_105TwophaseStokes_VOF_SO_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5228, __pyx_L1_error)
52984  __Pyx_GOTREF(__pyx_t_1);
52985  if (PyDict_SetItem(__pyx_d, __pyx_n_s_TwophaseStokes_VOF_SO_2D_Evaluat, __pyx_t_1) < 0) __PYX_ERR(0, 5228, __pyx_L1_error)
52986  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52987 
52988  /* "ctransportCoefficients.pyx":5281
52989  * <double*> mom_v_ham.data,
52990  * <double*> dmom_v_ham_grad_p.data)
52991  * def TwophaseStokes_VOF_SO_3D_Evaluate(const double eps, # <<<<<<<<<<<<<<
52992  * const double rho_0,
52993  * const double nu_0,
52994  */
52995  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_107TwophaseStokes_VOF_SO_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5281, __pyx_L1_error)
52996  __Pyx_GOTREF(__pyx_t_1);
52997  if (PyDict_SetItem(__pyx_d, __pyx_n_s_TwophaseStokes_VOF_SO_3D_Evaluat, __pyx_t_1) < 0) __PYX_ERR(0, 5281, __pyx_L1_error)
52998  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52999 
53000  /* "ctransportCoefficients.pyx":5350
53001  * <double*> mom_w_ham.data,
53002  * <double*> dmom_w_ham_grad_p.data)
53003  * def unitSquareVortexEvaluate(double t, # <<<<<<<<<<<<<<
53004  * np.ndarray x,
53005  * np.ndarray u,
53006  */
53007  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_109unitSquareVortexEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5350, __pyx_L1_error)
53008  __Pyx_GOTREF(__pyx_t_1);
53009  if (PyDict_SetItem(__pyx_d, __pyx_n_s_unitSquareVortexEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 5350, __pyx_L1_error)
53010  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53011 
53012  /* "ctransportCoefficients.pyx":5366
53013  * <double*> f.data,
53014  * <double*> df.data)
53015  * def constantVelocityLevelSetEvaluate(np.ndarray b, # <<<<<<<<<<<<<<
53016  * np.ndarray x,
53017  * np.ndarray u,
53018  */
53019  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_111constantVelocityLevelSetEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5366, __pyx_L1_error)
53020  __Pyx_GOTREF(__pyx_t_1);
53021  if (PyDict_SetItem(__pyx_d, __pyx_n_s_constantVelocityLevelSetEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 5366, __pyx_L1_error)
53022  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53023 
53024  /* "ctransportCoefficients.pyx":5388
53025  * <double*> H.data,
53026  * <double*> dH.data)
53027  * def constantNormalVelocityLevelSetEvaluate(double b, # <<<<<<<<<<<<<<
53028  * np.ndarray x,
53029  * np.ndarray u,
53030  */
53031  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_113constantNormalVelocityLevelSetEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5388, __pyx_L1_error)
53032  __Pyx_GOTREF(__pyx_t_1);
53033  if (PyDict_SetItem(__pyx_d, __pyx_n_s_constantNormalVelocityLevelSetEv, __pyx_t_1) < 0) __PYX_ERR(0, 5388, __pyx_L1_error)
53034  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53035 
53036  /* "ctransportCoefficients.pyx":5410
53037  * <double*> H.data,
53038  * <double*> dH.data)
53039  * def unitSquareVortexLevelSetEvaluate(double t, # <<<<<<<<<<<<<<
53040  * np.ndarray x,
53041  * np.ndarray u,
53042  */
53043  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_115unitSquareVortexLevelSetEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5410, __pyx_L1_error)
53044  __Pyx_GOTREF(__pyx_t_1);
53045  if (PyDict_SetItem(__pyx_d, __pyx_n_s_unitSquareVortexLevelSetEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 5410, __pyx_L1_error)
53046  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53047 
53048  /* "ctransportCoefficients.pyx":5432
53049  * <double*> H.data,
53050  * <double*> dH.data)
53051  * def unitSquareRotationLevelSetEvaluate(double t, # <<<<<<<<<<<<<<
53052  * np.ndarray x,
53053  * np.ndarray u,
53054  */
53055  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_117unitSquareRotationLevelSetEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5432, __pyx_L1_error)
53056  __Pyx_GOTREF(__pyx_t_1);
53057  if (PyDict_SetItem(__pyx_d, __pyx_n_s_unitSquareRotationLevelSetEvalua, __pyx_t_1) < 0) __PYX_ERR(0, 5432, __pyx_L1_error)
53058  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53059 
53060  /* "ctransportCoefficients.pyx":5454
53061  * <double*> H.data,
53062  * <double*> dH.data)
53063  * def HJBurgersEvaluate(const double offset, # <<<<<<<<<<<<<<
53064  * np.ndarray u,
53065  * np.ndarray gradu,
53066  */
53067  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_119HJBurgersEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5454, __pyx_L1_error)
53068  __Pyx_GOTREF(__pyx_t_1);
53069  if (PyDict_SetItem(__pyx_d, __pyx_n_s_HJBurgersEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 5454, __pyx_L1_error)
53070  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53071 
53072  /* "ctransportCoefficients.pyx":5470
53073  * <double*> H.data,
53074  * <double*> dH.data)
53075  * def conservativeHeadRichardsMualemVanGenuchtenHomEvaluate(const double rho, # <<<<<<<<<<<<<<
53076  * const double beta,
53077  * np.ndarray gravity,
53078  */
53079  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_121conservativeHeadRichardsMualemVanGenuchtenHomEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5470, __pyx_L1_error)
53080  __Pyx_GOTREF(__pyx_t_1);
53081  if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsMualemVa, __pyx_t_1) < 0) __PYX_ERR(0, 5470, __pyx_L1_error)
53082  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53083 
53084  /* "ctransportCoefficients.pyx":5510
53085  * <double*> phi.data,
53086  * <double*> dphi.data)
53087  * def conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate(const double rho, # <<<<<<<<<<<<<<
53088  * np.ndarray gravity,
53089  * const double alpha,
53090  */
53091  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_123conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5510, __pyx_L1_error)
53092  __Pyx_GOTREF(__pyx_t_1);
53093  if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsL2projMu, __pyx_t_1) < 0) __PYX_ERR(0, 5510, __pyx_L1_error)
53094  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53095 
53096  /* "ctransportCoefficients.pyx":5546
53097  * <double*> a.data,
53098  * <double*> da.data)
53099  * def conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate(const double rho, # <<<<<<<<<<<<<<
53100  * np.ndarray gravity,
53101  * const double alpha,
53102  */
53103  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_125conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5546, __pyx_L1_error)
53104  __Pyx_GOTREF(__pyx_t_1);
53105  if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsL2projBn, __pyx_t_1) < 0) __PYX_ERR(0, 5546, __pyx_L1_error)
53106  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53107 
53108  /* "ctransportCoefficients.pyx":5583
53109  * <double*> a.data,
53110  * <double*> da.data)
53111  * def conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate(const double rho, # <<<<<<<<<<<<<<
53112  * np.ndarray gravity,
53113  * np.ndarray alpha,
53114  */
53115  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_127conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5583, __pyx_L1_error)
53116  __Pyx_GOTREF(__pyx_t_1);
53117  if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsL2projMu_2, __pyx_t_1) < 0) __PYX_ERR(0, 5583, __pyx_L1_error)
53118  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53119 
53120  /* "ctransportCoefficients.pyx":5616
53121  * <double*> a.data,
53122  * <double*> da.data)
53123  * def conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate(const double rho, # <<<<<<<<<<<<<<
53124  * np.ndarray gravity,
53125  * np.ndarray x,
53126  */
53127  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_129conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5616, __pyx_L1_error)
53128  __Pyx_GOTREF(__pyx_t_1);
53129  if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeTotalHeadRichardsMua, __pyx_t_1) < 0) __PYX_ERR(0, 5616, __pyx_L1_error)
53130  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53131 
53132  /* "ctransportCoefficients.pyx":5654
53133  * <double*> phi.data,
53134  * <double*> dphi.data)
53135  * def conservativeHeadRichardsMualemVanGenuchten_sd_het(np.ndarray rowptr, # <<<<<<<<<<<<<<
53136  * np.ndarray colind,
53137  * np.ndarray materialTypes,
53138  */
53139  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_131conservativeHeadRichardsMualemVanGenuchten_sd_het, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5654, __pyx_L1_error)
53140  __Pyx_GOTREF(__pyx_t_1);
53141  if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsMualemVa_2, __pyx_t_1) < 0) __PYX_ERR(0, 5654, __pyx_L1_error)
53142  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53143 
53144  /* "ctransportCoefficients.pyx":5723
53145  * <double*> da.data,
53146  * <double*> vol_frac.data)
53147  * def conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2(np.ndarray materialTypes, # <<<<<<<<<<<<<<
53148  * const double rho,
53149  * const double beta,
53150  */
53151  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_133conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5723, __pyx_L1_error)
53152  __Pyx_GOTREF(__pyx_t_1);
53153  if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsMualemVa_3, __pyx_t_1) < 0) __PYX_ERR(0, 5723, __pyx_L1_error)
53154  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53155 
53156  /* "ctransportCoefficients.pyx":5758
53157  * <double*> a.data,
53158  * <double*> da.data)
53159  * def seepageBrezis(np.ndarray materialTypes, # <<<<<<<<<<<<<<
53160  * const double epsFact,
53161  * const double rho,
53162  */
53163  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_135seepageBrezis, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5758, __pyx_L1_error)
53164  __Pyx_GOTREF(__pyx_t_1);
53165  if (PyDict_SetItem(__pyx_d, __pyx_n_s_seepageBrezis, __pyx_t_1) < 0) __PYX_ERR(0, 5758, __pyx_L1_error)
53166  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53167 
53168  /* "ctransportCoefficients.pyx":5797
53169  * <double*> a.data,
53170  * <double*> da.data)
53171  * def conservativeHeadRichardsMualemVanGenuchtenHetEvaluate(const double rho, # <<<<<<<<<<<<<<
53172  * np.ndarray gravity,
53173  * np.ndarray alpha,
53174  */
53175  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_137conservativeHeadRichardsMualemVanGenuchtenHetEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5797, __pyx_L1_error)
53176  __Pyx_GOTREF(__pyx_t_1);
53177  if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsMualemVa_4, __pyx_t_1) < 0) __PYX_ERR(0, 5797, __pyx_L1_error)
53178  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53179 
53180  /* "ctransportCoefficients.pyx":5827
53181  * <double*> a.data,
53182  * <double*> da.data)
53183  * def conservativeSatRichardsMualemVanGenuchtenHomEvaluate(const double rho, # <<<<<<<<<<<<<<
53184  * np.ndarray gravity,
53185  * np.ndarray x,
53186  */
53187  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_139conservativeSatRichardsMualemVanGenuchtenHomEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5827, __pyx_L1_error)
53188  __Pyx_GOTREF(__pyx_t_1);
53189  if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeSatRichardsMualemVan, __pyx_t_1) < 0) __PYX_ERR(0, 5827, __pyx_L1_error)
53190  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53191 
53192  /* "ctransportCoefficients.pyx":5865
53193  * <double*> phi.data,
53194  * <double*> dphi.data)
53195  * def conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate(const double rho, # <<<<<<<<<<<<<<
53196  * np.ndarray gravity,
53197  * np.ndarray Lambda,
53198  */
53199  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_141conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5865, __pyx_L1_error)
53200  __Pyx_GOTREF(__pyx_t_1);
53201  if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsBrooksCo, __pyx_t_1) < 0) __PYX_ERR(0, 5865, __pyx_L1_error)
53202  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53203 
53204  /* "ctransportCoefficients.pyx":5895
53205  * <double*> a.data,
53206  * <double*> da.data)
53207  * def conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate(const double rho, # <<<<<<<<<<<<<<
53208  * const double beta,
53209  * np.ndarray gravity,
53210  */
53211  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_143conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5895, __pyx_L1_error)
53212  __Pyx_GOTREF(__pyx_t_1);
53213  if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsBrooksCo_2, __pyx_t_1) < 0) __PYX_ERR(0, 5895, __pyx_L1_error)
53214  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53215 
53216  /* "ctransportCoefficients.pyx":5927
53217  * <double*> a.data,
53218  * <double*> da.data)
53219  * def conservativeSatRichardsBrooksCoreyBurdineHomEvaluate(const int nPoints, # <<<<<<<<<<<<<<
53220  * const int nSpace,
53221  * const double rho,
53222  */
53223  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_145conservativeSatRichardsBrooksCoreyBurdineHomEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5927, __pyx_L1_error)
53224  __Pyx_GOTREF(__pyx_t_1);
53225  if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeSatRichardsBrooksCor, __pyx_t_1) < 0) __PYX_ERR(0, 5927, __pyx_L1_error)
53226  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53227 
53228  /* "ctransportCoefficients.pyx":5963
53229  * <double*> phi.data,
53230  * <double*> dphi.data)
53231  * def conservativeHeadRichardsBCBfromMVGHomEvaluate(const double rho, # <<<<<<<<<<<<<<
53232  * np.ndarray gravity,
53233  * const double alpha,
53234  */
53235  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_147conservativeHeadRichardsBCBfromMVGHomEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5963, __pyx_L1_error)
53236  __Pyx_GOTREF(__pyx_t_1);
53237  if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsBCBfromM, __pyx_t_1) < 0) __PYX_ERR(0, 5963, __pyx_L1_error)
53238  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53239 
53240  /* "ctransportCoefficients.pyx":5995
53241  * <double*> a.data,
53242  * <double*> da.data)
53243  * def LinearElasticity_1D_Evaluate(const double E, # <<<<<<<<<<<<<<
53244  * const double nu,
53245  * np.ndarray g,
53246  */
53247  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_149LinearElasticity_1D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5995, __pyx_L1_error)
53248  __Pyx_GOTREF(__pyx_t_1);
53249  if (PyDict_SetItem(__pyx_d, __pyx_n_s_LinearElasticity_1D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 5995, __pyx_L1_error)
53250  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53251 
53252  /* "ctransportCoefficients.pyx":6008
53253  * <double*> uu_diff_ten.data,
53254  * <double*> u_force.data)
53255  * def LinearElasticity_2D_Evaluate(const double E, # <<<<<<<<<<<<<<
53256  * const double nu,
53257  * np.ndarray g,
53258  */
53259  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_151LinearElasticity_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6008, __pyx_L1_error)
53260  __Pyx_GOTREF(__pyx_t_1);
53261  if (PyDict_SetItem(__pyx_d, __pyx_n_s_LinearElasticity_2D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 6008, __pyx_L1_error)
53262  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53263 
53264  /* "ctransportCoefficients.pyx":6031
53265  * <double*> u_force.data,
53266  * <double*> v_force.data)
53267  * def LinearElasticity_3D_Evaluate(const double E, # <<<<<<<<<<<<<<
53268  * const double nu,
53269  * np.ndarray g,
53270  */
53271  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_153LinearElasticity_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6031, __pyx_L1_error)
53272  __Pyx_GOTREF(__pyx_t_1);
53273  if (PyDict_SetItem(__pyx_d, __pyx_n_s_LinearElasticity_3D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 6031, __pyx_L1_error)
53274  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53275 
53276  /* "ctransportCoefficients.pyx":6068
53277  * <double*> v_force.data,
53278  * <double*> w_force.data)
53279  * def MovingMesh_2D_Evaluate(const double E0, # <<<<<<<<<<<<<<
53280  * const double nu,
53281  * np.ndarray g,
53282  */
53283  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_155MovingMesh_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6068, __pyx_L1_error)
53284  __Pyx_GOTREF(__pyx_t_1);
53285  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MovingMesh_2D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 6068, __pyx_L1_error)
53286  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53287 
53288  /* "ctransportCoefficients.pyx":6093
53289  * <double*> u_force.data,
53290  * <double*> v_force.data)
53291  * def MovingMesh_3D_Evaluate(const double E0, # <<<<<<<<<<<<<<
53292  * const double nu,
53293  * np.ndarray g,
53294  */
53295  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_157MovingMesh_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6093, __pyx_L1_error)
53296  __Pyx_GOTREF(__pyx_t_1);
53297  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MovingMesh_3D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 6093, __pyx_L1_error)
53298  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53299 
53300  /* "ctransportCoefficients.pyx":6132
53301  * <double*> v_force.data,
53302  * <double*> w_force.data)
53303  * def MovingMesh_1D_Evaluate(const double E0, # <<<<<<<<<<<<<<
53304  * const double nu,
53305  * np.ndarray g,
53306  */
53307  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_159MovingMesh_1D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6132, __pyx_L1_error)
53308  __Pyx_GOTREF(__pyx_t_1);
53309  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MovingMesh_1D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 6132, __pyx_L1_error)
53310  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53311 
53312  /* "ctransportCoefficients.pyx":6147
53313  * <double*> uu_diff_ten.data,
53314  * <double*> u_force.data)
53315  * def levelSetConservationCoefficientsEvaluate(double epsHeaviside, # <<<<<<<<<<<<<<
53316  * double epsDirac,
53317  * double epsDiffusion,
53318  */
53319  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_161levelSetConservationCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6147, __pyx_L1_error)
53320  __Pyx_GOTREF(__pyx_t_1);
53321  if (PyDict_SetItem(__pyx_d, __pyx_n_s_levelSetConservationCoefficients, __pyx_t_1) < 0) __PYX_ERR(0, 6147, __pyx_L1_error)
53322  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53323 
53324  /* "ctransportCoefficients.pyx":6167
53325  * <double*> dr.data,
53326  * <double*> a.data)
53327  * def levelSetConservationCoefficientsEvaluate_sd(double epsHeaviside, # <<<<<<<<<<<<<<
53328  * double epsDirac,
53329  * np.ndarray u_ls,
53330  */
53331  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_163levelSetConservationCoefficientsEvaluate_sd, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6167, __pyx_L1_error)
53332  __Pyx_GOTREF(__pyx_t_1);
53333  if (PyDict_SetItem(__pyx_d, __pyx_n_s_levelSetConservationCoefficients_2, __pyx_t_1) < 0) __PYX_ERR(0, 6167, __pyx_L1_error)
53334  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53335 
53336  /* "ctransportCoefficients.pyx":6182
53337  * <double*> r.data,
53338  * <double*> dr.data)
53339  * def evaluateBuckleyLeverettLiuExample(np.ndarray x, # <<<<<<<<<<<<<<
53340  * np.ndarray u,
53341  * np.ndarray m,
53342  */
53343  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_165evaluateBuckleyLeverettLiuExample, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6182, __pyx_L1_error)
53344  __Pyx_GOTREF(__pyx_t_1);
53345  if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluateBuckleyLeverettLiuExampl, __pyx_t_1) < 0) __PYX_ERR(0, 6182, __pyx_L1_error)
53346  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53347 
53348  /* "ctransportCoefficients.pyx":6198
53349  * <double*> df.data,
53350  * <double*> a.data)
53351  * def VolumeAveragedNavierStokesFullDevStress_2D_Evaluate(const double rho, # <<<<<<<<<<<<<<
53352  * const double mu,
53353  * np.ndarray meanGrainSize,
53354  */
53355  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_167VolumeAveragedNavierStokesFullDevStress_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6198, __pyx_L1_error)
53356  __Pyx_GOTREF(__pyx_t_1);
53357  if (PyDict_SetItem(__pyx_d, __pyx_n_s_VolumeAveragedNavierStokesFullDe, __pyx_t_1) < 0) __PYX_ERR(0, 6198, __pyx_L1_error)
53358  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53359 
53360  /* "ctransportCoefficients.pyx":6271
53361  * <double*> mom_v_ham.data,
53362  * <double*> dmom_v_ham_grad_p.data)
53363  * def VolumeAveragedNavierStokesFullDevStress_3D_Evaluate(const double rho, # <<<<<<<<<<<<<<
53364  * const double mu,
53365  * np.ndarray meanGrainSize,
53366  */
53367  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_169VolumeAveragedNavierStokesFullDevStress_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6271, __pyx_L1_error)
53368  __Pyx_GOTREF(__pyx_t_1);
53369  if (PyDict_SetItem(__pyx_d, __pyx_n_s_VolumeAveragedNavierStokesFullDe_2, __pyx_t_1) < 0) __PYX_ERR(0, 6271, __pyx_L1_error)
53370  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53371 
53372  /* "ctransportCoefficients.pyx":6390
53373  * <double*> mom_w_ham.data,
53374  * <double*> dmom_w_ham_grad_p.data)
53375  * def VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate(const int killNonlinearDrag, # <<<<<<<<<<<<<<
53376  * const double eps_rho,
53377  * const double eps_mu,
53378  */
53379  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_171VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6390, __pyx_L1_error)
53380  __Pyx_GOTREF(__pyx_t_1);
53381  if (PyDict_SetItem(__pyx_d, __pyx_n_s_VolumeAveragedTwophaseNavierStok, __pyx_t_1) < 0) __PYX_ERR(0, 6390, __pyx_L1_error)
53382  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53383 
53384  /* "ctransportCoefficients.pyx":6481
53385  * <double*> mom_v_ham.data,
53386  * <double*> dmom_v_ham_grad_p.data)
53387  * def VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(const int killNonlinearDrag, # <<<<<<<<<<<<<<
53388  * const double eps_rho,
53389  * const double eps_mu,
53390  */
53391  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_173VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6481, __pyx_L1_error)
53392  __Pyx_GOTREF(__pyx_t_1);
53393  if (PyDict_SetItem(__pyx_d, __pyx_n_s_VolumeAveragedTwophaseNavierStok_2, __pyx_t_1) < 0) __PYX_ERR(0, 6481, __pyx_L1_error)
53394  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53395 
53396  /* "ctransportCoefficients.pyx":6572
53397  * <double*> mom_v_ham.data,
53398  * <double*> dmom_v_ham_grad_p.data)
53399  * def VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate(const int killNonlinearDrag, # <<<<<<<<<<<<<<
53400  * const double eps_rho,
53401  * const double eps_mu,
53402  */
53403  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_175VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6572, __pyx_L1_error)
53404  __Pyx_GOTREF(__pyx_t_1);
53405  if (PyDict_SetItem(__pyx_d, __pyx_n_s_VolumeAveragedTwophaseNavierStok_3, __pyx_t_1) < 0) __PYX_ERR(0, 6572, __pyx_L1_error)
53406  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53407 
53408  /* "ctransportCoefficients.pyx":6709
53409  * <double*> mom_w_ham.data,
53410  * <double*> dmom_w_ham_grad_p.data)
53411  * def VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(const int killNonlinearDrag, # <<<<<<<<<<<<<<
53412  * const double eps_rho,
53413  * const double eps_mu,
53414  */
53415  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_177VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6709, __pyx_L1_error)
53416  __Pyx_GOTREF(__pyx_t_1);
53417  if (PyDict_SetItem(__pyx_d, __pyx_n_s_VolumeAveragedTwophaseNavierStok_4, __pyx_t_1) < 0) __PYX_ERR(0, 6709, __pyx_L1_error)
53418  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53419 
53420  /* "ctransportCoefficients.pyx":6846
53421  * <double*> mom_w_ham.data,
53422  * <double*> dmom_w_ham_grad_p.data)
53423  * def VolumeAveragedVOFCoefficientsEvaluate(double eps, # <<<<<<<<<<<<<<
53424  * np.ndarray v,
53425  * np.ndarray phi,
53426  */
53427  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_179VolumeAveragedVOFCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6846, __pyx_L1_error)
53428  __Pyx_GOTREF(__pyx_t_1);
53429  if (PyDict_SetItem(__pyx_d, __pyx_n_s_VolumeAveragedVOFCoefficientsEva, __pyx_t_1) < 0) __PYX_ERR(0, 6846, __pyx_L1_error)
53430  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53431 
53432  /* "ctransportCoefficients.pyx":6866
53433  * <double*> f.data,
53434  * <double*> df.data)
53435  * def kEpsilon_2D_Evaluate(double sigma_k, # <<<<<<<<<<<<<<
53436  * double sigma_e,
53437  * double c_1,
53438  */
53439  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_181kEpsilon_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6866, __pyx_L1_error)
53440  __Pyx_GOTREF(__pyx_t_1);
53441  if (PyDict_SetItem(__pyx_d, __pyx_n_s_kEpsilon_2D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 6866, __pyx_L1_error)
53442  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53443 
53444  /* "ctransportCoefficients.pyx":6940
53445  * <double*> dr_e_dk.data,
53446  * <double*> dr_e_de.data)
53447  * def kEpsilon_2D_Evaluate_sd(double sigma_k, # <<<<<<<<<<<<<<
53448  * double sigma_e,
53449  * double c_1,
53450  */
53451  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_183kEpsilon_2D_Evaluate_sd, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6940, __pyx_L1_error)
53452  __Pyx_GOTREF(__pyx_t_1);
53453  if (PyDict_SetItem(__pyx_d, __pyx_n_s_kEpsilon_2D_Evaluate_sd, __pyx_t_1) < 0) __PYX_ERR(0, 6940, __pyx_L1_error)
53454  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53455 
53456  /* "ctransportCoefficients.pyx":7014
53457  * <double*> dr_e_dk.data,
53458  * <double*> dr_e_de.data)
53459  * def kEpsilon_3D_Evaluate_sd(double sigma_k, # <<<<<<<<<<<<<<
53460  * double sigma_e,
53461  * double c_1,
53462  */
53463  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_185kEpsilon_3D_Evaluate_sd, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7014, __pyx_L1_error)
53464  __Pyx_GOTREF(__pyx_t_1);
53465  if (PyDict_SetItem(__pyx_d, __pyx_n_s_kEpsilon_3D_Evaluate_sd, __pyx_t_1) < 0) __PYX_ERR(0, 7014, __pyx_L1_error)
53466  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53467 
53468  /* "ctransportCoefficients.pyx":7090
53469  * <double*> dr_e_dk.data,
53470  * <double*> dr_e_de.data)
53471  * def kEpsilon_3D_Evaluate(double sigma_k, # <<<<<<<<<<<<<<
53472  * double sigma_e,
53473  * double c_1,
53474  */
53475  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_187kEpsilon_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7090, __pyx_L1_error)
53476  __Pyx_GOTREF(__pyx_t_1);
53477  if (PyDict_SetItem(__pyx_d, __pyx_n_s_kEpsilon_3D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 7090, __pyx_L1_error)
53478  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53479 
53480  /* "ctransportCoefficients.pyx":7166
53481  * <double*> dr_e_dk.data,
53482  * <double*> dr_e_de.data)
53483  * def kEpsilon_k_2D_Evaluate_sd(double sigma_k, # <<<<<<<<<<<<<<
53484  * double c_mu,
53485  * double nu,
53486  */
53487  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_189kEpsilon_k_2D_Evaluate_sd, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7166, __pyx_L1_error)
53488  __Pyx_GOTREF(__pyx_t_1);
53489  if (PyDict_SetItem(__pyx_d, __pyx_n_s_kEpsilon_k_2D_Evaluate_sd, __pyx_t_1) < 0) __PYX_ERR(0, 7166, __pyx_L1_error)
53490  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53491 
53492  /* "ctransportCoefficients.pyx":7204
53493  * <double*> r_k.data,
53494  * <double*> dr_k_dk.data)
53495  * def kEpsilon_epsilon_2D_Evaluate_sd(double sigma_e, # <<<<<<<<<<<<<<
53496  * double c_1,
53497  * double c_2,
53498  */
53499  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_191kEpsilon_epsilon_2D_Evaluate_sd, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7204, __pyx_L1_error)
53500  __Pyx_GOTREF(__pyx_t_1);
53501  if (PyDict_SetItem(__pyx_d, __pyx_n_s_kEpsilon_epsilon_2D_Evaluate_sd, __pyx_t_1) < 0) __PYX_ERR(0, 7204, __pyx_L1_error)
53502  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53503 
53504  /* "ctransportCoefficients.pyx":7248
53505  * <double*> r_e.data,
53506  * <double*> dr_e_de.data)
53507  * def kEpsilon_k_3D_Evaluate_sd(double sigma_k, # <<<<<<<<<<<<<<
53508  * double c_mu,
53509  * double nu,
53510  */
53511  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_193kEpsilon_k_3D_Evaluate_sd, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7248, __pyx_L1_error)
53512  __Pyx_GOTREF(__pyx_t_1);
53513  if (PyDict_SetItem(__pyx_d, __pyx_n_s_kEpsilon_k_3D_Evaluate_sd, __pyx_t_1) < 0) __PYX_ERR(0, 7248, __pyx_L1_error)
53514  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53515 
53516  /* "ctransportCoefficients.pyx":7288
53517  * <double*> r_k.data,
53518  * <double*> dr_k_dk.data)
53519  * def kEpsilon_epsilon_3D_Evaluate_sd(double sigma_e, # <<<<<<<<<<<<<<
53520  * double c_1,
53521  * double c_2,
53522  */
53523  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_195kEpsilon_epsilon_3D_Evaluate_sd, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7288, __pyx_L1_error)
53524  __Pyx_GOTREF(__pyx_t_1);
53525  if (PyDict_SetItem(__pyx_d, __pyx_n_s_kEpsilon_epsilon_3D_Evaluate_sd, __pyx_t_1) < 0) __PYX_ERR(0, 7288, __pyx_L1_error)
53526  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53527 
53528  /* "ctransportCoefficients.pyx":7334
53529  * <double*> r_e.data,
53530  * <double*> dr_e_de.data)
53531  * def ReynoldsAveragedNavierStokes_kEpsilon_2D_Update(const double nu, # <<<<<<<<<<<<<<
53532  * const double c_mu,
53533  * np.ndarray k,
53534  */
53535  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_197ReynoldsAveragedNavierStokes_kEpsilon_2D_Update, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7334, __pyx_L1_error)
53536  __Pyx_GOTREF(__pyx_t_1);
53537  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ReynoldsAveragedNavierStokes_kEp, __pyx_t_1) < 0) __PYX_ERR(0, 7334, __pyx_L1_error)
53538  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53539 
53540  /* "ctransportCoefficients.pyx":7357
53541  * <double*> mom_u_source.data,
53542  * <double*> mom_v_source.data)
53543  * def ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd(const double rho, # <<<<<<<<<<<<<<
53544  * const double nu,
53545  * const double c_mu,
53546  */
53547  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_199ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7357, __pyx_L1_error)
53548  __Pyx_GOTREF(__pyx_t_1);
53549  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ReynoldsAveragedNavierStokes_kEp_2, __pyx_t_1) < 0) __PYX_ERR(0, 7357, __pyx_L1_error)
53550  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53551 
53552  /* "ctransportCoefficients.pyx":7382
53553  * <double*> mom_u_source.data,
53554  * <double*> mom_v_source.data)
53555  * def ReynoldsAveragedNavierStokes_kEpsilon_3D_Update(const double nu, # <<<<<<<<<<<<<<
53556  * const double c_mu,
53557  * np.ndarray k,
53558  */
53559  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_201ReynoldsAveragedNavierStokes_kEpsilon_3D_Update, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7382, __pyx_L1_error)
53560  __Pyx_GOTREF(__pyx_t_1);
53561  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ReynoldsAveragedNavierStokes_kEp_3, __pyx_t_1) < 0) __PYX_ERR(0, 7382, __pyx_L1_error)
53562  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53563 
53564  /* "ctransportCoefficients.pyx":7417
53565  * <double*> mom_v_source.data,
53566  * <double*> mom_w_source.data)
53567  * def ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd(const double nu, # <<<<<<<<<<<<<<
53568  * const double c_mu,
53569  * np.ndarray k,
53570  */
53571  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_203ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7417, __pyx_L1_error)
53572  __Pyx_GOTREF(__pyx_t_1);
53573  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ReynoldsAveragedNavierStokes_kEp_4, __pyx_t_1) < 0) __PYX_ERR(0, 7417, __pyx_L1_error)
53574  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53575 
53576  /* "ctransportCoefficients.pyx":7452
53577  * <double*> mom_v_source.data,
53578  * <double*> mom_w_source.data)
53579  * def scriptedSphereMotionSignedDistance(const double t, # <<<<<<<<<<<<<<
53580  * np.ndarray radii,
53581  * np.ndarray centers,
53582  */
53583  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_205scriptedSphereMotionSignedDistance, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7452, __pyx_L1_error)
53584  __Pyx_GOTREF(__pyx_t_1);
53585  if (PyDict_SetItem(__pyx_d, __pyx_n_s_scriptedSphereMotionSignedDistan, __pyx_t_1) < 0) __PYX_ERR(0, 7452, __pyx_L1_error)
53586  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53587 
53588  /* "ctransportCoefficients.pyx":7467
53589  * <double*> phi.data,
53590  * <double*> n.data)
53591  * def shallowWater_1D_Evaluate(const double h_eps, # <<<<<<<<<<<<<<
53592  * const double g,
53593  * const double bedFrictionCoefficient,
53594  */
53595  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_207shallowWater_1D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7467, __pyx_L1_error)
53596  __Pyx_GOTREF(__pyx_t_1);
53597  if (PyDict_SetItem(__pyx_d, __pyx_n_s_shallowWater_1D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 7467, __pyx_L1_error)
53598  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53599 
53600  /* "ctransportCoefficients.pyx":7514
53601  * <double*> dmom_source_dhu.data,
53602  * <double*> mom_diff.data)
53603  * def shallowWater_2D_Evaluate(const double h_eps, # <<<<<<<<<<<<<<
53604  * const double g,
53605  * const double bedFrictionCoefficient,
53606  */
53607  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_209shallowWater_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7514, __pyx_L1_error)
53608  __Pyx_GOTREF(__pyx_t_1);
53609  if (PyDict_SetItem(__pyx_d, __pyx_n_s_shallowWater_2D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 7514, __pyx_L1_error)
53610  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53611 
53612  /* "ctransportCoefficients.pyx":7591
53613  * <double*> dmom_v_source_dhu.data,
53614  * <double*> dmom_v_source_dhv.data)
53615  * def conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind(const int upwindFlag, # <<<<<<<<<<<<<<
53616  * const int computeAverages,
53617  * const int nQuadraturePoints_elementBoundary,
53618  */
53619  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_211conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7591, __pyx_L1_error)
53620  __Pyx_GOTREF(__pyx_t_1);
53621  if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsMualemVa_5, __pyx_t_1) < 0) __PYX_ERR(0, 7591, __pyx_L1_error)
53622  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53623 
53624  /* "ctransportCoefficients.pyx":7650
53625  * <double*> a.data,
53626  * <double*> da.data)
53627  * def conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm(const int upwindFlag, # <<<<<<<<<<<<<<
53628  * const int computeAverages,
53629  * const int nQuadraturePoints_elementBoundary,
53630  */
53631  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_213conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7650, __pyx_L1_error)
53632  __Pyx_GOTREF(__pyx_t_1);
53633  if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsMualemVa_6, __pyx_t_1) < 0) __PYX_ERR(0, 7650, __pyx_L1_error)
53634  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53635 
53636  /* "ctransportCoefficients.pyx":7709
53637  * <double*> a.data,
53638  * <double*> da.data)
53639  * def conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd(const int upwindFlag, # <<<<<<<<<<<<<<
53640  * const int computeAverages,
53641  * const int nQuadraturePoints_elementBoundary,
53642  */
53643  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_215conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7709, __pyx_L1_error)
53644  __Pyx_GOTREF(__pyx_t_1);
53645  if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsMualemVa_7, __pyx_t_1) < 0) __PYX_ERR(0, 7709, __pyx_L1_error)
53646  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53647 
53648  /* "ctransportCoefficients.pyx":7772
53649  * <double*> a.data,
53650  * <double*> da.data)
53651  * def applyContactLineSlip(double eps, # <<<<<<<<<<<<<<
53652  * np.ndarray isDOFBoundary,
53653  * np.ndarray phi,
53654  */
53655  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_217applyContactLineSlip, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7772, __pyx_L1_error)
53656  __Pyx_GOTREF(__pyx_t_1);
53657  if (PyDict_SetItem(__pyx_d, __pyx_n_s_applyContactLineSlip, __pyx_t_1) < 0) __PYX_ERR(0, 7772, __pyx_L1_error)
53658  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53659 
53660  /* "ctransportCoefficients.pyx":7784
53661  * <double*> advectiveFlux.data,
53662  * <double*> diffusiveFlux.data)
53663  * def applyContactLineSlipJacobian(double eps, # <<<<<<<<<<<<<<
53664  * np.ndarray isDOFBoundary,
53665  * np.ndarray phi,
53666  */
53667  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_219applyContactLineSlipJacobian, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7784, __pyx_L1_error)
53668  __Pyx_GOTREF(__pyx_t_1);
53669  if (PyDict_SetItem(__pyx_d, __pyx_n_s_applyContactLineSlipJacobian, __pyx_t_1) < 0) __PYX_ERR(0, 7784, __pyx_L1_error)
53670  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53671 
53672  /* "ctransportCoefficients.pyx":7795
53673  * <double*> phi.data,
53674  * <double*> fluxJacobian.data)
53675  * def calculateEddyViscosity_Smagorinsky_2D(const double smagorinskyConstant, # <<<<<<<<<<<<<<
53676  * np.ndarray h_e,
53677  * np.ndarray grad_u,
53678  */
53679  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_221calculateEddyViscosity_Smagorinsky_2D, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7795, __pyx_L1_error)
53680  __Pyx_GOTREF(__pyx_t_1);
53681  if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateEddyViscosity_Smagorins, __pyx_t_1) < 0) __PYX_ERR(0, 7795, __pyx_L1_error)
53682  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53683 
53684  /* "ctransportCoefficients.pyx":7807
53685  * <double*> grad_v.data,
53686  * <double*> nu_t.data)
53687  * def calculateEddyViscosity_Smagorinsky_3D(const double smagorinskyConstant, # <<<<<<<<<<<<<<
53688  * np.ndarray h_e,
53689  * np.ndarray grad_u,
53690  */
53691  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_223calculateEddyViscosity_Smagorinsky_3D, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7807, __pyx_L1_error)
53692  __Pyx_GOTREF(__pyx_t_1);
53693  if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateEddyViscosity_Smagorins_2, __pyx_t_1) < 0) __PYX_ERR(0, 7807, __pyx_L1_error)
53694  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53695 
53696  /* "ctransportCoefficients.pyx":7821
53697  * <double*> grad_w.data,
53698  * <double*> nu_t.data)
53699  * def calculateEddyViscosity_Smagorinsky2P_2D(const double smagorinskyConstant_0, # <<<<<<<<<<<<<<
53700  * const double smagorinskyConstant_1,
53701  * const double eps,
53702  */
53703  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_225calculateEddyViscosity_Smagorinsky2P_2D, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7821, __pyx_L1_error)
53704  __Pyx_GOTREF(__pyx_t_1);
53705  if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateEddyViscosity_Smagorins_3, __pyx_t_1) < 0) __PYX_ERR(0, 7821, __pyx_L1_error)
53706  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53707 
53708  /* "ctransportCoefficients.pyx":7839
53709  * <double*> grad_v.data,
53710  * <double*> nu_t.data)
53711  * def calculateEddyViscosity_Smagorinsky2P_3D(const double smagorinskyConstant_0, # <<<<<<<<<<<<<<
53712  * const double smagorinskyConstant_1,
53713  * const double eps,
53714  */
53715  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_227calculateEddyViscosity_Smagorinsky2P_3D, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7839, __pyx_L1_error)
53716  __Pyx_GOTREF(__pyx_t_1);
53717  if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateEddyViscosity_Smagorins_4, __pyx_t_1) < 0) __PYX_ERR(0, 7839, __pyx_L1_error)
53718  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53719 
53720  /* "ctransportCoefficients.pyx":7859
53721  * <double*> grad_w.data,
53722  * <double*> nu_t.data)
53723  * def eddyViscosity_2D_Update(np.ndarray nu_t, # <<<<<<<<<<<<<<
53724  * np.ndarray mom_u_diff_ten,
53725  * np.ndarray mom_v_diff_ten,
53726  */
53727  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_229eddyViscosity_2D_Update, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7859, __pyx_L1_error)
53728  __Pyx_GOTREF(__pyx_t_1);
53729  if (PyDict_SetItem(__pyx_d, __pyx_n_s_eddyViscosity_2D_Update, __pyx_t_1) < 0) __PYX_ERR(0, 7859, __pyx_L1_error)
53730  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53731 
53732  /* "ctransportCoefficients.pyx":7870
53733  * <double*> mom_uv_diff_ten.data,
53734  * <double*> mom_vu_diff_ten.data)
53735  * def eddyViscosity_2D_Update_sd(np.ndarray nu_t, # <<<<<<<<<<<<<<
53736  * np.ndarray mom_u_diff_ten,
53737  * np.ndarray mom_v_diff_ten,
53738  */
53739  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_231eddyViscosity_2D_Update_sd, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7870, __pyx_L1_error)
53740  __Pyx_GOTREF(__pyx_t_1);
53741  if (PyDict_SetItem(__pyx_d, __pyx_n_s_eddyViscosity_2D_Update_sd, __pyx_t_1) < 0) __PYX_ERR(0, 7870, __pyx_L1_error)
53742  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53743 
53744  /* "ctransportCoefficients.pyx":7881
53745  * <double*> mom_uv_diff_ten.data,
53746  * <double*> mom_vu_diff_ten.data)
53747  * def eddyViscosity_3D_Update(np.ndarray nu_t, # <<<<<<<<<<<<<<
53748  * np.ndarray mom_u_diff_ten,
53749  * np.ndarray mom_v_diff_ten,
53750  */
53751  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_233eddyViscosity_3D_Update, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7881, __pyx_L1_error)
53752  __Pyx_GOTREF(__pyx_t_1);
53753  if (PyDict_SetItem(__pyx_d, __pyx_n_s_eddyViscosity_3D_Update, __pyx_t_1) < 0) __PYX_ERR(0, 7881, __pyx_L1_error)
53754  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53755 
53756  /* "ctransportCoefficients.pyx":7902
53757  * <double*> mom_wu_diff_ten.data,
53758  * <double*> mom_wv_diff_ten.data)
53759  * def eddyViscosity_3D_Update_sd(np.ndarray nu_t, # <<<<<<<<<<<<<<
53760  * np.ndarray mom_u_diff_ten,
53761  * np.ndarray mom_v_diff_ten,
53762  */
53763  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_235eddyViscosity_3D_Update_sd, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7902, __pyx_L1_error)
53764  __Pyx_GOTREF(__pyx_t_1);
53765  if (PyDict_SetItem(__pyx_d, __pyx_n_s_eddyViscosity_3D_Update_sd, __pyx_t_1) < 0) __PYX_ERR(0, 7902, __pyx_L1_error)
53766  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53767 
53768  /* "ctransportCoefficients.pyx":7923
53769  * <double*> mom_wu_diff_ten.data,
53770  * <double*> mom_wv_diff_ten.data)
53771  * def calculateWaveFunction3d_ref(np.ndarray mesh_trial_ref, # <<<<<<<<<<<<<<
53772  * np.ndarray mesh_dof,
53773  * np.ndarray mesh_l2g,
53774  */
53775  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_237calculateWaveFunction3d_ref, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7923, __pyx_L1_error)
53776  __Pyx_GOTREF(__pyx_t_1);
53777  if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateWaveFunction3d_ref, __pyx_t_1) < 0) __PYX_ERR(0, 7923, __pyx_L1_error)
53778  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53779 
53780  /* "ctransportCoefficients.pyx":7958
53781  * waterDepth,
53782  * <double*> source.data)
53783  * def Mass_2D_Evaluate(double rho, # <<<<<<<<<<<<<<
53784  * np.ndarray p,
53785  * np.ndarray u,
53786  */
53787  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_239Mass_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7958, __pyx_L1_error)
53788  __Pyx_GOTREF(__pyx_t_1);
53789  if (PyDict_SetItem(__pyx_d, __pyx_n_s_Mass_2D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 7958, __pyx_L1_error)
53790  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53791 
53792  /* "ctransportCoefficients.pyx":7979
53793  * <double*> dmom_u_acc_u.data,
53794  * <double*> dmom_v_acc_v.data)
53795  * def Mass_3D_Evaluate(double rho, # <<<<<<<<<<<<<<
53796  * np.ndarray p,
53797  * np.ndarray u,
53798  */
53799  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_241Mass_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7979, __pyx_L1_error)
53800  __Pyx_GOTREF(__pyx_t_1);
53801  if (PyDict_SetItem(__pyx_d, __pyx_n_s_Mass_3D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 7979, __pyx_L1_error)
53802  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53803 
53804  /* "ctransportCoefficients.pyx":8006
53805  * <double*> dmom_v_acc_v.data,
53806  * <double*> dmom_w_acc_w.data)
53807  * def TwoPhaseAdvection_2D_Evaluate(const double eps, # <<<<<<<<<<<<<<
53808  * const double rho_0,
53809  * const double nu_0,
53810  */
53811  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_243TwoPhaseAdvection_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8006, __pyx_L1_error)
53812  __Pyx_GOTREF(__pyx_t_1);
53813  if (PyDict_SetItem(__pyx_d, __pyx_n_s_TwoPhaseAdvection_2D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 8006, __pyx_L1_error)
53814  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53815 
53816  /* "ctransportCoefficients.pyx":8045
53817  * <double*> dmom_v_adv_u.data,
53818  * <double*> dmom_v_adv_v.data)
53819  * def twophaseSignedDistanceUpdateSignFunction(int nPoints, # <<<<<<<<<<<<<<
53820  * double eps,
53821  * np.ndarray u_levelSet,
53822  */
53823  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_245twophaseSignedDistanceUpdateSignFunction, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8045, __pyx_L1_error)
53824  __Pyx_GOTREF(__pyx_t_1);
53825  if (PyDict_SetItem(__pyx_d, __pyx_n_s_twophaseSignedDistanceUpdateSign, __pyx_t_1) < 0) __PYX_ERR(0, 8045, __pyx_L1_error)
53826  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53827 
53828  /* "ctransportCoefficients.pyx":8053
53829  * <double*> u_levelSet.data,
53830  * <double*> S.data)
53831  * def Laplace_2D_Evaluate(np.ndarray p, # <<<<<<<<<<<<<<
53832  * np.ndarray u,
53833  * np.ndarray v,
53834  */
53835  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_247Laplace_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8053, __pyx_L1_error)
53836  __Pyx_GOTREF(__pyx_t_1);
53837  if (PyDict_SetItem(__pyx_d, __pyx_n_s_Laplace_2D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 8053, __pyx_L1_error)
53838  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53839 
53840  /* "ctransportCoefficients.pyx":8064
53841  * <double*> mom_u_diff_ten.data,
53842  * <double*> mom_v_diff_ten.data)
53843  * def Laplace_3D_Evaluate(np.ndarray p, # <<<<<<<<<<<<<<
53844  * np.ndarray u,
53845  * np.ndarray v,
53846  */
53847  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_249Laplace_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8064, __pyx_L1_error)
53848  __Pyx_GOTREF(__pyx_t_1);
53849  if (PyDict_SetItem(__pyx_d, __pyx_n_s_Laplace_3D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 8064, __pyx_L1_error)
53850  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53851 
53852  /* "ctransportCoefficients.pyx":8077
53853  * <double*> mom_v_diff_ten.data,
53854  * <double*> mom_w_diff_ten.data)
53855  * def l2projectScalar(const int nSimplices, # <<<<<<<<<<<<<<
53856  * const int nPointsPerSimplex,
53857  * np.ndarray dV,
53858  */
53859  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_251l2projectScalar, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8077, __pyx_L1_error)
53860  __Pyx_GOTREF(__pyx_t_1);
53861  if (PyDict_SetItem(__pyx_d, __pyx_n_s_l2projectScalar, __pyx_t_1) < 0) __PYX_ERR(0, 8077, __pyx_L1_error)
53862  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53863 
53864  /* "ctransportCoefficients.pyx":8085
53865  * <double*> dV.data,
53866  * <double*> r.data)
53867  * def l2projectVector(const int nSimplices, # <<<<<<<<<<<<<<
53868  * const int nPointsPerSimplex,
53869  * const int nSpace,
53870  */
53871  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_253l2projectVector, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8085, __pyx_L1_error)
53872  __Pyx_GOTREF(__pyx_t_1);
53873  if (PyDict_SetItem(__pyx_d, __pyx_n_s_l2projectVector, __pyx_t_1) < 0) __PYX_ERR(0, 8085, __pyx_L1_error)
53874  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53875 
53876  /* "ctransportCoefficients.pyx":8095
53877  * <double*> dV.data,
53878  * <double*> r.data)
53879  * def l2project2Tensor(const int nSimplices, # <<<<<<<<<<<<<<
53880  * const int nPointsPerSimplex,
53881  * const int nSpace,
53882  */
53883  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_255l2project2Tensor, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8095, __pyx_L1_error)
53884  __Pyx_GOTREF(__pyx_t_1);
53885  if (PyDict_SetItem(__pyx_d, __pyx_n_s_l2project2Tensor, __pyx_t_1) < 0) __PYX_ERR(0, 8095, __pyx_L1_error)
53886  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53887 
53888  /* "ctransportCoefficients.pyx":8105
53889  * <double*> dV.data,
53890  * <double*> r.data)
53891  * def L2projectEvaluate(int rank, # <<<<<<<<<<<<<<
53892  * np.ndarray dV,
53893  * np.ndarray r):
53894  */
53895  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_257L2projectEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8105, __pyx_L1_error)
53896  __Pyx_GOTREF(__pyx_t_1);
53897  if (PyDict_SetItem(__pyx_d, __pyx_n_s_L2projectEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 8105, __pyx_L1_error)
53898  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53899 
53900  /* "ctransportCoefficients.pyx":8116
53901  * else:
53902  * assert 0
53903  * def conservativeHeadRichardsJLeverettEvaluate(np.ndarray materialTypes, # <<<<<<<<<<<<<<
53904  * const double rho,
53905  * const double beta,
53906  */
53907  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_259conservativeHeadRichardsJLeverettEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8116, __pyx_L1_error)
53908  __Pyx_GOTREF(__pyx_t_1);
53909  if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsJLeveret, __pyx_t_1) < 0) __PYX_ERR(0, 8116, __pyx_L1_error)
53910  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53911 
53912  /* "ctransportCoefficients.pyx":8155
53913  * <double*> a.data,
53914  * <double*> da.data)
53915  * def conservativeHeadRichardsJLeverettAniEvaluate(np.ndarray materialTypes, # <<<<<<<<<<<<<<
53916  * const double rho,
53917  * const double beta,
53918  */
53919  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_261conservativeHeadRichardsJLeverettAniEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8155, __pyx_L1_error)
53920  __Pyx_GOTREF(__pyx_t_1);
53921  if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsJLeveret_2, __pyx_t_1) < 0) __PYX_ERR(0, 8155, __pyx_L1_error)
53922  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53923 
53924  /* "ctransportCoefficients.pyx":8198
53925  * <double*> a.data,
53926  * <double*> da.data)
53927  * def diffusiveWave1DCoefficientsEvaluate(const double alpha, # <<<<<<<<<<<<<<
53928  * const double gamma,
53929  * const double epsilon,
53930  */
53931  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_263diffusiveWave1DCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8198, __pyx_L1_error)
53932  __Pyx_GOTREF(__pyx_t_1);
53933  if (PyDict_SetItem(__pyx_d, __pyx_n_s_diffusiveWave1DCoefficientsEvalu, __pyx_t_1) < 0) __PYX_ERR(0, 8198, __pyx_L1_error)
53934  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53935 
53936  /* "ctransportCoefficients.pyx":8219
53937  * <double*> a.data,
53938  * <double*> da.data)
53939  * def diffusiveWave2DCoefficientsEvaluate(const int nd, # <<<<<<<<<<<<<<
53940  * const double alpha,
53941  * const double gamma,
53942  */
53943  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_265diffusiveWave2DCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8219, __pyx_L1_error)
53944  __Pyx_GOTREF(__pyx_t_1);
53945  if (PyDict_SetItem(__pyx_d, __pyx_n_s_diffusiveWave2DCoefficientsEvalu, __pyx_t_1) < 0) __PYX_ERR(0, 8219, __pyx_L1_error)
53946  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53947 
53948  /* "ctransportCoefficients.pyx":8243
53949  * <double*> da.data)
53950  *
53951  * def smoothedHeaviside (double eps, double phi): # <<<<<<<<<<<<<<
53952  * return csmoothedHeaviside(eps,phi)
53953  * def smoothedHeaviside_integral (double eps, double phi):
53954  */
53955  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_267smoothedHeaviside, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8243, __pyx_L1_error)
53956  __Pyx_GOTREF(__pyx_t_1);
53957  if (PyDict_SetItem(__pyx_d, __pyx_n_s_smoothedHeaviside, __pyx_t_1) < 0) __PYX_ERR(0, 8243, __pyx_L1_error)
53958  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53959 
53960  /* "ctransportCoefficients.pyx":8245
53961  * def smoothedHeaviside (double eps, double phi):
53962  * return csmoothedHeaviside(eps,phi)
53963  * def smoothedHeaviside_integral (double eps, double phi): # <<<<<<<<<<<<<<
53964  * return csmoothedHeaviside_integral(eps,phi)
53965  * def smoothedDirac (double eps, double phi):
53966  */
53967  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_269smoothedHeaviside_integral, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8245, __pyx_L1_error)
53968  __Pyx_GOTREF(__pyx_t_1);
53969  if (PyDict_SetItem(__pyx_d, __pyx_n_s_smoothedHeaviside_integral, __pyx_t_1) < 0) __PYX_ERR(0, 8245, __pyx_L1_error)
53970  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53971 
53972  /* "ctransportCoefficients.pyx":8247
53973  * def smoothedHeaviside_integral (double eps, double phi):
53974  * return csmoothedHeaviside_integral(eps,phi)
53975  * def smoothedDirac (double eps, double phi): # <<<<<<<<<<<<<<
53976  * return csmoothedDirac(eps,phi)
53977  *
53978  */
53979  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_271smoothedDirac, NULL, __pyx_n_s_ctransportCoefficients); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8247, __pyx_L1_error)
53980  __Pyx_GOTREF(__pyx_t_1);
53981  if (PyDict_SetItem(__pyx_d, __pyx_n_s_smoothedDirac, __pyx_t_1) < 0) __PYX_ERR(0, 8247, __pyx_L1_error)
53982  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53983 
53984  /* "ctransportCoefficients.pyx":1
53985  * # A type of -*- python -*- file # <<<<<<<<<<<<<<
53986  * import numpy as np
53987  * cimport numpy as np
53988  */
53989  __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
53990  __Pyx_GOTREF(__pyx_t_1);
53991  if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_1) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
53992  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53993 
53994  /* "../miniconda3/envs/proteus-dev-up/lib/python3.10/site-packages/numpy/__init__.pxd":1014
53995  *
53996  *
53997  * cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) nogil: # <<<<<<<<<<<<<<
53998  * """
53999  * returns the unit part of the dtype for a numpy datetime64 object.
54000  */
54001 
54002  /*--- Wrapped vars code ---*/
54003 
54004  goto __pyx_L0;
54005  __pyx_L1_error:;
54006  __Pyx_XDECREF(__pyx_t_1);
54007  if (__pyx_m) {
54008  if (__pyx_d) {
54009  __Pyx_AddTraceback("init ctransportCoefficients", __pyx_clineno, __pyx_lineno, __pyx_filename);
54010  }
54011  Py_CLEAR(__pyx_m);
54012  } else if (!PyErr_Occurred()) {
54013  PyErr_SetString(PyExc_ImportError, "init ctransportCoefficients");
54014  }
54015  __pyx_L0:;
54016  __Pyx_RefNannyFinishContext();
54017  #if CYTHON_PEP489_MULTI_PHASE_INIT
54018  return (__pyx_m != NULL) ? 0 : -1;
54019  #elif PY_MAJOR_VERSION >= 3
54020  return __pyx_m;
54021  #else
54022  return;
54023  #endif
54024 }
54025 
54026 /* --- Runtime support code --- */
54027 /* Refnanny */
54028 #if CYTHON_REFNANNY
54029 static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) {
54030  PyObject *m = NULL, *p = NULL;
54031  void *r = NULL;
54032  m = PyImport_ImportModule(modname);
54033  if (!m) goto end;
54034  p = PyObject_GetAttrString(m, "RefNannyAPI");
54035  if (!p) goto end;
54036  r = PyLong_AsVoidPtr(p);
54037 end:
54038  Py_XDECREF(p);
54039  Py_XDECREF(m);
54040  return (__Pyx_RefNannyAPIStruct *)r;
54041 }
54042 #endif
54043 
54044 /* RaiseArgTupleInvalid */
54045 static void __Pyx_RaiseArgtupleInvalid(
54046  const char* func_name,
54047  int exact,
54048  Py_ssize_t num_min,
54049  Py_ssize_t num_max,
54050  Py_ssize_t num_found)
54051 {
54052  Py_ssize_t num_expected;
54053  const char *more_or_less;
54054  if (num_found < num_min) {
54055  num_expected = num_min;
54056  more_or_less = "at least";
54057  } else {
54058  num_expected = num_max;
54059  more_or_less = "at most";
54060  }
54061  if (exact) {
54062  more_or_less = "exactly";
54063  }
54064  PyErr_Format(PyExc_TypeError,
54065  "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)",
54066  func_name, more_or_less, num_expected,
54067  (num_expected == 1) ? "" : "s", num_found);
54068 }
54069 
54070 /* RaiseDoubleKeywords */
54071 static void __Pyx_RaiseDoubleKeywordsError(
54072  const char* func_name,
54073  PyObject* kw_name)
54074 {
54075  PyErr_Format(PyExc_TypeError,
54076  #if PY_MAJOR_VERSION >= 3
54077  "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
54078  #else
54079  "%s() got multiple values for keyword argument '%s'", func_name,
54080  PyString_AsString(kw_name));
54081  #endif
54082 }
54083 
54084 /* ParseKeywords */
54085 static int __Pyx_ParseOptionalKeywords(
54086  PyObject *kwds,
54087  PyObject **argnames[],
54088  PyObject *kwds2,
54089  PyObject *values[],
54090  Py_ssize_t num_pos_args,
54091  const char* function_name)
54092 {
54093  PyObject *key = 0, *value = 0;
54094  Py_ssize_t pos = 0;
54095  PyObject*** name;
54096  PyObject*** first_kw_arg = argnames + num_pos_args;
54097  while (PyDict_Next(kwds, &pos, &key, &value)) {
54098  name = first_kw_arg;
54099  while (*name && (**name != key)) name++;
54100  if (*name) {
54101  values[name-argnames] = value;
54102  continue;
54103  }
54104  name = first_kw_arg;
54105  #if PY_MAJOR_VERSION < 3
54106  if (likely(PyString_Check(key))) {
54107  while (*name) {
54108  if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key))
54109  && _PyString_Eq(**name, key)) {
54110  values[name-argnames] = value;
54111  break;
54112  }
54113  name++;
54114  }
54115  if (*name) continue;
54116  else {
54117  PyObject*** argname = argnames;
54118  while (argname != first_kw_arg) {
54119  if ((**argname == key) || (
54120  (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key))
54121  && _PyString_Eq(**argname, key))) {
54122  goto arg_passed_twice;
54123  }
54124  argname++;
54125  }
54126  }
54127  } else
54128  #endif
54129  if (likely(PyUnicode_Check(key))) {
54130  while (*name) {
54131  int cmp = (**name == key) ? 0 :
54132  #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
54133  (__Pyx_PyUnicode_GET_LENGTH(**name) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 :
54134  #endif
54135  PyUnicode_Compare(**name, key);
54136  if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
54137  if (cmp == 0) {
54138  values[name-argnames] = value;
54139  break;
54140  }
54141  name++;
54142  }
54143  if (*name) continue;
54144  else {
54145  PyObject*** argname = argnames;
54146  while (argname != first_kw_arg) {
54147  int cmp = (**argname == key) ? 0 :
54148  #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
54149  (__Pyx_PyUnicode_GET_LENGTH(**argname) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 :
54150  #endif
54151  PyUnicode_Compare(**argname, key);
54152  if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
54153  if (cmp == 0) goto arg_passed_twice;
54154  argname++;
54155  }
54156  }
54157  } else
54158  goto invalid_keyword_type;
54159  if (kwds2) {
54160  if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad;
54161  } else {
54162  goto invalid_keyword;
54163  }
54164  }
54165  return 0;
54166 arg_passed_twice:
54167  __Pyx_RaiseDoubleKeywordsError(function_name, key);
54168  goto bad;
54169 invalid_keyword_type:
54170  PyErr_Format(PyExc_TypeError,
54171  "%.200s() keywords must be strings", function_name);
54172  goto bad;
54173 invalid_keyword:
54174  PyErr_Format(PyExc_TypeError,
54175  #if PY_MAJOR_VERSION < 3
54176  "%.200s() got an unexpected keyword argument '%.200s'",
54177  function_name, PyString_AsString(key));
54178  #else
54179  "%s() got an unexpected keyword argument '%U'",
54180  function_name, key);
54181  #endif
54182 bad:
54183  return -1;
54184 }
54185 
54186 /* ArgTypeTest */
54187 static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact)
54188 {
54189  if (unlikely(!type)) {
54190  PyErr_SetString(PyExc_SystemError, "Missing type object");
54191  return 0;
54192  }
54193  else if (exact) {
54194  #if PY_MAJOR_VERSION == 2
54195  if ((type == &PyBaseString_Type) && likely(__Pyx_PyBaseString_CheckExact(obj))) return 1;
54196  #endif
54197  }
54198  else {
54199  if (likely(__Pyx_TypeCheck(obj, type))) return 1;
54200  }
54201  PyErr_Format(PyExc_TypeError,
54202  "Argument '%.200s' has incorrect type (expected %.200s, got %.200s)",
54203  name, type->tp_name, Py_TYPE(obj)->tp_name);
54204  return 0;
54205 }
54206 
54207 /* PyObjectGetAttrStr */
54208 #if CYTHON_USE_TYPE_SLOTS
54209 static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
54210  PyTypeObject* tp = Py_TYPE(obj);
54211  if (likely(tp->tp_getattro))
54212  return tp->tp_getattro(obj, attr_name);
54213 #if PY_MAJOR_VERSION < 3
54214  if (likely(tp->tp_getattr))
54215  return tp->tp_getattr(obj, PyString_AS_STRING(attr_name));
54216 #endif
54217  return PyObject_GetAttr(obj, attr_name);
54218 }
54219 #endif
54220 
54221 /* GetItemInt */
54222 static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
54223  PyObject *r;
54224  if (!j) return NULL;
54225  r = PyObject_GetItem(o, j);
54226  Py_DECREF(j);
54227  return r;
54228 }
54229 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
54230  CYTHON_NCP_UNUSED int wraparound,
54231  CYTHON_NCP_UNUSED int boundscheck) {
54232 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
54233  Py_ssize_t wrapped_i = i;
54234  if (wraparound & unlikely(i < 0)) {
54235  wrapped_i += PyList_GET_SIZE(o);
54236  }
54237  if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyList_GET_SIZE(o)))) {
54238  PyObject *r = PyList_GET_ITEM(o, wrapped_i);
54239  Py_INCREF(r);
54240  return r;
54241  }
54242  return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
54243 #else
54244  return PySequence_GetItem(o, i);
54245 #endif
54246 }
54247 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
54248  CYTHON_NCP_UNUSED int wraparound,
54249  CYTHON_NCP_UNUSED int boundscheck) {
54250 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
54251  Py_ssize_t wrapped_i = i;
54252  if (wraparound & unlikely(i < 0)) {
54253  wrapped_i += PyTuple_GET_SIZE(o);
54254  }
54255  if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyTuple_GET_SIZE(o)))) {
54256  PyObject *r = PyTuple_GET_ITEM(o, wrapped_i);
54257  Py_INCREF(r);
54258  return r;
54259  }
54260  return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
54261 #else
54262  return PySequence_GetItem(o, i);
54263 #endif
54264 }
54265 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list,
54266  CYTHON_NCP_UNUSED int wraparound,
54267  CYTHON_NCP_UNUSED int boundscheck) {
54268 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS
54269  if (is_list || PyList_CheckExact(o)) {
54270  Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o);
54271  if ((!boundscheck) || (likely(__Pyx_is_valid_index(n, PyList_GET_SIZE(o))))) {
54272  PyObject *r = PyList_GET_ITEM(o, n);
54273  Py_INCREF(r);
54274  return r;
54275  }
54276  }
54277  else if (PyTuple_CheckExact(o)) {
54278  Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o);
54279  if ((!boundscheck) || likely(__Pyx_is_valid_index(n, PyTuple_GET_SIZE(o)))) {
54280  PyObject *r = PyTuple_GET_ITEM(o, n);
54281  Py_INCREF(r);
54282  return r;
54283  }
54284  } else {
54285  PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence;
54286  if (likely(m && m->sq_item)) {
54287  if (wraparound && unlikely(i < 0) && likely(m->sq_length)) {
54288  Py_ssize_t l = m->sq_length(o);
54289  if (likely(l >= 0)) {
54290  i += l;
54291  } else {
54292  if (!PyErr_ExceptionMatches(PyExc_OverflowError))
54293  return NULL;
54294  PyErr_Clear();
54295  }
54296  }
54297  return m->sq_item(o, i);
54298  }
54299  }
54300 #else
54301  if (is_list || PySequence_Check(o)) {
54302  return PySequence_GetItem(o, i);
54303  }
54304 #endif
54305  return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
54306 }
54307 
54308 /* GetBuiltinName */
54309 static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
54310  PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name);
54311  if (unlikely(!result)) {
54312  PyErr_Format(PyExc_NameError,
54313 #if PY_MAJOR_VERSION >= 3
54314  "name '%U' is not defined", name);
54315 #else
54316  "name '%.200s' is not defined", PyString_AS_STRING(name));
54317 #endif
54318  }
54319  return result;
54320 }
54321 
54322 /* PyDictVersioning */
54323 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
54324 static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) {
54325  PyObject *dict = Py_TYPE(obj)->tp_dict;
54326  return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
54327 }
54328 static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) {
54329  PyObject **dictptr = NULL;
54330  Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset;
54331  if (offset) {
54332 #if CYTHON_COMPILING_IN_CPYTHON
54333  dictptr = (likely(offset > 0)) ? (PyObject **) ((char *)obj + offset) : _PyObject_GetDictPtr(obj);
54334 #else
54335  dictptr = _PyObject_GetDictPtr(obj);
54336 #endif
54337  }
54338  return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
54339 }
54340 static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) {
54341  PyObject *dict = Py_TYPE(obj)->tp_dict;
54342  if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
54343  return 0;
54344  return obj_dict_version == __Pyx_get_object_dict_version(obj);
54345 }
54346 #endif
54347 
54348 /* GetModuleGlobalName */
54349 #if CYTHON_USE_DICT_VERSIONS
54350 static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value)
54351 #else
54352 static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name)
54353 #endif
54354 {
54355  PyObject *result;
54356 #if !CYTHON_AVOID_BORROWED_REFS
54357 #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1
54358  result = _PyDict_GetItem_KnownHash(__pyx_d, name, ((PyASCIIObject *) name)->hash);
54359  __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
54360  if (likely(result)) {
54361  return __Pyx_NewRef(result);
54362  } else if (unlikely(PyErr_Occurred())) {
54363  return NULL;
54364  }
54365 #else
54366  result = PyDict_GetItem(__pyx_d, name);
54367  __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
54368  if (likely(result)) {
54369  return __Pyx_NewRef(result);
54370  }
54371 #endif
54372 #else
54373  result = PyObject_GetItem(__pyx_d, name);
54374  __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
54375  if (likely(result)) {
54376  return __Pyx_NewRef(result);
54377  }
54378  PyErr_Clear();
54379 #endif
54380  return __Pyx_GetBuiltinName(name);
54381 }
54382 
54383 /* PyFunctionFastCall */
54384 #if CYTHON_FAST_PYCALL
54385 static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na,
54386  PyObject *globals) {
54387  PyFrameObject *f;
54388  PyThreadState *tstate = __Pyx_PyThreadState_Current;
54389  PyObject **fastlocals;
54390  Py_ssize_t i;
54391  PyObject *result;
54392  assert(globals != NULL);
54393  /* XXX Perhaps we should create a specialized
54394  PyFrame_New() that doesn't take locals, but does
54395  take builtins without sanity checking them.
54396  */
54397  assert(tstate != NULL);
54398  f = PyFrame_New(tstate, co, globals, NULL);
54399  if (f == NULL) {
54400  return NULL;
54401  }
54402  fastlocals = __Pyx_PyFrame_GetLocalsplus(f);
54403  for (i = 0; i < na; i++) {
54404  Py_INCREF(*args);
54405  fastlocals[i] = *args++;
54406  }
54407  result = PyEval_EvalFrameEx(f,0);
54408  ++tstate->recursion_depth;
54409  Py_DECREF(f);
54410  --tstate->recursion_depth;
54411  return result;
54412 }
54413 #if 1 || PY_VERSION_HEX < 0x030600B1
54414 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs) {
54415  PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func);
54416  PyObject *globals = PyFunction_GET_GLOBALS(func);
54417  PyObject *argdefs = PyFunction_GET_DEFAULTS(func);
54418  PyObject *closure;
54419 #if PY_MAJOR_VERSION >= 3
54420  PyObject *kwdefs;
54421 #endif
54422  PyObject *kwtuple, **k;
54423  PyObject **d;
54424  Py_ssize_t nd;
54425  Py_ssize_t nk;
54426  PyObject *result;
54427  assert(kwargs == NULL || PyDict_Check(kwargs));
54428  nk = kwargs ? PyDict_Size(kwargs) : 0;
54429  if (Py_EnterRecursiveCall((char*)" while calling a Python object")) {
54430  return NULL;
54431  }
54432  if (
54433 #if PY_MAJOR_VERSION >= 3
54434  co->co_kwonlyargcount == 0 &&
54435 #endif
54436  likely(kwargs == NULL || nk == 0) &&
54437  co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) {
54438  if (argdefs == NULL && co->co_argcount == nargs) {
54439  result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals);
54440  goto done;
54441  }
54442  else if (nargs == 0 && argdefs != NULL
54443  && co->co_argcount == Py_SIZE(argdefs)) {
54444  /* function called with no arguments, but all parameters have
54445  a default value: use default values as arguments .*/
54446  args = &PyTuple_GET_ITEM(argdefs, 0);
54447  result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals);
54448  goto done;
54449  }
54450  }
54451  if (kwargs != NULL) {
54452  Py_ssize_t pos, i;
54453  kwtuple = PyTuple_New(2 * nk);
54454  if (kwtuple == NULL) {
54455  result = NULL;
54456  goto done;
54457  }
54458  k = &PyTuple_GET_ITEM(kwtuple, 0);
54459  pos = i = 0;
54460  while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) {
54461  Py_INCREF(k[i]);
54462  Py_INCREF(k[i+1]);
54463  i += 2;
54464  }
54465  nk = i / 2;
54466  }
54467  else {
54468  kwtuple = NULL;
54469  k = NULL;
54470  }
54471  closure = PyFunction_GET_CLOSURE(func);
54472 #if PY_MAJOR_VERSION >= 3
54473  kwdefs = PyFunction_GET_KW_DEFAULTS(func);
54474 #endif
54475  if (argdefs != NULL) {
54476  d = &PyTuple_GET_ITEM(argdefs, 0);
54477  nd = Py_SIZE(argdefs);
54478  }
54479  else {
54480  d = NULL;
54481  nd = 0;
54482  }
54483 #if PY_MAJOR_VERSION >= 3
54484  result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL,
54485  args, (int)nargs,
54486  k, (int)nk,
54487  d, (int)nd, kwdefs, closure);
54488 #else
54489  result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL,
54490  args, (int)nargs,
54491  k, (int)nk,
54492  d, (int)nd, closure);
54493 #endif
54494  Py_XDECREF(kwtuple);
54495 done:
54496  Py_LeaveRecursiveCall();
54497  return result;
54498 }
54499 #endif
54500 #endif
54501 
54502 /* PyCFunctionFastCall */
54503 #if CYTHON_FAST_PYCCALL
54504 static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) {
54505  PyCFunctionObject *func = (PyCFunctionObject*)func_obj;
54506  PyCFunction meth = PyCFunction_GET_FUNCTION(func);
54507  PyObject *self = PyCFunction_GET_SELF(func);
54508  int flags = PyCFunction_GET_FLAGS(func);
54509  assert(PyCFunction_Check(func));
54510  assert(METH_FASTCALL == (flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS)));
54511  assert(nargs >= 0);
54512  assert(nargs == 0 || args != NULL);
54513  /* _PyCFunction_FastCallDict() must not be called with an exception set,
54514  because it may clear it (directly or indirectly) and so the
54515  caller loses its exception */
54516  assert(!PyErr_Occurred());
54517  if ((PY_VERSION_HEX < 0x030700A0) || unlikely(flags & METH_KEYWORDS)) {
54518  return (*((__Pyx_PyCFunctionFastWithKeywords)(void*)meth)) (self, args, nargs, NULL);
54519  } else {
54520  return (*((__Pyx_PyCFunctionFast)(void*)meth)) (self, args, nargs);
54521  }
54522 }
54523 #endif
54524 
54525 /* PyObjectCall */
54526 #if CYTHON_COMPILING_IN_CPYTHON
54527 static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
54528  PyObject *result;
54529  ternaryfunc call = Py_TYPE(func)->tp_call;
54530  if (unlikely(!call))
54531  return PyObject_Call(func, arg, kw);
54532  if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
54533  return NULL;
54534  result = (*call)(func, arg, kw);
54535  Py_LeaveRecursiveCall();
54536  if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
54537  PyErr_SetString(
54538  PyExc_SystemError,
54539  "NULL result without error in PyObject_Call");
54540  }
54541  return result;
54542 }
54543 #endif
54544 
54545 /* GetTopmostException */
54546 #if CYTHON_USE_EXC_INFO_STACK
54547 static _PyErr_StackItem *
54548 __Pyx_PyErr_GetTopmostException(PyThreadState *tstate)
54549 {
54550  _PyErr_StackItem *exc_info = tstate->exc_info;
54551  while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) &&
54552  exc_info->previous_item != NULL)
54553  {
54554  exc_info = exc_info->previous_item;
54555  }
54556  return exc_info;
54557 }
54558 #endif
54559 
54560 /* SaveResetException */
54561 #if CYTHON_FAST_THREAD_STATE
54562 static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
54563  #if CYTHON_USE_EXC_INFO_STACK
54564  _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
54565  *type = exc_info->exc_type;
54566  *value = exc_info->exc_value;
54567  *tb = exc_info->exc_traceback;
54568  #else
54569  *type = tstate->exc_type;
54570  *value = tstate->exc_value;
54571  *tb = tstate->exc_traceback;
54572  #endif
54573  Py_XINCREF(*type);
54574  Py_XINCREF(*value);
54575  Py_XINCREF(*tb);
54576 }
54577 static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
54578  PyObject *tmp_type, *tmp_value, *tmp_tb;
54579  #if CYTHON_USE_EXC_INFO_STACK
54580  _PyErr_StackItem *exc_info = tstate->exc_info;
54581  tmp_type = exc_info->exc_type;
54582  tmp_value = exc_info->exc_value;
54583  tmp_tb = exc_info->exc_traceback;
54584  exc_info->exc_type = type;
54585  exc_info->exc_value = value;
54586  exc_info->exc_traceback = tb;
54587  #else
54588  tmp_type = tstate->exc_type;
54589  tmp_value = tstate->exc_value;
54590  tmp_tb = tstate->exc_traceback;
54591  tstate->exc_type = type;
54592  tstate->exc_value = value;
54593  tstate->exc_traceback = tb;
54594  #endif
54595  Py_XDECREF(tmp_type);
54596  Py_XDECREF(tmp_value);
54597  Py_XDECREF(tmp_tb);
54598 }
54599 #endif
54600 
54601 /* PyErrExceptionMatches */
54602 #if CYTHON_FAST_THREAD_STATE
54603 static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
54604  Py_ssize_t i, n;
54605  n = PyTuple_GET_SIZE(tuple);
54606 #if PY_MAJOR_VERSION >= 3
54607  for (i=0; i<n; i++) {
54608  if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
54609  }
54610 #endif
54611  for (i=0; i<n; i++) {
54612  if (__Pyx_PyErr_GivenExceptionMatches(exc_type, PyTuple_GET_ITEM(tuple, i))) return 1;
54613  }
54614  return 0;
54615 }
54616 static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) {
54617  PyObject *exc_type = tstate->curexc_type;
54618  if (exc_type == err) return 1;
54619  if (unlikely(!exc_type)) return 0;
54620  if (unlikely(PyTuple_Check(err)))
54621  return __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err);
54622  return __Pyx_PyErr_GivenExceptionMatches(exc_type, err);
54623 }
54624 #endif
54625 
54626 /* GetException */
54627 #if CYTHON_FAST_THREAD_STATE
54628 static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb)
54629 #else
54630 static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb)
54631 #endif
54632 {
54633  PyObject *local_type, *local_value, *local_tb;
54634 #if CYTHON_FAST_THREAD_STATE
54635  PyObject *tmp_type, *tmp_value, *tmp_tb;
54636  local_type = tstate->curexc_type;
54637  local_value = tstate->curexc_value;
54638  local_tb = tstate->curexc_traceback;
54639  tstate->curexc_type = 0;
54640  tstate->curexc_value = 0;
54641  tstate->curexc_traceback = 0;
54642 #else
54643  PyErr_Fetch(&local_type, &local_value, &local_tb);
54644 #endif
54645  PyErr_NormalizeException(&local_type, &local_value, &local_tb);
54646 #if CYTHON_FAST_THREAD_STATE
54647  if (unlikely(tstate->curexc_type))
54648 #else
54649  if (unlikely(PyErr_Occurred()))
54650 #endif
54651  goto bad;
54652  #if PY_MAJOR_VERSION >= 3
54653  if (local_tb) {
54654  if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0))
54655  goto bad;
54656  }
54657  #endif
54658  Py_XINCREF(local_tb);
54659  Py_XINCREF(local_type);
54660  Py_XINCREF(local_value);
54661  *type = local_type;
54662  *value = local_value;
54663  *tb = local_tb;
54664 #if CYTHON_FAST_THREAD_STATE
54665  #if CYTHON_USE_EXC_INFO_STACK
54666  {
54667  _PyErr_StackItem *exc_info = tstate->exc_info;
54668  tmp_type = exc_info->exc_type;
54669  tmp_value = exc_info->exc_value;
54670  tmp_tb = exc_info->exc_traceback;
54671  exc_info->exc_type = local_type;
54672  exc_info->exc_value = local_value;
54673  exc_info->exc_traceback = local_tb;
54674  }
54675  #else
54676  tmp_type = tstate->exc_type;
54677  tmp_value = tstate->exc_value;
54678  tmp_tb = tstate->exc_traceback;
54679  tstate->exc_type = local_type;
54680  tstate->exc_value = local_value;
54681  tstate->exc_traceback = local_tb;
54682  #endif
54683  Py_XDECREF(tmp_type);
54684  Py_XDECREF(tmp_value);
54685  Py_XDECREF(tmp_tb);
54686 #else
54687  PyErr_SetExcInfo(local_type, local_value, local_tb);
54688 #endif
54689  return 0;
54690 bad:
54691  *type = 0;
54692  *value = 0;
54693  *tb = 0;
54694  Py_XDECREF(local_type);
54695  Py_XDECREF(local_value);
54696  Py_XDECREF(local_tb);
54697  return -1;
54698 }
54699 
54700 /* PyErrFetchRestore */
54701 #if CYTHON_FAST_THREAD_STATE
54702 static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
54703  PyObject *tmp_type, *tmp_value, *tmp_tb;
54704  tmp_type = tstate->curexc_type;
54705  tmp_value = tstate->curexc_value;
54706  tmp_tb = tstate->curexc_traceback;
54707  tstate->curexc_type = type;
54708  tstate->curexc_value = value;
54709  tstate->curexc_traceback = tb;
54710  Py_XDECREF(tmp_type);
54711  Py_XDECREF(tmp_value);
54712  Py_XDECREF(tmp_tb);
54713 }
54714 static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
54715  *type = tstate->curexc_type;
54716  *value = tstate->curexc_value;
54717  *tb = tstate->curexc_traceback;
54718  tstate->curexc_type = 0;
54719  tstate->curexc_value = 0;
54720  tstate->curexc_traceback = 0;
54721 }
54722 #endif
54723 
54724 /* RaiseException */
54725 #if PY_MAJOR_VERSION < 3
54726 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb,
54727  CYTHON_UNUSED PyObject *cause) {
54728  __Pyx_PyThreadState_declare
54729  Py_XINCREF(type);
54730  if (!value || value == Py_None)
54731  value = NULL;
54732  else
54733  Py_INCREF(value);
54734  if (!tb || tb == Py_None)
54735  tb = NULL;
54736  else {
54737  Py_INCREF(tb);
54738  if (!PyTraceBack_Check(tb)) {
54739  PyErr_SetString(PyExc_TypeError,
54740  "raise: arg 3 must be a traceback or None");
54741  goto raise_error;
54742  }
54743  }
54744  if (PyType_Check(type)) {
54745 #if CYTHON_COMPILING_IN_PYPY
54746  if (!value) {
54747  Py_INCREF(Py_None);
54748  value = Py_None;
54749  }
54750 #endif
54751  PyErr_NormalizeException(&type, &value, &tb);
54752  } else {
54753  if (value) {
54754  PyErr_SetString(PyExc_TypeError,
54755  "instance exception may not have a separate value");
54756  goto raise_error;
54757  }
54758  value = type;
54759  type = (PyObject*) Py_TYPE(type);
54760  Py_INCREF(type);
54761  if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) {
54762  PyErr_SetString(PyExc_TypeError,
54763  "raise: exception class must be a subclass of BaseException");
54764  goto raise_error;
54765  }
54766  }
54767  __Pyx_PyThreadState_assign
54768  __Pyx_ErrRestore(type, value, tb);
54769  return;
54770 raise_error:
54771  Py_XDECREF(value);
54772  Py_XDECREF(type);
54773  Py_XDECREF(tb);
54774  return;
54775 }
54776 #else
54777 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) {
54778  PyObject* owned_instance = NULL;
54779  if (tb == Py_None) {
54780  tb = 0;
54781  } else if (tb && !PyTraceBack_Check(tb)) {
54782  PyErr_SetString(PyExc_TypeError,
54783  "raise: arg 3 must be a traceback or None");
54784  goto bad;
54785  }
54786  if (value == Py_None)
54787  value = 0;
54788  if (PyExceptionInstance_Check(type)) {
54789  if (value) {
54790  PyErr_SetString(PyExc_TypeError,
54791  "instance exception may not have a separate value");
54792  goto bad;
54793  }
54794  value = type;
54795  type = (PyObject*) Py_TYPE(value);
54796  } else if (PyExceptionClass_Check(type)) {
54797  PyObject *instance_class = NULL;
54798  if (value && PyExceptionInstance_Check(value)) {
54799  instance_class = (PyObject*) Py_TYPE(value);
54800  if (instance_class != type) {
54801  int is_subclass = PyObject_IsSubclass(instance_class, type);
54802  if (!is_subclass) {
54803  instance_class = NULL;
54804  } else if (unlikely(is_subclass == -1)) {
54805  goto bad;
54806  } else {
54807  type = instance_class;
54808  }
54809  }
54810  }
54811  if (!instance_class) {
54812  PyObject *args;
54813  if (!value)
54814  args = PyTuple_New(0);
54815  else if (PyTuple_Check(value)) {
54816  Py_INCREF(value);
54817  args = value;
54818  } else
54819  args = PyTuple_Pack(1, value);
54820  if (!args)
54821  goto bad;
54822  owned_instance = PyObject_Call(type, args, NULL);
54823  Py_DECREF(args);
54824  if (!owned_instance)
54825  goto bad;
54826  value = owned_instance;
54827  if (!PyExceptionInstance_Check(value)) {
54828  PyErr_Format(PyExc_TypeError,
54829  "calling %R should have returned an instance of "
54830  "BaseException, not %R",
54831  type, Py_TYPE(value));
54832  goto bad;
54833  }
54834  }
54835  } else {
54836  PyErr_SetString(PyExc_TypeError,
54837  "raise: exception class must be a subclass of BaseException");
54838  goto bad;
54839  }
54840  if (cause) {
54841  PyObject *fixed_cause;
54842  if (cause == Py_None) {
54843  fixed_cause = NULL;
54844  } else if (PyExceptionClass_Check(cause)) {
54845  fixed_cause = PyObject_CallObject(cause, NULL);
54846  if (fixed_cause == NULL)
54847  goto bad;
54848  } else if (PyExceptionInstance_Check(cause)) {
54849  fixed_cause = cause;
54850  Py_INCREF(fixed_cause);
54851  } else {
54852  PyErr_SetString(PyExc_TypeError,
54853  "exception causes must derive from "
54854  "BaseException");
54855  goto bad;
54856  }
54857  PyException_SetCause(value, fixed_cause);
54858  }
54859  PyErr_SetObject(type, value);
54860  if (tb) {
54861 #if CYTHON_COMPILING_IN_PYPY
54862  PyObject *tmp_type, *tmp_value, *tmp_tb;
54863  PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb);
54864  Py_INCREF(tb);
54865  PyErr_Restore(tmp_type, tmp_value, tb);
54866  Py_XDECREF(tmp_tb);
54867 #else
54868  PyThreadState *tstate = __Pyx_PyThreadState_Current;
54869  PyObject* tmp_tb = tstate->curexc_traceback;
54870  if (tb != tmp_tb) {
54871  Py_INCREF(tb);
54872  tstate->curexc_traceback = tb;
54873  Py_XDECREF(tmp_tb);
54874  }
54875 #endif
54876  }
54877 bad:
54878  Py_XDECREF(owned_instance);
54879  return;
54880 }
54881 #endif
54882 
54883 /* TypeImport */
54884 #ifndef __PYX_HAVE_RT_ImportType
54885 #define __PYX_HAVE_RT_ImportType
54886 static PyTypeObject *__Pyx_ImportType(PyObject *module, const char *module_name, const char *class_name,
54887  size_t size, enum __Pyx_ImportType_CheckSize check_size)
54888 {
54889  PyObject *result = 0;
54890  char warning[200];
54891  Py_ssize_t basicsize;
54892 #ifdef Py_LIMITED_API
54893  PyObject *py_basicsize;
54894 #endif
54895  result = PyObject_GetAttrString(module, class_name);
54896  if (!result)
54897  goto bad;
54898  if (!PyType_Check(result)) {
54899  PyErr_Format(PyExc_TypeError,
54900  "%.200s.%.200s is not a type object",
54901  module_name, class_name);
54902  goto bad;
54903  }
54904 #ifndef Py_LIMITED_API
54905  basicsize = ((PyTypeObject *)result)->tp_basicsize;
54906 #else
54907  py_basicsize = PyObject_GetAttrString(result, "__basicsize__");
54908  if (!py_basicsize)
54909  goto bad;
54910  basicsize = PyLong_AsSsize_t(py_basicsize);
54911  Py_DECREF(py_basicsize);
54912  py_basicsize = 0;
54913  if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred())
54914  goto bad;
54915 #endif
54916  if ((size_t)basicsize < size) {
54917  PyErr_Format(PyExc_ValueError,
54918  "%.200s.%.200s size changed, may indicate binary incompatibility. "
54919  "Expected %zd from C header, got %zd from PyObject",
54920  module_name, class_name, size, basicsize);
54921  goto bad;
54922  }
54923  if (check_size == __Pyx_ImportType_CheckSize_Error && (size_t)basicsize != size) {
54924  PyErr_Format(PyExc_ValueError,
54925  "%.200s.%.200s size changed, may indicate binary incompatibility. "
54926  "Expected %zd from C header, got %zd from PyObject",
54927  module_name, class_name, size, basicsize);
54928  goto bad;
54929  }
54930  else if (check_size == __Pyx_ImportType_CheckSize_Warn && (size_t)basicsize > size) {
54931  PyOS_snprintf(warning, sizeof(warning),
54932  "%s.%s size changed, may indicate binary incompatibility. "
54933  "Expected %zd from C header, got %zd from PyObject",
54934  module_name, class_name, size, basicsize);
54935  if (PyErr_WarnEx(NULL, warning, 0) < 0) goto bad;
54936  }
54937  return (PyTypeObject *)result;
54938 bad:
54939  Py_XDECREF(result);
54940  return NULL;
54941 }
54942 #endif
54943 
54944 /* Import */
54945 static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) {
54946  PyObject *empty_list = 0;
54947  PyObject *module = 0;
54948  PyObject *global_dict = 0;
54949  PyObject *empty_dict = 0;
54950  PyObject *list;
54951  #if PY_MAJOR_VERSION < 3
54952  PyObject *py_import;
54953  py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import);
54954  if (!py_import)
54955  goto bad;
54956  #endif
54957  if (from_list)
54958  list = from_list;
54959  else {
54960  empty_list = PyList_New(0);
54961  if (!empty_list)
54962  goto bad;
54963  list = empty_list;
54964  }
54965  global_dict = PyModule_GetDict(__pyx_m);
54966  if (!global_dict)
54967  goto bad;
54968  empty_dict = PyDict_New();
54969  if (!empty_dict)
54970  goto bad;
54971  {
54972  #if PY_MAJOR_VERSION >= 3
54973  if (level == -1) {
54974  if ((1) && (strchr(__Pyx_MODULE_NAME, '.'))) {
54975  module = PyImport_ImportModuleLevelObject(
54976  name, global_dict, empty_dict, list, 1);
54977  if (!module) {
54978  if (!PyErr_ExceptionMatches(PyExc_ImportError))
54979  goto bad;
54980  PyErr_Clear();
54981  }
54982  }
54983  level = 0;
54984  }
54985  #endif
54986  if (!module) {
54987  #if PY_MAJOR_VERSION < 3
54988  PyObject *py_level = PyInt_FromLong(level);
54989  if (!py_level)
54990  goto bad;
54991  module = PyObject_CallFunctionObjArgs(py_import,
54992  name, global_dict, empty_dict, list, py_level, (PyObject *)NULL);
54993  Py_DECREF(py_level);
54994  #else
54995  module = PyImport_ImportModuleLevelObject(
54996  name, global_dict, empty_dict, list, level);
54997  #endif
54998  }
54999  }
55000 bad:
55001  #if PY_MAJOR_VERSION < 3
55002  Py_XDECREF(py_import);
55003  #endif
55004  Py_XDECREF(empty_list);
55005  Py_XDECREF(empty_dict);
55006  return module;
55007 }
55008 
55009 /* CLineInTraceback */
55010 #ifndef CYTHON_CLINE_IN_TRACEBACK
55011 static int __Pyx_CLineForTraceback(CYTHON_NCP_UNUSED PyThreadState *tstate, int c_line) {
55012  PyObject *use_cline;
55013  PyObject *ptype, *pvalue, *ptraceback;
55014 #if CYTHON_COMPILING_IN_CPYTHON
55015  PyObject **cython_runtime_dict;
55016 #endif
55017  if (unlikely(!__pyx_cython_runtime)) {
55018  return c_line;
55019  }
55020  __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
55021 #if CYTHON_COMPILING_IN_CPYTHON
55022  cython_runtime_dict = _PyObject_GetDictPtr(__pyx_cython_runtime);
55023  if (likely(cython_runtime_dict)) {
55024  __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
55025  use_cline, *cython_runtime_dict,
55026  __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback))
55027  } else
55028 #endif
55029  {
55030  PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback);
55031  if (use_cline_obj) {
55032  use_cline = PyObject_Not(use_cline_obj) ? Py_False : Py_True;
55033  Py_DECREF(use_cline_obj);
55034  } else {
55035  PyErr_Clear();
55036  use_cline = NULL;
55037  }
55038  }
55039  if (!use_cline) {
55040  c_line = 0;
55041  (void) PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False);
55042  }
55043  else if (use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) {
55044  c_line = 0;
55045  }
55046  __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
55047  return c_line;
55048 }
55049 #endif
55050 
55051 /* CodeObjectCache */
55052 static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) {
55053  int start = 0, mid = 0, end = count - 1;
55054  if (end >= 0 && code_line > entries[end].code_line) {
55055  return count;
55056  }
55057  while (start < end) {
55058  mid = start + (end - start) / 2;
55059  if (code_line < entries[mid].code_line) {
55060  end = mid;
55061  } else if (code_line > entries[mid].code_line) {
55062  start = mid + 1;
55063  } else {
55064  return mid;
55065  }
55066  }
55067  if (code_line <= entries[mid].code_line) {
55068  return mid;
55069  } else {
55070  return mid + 1;
55071  }
55072 }
55073 static PyCodeObject *__pyx_find_code_object(int code_line) {
55074  PyCodeObject* code_object;
55075  int pos;
55076  if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) {
55077  return NULL;
55078  }
55079  pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
55080  if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) {
55081  return NULL;
55082  }
55083  code_object = __pyx_code_cache.entries[pos].code_object;
55084  Py_INCREF(code_object);
55085  return code_object;
55086 }
55087 static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
55088  int pos, i;
55089  __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries;
55090  if (unlikely(!code_line)) {
55091  return;
55092  }
55093  if (unlikely(!entries)) {
55094  entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry));
55095  if (likely(entries)) {
55096  __pyx_code_cache.entries = entries;
55097  __pyx_code_cache.max_count = 64;
55098  __pyx_code_cache.count = 1;
55099  entries[0].code_line = code_line;
55100  entries[0].code_object = code_object;
55101  Py_INCREF(code_object);
55102  }
55103  return;
55104  }
55105  pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
55106  if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) {
55107  PyCodeObject* tmp = entries[pos].code_object;
55108  entries[pos].code_object = code_object;
55109  Py_DECREF(tmp);
55110  return;
55111  }
55112  if (__pyx_code_cache.count == __pyx_code_cache.max_count) {
55113  int new_max = __pyx_code_cache.max_count + 64;
55114  entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
55115  __pyx_code_cache.entries, ((size_t)new_max) * sizeof(__Pyx_CodeObjectCacheEntry));
55116  if (unlikely(!entries)) {
55117  return;
55118  }
55119  __pyx_code_cache.entries = entries;
55120  __pyx_code_cache.max_count = new_max;
55121  }
55122  for (i=__pyx_code_cache.count; i>pos; i--) {
55123  entries[i] = entries[i-1];
55124  }
55125  entries[pos].code_line = code_line;
55126  entries[pos].code_object = code_object;
55127  __pyx_code_cache.count++;
55128  Py_INCREF(code_object);
55129 }
55130 
55131 /* AddTraceback */
55132 #include "compile.h"
55133 #include "frameobject.h"
55134 #include "traceback.h"
55135 #if PY_VERSION_HEX >= 0x030b00a6
55136  #ifndef Py_BUILD_CORE
55137  #define Py_BUILD_CORE 1
55138  #endif
55139  #include "internal/pycore_frame.h"
55140 #endif
55141 static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
55142  const char *funcname, int c_line,
55143  int py_line, const char *filename) {
55144  PyCodeObject *py_code = NULL;
55145  PyObject *py_funcname = NULL;
55146  #if PY_MAJOR_VERSION < 3
55147  PyObject *py_srcfile = NULL;
55148  py_srcfile = PyString_FromString(filename);
55149  if (!py_srcfile) goto bad;
55150  #endif
55151  if (c_line) {
55152  #if PY_MAJOR_VERSION < 3
55153  py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
55154  if (!py_funcname) goto bad;
55155  #else
55156  py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
55157  if (!py_funcname) goto bad;
55158  funcname = PyUnicode_AsUTF8(py_funcname);
55159  if (!funcname) goto bad;
55160  #endif
55161  }
55162  else {
55163  #if PY_MAJOR_VERSION < 3
55164  py_funcname = PyString_FromString(funcname);
55165  if (!py_funcname) goto bad;
55166  #endif
55167  }
55168  #if PY_MAJOR_VERSION < 3
55169  py_code = __Pyx_PyCode_New(
55170  0,
55171  0,
55172  0,
55173  0,
55174  0,
55175  __pyx_empty_bytes, /*PyObject *code,*/
55176  __pyx_empty_tuple, /*PyObject *consts,*/
55177  __pyx_empty_tuple, /*PyObject *names,*/
55178  __pyx_empty_tuple, /*PyObject *varnames,*/
55179  __pyx_empty_tuple, /*PyObject *freevars,*/
55180  __pyx_empty_tuple, /*PyObject *cellvars,*/
55181  py_srcfile, /*PyObject *filename,*/
55182  py_funcname, /*PyObject *name,*/
55183  py_line,
55184  __pyx_empty_bytes /*PyObject *lnotab*/
55185  );
55186  Py_DECREF(py_srcfile);
55187  #else
55188  py_code = PyCode_NewEmpty(filename, funcname, py_line);
55189  #endif
55190  Py_XDECREF(py_funcname); // XDECREF since it's only set on Py3 if cline
55191  return py_code;
55192 bad:
55193  Py_XDECREF(py_funcname);
55194  #if PY_MAJOR_VERSION < 3
55195  Py_XDECREF(py_srcfile);
55196  #endif
55197  return NULL;
55198 }
55199 static void __Pyx_AddTraceback(const char *funcname, int c_line,
55200  int py_line, const char *filename) {
55201  PyCodeObject *py_code = 0;
55202  PyFrameObject *py_frame = 0;
55203  PyThreadState *tstate = __Pyx_PyThreadState_Current;
55204  PyObject *ptype, *pvalue, *ptraceback;
55205  if (c_line) {
55206  c_line = __Pyx_CLineForTraceback(tstate, c_line);
55207  }
55208  py_code = __pyx_find_code_object(c_line ? -c_line : py_line);
55209  if (!py_code) {
55210  __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
55211  py_code = __Pyx_CreateCodeObjectForTraceback(
55212  funcname, c_line, py_line, filename);
55213  if (!py_code) {
55214  /* If the code object creation fails, then we should clear the
55215  fetched exception references and propagate the new exception */
55216  Py_XDECREF(ptype);
55217  Py_XDECREF(pvalue);
55218  Py_XDECREF(ptraceback);
55219  goto bad;
55220  }
55221  __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
55222  __pyx_insert_code_object(c_line ? -c_line : py_line, py_code);
55223  }
55224  py_frame = PyFrame_New(
55225  tstate, /*PyThreadState *tstate,*/
55226  py_code, /*PyCodeObject *code,*/
55227  __pyx_d, /*PyObject *globals,*/
55228  0 /*PyObject *locals*/
55229  );
55230  if (!py_frame) goto bad;
55231  __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
55232  PyTraceBack_Here(py_frame);
55233 bad:
55234  Py_XDECREF(py_code);
55235  Py_XDECREF(py_frame);
55236 }
55237 
55238 /* CIntFromPyVerify */
55239 #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
55240  __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
55241 #define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
55242  __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
55243 #define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\
55244  {\
55245  func_type value = func_value;\
55246  if (sizeof(target_type) < sizeof(func_type)) {\
55247  if (unlikely(value != (func_type) (target_type) value)) {\
55248  func_type zero = 0;\
55249  if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\
55250  return (target_type) -1;\
55251  if (is_unsigned && unlikely(value < zero))\
55252  goto raise_neg_overflow;\
55253  else\
55254  goto raise_overflow;\
55255  }\
55256  }\
55257  return (target_type) value;\
55258  }
55259 
55260 /* Declarations */
55261 #if CYTHON_CCOMPLEX
55262  #ifdef __cplusplus
55263  static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) {
55264  return ::std::complex< float >(x, y);
55265  }
55266  #else
55267  static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) {
55268  return x + y*(__pyx_t_float_complex)_Complex_I;
55269  }
55270  #endif
55271 #else
55272  static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) {
55273  __pyx_t_float_complex z;
55274  z.real = x;
55275  z.imag = y;
55276  return z;
55277  }
55278 #endif
55279 
55280 /* Arithmetic */
55281 #if CYTHON_CCOMPLEX
55282 #else
55283  static CYTHON_INLINE int __Pyx_c_eq_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
55284  return (a.real == b.real) && (a.imag == b.imag);
55285  }
55286  static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sum_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
55287  __pyx_t_float_complex z;
55288  z.real = a.real + b.real;
55289  z.imag = a.imag + b.imag;
55290  return z;
55291  }
55292  static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_diff_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
55293  __pyx_t_float_complex z;
55294  z.real = a.real - b.real;
55295  z.imag = a.imag - b.imag;
55296  return z;
55297  }
55298  static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prod_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
55299  __pyx_t_float_complex z;
55300  z.real = a.real * b.real - a.imag * b.imag;
55301  z.imag = a.real * b.imag + a.imag * b.real;
55302  return z;
55303  }
55304  #if 1
55305  static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
55306  if (b.imag == 0) {
55307  return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real);
55308  } else if (fabsf(b.real) >= fabsf(b.imag)) {
55309  if (b.real == 0 && b.imag == 0) {
55310  return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.imag);
55311  } else {
55312  float r = b.imag / b.real;
55313  float s = (float)(1.0) / (b.real + b.imag * r);
55314  return __pyx_t_float_complex_from_parts(
55315  (a.real + a.imag * r) * s, (a.imag - a.real * r) * s);
55316  }
55317  } else {
55318  float r = b.real / b.imag;
55319  float s = (float)(1.0) / (b.imag + b.real * r);
55320  return __pyx_t_float_complex_from_parts(
55321  (a.real * r + a.imag) * s, (a.imag * r - a.real) * s);
55322  }
55323  }
55324  #else
55325  static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
55326  if (b.imag == 0) {
55327  return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real);
55328  } else {
55329  float denom = b.real * b.real + b.imag * b.imag;
55330  return __pyx_t_float_complex_from_parts(
55331  (a.real * b.real + a.imag * b.imag) / denom,
55332  (a.imag * b.real - a.real * b.imag) / denom);
55333  }
55334  }
55335  #endif
55336  static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_neg_float(__pyx_t_float_complex a) {
55337  __pyx_t_float_complex z;
55338  z.real = -a.real;
55339  z.imag = -a.imag;
55340  return z;
55341  }
55342  static CYTHON_INLINE int __Pyx_c_is_zero_float(__pyx_t_float_complex a) {
55343  return (a.real == 0) && (a.imag == 0);
55344  }
55345  static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conj_float(__pyx_t_float_complex a) {
55346  __pyx_t_float_complex z;
55347  z.real = a.real;
55348  z.imag = -a.imag;
55349  return z;
55350  }
55351  #if 1
55352  static CYTHON_INLINE float __Pyx_c_abs_float(__pyx_t_float_complex z) {
55353  #if !defined(HAVE_HYPOT) || defined(_MSC_VER)
55354  return sqrtf(z.real*z.real + z.imag*z.imag);
55355  #else
55356  return hypotf(z.real, z.imag);
55357  #endif
55358  }
55359  static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_pow_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
55360  __pyx_t_float_complex z;
55361  float r, lnr, theta, z_r, z_theta;
55362  if (b.imag == 0 && b.real == (int)b.real) {
55363  if (b.real < 0) {
55364  float denom = a.real * a.real + a.imag * a.imag;
55365  a.real = a.real / denom;
55366  a.imag = -a.imag / denom;
55367  b.real = -b.real;
55368  }
55369  switch ((int)b.real) {
55370  case 0:
55371  z.real = 1;
55372  z.imag = 0;
55373  return z;
55374  case 1:
55375  return a;
55376  case 2:
55377  return __Pyx_c_prod_float(a, a);
55378  case 3:
55379  z = __Pyx_c_prod_float(a, a);
55380  return __Pyx_c_prod_float(z, a);
55381  case 4:
55382  z = __Pyx_c_prod_float(a, a);
55383  return __Pyx_c_prod_float(z, z);
55384  }
55385  }
55386  if (a.imag == 0) {
55387  if (a.real == 0) {
55388  return a;
55389  } else if (b.imag == 0) {
55390  z.real = powf(a.real, b.real);
55391  z.imag = 0;
55392  return z;
55393  } else if (a.real > 0) {
55394  r = a.real;
55395  theta = 0;
55396  } else {
55397  r = -a.real;
55398  theta = atan2f(0.0, -1.0);
55399  }
55400  } else {
55401  r = __Pyx_c_abs_float(a);
55402  theta = atan2f(a.imag, a.real);
55403  }
55404  lnr = logf(r);
55405  z_r = expf(lnr * b.real - theta * b.imag);
55406  z_theta = theta * b.real + lnr * b.imag;
55407  z.real = z_r * cosf(z_theta);
55408  z.imag = z_r * sinf(z_theta);
55409  return z;
55410  }
55411  #endif
55412 #endif
55413 
55414 /* Declarations */
55415 #if CYTHON_CCOMPLEX
55416  #ifdef __cplusplus
55417  static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double x, double y) {
55418  return ::std::complex< double >(x, y);
55419  }
55420  #else
55421  static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double x, double y) {
55422  return x + y*(__pyx_t_double_complex)_Complex_I;
55423  }
55424  #endif
55425 #else
55426  static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double x, double y) {
55427  __pyx_t_double_complex z;
55428  z.real = x;
55429  z.imag = y;
55430  return z;
55431  }
55432 #endif
55433 
55434 /* Arithmetic */
55435 #if CYTHON_CCOMPLEX
55436 #else
55437  static CYTHON_INLINE int __Pyx_c_eq_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
55438  return (a.real == b.real) && (a.imag == b.imag);
55439  }
55440  static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
55441  __pyx_t_double_complex z;
55442  z.real = a.real + b.real;
55443  z.imag = a.imag + b.imag;
55444  return z;
55445  }
55446  static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
55447  __pyx_t_double_complex z;
55448  z.real = a.real - b.real;
55449  z.imag = a.imag - b.imag;
55450  return z;
55451  }
55452  static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
55453  __pyx_t_double_complex z;
55454  z.real = a.real * b.real - a.imag * b.imag;
55455  z.imag = a.real * b.imag + a.imag * b.real;
55456  return z;
55457  }
55458  #if 1
55459  static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
55460  if (b.imag == 0) {
55461  return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real);
55462  } else if (fabs(b.real) >= fabs(b.imag)) {
55463  if (b.real == 0 && b.imag == 0) {
55464  return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.imag);
55465  } else {
55466  double r = b.imag / b.real;
55467  double s = (double)(1.0) / (b.real + b.imag * r);
55468  return __pyx_t_double_complex_from_parts(
55469  (a.real + a.imag * r) * s, (a.imag - a.real * r) * s);
55470  }
55471  } else {
55472  double r = b.real / b.imag;
55473  double s = (double)(1.0) / (b.imag + b.real * r);
55474  return __pyx_t_double_complex_from_parts(
55475  (a.real * r + a.imag) * s, (a.imag * r - a.real) * s);
55476  }
55477  }
55478  #else
55479  static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
55480  if (b.imag == 0) {
55481  return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real);
55482  } else {
55483  double denom = b.real * b.real + b.imag * b.imag;
55484  return __pyx_t_double_complex_from_parts(
55485  (a.real * b.real + a.imag * b.imag) / denom,
55486  (a.imag * b.real - a.real * b.imag) / denom);
55487  }
55488  }
55489  #endif
55490  static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg_double(__pyx_t_double_complex a) {
55491  __pyx_t_double_complex z;
55492  z.real = -a.real;
55493  z.imag = -a.imag;
55494  return z;
55495  }
55496  static CYTHON_INLINE int __Pyx_c_is_zero_double(__pyx_t_double_complex a) {
55497  return (a.real == 0) && (a.imag == 0);
55498  }
55499  static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj_double(__pyx_t_double_complex a) {
55500  __pyx_t_double_complex z;
55501  z.real = a.real;
55502  z.imag = -a.imag;
55503  return z;
55504  }
55505  #if 1
55506  static CYTHON_INLINE double __Pyx_c_abs_double(__pyx_t_double_complex z) {
55507  #if !defined(HAVE_HYPOT) || defined(_MSC_VER)
55508  return sqrt(z.real*z.real + z.imag*z.imag);
55509  #else
55510  return hypot(z.real, z.imag);
55511  #endif
55512  }
55513  static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
55514  __pyx_t_double_complex z;
55515  double r, lnr, theta, z_r, z_theta;
55516  if (b.imag == 0 && b.real == (int)b.real) {
55517  if (b.real < 0) {
55518  double denom = a.real * a.real + a.imag * a.imag;
55519  a.real = a.real / denom;
55520  a.imag = -a.imag / denom;
55521  b.real = -b.real;
55522  }
55523  switch ((int)b.real) {
55524  case 0:
55525  z.real = 1;
55526  z.imag = 0;
55527  return z;
55528  case 1:
55529  return a;
55530  case 2:
55531  return __Pyx_c_prod_double(a, a);
55532  case 3:
55533  z = __Pyx_c_prod_double(a, a);
55534  return __Pyx_c_prod_double(z, a);
55535  case 4:
55536  z = __Pyx_c_prod_double(a, a);
55537  return __Pyx_c_prod_double(z, z);
55538  }
55539  }
55540  if (a.imag == 0) {
55541  if (a.real == 0) {
55542  return a;
55543  } else if (b.imag == 0) {
55544  z.real = pow(a.real, b.real);
55545  z.imag = 0;
55546  return z;
55547  } else if (a.real > 0) {
55548  r = a.real;
55549  theta = 0;
55550  } else {
55551  r = -a.real;
55552  theta = atan2(0.0, -1.0);
55553  }
55554  } else {
55555  r = __Pyx_c_abs_double(a);
55556  theta = atan2(a.imag, a.real);
55557  }
55558  lnr = log(r);
55559  z_r = exp(lnr * b.real - theta * b.imag);
55560  z_theta = theta * b.real + lnr * b.imag;
55561  z.real = z_r * cos(z_theta);
55562  z.imag = z_r * sin(z_theta);
55563  return z;
55564  }
55565  #endif
55566 #endif
55567 
55568 /* CIntFromPy */
55569 static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) {
55570 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
55571 #pragma GCC diagnostic push
55572 #pragma GCC diagnostic ignored "-Wconversion"
55573 #endif
55574  const int neg_one = (int) -1, const_zero = (int) 0;
55575 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
55576 #pragma GCC diagnostic pop
55577 #endif
55578  const int is_unsigned = neg_one > const_zero;
55579 #if PY_MAJOR_VERSION < 3
55580  if (likely(PyInt_Check(x))) {
55581  if (sizeof(int) < sizeof(long)) {
55582  __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x))
55583  } else {
55584  long val = PyInt_AS_LONG(x);
55585  if (is_unsigned && unlikely(val < 0)) {
55586  goto raise_neg_overflow;
55587  }
55588  return (int) val;
55589  }
55590  } else
55591 #endif
55592  if (likely(PyLong_Check(x))) {
55593  if (is_unsigned) {
55594 #if CYTHON_USE_PYLONG_INTERNALS
55595  const digit* digits = ((PyLongObject*)x)->ob_digit;
55596  switch (Py_SIZE(x)) {
55597  case 0: return (int) 0;
55598  case 1: __PYX_VERIFY_RETURN_INT(int, digit, digits[0])
55599  case 2:
55600  if (8 * sizeof(int) > 1 * PyLong_SHIFT) {
55601  if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
55602  __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
55603  } else if (8 * sizeof(int) >= 2 * PyLong_SHIFT) {
55604  return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
55605  }
55606  }
55607  break;
55608  case 3:
55609  if (8 * sizeof(int) > 2 * PyLong_SHIFT) {
55610  if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
55611  __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
55612  } else if (8 * sizeof(int) >= 3 * PyLong_SHIFT) {
55613  return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
55614  }
55615  }
55616  break;
55617  case 4:
55618  if (8 * sizeof(int) > 3 * PyLong_SHIFT) {
55619  if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
55620  __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])))
55621  } else if (8 * sizeof(int) >= 4 * PyLong_SHIFT) {
55622  return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
55623  }
55624  }
55625  break;
55626  }
55627 #endif
55628 #if CYTHON_COMPILING_IN_CPYTHON
55629  if (unlikely(Py_SIZE(x) < 0)) {
55630  goto raise_neg_overflow;
55631  }
55632 #else
55633  {
55634  int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
55635  if (unlikely(result < 0))
55636  return (int) -1;
55637  if (unlikely(result == 1))
55638  goto raise_neg_overflow;
55639  }
55640 #endif
55641  if (sizeof(int) <= sizeof(unsigned long)) {
55642  __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
55643 #ifdef HAVE_LONG_LONG
55644  } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
55645  __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
55646 #endif
55647  }
55648  } else {
55649 #if CYTHON_USE_PYLONG_INTERNALS
55650  const digit* digits = ((PyLongObject*)x)->ob_digit;
55651  switch (Py_SIZE(x)) {
55652  case 0: return (int) 0;
55653  case -1: __PYX_VERIFY_RETURN_INT(int, sdigit, (sdigit) (-(sdigit)digits[0]))
55654  case 1: __PYX_VERIFY_RETURN_INT(int, digit, +digits[0])
55655  case -2:
55656  if (8 * sizeof(int) - 1 > 1 * PyLong_SHIFT) {
55657  if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
55658  __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
55659  } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
55660  return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
55661  }
55662  }
55663  break;
55664  case 2:
55665  if (8 * sizeof(int) > 1 * PyLong_SHIFT) {
55666  if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
55667  __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
55668  } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
55669  return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
55670  }
55671  }
55672  break;
55673  case -3:
55674  if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
55675  if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
55676  __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
55677  } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
55678  return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
55679  }
55680  }
55681  break;
55682  case 3:
55683  if (8 * sizeof(int) > 2 * PyLong_SHIFT) {
55684  if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
55685  __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
55686  } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
55687  return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
55688  }
55689  }
55690  break;
55691  case -4:
55692  if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
55693  if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
55694  __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])))
55695  } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) {
55696  return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
55697  }
55698  }
55699  break;
55700  case 4:
55701  if (8 * sizeof(int) > 3 * PyLong_SHIFT) {
55702  if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
55703  __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])))
55704  } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) {
55705  return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
55706  }
55707  }
55708  break;
55709  }
55710 #endif
55711  if (sizeof(int) <= sizeof(long)) {
55712  __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
55713 #ifdef HAVE_LONG_LONG
55714  } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) {
55715  __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
55716 #endif
55717  }
55718  }
55719  {
55720 #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
55721  PyErr_SetString(PyExc_RuntimeError,
55722  "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
55723 #else
55724  int val;
55725  PyObject *v = __Pyx_PyNumber_IntOrLong(x);
55726  #if PY_MAJOR_VERSION < 3
55727  if (likely(v) && !PyLong_Check(v)) {
55728  PyObject *tmp = v;
55729  v = PyNumber_Long(tmp);
55730  Py_DECREF(tmp);
55731  }
55732  #endif
55733  if (likely(v)) {
55734  int one = 1; int is_little = (int)*(unsigned char *)&one;
55735  unsigned char *bytes = (unsigned char *)&val;
55736  int ret = _PyLong_AsByteArray((PyLongObject *)v,
55737  bytes, sizeof(val),
55738  is_little, !is_unsigned);
55739  Py_DECREF(v);
55740  if (likely(!ret))
55741  return val;
55742  }
55743 #endif
55744  return (int) -1;
55745  }
55746  } else {
55747  int val;
55748  PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
55749  if (!tmp) return (int) -1;
55750  val = __Pyx_PyInt_As_int(tmp);
55751  Py_DECREF(tmp);
55752  return val;
55753  }
55754 raise_overflow:
55755  PyErr_SetString(PyExc_OverflowError,
55756  "value too large to convert to int");
55757  return (int) -1;
55758 raise_neg_overflow:
55759  PyErr_SetString(PyExc_OverflowError,
55760  "can't convert negative value to int");
55761  return (int) -1;
55762 }
55763 
55764 /* CIntToPy */
55765 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_Py_intptr_t(Py_intptr_t value) {
55766 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
55767 #pragma GCC diagnostic push
55768 #pragma GCC diagnostic ignored "-Wconversion"
55769 #endif
55770  const Py_intptr_t neg_one = (Py_intptr_t) -1, const_zero = (Py_intptr_t) 0;
55771 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
55772 #pragma GCC diagnostic pop
55773 #endif
55774  const int is_unsigned = neg_one > const_zero;
55775  if (is_unsigned) {
55776  if (sizeof(Py_intptr_t) < sizeof(long)) {
55777  return PyInt_FromLong((long) value);
55778  } else if (sizeof(Py_intptr_t) <= sizeof(unsigned long)) {
55779  return PyLong_FromUnsignedLong((unsigned long) value);
55780 #ifdef HAVE_LONG_LONG
55781  } else if (sizeof(Py_intptr_t) <= sizeof(unsigned PY_LONG_LONG)) {
55782  return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
55783 #endif
55784  }
55785  } else {
55786  if (sizeof(Py_intptr_t) <= sizeof(long)) {
55787  return PyInt_FromLong((long) value);
55788 #ifdef HAVE_LONG_LONG
55789  } else if (sizeof(Py_intptr_t) <= sizeof(PY_LONG_LONG)) {
55790  return PyLong_FromLongLong((PY_LONG_LONG) value);
55791 #endif
55792  }
55793  }
55794  {
55795  int one = 1; int little = (int)*(unsigned char *)&one;
55796  unsigned char *bytes = (unsigned char *)&value;
55797  return _PyLong_FromByteArray(bytes, sizeof(Py_intptr_t),
55798  little, !is_unsigned);
55799  }
55800 }
55801 
55802 /* CIntToPy */
55803 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) {
55804 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
55805 #pragma GCC diagnostic push
55806 #pragma GCC diagnostic ignored "-Wconversion"
55807 #endif
55808  const long neg_one = (long) -1, const_zero = (long) 0;
55809 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
55810 #pragma GCC diagnostic pop
55811 #endif
55812  const int is_unsigned = neg_one > const_zero;
55813  if (is_unsigned) {
55814  if (sizeof(long) < sizeof(long)) {
55815  return PyInt_FromLong((long) value);
55816  } else if (sizeof(long) <= sizeof(unsigned long)) {
55817  return PyLong_FromUnsignedLong((unsigned long) value);
55818 #ifdef HAVE_LONG_LONG
55819  } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
55820  return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
55821 #endif
55822  }
55823  } else {
55824  if (sizeof(long) <= sizeof(long)) {
55825  return PyInt_FromLong((long) value);
55826 #ifdef HAVE_LONG_LONG
55827  } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
55828  return PyLong_FromLongLong((PY_LONG_LONG) value);
55829 #endif
55830  }
55831  }
55832  {
55833  int one = 1; int little = (int)*(unsigned char *)&one;
55834  unsigned char *bytes = (unsigned char *)&value;
55835  return _PyLong_FromByteArray(bytes, sizeof(long),
55836  little, !is_unsigned);
55837  }
55838 }
55839 
55840 /* CIntFromPy */
55841 static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
55842 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
55843 #pragma GCC diagnostic push
55844 #pragma GCC diagnostic ignored "-Wconversion"
55845 #endif
55846  const long neg_one = (long) -1, const_zero = (long) 0;
55847 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
55848 #pragma GCC diagnostic pop
55849 #endif
55850  const int is_unsigned = neg_one > const_zero;
55851 #if PY_MAJOR_VERSION < 3
55852  if (likely(PyInt_Check(x))) {
55853  if (sizeof(long) < sizeof(long)) {
55854  __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x))
55855  } else {
55856  long val = PyInt_AS_LONG(x);
55857  if (is_unsigned && unlikely(val < 0)) {
55858  goto raise_neg_overflow;
55859  }
55860  return (long) val;
55861  }
55862  } else
55863 #endif
55864  if (likely(PyLong_Check(x))) {
55865  if (is_unsigned) {
55866 #if CYTHON_USE_PYLONG_INTERNALS
55867  const digit* digits = ((PyLongObject*)x)->ob_digit;
55868  switch (Py_SIZE(x)) {
55869  case 0: return (long) 0;
55870  case 1: __PYX_VERIFY_RETURN_INT(long, digit, digits[0])
55871  case 2:
55872  if (8 * sizeof(long) > 1 * PyLong_SHIFT) {
55873  if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
55874  __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
55875  } else if (8 * sizeof(long) >= 2 * PyLong_SHIFT) {
55876  return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
55877  }
55878  }
55879  break;
55880  case 3:
55881  if (8 * sizeof(long) > 2 * PyLong_SHIFT) {
55882  if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
55883  __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
55884  } else if (8 * sizeof(long) >= 3 * PyLong_SHIFT) {
55885  return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
55886  }
55887  }
55888  break;
55889  case 4:
55890  if (8 * sizeof(long) > 3 * PyLong_SHIFT) {
55891  if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
55892  __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])))
55893  } else if (8 * sizeof(long) >= 4 * PyLong_SHIFT) {
55894  return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
55895  }
55896  }
55897  break;
55898  }
55899 #endif
55900 #if CYTHON_COMPILING_IN_CPYTHON
55901  if (unlikely(Py_SIZE(x) < 0)) {
55902  goto raise_neg_overflow;
55903  }
55904 #else
55905  {
55906  int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
55907  if (unlikely(result < 0))
55908  return (long) -1;
55909  if (unlikely(result == 1))
55910  goto raise_neg_overflow;
55911  }
55912 #endif
55913  if (sizeof(long) <= sizeof(unsigned long)) {
55914  __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
55915 #ifdef HAVE_LONG_LONG
55916  } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
55917  __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
55918 #endif
55919  }
55920  } else {
55921 #if CYTHON_USE_PYLONG_INTERNALS
55922  const digit* digits = ((PyLongObject*)x)->ob_digit;
55923  switch (Py_SIZE(x)) {
55924  case 0: return (long) 0;
55925  case -1: __PYX_VERIFY_RETURN_INT(long, sdigit, (sdigit) (-(sdigit)digits[0]))
55926  case 1: __PYX_VERIFY_RETURN_INT(long, digit, +digits[0])
55927  case -2:
55928  if (8 * sizeof(long) - 1 > 1 * PyLong_SHIFT) {
55929  if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
55930  __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
55931  } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
55932  return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
55933  }
55934  }
55935  break;
55936  case 2:
55937  if (8 * sizeof(long) > 1 * PyLong_SHIFT) {
55938  if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
55939  __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
55940  } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
55941  return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
55942  }
55943  }
55944  break;
55945  case -3:
55946  if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
55947  if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
55948  __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
55949  } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
55950  return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
55951  }
55952  }
55953  break;
55954  case 3:
55955  if (8 * sizeof(long) > 2 * PyLong_SHIFT) {
55956  if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
55957  __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
55958  } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
55959  return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
55960  }
55961  }
55962  break;
55963  case -4:
55964  if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
55965  if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
55966  __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])))
55967  } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
55968  return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
55969  }
55970  }
55971  break;
55972  case 4:
55973  if (8 * sizeof(long) > 3 * PyLong_SHIFT) {
55974  if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
55975  __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])))
55976  } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
55977  return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
55978  }
55979  }
55980  break;
55981  }
55982 #endif
55983  if (sizeof(long) <= sizeof(long)) {
55984  __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
55985 #ifdef HAVE_LONG_LONG
55986  } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
55987  __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
55988 #endif
55989  }
55990  }
55991  {
55992 #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
55993  PyErr_SetString(PyExc_RuntimeError,
55994  "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
55995 #else
55996  long val;
55997  PyObject *v = __Pyx_PyNumber_IntOrLong(x);
55998  #if PY_MAJOR_VERSION < 3
55999  if (likely(v) && !PyLong_Check(v)) {
56000  PyObject *tmp = v;
56001  v = PyNumber_Long(tmp);
56002  Py_DECREF(tmp);
56003  }
56004  #endif
56005  if (likely(v)) {
56006  int one = 1; int is_little = (int)*(unsigned char *)&one;
56007  unsigned char *bytes = (unsigned char *)&val;
56008  int ret = _PyLong_AsByteArray((PyLongObject *)v,
56009  bytes, sizeof(val),
56010  is_little, !is_unsigned);
56011  Py_DECREF(v);
56012  if (likely(!ret))
56013  return val;
56014  }
56015 #endif
56016  return (long) -1;
56017  }
56018  } else {
56019  long val;
56020  PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
56021  if (!tmp) return (long) -1;
56022  val = __Pyx_PyInt_As_long(tmp);
56023  Py_DECREF(tmp);
56024  return val;
56025  }
56026 raise_overflow:
56027  PyErr_SetString(PyExc_OverflowError,
56028  "value too large to convert to long");
56029  return (long) -1;
56030 raise_neg_overflow:
56031  PyErr_SetString(PyExc_OverflowError,
56032  "can't convert negative value to long");
56033  return (long) -1;
56034 }
56035 
56036 /* FastTypeChecks */
56037 #if CYTHON_COMPILING_IN_CPYTHON
56038 static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) {
56039  while (a) {
56040  a = a->tp_base;
56041  if (a == b)
56042  return 1;
56043  }
56044  return b == &PyBaseObject_Type;
56045 }
56046 static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) {
56047  PyObject *mro;
56048  if (a == b) return 1;
56049  mro = a->tp_mro;
56050  if (likely(mro)) {
56051  Py_ssize_t i, n;
56052  n = PyTuple_GET_SIZE(mro);
56053  for (i = 0; i < n; i++) {
56054  if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b)
56055  return 1;
56056  }
56057  return 0;
56058  }
56059  return __Pyx_InBases(a, b);
56060 }
56061 #if PY_MAJOR_VERSION == 2
56062 static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* exc_type2) {
56063  PyObject *exception, *value, *tb;
56064  int res;
56065  __Pyx_PyThreadState_declare
56066  __Pyx_PyThreadState_assign
56067  __Pyx_ErrFetch(&exception, &value, &tb);
56068  res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0;
56069  if (unlikely(res == -1)) {
56070  PyErr_WriteUnraisable(err);
56071  res = 0;
56072  }
56073  if (!res) {
56074  res = PyObject_IsSubclass(err, exc_type2);
56075  if (unlikely(res == -1)) {
56076  PyErr_WriteUnraisable(err);
56077  res = 0;
56078  }
56079  }
56080  __Pyx_ErrRestore(exception, value, tb);
56081  return res;
56082 }
56083 #else
56084 static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) {
56085  int res = exc_type1 ? __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type1) : 0;
56086  if (!res) {
56087  res = __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2);
56088  }
56089  return res;
56090 }
56091 #endif
56092 static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
56093  Py_ssize_t i, n;
56094  assert(PyExceptionClass_Check(exc_type));
56095  n = PyTuple_GET_SIZE(tuple);
56096 #if PY_MAJOR_VERSION >= 3
56097  for (i=0; i<n; i++) {
56098  if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
56099  }
56100 #endif
56101  for (i=0; i<n; i++) {
56102  PyObject *t = PyTuple_GET_ITEM(tuple, i);
56103  #if PY_MAJOR_VERSION < 3
56104  if (likely(exc_type == t)) return 1;
56105  #endif
56106  if (likely(PyExceptionClass_Check(t))) {
56107  if (__Pyx_inner_PyErr_GivenExceptionMatches2(exc_type, NULL, t)) return 1;
56108  } else {
56109  }
56110  }
56111  return 0;
56112 }
56113 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) {
56114  if (likely(err == exc_type)) return 1;
56115  if (likely(PyExceptionClass_Check(err))) {
56116  if (likely(PyExceptionClass_Check(exc_type))) {
56117  return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type);
56118  } else if (likely(PyTuple_Check(exc_type))) {
56119  return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type);
56120  } else {
56121  }
56122  }
56123  return PyErr_GivenExceptionMatches(err, exc_type);
56124 }
56125 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyObject *exc_type2) {
56126  assert(PyExceptionClass_Check(exc_type1));
56127  assert(PyExceptionClass_Check(exc_type2));
56128  if (likely(err == exc_type1 || err == exc_type2)) return 1;
56129  if (likely(PyExceptionClass_Check(err))) {
56130  return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2);
56131  }
56132  return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2));
56133 }
56134 #endif
56135 
56136 /* CheckBinaryVersion */
56137 static int __Pyx_check_binary_version(void) {
56138  char ctversion[5];
56139  int same=1, i, found_dot;
56140  const char* rt_from_call = Py_GetVersion();
56141  PyOS_snprintf(ctversion, 5, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION);
56142  found_dot = 0;
56143  for (i = 0; i < 4; i++) {
56144  if (!ctversion[i]) {
56145  same = (rt_from_call[i] < '0' || rt_from_call[i] > '9');
56146  break;
56147  }
56148  if (rt_from_call[i] != ctversion[i]) {
56149  same = 0;
56150  break;
56151  }
56152  }
56153  if (!same) {
56154  char rtversion[5] = {'\0'};
56155  char message[200];
56156  for (i=0; i<4; ++i) {
56157  if (rt_from_call[i] == '.') {
56158  if (found_dot) break;
56159  found_dot = 1;
56160  } else if (rt_from_call[i] < '0' || rt_from_call[i] > '9') {
56161  break;
56162  }
56163  rtversion[i] = rt_from_call[i];
56164  }
56165  PyOS_snprintf(message, sizeof(message),
56166  "compiletime version %s of module '%.100s' "
56167  "does not match runtime version %s",
56168  ctversion, __Pyx_MODULE_NAME, rtversion);
56169  return PyErr_WarnEx(NULL, message, 1);
56170  }
56171  return 0;
56172 }
56173 
56174 /* InitStrings */
56175 static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
56176  while (t->p) {
56177  #if PY_MAJOR_VERSION < 3
56178  if (t->is_unicode) {
56179  *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL);
56180  } else if (t->intern) {
56181  *t->p = PyString_InternFromString(t->s);
56182  } else {
56183  *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
56184  }
56185  #else
56186  if (t->is_unicode | t->is_str) {
56187  if (t->intern) {
56188  *t->p = PyUnicode_InternFromString(t->s);
56189  } else if (t->encoding) {
56190  *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL);
56191  } else {
56192  *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1);
56193  }
56194  } else {
56195  *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1);
56196  }
56197  #endif
56198  if (!*t->p)
56199  return -1;
56200  if (PyObject_Hash(*t->p) == -1)
56201  return -1;
56202  ++t;
56203  }
56204  return 0;
56205 }
56206 
56207 static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
56208  return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str));
56209 }
56210 static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject* o) {
56211  Py_ssize_t ignore;
56212  return __Pyx_PyObject_AsStringAndSize(o, &ignore);
56213 }
56214 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
56215 #if !CYTHON_PEP393_ENABLED
56216 static const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
56217  char* defenc_c;
56218  PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL);
56219  if (!defenc) return NULL;
56220  defenc_c = PyBytes_AS_STRING(defenc);
56221 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
56222  {
56223  char* end = defenc_c + PyBytes_GET_SIZE(defenc);
56224  char* c;
56225  for (c = defenc_c; c < end; c++) {
56226  if ((unsigned char) (*c) >= 128) {
56227  PyUnicode_AsASCIIString(o);
56228  return NULL;
56229  }
56230  }
56231  }
56232 #endif
56233  *length = PyBytes_GET_SIZE(defenc);
56234  return defenc_c;
56235 }
56236 #else
56237 static CYTHON_INLINE const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
56238  if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL;
56239 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
56240  if (likely(PyUnicode_IS_ASCII(o))) {
56241  *length = PyUnicode_GET_LENGTH(o);
56242  return PyUnicode_AsUTF8(o);
56243  } else {
56244  PyUnicode_AsASCIIString(o);
56245  return NULL;
56246  }
56247 #else
56248  return PyUnicode_AsUTF8AndSize(o, length);
56249 #endif
56250 }
56251 #endif
56252 #endif
56253 static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
56254 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
56255  if (
56256 #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
56257  __Pyx_sys_getdefaultencoding_not_ascii &&
56258 #endif
56259  PyUnicode_Check(o)) {
56260  return __Pyx_PyUnicode_AsStringAndSize(o, length);
56261  } else
56262 #endif
56263 #if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE))
56264  if (PyByteArray_Check(o)) {
56265  *length = PyByteArray_GET_SIZE(o);
56266  return PyByteArray_AS_STRING(o);
56267  } else
56268 #endif
56269  {
56270  char* result;
56271  int r = PyBytes_AsStringAndSize(o, &result, length);
56272  if (unlikely(r < 0)) {
56273  return NULL;
56274  } else {
56275  return result;
56276  }
56277  }
56278 }
56279 static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
56280  int is_true = x == Py_True;
56281  if (is_true | (x == Py_False) | (x == Py_None)) return is_true;
56282  else return PyObject_IsTrue(x);
56283 }
56284 static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) {
56285  int retval;
56286  if (unlikely(!x)) return -1;
56287  retval = __Pyx_PyObject_IsTrue(x);
56288  Py_DECREF(x);
56289  return retval;
56290 }
56291 static PyObject* __Pyx_PyNumber_IntOrLongWrongResultType(PyObject* result, const char* type_name) {
56292 #if PY_MAJOR_VERSION >= 3
56293  if (PyLong_Check(result)) {
56294  if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
56295  "__int__ returned non-int (type %.200s). "
56296  "The ability to return an instance of a strict subclass of int "
56297  "is deprecated, and may be removed in a future version of Python.",
56298  Py_TYPE(result)->tp_name)) {
56299  Py_DECREF(result);
56300  return NULL;
56301  }
56302  return result;
56303  }
56304 #endif
56305  PyErr_Format(PyExc_TypeError,
56306  "__%.4s__ returned non-%.4s (type %.200s)",
56307  type_name, type_name, Py_TYPE(result)->tp_name);
56308  Py_DECREF(result);
56309  return NULL;
56310 }
56311 static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) {
56312 #if CYTHON_USE_TYPE_SLOTS
56313  PyNumberMethods *m;
56314 #endif
56315  const char *name = NULL;
56316  PyObject *res = NULL;
56317 #if PY_MAJOR_VERSION < 3
56318  if (likely(PyInt_Check(x) || PyLong_Check(x)))
56319 #else
56320  if (likely(PyLong_Check(x)))
56321 #endif
56322  return __Pyx_NewRef(x);
56323 #if CYTHON_USE_TYPE_SLOTS
56324  m = Py_TYPE(x)->tp_as_number;
56325  #if PY_MAJOR_VERSION < 3
56326  if (m && m->nb_int) {
56327  name = "int";
56328  res = m->nb_int(x);
56329  }
56330  else if (m && m->nb_long) {
56331  name = "long";
56332  res = m->nb_long(x);
56333  }
56334  #else
56335  if (likely(m && m->nb_int)) {
56336  name = "int";
56337  res = m->nb_int(x);
56338  }
56339  #endif
56340 #else
56341  if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) {
56342  res = PyNumber_Int(x);
56343  }
56344 #endif
56345  if (likely(res)) {
56346 #if PY_MAJOR_VERSION < 3
56347  if (unlikely(!PyInt_Check(res) && !PyLong_Check(res))) {
56348 #else
56349  if (unlikely(!PyLong_CheckExact(res))) {
56350 #endif
56351  return __Pyx_PyNumber_IntOrLongWrongResultType(res, name);
56352  }
56353  }
56354  else if (!PyErr_Occurred()) {
56355  PyErr_SetString(PyExc_TypeError,
56356  "an integer is required");
56357  }
56358  return res;
56359 }
56360 static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
56361  Py_ssize_t ival;
56362  PyObject *x;
56363 #if PY_MAJOR_VERSION < 3
56364  if (likely(PyInt_CheckExact(b))) {
56365  if (sizeof(Py_ssize_t) >= sizeof(long))
56366  return PyInt_AS_LONG(b);
56367  else
56368  return PyInt_AsSsize_t(b);
56369  }
56370 #endif
56371  if (likely(PyLong_CheckExact(b))) {
56372  #if CYTHON_USE_PYLONG_INTERNALS
56373  const digit* digits = ((PyLongObject*)b)->ob_digit;
56374  const Py_ssize_t size = Py_SIZE(b);
56375  if (likely(__Pyx_sst_abs(size) <= 1)) {
56376  ival = likely(size) ? digits[0] : 0;
56377  if (size == -1) ival = -ival;
56378  return ival;
56379  } else {
56380  switch (size) {
56381  case 2:
56382  if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
56383  return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
56384  }
56385  break;
56386  case -2:
56387  if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
56388  return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
56389  }
56390  break;
56391  case 3:
56392  if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
56393  return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
56394  }
56395  break;
56396  case -3:
56397  if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
56398  return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
56399  }
56400  break;
56401  case 4:
56402  if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
56403  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]));
56404  }
56405  break;
56406  case -4:
56407  if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
56408  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]));
56409  }
56410  break;
56411  }
56412  }
56413  #endif
56414  return PyLong_AsSsize_t(b);
56415  }
56416  x = PyNumber_Index(b);
56417  if (!x) return -1;
56418  ival = PyInt_AsSsize_t(x);
56419  Py_DECREF(x);
56420  return ival;
56421 }
56422 static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject* o) {
56423  if (sizeof(Py_hash_t) == sizeof(Py_ssize_t)) {
56424  return (Py_hash_t) __Pyx_PyIndex_AsSsize_t(o);
56425 #if PY_MAJOR_VERSION < 3
56426  } else if (likely(PyInt_CheckExact(o))) {
56427  return PyInt_AS_LONG(o);
56428 #endif
56429  } else {
56430  Py_ssize_t ival;
56431  PyObject *x;
56432  x = PyNumber_Index(o);
56433  if (!x) return -1;
56434  ival = PyInt_AsLong(x);
56435  Py_DECREF(x);
56436  return ival;
56437  }
56438 }
56439 static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) {
56440  return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False);
56441 }
56442 static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
56443  return PyInt_FromSize_t(ival);
56444 }
56445 
56446 
56447 #endif /* Py_PYTHON_H */
VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd
void VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(const int nPoints, const int killNonlinearDrag, const double eps_rho, const double eps_mu, const double sigma, const double rho_0, const double nu_0, const double rho_1, const double nu_1, const double *meanGrainSize, const double *g, const double *phi, const double *n, const double *kappa, const double *p, const double *grad_p, const double *u, const double *v, const double *w, const double *porosity, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mom_w_acc, double *dmom_w_acc_w, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *dmass_adv_w, double *mom_u_adv, double *dmom_u_adv_u, double *dmom_u_adv_v, double *dmom_u_adv_w, double *mom_v_adv, double *dmom_v_adv_u, double *dmom_v_adv_v, double *dmom_v_adv_w, double *mom_w_adv, double *dmom_w_adv_u, double *dmom_w_adv_v, double *dmom_w_adv_w, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_w_diff_ten, double *mom_uv_diff_ten, double *mom_uw_diff_ten, double *mom_vu_diff_ten, double *mom_vw_diff_ten, double *mom_wu_diff_ten, double *mom_wv_diff_ten, double *mom_u_source, double *mom_v_source, double *mom_w_source, double *dmom_u_source_u, double *dmom_u_source_v, double *dmom_u_source_w, double *dmom_v_source_u, double *dmom_v_source_v, double *dmom_v_source_w, double *dmom_w_source_u, double *dmom_w_source_v, double *dmom_w_source_w, double *mom_u_ham, double *dmom_u_ham_grad_p, double *mom_v_ham, double *dmom_v_ham_grad_p, double *mom_w_ham, double *dmom_w_ham_grad_p)
Definition: transportCoefficients.c:9660
Laplace_Evaluate2D
void Laplace_Evaluate2D(const int nPoints, double *mom_p_diff_ten, double *mom_u_diff_ten, double *mom_v_diff_ten)
Definition: transportCoefficients.c:1803
Stokes_3D_Evaluate
void Stokes_3D_Evaluate(const int nPoints, const double rho, const double nu, const double *g, const double *p, const double *grad_p, const double *u, const double *v, const double *w, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mom_w_acc, double *dmom_w_acc_w, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *dmass_adv_w, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_w_diff_ten, double *mom_u_source, double *mom_v_source, double *mom_w_source, double *mom_u_ham, double *dmom_u_ham_grad_p, double *mom_v_ham, double *dmom_v_ham_grad_p, double *mom_w_ham, double *dmom_w_ham_grad_p)
Definition: transportCoefficients.c:2206
smoothedHeaviside
double smoothedHeaviside(double eps, double phi)
Definition: numericalFlux.c:14167
TwophaseNavierStokes_LS_SO_2D_Evaluate
void TwophaseNavierStokes_LS_SO_2D_Evaluate(const int nPoints, const double eps, const double rho_0, const double nu_0, const double rho_1, const double nu_1, const double *g, const double *phi, const double *p, const double *grad_p, const double *u, const double *v, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *mom_u_adv, double *dmom_u_adv_u, double *dmom_u_adv_v, double *mom_v_adv, double *dmom_v_adv_u, double *dmom_v_adv_v, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_u_source, double *mom_v_source, double *mom_u_ham, double *dmom_u_ham_grad_p, double *mom_v_ham, double *dmom_v_ham_grad_p)
Definition: transportCoefficients.c:2383
redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate
void redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate(int nPoints, int nSpace, double eps, double lambda_penalty, double *u_levelSet, double *u, double *grad_u, double *m, double *dm, double *H, double *dH, double *r, double *dr)
Definition: transportCoefficients.c:1443
conservativeHeadRichardsMualemVanGenuchtenHetEvaluate
void conservativeHeadRichardsMualemVanGenuchtenHetEvaluate(const int nPoints, const int nSpace, const double rho, const double *gravity, const double *alpha, const double *n, const double *thetaR, const double *thetaSR, const double *KWs, double *u, double *mass, double *dmass, double *f, double *df, double *a, double *da)
Definition: transportCoefficients.c:6337
redistanceLevelSetSandFCoefficientsEvaluate
void redistanceLevelSetSandFCoefficientsEvaluate(int nSimplex, int nPointsPerSimplex, int nSpace, double eps, double *u_levelSet, double *dV, double *u, double *grad_u, double *m, double *dm, double *H, double *dH, double *r)
Definition: transportCoefficients.c:1512
shallowWater_2D_Evaluate
void shallowWater_2D_Evaluate(const int nPoints, const double h_eps, const double g, const double bedFrictionCoefficient, const double bedFrictionPower, const double eddyViscosity, const double *x, const double *grad_b, const double *h, const double *hu, const double *hv, double *H, double *mass_acc, double *dmass_acc_dh, double *mom_u_acc, double *dmom_u_acc_dhu, double *mom_v_acc, double *dmom_v_acc_dhv, double *mass_adv, double *dmass_adv_dhu, double *dmass_adv_dhv, double *mom_u_adv, double *dmom_u_adv_dh, double *dmom_u_adv_dhu, double *dmom_u_adv_dhv, double *mom_v_adv, double *dmom_v_adv_dh, double *dmom_v_adv_dhu, double *dmom_v_adv_dhv, double *mom_u_diff, double *mom_v_diff, double *mom_u_source, double *dmom_u_source_dh, double *dmom_u_source_dhu, double *dmom_u_source_dhv, double *mom_v_source, double *dmom_v_source_dh, double *dmom_v_source_dhu, double *dmom_v_source_dhv)
Definition: transportCoefficients.c:11180
kEpsilon_2D_Evaluate
void kEpsilon_2D_Evaluate(int nPoints, int nSpace, double sigma_k, double sigma_e, double c_1, double c_2, double c_mu, double c_e, double nu, double *velocity, double *gradu, double *gradv, double *k, double *epsilon, double *m_k, double *dm_k, double *m_e, double *dm_e, double *phi_k, double *dphi_k, double *phi_e, double *dphi_e, double *f_k, double *df_k, double *f_e, double *df_e, double *a_k, double *da_k_dk, double *da_k_de, double *a_e, double *da_e_dk, double *da_e_de, double *r_k, double *dr_k_dk, double *dr_k_de, double *r_e, double *dr_e_dk, double *dr_e_de)
Definition: transportCoefficients.c:9975
diffusiveWave1DEvaluate
void diffusiveWave1DEvaluate(const int nPoints, const double alpha, const double gamma, const double epsilon, const double *x, const double *u, const double *grad_u, double *m, double *dm, double *a, double *da)
Definition: transportCoefficients.c:11978
VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate
void VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate(const int nPoints, const int killNonlinearDrag, const double eps_rho, const double eps_mu, const double sigma, const double rho_0, const double nu_0, const double rho_1, const double nu_1, const double *meanGrainSize, const double *g, const double *phi, const double *n, const double *kappa, const double *p, const double *grad_p, const double *u, const double *v, const double *w, const double *porosity, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mom_w_acc, double *dmom_w_acc_w, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *dmass_adv_w, double *mom_u_adv, double *dmom_u_adv_u, double *dmom_u_adv_v, double *dmom_u_adv_w, double *mom_v_adv, double *dmom_v_adv_u, double *dmom_v_adv_v, double *dmom_v_adv_w, double *mom_w_adv, double *dmom_w_adv_u, double *dmom_w_adv_v, double *dmom_w_adv_w, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_w_diff_ten, double *mom_uv_diff_ten, double *mom_uw_diff_ten, double *mom_vu_diff_ten, double *mom_vw_diff_ten, double *mom_wu_diff_ten, double *mom_wv_diff_ten, double *mom_u_source, double *mom_v_source, double *mom_w_source, double *dmom_u_source_u, double *dmom_u_source_v, double *dmom_u_source_w, double *dmom_v_source_u, double *dmom_v_source_v, double *dmom_v_source_w, double *dmom_w_source_u, double *dmom_w_source_v, double *dmom_w_source_w, double *mom_u_ham, double *dmom_u_ham_grad_p, double *mom_v_ham, double *dmom_v_ham_grad_p, double *mom_w_ham, double *dmom_w_ham_grad_p)
Definition: transportCoefficients.c:9322
rotatingPulseVelEvaluate
void rotatingPulseVelEvaluate(const int nPoints, const int nSpace, const double self_a, const double *x, const double *u, double *m, double *dm, double *f, double *df, double *a, double *da, double *phi, double *dphi)
Definition: transportCoefficients.c:818
l2project2Tensor
void l2project2Tensor(const int nSimplices, const int nPointsPerSimplex, const int nSpace, double *dV, double *r)
Definition: transportCoefficients.c:5705
TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd
void TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(const int nPoints, const double eps_rho, const double eps_mu, const double sigma, const double rho_0, const double nu_0, const double rho_1, const double nu_1, const double *g, const double *phi, const double *n, const double *kappa, const double *p, const double *grad_p, const double *u, const double *v, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *mom_u_adv, double *dmom_u_adv_u, double *dmom_u_adv_v, double *mom_v_adv, double *dmom_v_adv_u, double *dmom_v_adv_v, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_uv_diff_ten, double *mom_vu_diff_ten, double *mom_u_source, double *mom_v_source, double *mom_u_ham, double *dmom_u_ham_grad_p, double *mom_v_ham, double *dmom_v_ham_grad_p)
Definition: transportCoefficients.c:2677
conservativeHeadRichardsJLeverett
void conservativeHeadRichardsJLeverett(const int nSimplex, const int nPointsPerSimplex, const int nSpace, const int *materialTypes, const double rho, const double beta, const double *gravity, const double *phi, const double *psiD, const double *ns, const double *nk, const double *S_wirr, const double *S_nwr, const double *kr0, double *u, double *mass, double *dmass, double *f, double *df, double *a, double *da)
Definition: transportCoefficients.c:6143
twophaseLevelSetCoefficientsEvaluate
void twophaseLevelSetCoefficientsEvaluate(int nPoints, int nSpace, double *B, double t, double *x, double *u, double *grad_u, double *m, double *dm, double *h, double *dh, double *rh)
Definition: transportCoefficients.c:1147
l2projectVector
void l2projectVector(const int nSimplices, const int nPointsPerSimplex, const int nSpace, double *dV, double *r)
Definition: transportCoefficients.c:5676
VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd
void VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(const int nPoints, const int killNonlinearDrag, const double eps_rho, const double eps_mu, const double sigma, const double rho_0, const double nu_0, const double rho_1, const double nu_1, const double *meanGrainSize, const double *g, const double *phi, const double *n, const double *kappa, const double *p, const double *grad_p, const double *u, const double *v, const double *porosity, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *mom_u_adv, double *dmom_u_adv_u, double *dmom_u_adv_v, double *mom_v_adv, double *dmom_v_adv_u, double *dmom_v_adv_v, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_uv_diff_ten, double *mom_vu_diff_ten, double *mom_u_source, double *mom_v_source, double *dmom_u_source_u, double *dmom_u_source_v, double *dmom_v_source_u, double *dmom_v_source_v, double *mom_u_ham, double *dmom_u_ham_grad_p, double *mom_v_ham, double *dmom_v_ham_grad_p)
Definition: transportCoefficients.c:9079
conservativeSatRichardsMualemVanGenuchtenHomEvaluate
void conservativeSatRichardsMualemVanGenuchtenHomEvaluate(const int nPoints, const int nSpace, const double rho, const double *gravity, const double *x, const double alpha, const double n, const double m, const double thetaR, const double thetaSR, const double KWs, double *u, double *mass, double *dmass, double *f, double *df, double *a, double *da, double *phi, double *dphi)
Definition: transportCoefficients.c:6418
kEpsilon_epsilon_2D_Evaluate_sd
void kEpsilon_epsilon_2D_Evaluate_sd(int nPoints, int nSpace, double sigma_e, double c_1, double c_2, double c_mu, double c_e, double nu, double *velocity, double *gradu, double *gradv, double *k, double *epsilon, double *m_e, double *dm_e, double *phi_e, double *dphi_e, double *f_e, double *df_e, double *a_e, double *da_e_de, double *r_e, double *dr_e_de)
Definition: transportCoefficients.c:10526
TwophaseStokes_LS_SO_3D_Evaluate
void TwophaseStokes_LS_SO_3D_Evaluate(const int nPoints, const double eps, const double rho_0, const double nu_0, const double rho_1, const double nu_1, const double *g, const double *phi, const double *p, const double *grad_p, const double *u, const double *v, const double *w, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mom_w_acc, double *dmom_w_acc_w, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *dmass_adv_w, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_w_diff_ten, double *mom_u_source, double *mom_v_source, double *mom_w_source, double *mom_u_ham, double *dmom_u_ham_grad_p, double *mom_v_ham, double *dmom_v_ham_grad_p, double *mom_w_ham, double *dmom_w_ham_grad_p)
Definition: transportCoefficients.c:4203
NavierStokes_2D_Evaluate
void NavierStokes_2D_Evaluate(const int nPoints, const double rho, const double nu, const double *g, const double *p, const double *grad_p, const double *u, const double *v, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *mom_u_adv, double *dmom_u_adv_u, double *dmom_u_adv_v, double *mom_v_adv, double *dmom_v_adv_u, double *dmom_v_adv_v, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_u_source, double *mom_v_source, double *mom_u_ham, double *dmom_u_ham_grad_p, double *mom_v_ham, double *dmom_v_ham_grad_p)
Definition: transportCoefficients.c:1850
conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd
void conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd(const int upwindFlag, const int computeAverages, const int nSimplex, const int nPointsPerSimplex, const int nSpace, const int nQuadraturePoints_elementBoundary, const int *rowptr, const int *colind, const int *elementBoundaryElementsArray, const int *quadraturePointToElementBoundary, const int *materialTypes, const double rho, const double beta, const double *gravity, const double *alpha, const double *n_vg, const double *thetaR, const double *thetaSR, const double *KWs, const double *u, const double *gradu, const double *n_global, const double *dV, double *mass, double *dmass, double *f_avg, double *df_avg, double *a_avg, double *da_avg, double *f, double *df, double *a, double *da)
Definition: transportCoefficients.c:11710
TwophaseNavierStokes_LS_SO_3D_Evaluate
void TwophaseNavierStokes_LS_SO_3D_Evaluate(const int nPoints, const double eps, const double rho_0, const double nu_0, const double rho_1, const double nu_1, const double *g, const double *phi, const double *p, const double *grad_p, const double *u, const double *v, const double *w, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mom_w_acc, double *dmom_w_acc_w, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *dmass_adv_w, double *mom_u_adv, double *dmom_u_adv_u, double *dmom_u_adv_v, double *dmom_u_adv_w, double *mom_v_adv, double *dmom_v_adv_u, double *dmom_v_adv_v, double *dmom_v_adv_w, double *mom_w_adv, double *dmom_w_adv_u, double *dmom_w_adv_v, double *dmom_w_adv_w, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_w_diff_ten, double *mom_u_source, double *mom_v_source, double *mom_w_source, double *mom_u_ham, double *dmom_u_ham_grad_p, double *mom_v_ham, double *dmom_v_ham_grad_p, double *mom_w_ham, double *dmom_w_ham_grad_p)
Definition: transportCoefficients.c:3981
calculateEddyViscosity_Smagorinsky2P_3D
void calculateEddyViscosity_Smagorinsky2P_3D(const int nElements_global, const int nQuadraturePoints_element, const double smagorinskyConstant_0, const double smagorinskyConstant_1, const double eps, const double *phi_ls, const double *h_e, const double *grad_u, const double *grad_v, const double *grad_w, double *nu_t)
Definition: transportCoefficients.c:12219
StokesP_2D_Evaluate
void StokesP_2D_Evaluate(const int nPoints, const double rho, const double nu, const double *g, const double *p, const double *u, const double *v, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *mom_u_adv, double *dmom_u_adv_p, double *mom_v_adv, double *dmom_v_adv_p, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_u_source, double *mom_v_source)
Definition: transportCoefficients.c:2143
TwophaseNavierStokes_ST_LS_SO_3D_Evaluate
void TwophaseNavierStokes_ST_LS_SO_3D_Evaluate(const int nPoints, const double eps_rho, const double eps_mu, const double sigma, const double rho_0, const double nu_0, const double rho_1, const double nu_1, const double *g, const double *phi, const double *n, const double *kappa, const double *p, const double *grad_p, const double *u, const double *v, const double *w, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mom_w_acc, double *dmom_w_acc_w, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *dmass_adv_w, double *mom_u_adv, double *dmom_u_adv_u, double *dmom_u_adv_v, double *dmom_u_adv_w, double *mom_v_adv, double *dmom_v_adv_u, double *dmom_v_adv_v, double *dmom_v_adv_w, double *mom_w_adv, double *dmom_w_adv_u, double *dmom_w_adv_v, double *dmom_w_adv_w, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_w_diff_ten, double *mom_uv_diff_ten, double *mom_uw_diff_ten, double *mom_vu_diff_ten, double *mom_vw_diff_ten, double *mom_wu_diff_ten, double *mom_wv_diff_ten, double *mom_u_source, double *mom_v_source, double *mom_w_source, double *mom_u_ham, double *dmom_u_ham_grad_p, double *mom_v_ham, double *dmom_v_ham_grad_p, double *mom_w_ham, double *dmom_w_ham_grad_p)
Definition: transportCoefficients.c:3279
f
Double f
Definition: Headers.h:64
unitSquareVortexEvaluate
void unitSquareVortexEvaluate(const int nPoints, const int nSpace, double t, const double *x, const double *u, double *m, double *dm, double *f, double *df)
Definition: transportCoefficients.c:4717
darcySharpInterfaceFlowImEvaluate
void darcySharpInterfaceFlowImEvaluate(int nPoints, int nSpace, double Km, double rhoM, double Kp, double rhoP, double eps, double *gravity_u, double *u, double *gradu, double *u_levelSet, double *phi_pot, double *a, double *f, double *r, double *m, double *dphi_pot, double *da, double *df, double *dr, double *dm)
Definition: transportCoefficients.c:1750
ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate
void ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate(const int nPoints, const double boundaryPenaltyCoef, const double volumePenaltyCoef, const double eps_rho, const double eps_mu, const double sigma, const double rho_0, const double nu_0, const double rho_1, const double nu_1, const double rho_s, const double nu_s, const double *g, const double *phi, const double *n, const double *kappa, const double *phi_s, const double *n_s, const double *p, const double *grad_p, const double *u, const double *v, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *mom_u_adv, double *dmom_u_adv_u, double *dmom_u_adv_v, double *mom_v_adv, double *dmom_v_adv_u, double *dmom_v_adv_v, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_uv_diff_ten, double *mom_vu_diff_ten, double *mom_u_source, double *dmom_u_source_u, double *dmom_u_source_v, double *mom_v_source, double *dmom_v_source_u, double *dmom_v_source_v, double *mom_u_ham, double *dmom_u_ham_grad_p, double *mom_v_ham, double *dmom_v_ham_grad_p)
Definition: transportCoefficients.c:3050
s
Double s
Definition: Headers.h:84
linearADR_ConstantCoefficientsEvaluate
void linearADR_ConstantCoefficientsEvaluate(const int nPoints, const int nSpace, const double M, const double *A, const double *B, const double C, const double t, const double *x, const double *u, double *m, double *dm, double *f, double *df, double *a, double *r, double *dr)
Definition: transportCoefficients.c:101
scriptedSphereMotionSignedDistance
void scriptedSphereMotionSignedDistance(const int nPoints, const double t, const int nSpace, const int nSpheres, const double *radii, const double *centers, const double *x, double *phi, double *n)
Definition: transportCoefficients.c:11059
applyContactLineSlip
void applyContactLineSlip(int nExteriorElementBoundaries_global, int nQuadraturePoints_elementBoundary, double eps, int *isDOFBoundary, double *phi, double *advectiveFlux, double *diffusiveFlux)
Definition: transportCoefficients.c:11924
nonlinearADR_pqrstEvaluate
void nonlinearADR_pqrstEvaluate(const int nPoints, const int nSpace, const double M, const double *A, const double *B, const double C, const double p_pow, const double q_pow, const double r_pow, const double s_pow, const double t_pow, const double t, const double *x, const double *u, double *m, double *dm, double *f, double *df, double *a, double *da, double *phi, double *dphi, double *r, double *dr)
Definition: transportCoefficients.c:597
kEpsilon_k_3D_Evaluate_sd
void kEpsilon_k_3D_Evaluate_sd(int nPoints, int nSpace, double sigma_k, double c_mu, double nu, double *velocity, double *gradu, double *gradv, double *gradw, double *k, double *epsilon, double *m_k, double *dm_k, double *phi_k, double *dphi_k, double *f_k, double *df_k, double *a_k, double *da_k_dk, double *r_k, double *dr_k_dk)
Definition: transportCoefficients.c:10606
applyContactLineSlipJacobian
void applyContactLineSlipJacobian(int nExteriorElementBoundaries_global, int nQuadraturePoints_elementBoundary, int nDOF_trial_element, double eps, int *isDOFBoundary, double *phi, double *fluxJacobian)
Definition: transportCoefficients.c:11948
Stokes_2D_Evaluate
void Stokes_2D_Evaluate(const int nPoints, const double rho, const double nu, const double *g, const double *p, const double *grad_p, const double *u, const double *v, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_u_source, double *mom_v_source, double *mom_u_ham, double *dmom_u_ham_grad_p, double *mom_v_ham, double *dmom_v_ham_grad_p)
Definition: transportCoefficients.c:2079
L
Double L
Definition: Headers.h:72
conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate
void conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate(const int nSimplices, const int nPointsPerSimplex, const int nSpace, const double rho, const double *gravity, const double alpha, const double n, const double m, const double thetaR, const double thetaSR, const double KWs, double *dV, double *u, double *mass, double *dmass, double *f, double *df, double *a, double *da)
Definition: transportCoefficients.c:5095
n
Int n
Definition: Headers.h:28
NavierStokes_3D_Evaluate
void NavierStokes_3D_Evaluate(const int nPoints, const double rho, const double nu, const double *g, const double *p, const double *grad_p, const double *u, const double *v, const double *w, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mom_w_acc, double *dmom_w_acc_w, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *dmass_adv_w, double *mom_u_adv, double *dmom_u_adv_u, double *dmom_u_adv_v, double *dmom_u_adv_w, double *mom_v_adv, double *dmom_v_adv_u, double *dmom_v_adv_v, double *dmom_v_adv_w, double *mom_w_adv, double *dmom_w_adv_u, double *dmom_w_adv_v, double *dmom_w_adv_w, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_w_diff_ten, double *mom_u_source, double *mom_v_source, double *mom_w_source, double *mom_u_ham, double *dmom_u_ham_grad_p, double *mom_v_ham, double *dmom_v_ham_grad_p, double *mom_w_ham, double *dmom_w_ham_grad_p)
Definition: transportCoefficients.c:1938
redistanceLevelSetCoefficientsEvaluate
void redistanceLevelSetCoefficientsEvaluate(int nPoints, int nSpace, double eps, double *u_levelSet, double *u, double *grad_u, double *m, double *dm, double *H, double *dH, double *r)
Definition: transportCoefficients.c:1384
calculateEddyViscosity_Smagorinsky_3D
void calculateEddyViscosity_Smagorinsky_3D(const int nElements_global, const int nQuadraturePoints_element, const double smagorinskyConstant, const double *h_e, const double *grad_u, const double *grad_v, const double *grad_w, double *nu_t)
Definition: transportCoefficients.c:12084
conservativeHeadRichardsJLeverettAni
void conservativeHeadRichardsJLeverettAni(const int nSimplex, const int nPointsPerSimplex, const int nSpace, const int *materialTypes, const double rho, const double beta, const double *gravity, const double *phi, const double *psiD, const double *ns, const double *nk, const double *S_wirr, const double *S_nwr, const double *kr0x, const double *kr0y, const double *kr0z, double *u, double *mass, double *dmass, double *f, double *df, double *a, double *da)
Definition: transportCoefficients.c:6220
kEpsilon_3D_Evaluate
void kEpsilon_3D_Evaluate(int nPoints, int nSpace, double sigma_k, double sigma_e, double c_1, double c_2, double c_mu, double c_e, double nu, double *velocity, double *gradu, double *gradv, double *gradw, double *k, double *epsilon, double *m_k, double *dm_k, double *m_e, double *dm_e, double *phi_k, double *dphi_k, double *phi_e, double *dphi_e, double *f_k, double *df_k, double *f_e, double *df_e, double *a_k, double *da_k_dk, double *da_k_de, double *a_e, double *da_e_dk, double *da_e_de, double *r_k, double *dr_k_dk, double *dr_k_de, double *r_e, double *dr_e_dk, double *dr_e_de)
Definition: transportCoefficients.c:10329
kEpsilon_k_2D_Evaluate_sd
void kEpsilon_k_2D_Evaluate_sd(int nPoints, int nSpace, double sigma_k, double c_mu, double nu, double *velocity, double *gradu, double *gradv, double *k, double *epsilon, double *m_k, double *dm_k, double *phi_k, double *dphi_k, double *f_k, double *df_k, double *a_k, double *da_k_dk, double *r_k, double *dr_k_dk)
Definition: transportCoefficients.c:10456
constantVelocityLevelSetEvaluate
void constantVelocityLevelSetEvaluate(const int nPoints, const int nSpace, const double *b, const double *x, const double *u, const double *gradu, double *m, double *dm, double *f, double *df, double *H, double *dH)
Definition: transportCoefficients.c:4745
variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat
void variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat(const int nSimplex, const int nPointsPerSimplex, const int nSpace, const double rho_w, const double rho_n, const double specificHeat_w, const double specificHeat_n, const int *materialTypes, const double *theta, const double *thetaS_types, const double *alpha_L_types, const double *alpha_T_types, const double *rho_s_types, const double *specificHeat_s_types, const double *lambda_sat_types, const double *lambda_dry_types, const double *lambda_aniso_types, const double *v, const double *u, double *m, double *dm, double *f, double *df, double *a)
Definition: transportCoefficients.c:523
LinearElasticity_3D_Evaluate
void LinearElasticity_3D_Evaluate(const int nPoints, const double E, const double nu, const double *g, const double *u, const double *v, const double *w, double *uu_diff_ten, double *uv_diff_ten, double *uw_diff_ten, double *vu_diff_ten, double *vv_diff_ten, double *vw_diff_ten, double *wu_diff_ten, double *wv_diff_ten, double *ww_diff_ten, double *u_force, double *v_force, double *w_force)
Definition: transportCoefficients.c:8186
cLevelSetCoefficientsEvaluate
void cLevelSetCoefficientsEvaluate(int nPoints, int nSpace, double *v, double *u, double *m, double *dm, double *f, double *df)
Definition: transportCoefficients.c:1222
twophasePotentialFlowEvaluate
void twophasePotentialFlowEvaluate(int nPoints, int nSpace, double *M, double *A, double *B, double *Bcon, double *C, double t, double *x, double *u, double *m, double *dm, double *f, double *df, double *a, double *da, double *phi, double *dphi, double *r, double *dr)
Definition: transportCoefficients.c:1027
shallowWater_1D_Evaluate
void shallowWater_1D_Evaluate(const int nPoints, const double h_eps, const double g, const double bedFrictionCoefficient, const double bedFrictionPower, const double eddyViscosity, const double *x, const double *db_dx, const double *h, const double *hu, double *H, double *mass_acc, double *dmass_acc_dh, double *mom_acc, double *dmom_acc_dhu, double *mass_adv, double *dmass_adv_dhu, double *mom_adv, double *dmom_adv_dh, double *dmom_adv_dhu, double *mom_source, double *dmom_source_dh, double *dmom_source_dhu, double *mom_diff)
Definition: transportCoefficients.c:11107
VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate
void VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate(const int nPoints, const int killNonlinearDrag, const double eps_rho, const double eps_mu, const double sigma, const double rho_0, const double nu_0, const double rho_1, const double nu_1, const double *meanGrainSize, const double *g, const double *phi, const double *n, const double *kappa, const double *p, const double *grad_p, const double *u, const double *v, const double *porosity, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *mom_u_adv, double *dmom_u_adv_u, double *dmom_u_adv_v, double *mom_v_adv, double *dmom_v_adv_u, double *dmom_v_adv_v, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_uv_diff_ten, double *mom_vu_diff_ten, double *mom_u_source, double *mom_v_source, double *dmom_u_source_u, double *dmom_u_source_v, double *dmom_v_source_u, double *dmom_v_source_v, double *mom_u_ham, double *dmom_u_ham_grad_p, double *mom_v_ham, double *dmom_v_ham_grad_p)
Definition: transportCoefficients.c:8832
Laplace_Evaluate3D
void Laplace_Evaluate3D(const int nPoints, double *mom_p_diff_ten, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_w_diff_ten)
Definition: transportCoefficients.c:1822
eddyViscosity_3D_Update
void eddyViscosity_3D_Update(const int nPoints, const double *nu_t, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_w_diff_ten, double *mom_uv_diff_ten, double *mom_uw_diff_ten, double *mom_vu_diff_ten, double *mom_vw_diff_ten, double *mom_wu_diff_ten, double *mom_wv_diff_ten)
Definition: transportCoefficients.c:12362
darcySharpInterfaceFlowEvaluate
void darcySharpInterfaceFlowEvaluate(int nPoints, int nSpace, double Km, double rhoM, double Kp, double rhoP, double eps, double *gravity_u, double *u, double *gradu, double *u_levelSet, double *phi_pot, double *a, double *f, double *r, double *m, double *dphi_pot, double *da, double *df, double *dr, double *dm)
Definition: transportCoefficients.c:1698
conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate
void conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate(const int nPoints, const int nSpace, const double rho, const double *gravity, const double *x, const double alpha, const double n, const double m, const double thetaR, const double thetaSR, const double KWs, double *u, double *mass, double *dmass, double *f, double *df, double *a, double *da, double *phi, double *dphi)
Definition: transportCoefficients.c:5550
HJBurgersEvaluate
void HJBurgersEvaluate(const int nPoints, const int nSpace, const double offset, const double *u, const double *gradu, double *m, double *dm, double *H, double *dH)
Definition: transportCoefficients.c:4885
levelSetConservationCoefficientsEvaluate
void levelSetConservationCoefficientsEvaluate(int nPoints, int nSpace, double epsHeaviside, double epsDirac, double epsDiffusion, double *u_ls, double *H_vof, double *u, double *r, double *dr, double *a)
Definition: transportCoefficients.c:8393
conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2
void conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2(const int nSimplex, const int nPointsPerSimplex, const int nSpace, const int *materialTypes, const double rho, const double beta, const double *gravity, const double *alpha, const double *n, const double *thetaR, const double *thetaSR, const double *KWs, double *u, double *mass, double *dmass, double *f, double *df, double *a, double *da)
Definition: transportCoefficients.c:5990
v
Double v
Definition: Headers.h:95
StokesP_3D_Evaluate
void StokesP_3D_Evaluate(const int nPoints, const double rho, const double nu, const double *g, const double *p, const double *u, const double *v, const double *w, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mom_w_acc, double *dmom_w_acc_w, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *dmass_adv_w, double *mom_u_adv, double *dmom_u_adv_p, double *mom_v_adv, double *dmom_v_adv_p, double *mom_w_adv, double *dmom_w_adv_p, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_w_diff_ten, double *mom_u_source, double *mom_v_source, double *mom_w_source)
Definition: transportCoefficients.c:2295
conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate
void conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate(const int nPoints, const int nSpace, const double rho, const double *gravity, const double *lambda, const double *pd, const double *thetaR, const double *thetaS, const double *KWs, double *u, double *mass, double *dmass, double *f, double *df, double *a, double *da)
Definition: transportCoefficients.c:6648
ReynoldsAveragedNavierStokes_kEpsilon_2D_Update
void ReynoldsAveragedNavierStokes_kEpsilon_2D_Update(const int nPoints, const double nu, const double c_mu, const double *k, const double *grad_k, const double *epsilon, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_uv_diff_ten, double *mom_vu_diff_ten, double *mom_u_source, double *mom_v_source)
Definition: transportCoefficients.c:10808
transportCoefficients.h
calculateWaveFunction3d_ref
void calculateWaveFunction3d_ref(int nElements_global, int nDOF_element_mesh, int nQuadraturePoints_element, const double *mesh_trial_ref, const double *mesh_dof, const int *mesh_l2g, const double *elementDiametersArray, const double *omega_s_x, const double *omega_s_y, const double *omega_s_z, double t, int waveFlag, double epsFact, double waveHeight, double waveCelerity, double waveFrequency, double waveNumber, double waterDepth, double *source)
Definition: transportCoefficients.c:12452
eddyViscosity_3D_Update_sd
void eddyViscosity_3D_Update_sd(const int nPoints, const double *nu_t, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_w_diff_ten, double *mom_uv_diff_ten, double *mom_uw_diff_ten, double *mom_vu_diff_ten, double *mom_vw_diff_ten, double *mom_wu_diff_ten, double *mom_wv_diff_ten)
Definition: transportCoefficients.c:12407
Mass_3D_Evaluate
void Mass_3D_Evaluate(const int nPoints, double rho, double *p, double *u, double *v, double *w, double *mom_p_acc, double *mom_u_acc, double *mom_v_acc, double *mom_w_acc, double *dmom_p_acc_p, double *dmom_u_acc_u, double *dmom_v_acc_v, double *dmom_w_acc_w)
Definition: transportCoefficients.c:12651
TwophaseStokes_VOF_SO_3D_Evaluate
void TwophaseStokes_VOF_SO_3D_Evaluate(const int nPoints, const double eps, const double rho_0, const double nu_0, const double rho_1, const double nu_1, const double *g, const double *vof, const double *p, const double *grad_p, const double *u, const double *v, const double *w, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mom_w_acc, double *dmom_w_acc_w, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *dmass_adv_w, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_w_diff_ten, double *mom_u_source, double *mom_v_source, double *mom_w_source, double *mom_u_ham, double *dmom_u_ham_grad_p, double *mom_v_ham, double *dmom_v_ham_grad_p, double *mom_w_ham, double *dmom_w_ham_grad_p)
Definition: transportCoefficients.c:4620
T
Double T
Definition: Headers.h:87
diffusiveWave2DEvaluate
void diffusiveWave2DEvaluate(const int nd, const int nPoints, const double alpha, const double gamma, const double epsilon, const double *x, const double *u, const double *grad_u, double *m, double *dm, double *a, double *da)
Definition: transportCoefficients.c:12007
twophaseLevelSetCoefficientsUpdateVelocity
void twophaseLevelSetCoefficientsUpdateVelocity(int nPoints, int nSpace, double v_scale, double *vIn, double *vOut)
Definition: transportCoefficients.c:1135
conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate
void conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate(const int nSimplices, const int nPointsPerSimplex, const int nSpace, const double rho, const double *gravity, const double *alpha, const double *n, const double *thetaR, const double *thetaSR, const double *KWs, double *dV, double *u, double *mass, double *dmass, double *f, double *df, double *a, double *da)
Definition: transportCoefficients.c:5412
unitSquareRotationEvaluate
void unitSquareRotationEvaluate(const int nPoints, const int nSpace, const double *x, const double *u, double *m, double *dm, double *f, double *df)
Definition: transportCoefficients.c:767
twophaseSignedDistanceCoefficientsUpdateSignFunction
void twophaseSignedDistanceCoefficientsUpdateSignFunction(int nPoints, double eps, double *u_levelSet, double *S)
Definition: transportCoefficients.c:1298
conservativeHeadRichardsBCBfromMVGHomEvaluate
void conservativeHeadRichardsBCBfromMVGHomEvaluate(const int nPoints, const int nSpace, const double rho, const double *gravity, const double alpha, const double n, const double m, const double thetaR, const double thetaSR, const double KWs, double *u, double *mass, double *dmass, double *f, double *df, double *a, double *da)
Definition: transportCoefficients.c:6864
ReynoldsAveragedNavierStokes_kEpsilon_3D_Update
void ReynoldsAveragedNavierStokes_kEpsilon_3D_Update(const int nPoints, const double nu, const double c_mu, const double *k, const double *grad_k, const double *epsilon, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_w_diff_ten, double *mom_uv_diff_ten, double *mom_uw_diff_ten, double *mom_vu_diff_ten, double *mom_vw_diff_ten, double *mom_wu_diff_ten, double *mom_wv_diff_ten, double *mom_u_source, double *mom_v_source, double *mom_w_source)
Definition: transportCoefficients.c:10932
z
Double * z
Definition: Headers.h:49
TwophaseNavierStokes_VOF_SO_2D_Evaluate
void TwophaseNavierStokes_VOF_SO_2D_Evaluate(const int nPoints, const double eps, const double rho_0, const double nu_0, const double rho_1, const double nu_1, const double *g, const double *vof, const double *p, const double *grad_p, const double *u, const double *v, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *mom_u_adv, double *dmom_u_adv_u, double *dmom_u_adv_v, double *mom_v_adv, double *dmom_v_adv_u, double *dmom_v_adv_v, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_u_source, double *mom_v_source, double *mom_u_ham, double *dmom_u_ham_grad_p, double *mom_v_ham, double *dmom_v_ham_grad_p)
Definition: transportCoefficients.c:4300
burgersDiagonalVelEvaluate
void burgersDiagonalVelEvaluate(const int nPoints, const int nSpace, const double self_a, const double *self_v, const double *u, double *m, double *dm, double *f, double *df, double *a, double *phi, double *dphi)
Definition: transportCoefficients.c:953
u
Double u
Definition: Headers.h:89
eddyViscosity_2D_Update
void eddyViscosity_2D_Update(const int nPoints, const double *nu_t, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_uv_diff_ten, double *mom_vu_diff_ten)
Definition: transportCoefficients.c:12307
c
Double c
Definition: Headers.h:54
seepageBrezis
void seepageBrezis(const int nSimplex, const int nPointsPerSimplex, const int nSpace, const int *materialTypes, const double epsFact, const double rho, const double beta, const double *elementDiameter, const double *gravity, const double *alpha, const double *n, const double *thetaR, const double *thetaSR, const double *KWs, double *u, double *mass, double *dmass, double *f, double *df, double *a, double *da)
Definition: transportCoefficients.c:6083
smoothedDirac
double smoothedDirac(double eps, double phi)
Definition: numericalFlux.c:14199
LinearElasticity_1D_Evaluate
void LinearElasticity_1D_Evaluate(const int nPoints, const double E, const double nu, const double *g, const double *u, double *uu_diff_ten, double *u_force)
Definition: transportCoefficients.c:8124
ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate
void ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate(const int nPoints, const double boundaryPenaltyCoef, const double volumePenaltyCoef, const double eps_rho, const double eps_mu, const double sigma, const double rho_0, const double nu_0, const double rho_1, const double nu_1, const double rho_s, const double nu_s, const double *g, const double *phi, const double *n, const double *kappa, const double *phi_s, const double *n_s, const double *p, const double *grad_p, const double *u, const double *v, const double *w, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mom_w_acc, double *dmom_w_acc_w, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *dmass_adv_w, double *mom_u_adv, double *dmom_u_adv_u, double *dmom_u_adv_v, double *dmom_u_adv_w, double *mom_v_adv, double *dmom_v_adv_u, double *dmom_v_adv_v, double *dmom_v_adv_w, double *mom_w_adv, double *dmom_w_adv_u, double *dmom_w_adv_v, double *dmom_w_adv_w, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_w_diff_ten, double *mom_uv_diff_ten, double *mom_uw_diff_ten, double *mom_vu_diff_ten, double *mom_vw_diff_ten, double *mom_wu_diff_ten, double *mom_wv_diff_ten, double *mom_u_source, double *dmom_u_source_u, double *dmom_u_source_v, double *dmom_u_source_w, double *mom_v_source, double *dmom_v_source_u, double *dmom_v_source_v, double *dmom_v_source_w, double *mom_w_source, double *dmom_w_source_u, double *dmom_w_source_v, double *dmom_w_source_w, double *mom_u_ham, double *dmom_u_ham_grad_p, double *mom_v_ham, double *dmom_v_ham_grad_p, double *mom_w_ham, double *dmom_w_ham_grad_p)
Definition: transportCoefficients.c:3749
conservativeHeadRichardsMualemVanGenuchten_sd_het
void conservativeHeadRichardsMualemVanGenuchten_sd_het(const int nSimplex, const int nPointsPerSimplex, const int nSpace, double pc_eps, const int *rowptr, const int *colind, const int *materialTypes, const double rho, const double beta, const double *gravity, const double *alpha, const double *n, const double *thetaR, const double *thetaSR, const double *KWs, double *u, double *mass, double *dmass, double *f, double *df, double *a, double *da, double *vol_frac)
Definition: transportCoefficients.c:5740
conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm
void conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm(const int upwindFlag, const int computeAverages, const int nSimplex, const int nPointsPerSimplex, const int nSpace, const int nQuadraturePoints_elementBoundary, const int *elementBoundaryElementsArray, const int *quadraturePointToElementBoundary, const int *materialTypes, const double rho, const double beta, const double *gravity, const double *alpha, const double *n_vg, const double *thetaR, const double *thetaSR, const double *KWs, const double *u, const double *gradu, const double *n_global, const double *dV, double *mass, double *dmass, double *f_avg, double *df_avg, double *a_avg, double *da_avg, double *f, double *df, double *a, double *da)
Definition: transportCoefficients.c:11515
TwoPhaseAdvection_2D_Evaluate
void TwoPhaseAdvection_2D_Evaluate(const int nPoints, const double eps, const double rho_0, const double nu_0, const double rho_1, const double nu_1, const double *phi, const double *p, const double *u, const double *v, double *mass_adv, double *dmass_adv_p, double *dmass_adv_u, double *dmass_adv_v, double *mom_u_adv, double *dmom_u_adv_u, double *dmom_u_adv_v, double *mom_v_adv, double *dmom_v_adv_u, double *dmom_v_adv_v)
Definition: transportCoefficients.c:12714
ncLevelSetCoefficientsEvaluate
void ncLevelSetCoefficientsEvaluate(int nPoints, int nSpace, double *v, double *u, double *grad_u, double *m, double *dm, double *H, double *dH)
Definition: transportCoefficients.c:1198
conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind
void conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind(const int upwindFlag, const int computeAverages, const int nSimplex, const int nPointsPerSimplex, const int nSpace, const int nQuadraturePoints_elementBoundary, const int *elementBoundaryElementsArray, const int *quadraturePointToElementBoundary, const int *materialTypes, const double rho, const double beta, const double *gravity, const double *alpha, const double *n_vg, const double *thetaR, const double *thetaSR, const double *KWs, const double *u, const double *gradu, const double *n_global, const double *dV, double *mass, double *dmass, double *f_avg, double *df_avg, double *a_avg, double *da_avg, double *f, double *df, double *a, double *da)
Definition: transportCoefficients.c:11323
MovingMesh_3D_Evaluate
void MovingMesh_3D_Evaluate(const int nPoints, const double E0, const double nu, const double *g, const double *det_J, const double *u, const double *v, const double *w, double *uu_diff_ten, double *uv_diff_ten, double *uw_diff_ten, double *vu_diff_ten, double *vv_diff_ten, double *vw_diff_ten, double *wu_diff_ten, double *wv_diff_ten, double *ww_diff_ten, double *u_force, double *v_force, double *w_force)
Definition: transportCoefficients.c:8321
TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd
void TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(const int nPoints, const double eps_rho, const double eps_mu, const double sigma, const double rho_0, const double nu_0, const double rho_1, const double nu_1, const double *g, const double *phi, const double *n, const double *kappa, const double *p, const double *grad_p, const double *u, const double *v, const double *w, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mom_w_acc, double *dmom_w_acc_w, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *dmass_adv_w, double *mom_u_adv, double *dmom_u_adv_u, double *dmom_u_adv_v, double *dmom_u_adv_w, double *mom_v_adv, double *dmom_v_adv_u, double *dmom_v_adv_v, double *dmom_v_adv_w, double *mom_w_adv, double *dmom_w_adv_u, double *dmom_w_adv_v, double *dmom_w_adv_w, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_w_diff_ten, double *mom_uv_diff_ten, double *mom_uw_diff_ten, double *mom_vu_diff_ten, double *mom_vw_diff_ten, double *mom_wu_diff_ten, double *mom_wv_diff_ten, double *mom_u_source, double *mom_v_source, double *mom_w_source, double *mom_u_ham, double *dmom_u_ham_grad_p, double *mom_v_ham, double *dmom_v_ham_grad_p, double *mom_w_ham, double *dmom_w_ham_grad_p)
Definition: transportCoefficients.c:3568
TwophaseStokes_LS_SO_2D_Evaluate
void TwophaseStokes_LS_SO_2D_Evaluate(const int nPoints, const double eps, const double rho_0, const double nu_0, const double rho_1, const double nu_1, const double *g, const double *phi, const double *p, const double *grad_p, const double *u, const double *v, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_u_source, double *mom_v_source, double *mom_u_ham, double *dmom_u_ham_grad_p, double *mom_v_ham, double *dmom_v_ham_grad_p)
Definition: transportCoefficients.c:4129
TwophaseNavierStokes_ST_LS_SO_2D_Evaluate
void TwophaseNavierStokes_ST_LS_SO_2D_Evaluate(const int nPoints, const double eps_rho, const double eps_mu, const double sigma, const double rho_0, const double nu_0, const double rho_1, const double nu_1, const double *g, const double *phi, const double *n, const double *kappa, const double *p, const double *grad_p, const double *u, const double *v, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *mom_u_adv, double *dmom_u_adv_u, double *dmom_u_adv_v, double *mom_v_adv, double *dmom_v_adv_u, double *dmom_v_adv_v, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_uv_diff_ten, double *mom_vu_diff_ten, double *mom_u_source, double *mom_v_source, double *mom_u_ham, double *dmom_u_ham_grad_p, double *mom_v_ham, double *dmom_v_ham_grad_p)
Definition: transportCoefficients.c:2481
MovingMesh_1D_Evaluate
void MovingMesh_1D_Evaluate(const int nPoints, const double E0, const double nu, const double *g, const double *det_J, const double *u, double *uu_diff_ten, double *u_force)
Definition: transportCoefficients.c:8255
levelSetConservationCoefficientsEvaluate_sd
void levelSetConservationCoefficientsEvaluate_sd(int nPoints, double epsHeaviside, double epsDirac, double *u_ls, double *H_vof, double *u, double *r, double *dr)
Definition: transportCoefficients.c:8438
VolumeAveragedNavierStokesFullDevStress_3D_Evaluate
void VolumeAveragedNavierStokesFullDevStress_3D_Evaluate(const int nPoints, const double rho, const double mu, const double *meanGrainSize, const double *g, const double *p, const double *grad_p, const double *u, const double *v, const double *w, const double *porosity, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mom_w_acc, double *dmom_w_acc_w, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *dmass_adv_w, double *mom_u_adv, double *dmom_u_adv_u, double *dmom_u_adv_v, double *dmom_u_adv_w, double *mom_v_adv, double *dmom_v_adv_u, double *dmom_v_adv_v, double *dmom_v_adv_w, double *mom_w_adv, double *dmom_w_adv_u, double *dmom_w_adv_v, double *dmom_w_adv_w, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_w_diff_ten, double *mom_uv_diff_ten, double *mom_uw_diff_ten, double *mom_vu_diff_ten, double *mom_vw_diff_ten, double *mom_wu_diff_ten, double *mom_wv_diff_ten, double *mom_u_source, double *mom_v_source, double *mom_w_source, double *dmom_u_source_u, double *dmom_u_source_v, double *dmom_u_source_w, double *dmom_v_source_u, double *dmom_v_source_v, double *dmom_v_source_w, double *dmom_w_source_u, double *dmom_w_source_v, double *dmom_w_source_w, double *mom_u_ham, double *dmom_u_ham_grad_p, double *mom_v_ham, double *dmom_v_ham_grad_p, double *mom_w_ham, double *dmom_w_ham_grad_p)
Definition: transportCoefficients.c:8630
LinearElasticity_2D_Evaluate
void LinearElasticity_2D_Evaluate(const int nPoints, const double E, const double nu, const double *g, const double *u, const double *v, double *uu_diff_ten, double *uv_diff_ten, double *vu_diff_ten, double *vv_diff_ten, double *u_force, double *v_force)
Definition: transportCoefficients.c:8143
conservativeHeadRichardsMualemVanGenuchtenHomEvaluate
void conservativeHeadRichardsMualemVanGenuchtenHomEvaluate(const int nPoints, const int nSpace, const double rho, const double beta, const double *gravity, const double *x, const double alpha, const double n, const double m, const double thetaR, const double thetaSR, const double KWs, double *u, double *mass, double *dmass, double *f, double *df, double *a, double *da, double *phi, double *dphi)
Definition: transportCoefficients.c:5007
unitCubeRotationEvaluate
void unitCubeRotationEvaluate(const int nPoints, const int nSpace, const double *x, const double *u, double *m, double *dm, double *f, double *df)
Definition: transportCoefficients.c:791
groundwaterBryantDawsonIonExEvaluateFC
void groundwaterBryantDawsonIonExEvaluateFC(const int nPoints, const int nSpace, const double omega, const double d_m, const double d_h, const double alpha_L, const double alpha_T, const double K_m, const double K_h, const double K_w, const double Z_tot, const double *v, const double *c_m, const double *c_h, double *m_m, double *dm_m_m, double *dm_m_h, double *m_h, double *dm_h_m, double *dm_h_h, double *f_m, double *df_m, double *f_h, double *df_h, double *a_m, double *a_h, double *phi_h, double *dphi_h, double *r_m, double *dr_m_dm, double *dr_m_dh, double *r_h, double *dr_h_dm, double *dr_h_dh)
Definition: transportCoefficients.c:303
evaluateBuckleyLeverettLiuExample
void evaluateBuckleyLeverettLiuExample(int nPoints, int nSpace, const double *x, const double *u, double *m, double *dm, double *f, double *df, double *a)
Definition: transportCoefficients.c:8455
VolumeAveragedNavierStokesFullDevStress_2D_Evaluate
void VolumeAveragedNavierStokesFullDevStress_2D_Evaluate(const int nPoints, const double rho, const double mu, const double *meanGrainSize, const double *g, const double *p, const double *grad_p, const double *u, const double *v, const double *porosity, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *mom_u_adv, double *dmom_u_adv_u, double *dmom_u_adv_v, double *mom_v_adv, double *dmom_v_adv_u, double *dmom_v_adv_v, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_uv_diff_ten, double *mom_vu_diff_ten, double *mom_u_source, double *mom_v_source, double *dmom_u_source_u, double *dmom_u_source_v, double *dmom_v_source_u, double *dmom_v_source_v, double *mom_u_ham, double *dmom_u_ham_grad_p, double *mom_v_ham, double *dmom_v_ham_grad_p)
Definition: transportCoefficients.c:8506
VOFCoefficientsEvaluate
void VOFCoefficientsEvaluate(int nPoints, int nSpace, double eps, double *v, double *phi, double *u, double *m, double *dm, double *f, double *df)
Definition: transportCoefficients.c:1244
variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat
void variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat(const int nSimplex, const int nPointsPerSimplex, const int nSpace, const double d, const int *materialTypes, const double *theta, const double *alpha_L_types, const double *alpha_T_types, const double *v, const double *u, double *m, double *dm, double *f, double *df, double *a)
Definition: transportCoefficients.c:468
conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate
void conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate(const int nElements, const int nElementBoundaries_element, const int nPointsPerElementBoundary, const int nSpace, const double rho, const double *gravity, const double alpha, const double n, const double m, const double thetaR, const double thetaSR, const double KWs, double *dV, double *u, double *mass, double *dmass, double *f, double *df, double *a, double *da)
Definition: transportCoefficients.c:5243
kEpsilon_2D_Evaluate_sd
void kEpsilon_2D_Evaluate_sd(int nPoints, int nSpace, double sigma_k, double sigma_e, double c_1, double c_2, double c_mu, double c_e, double nu, double *velocity, double *gradu, double *gradv, double *k, double *epsilon, double *m_k, double *dm_k, double *m_e, double *dm_e, double *phi_k, double *dphi_k, double *phi_e, double *dphi_e, double *f_k, double *df_k, double *f_e, double *df_e, double *a_k, double *da_k_dk, double *da_k_de, double *a_e, double *da_e_dk, double *da_e_de, double *r_k, double *dr_k_dk, double *dr_k_de, double *r_e, double *dr_e_dk, double *dr_e_de)
Definition: transportCoefficients.c:10090
VolumeAveragedVOFCoefficientsEvaluate
void VolumeAveragedVOFCoefficientsEvaluate(int nPoints, int nSpace, double eps, double *v, double *phi, double *porosity, double *u, double *m, double *dm, double *f, double *df)
Definition: transportCoefficients.c:9890
ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd
void ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd(const int nPoints, const double nu, const double c_mu, const double *k, const double *grad_k, const double *epsilon, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_w_diff_ten, double *mom_uv_diff_ten, double *mom_uw_diff_ten, double *mom_vu_diff_ten, double *mom_vw_diff_ten, double *mom_wu_diff_ten, double *mom_wv_diff_ten, double *mom_u_source, double *mom_v_source, double *mom_w_source)
Definition: transportCoefficients.c:10996
kEpsilon_epsilon_3D_Evaluate_sd
void kEpsilon_epsilon_3D_Evaluate_sd(int nPoints, int nSpace, double sigma_e, double c_1, double c_2, double c_mu, double c_e, double nu, double *velocity, double *gradu, double *gradv, double *gradw, double *k, double *epsilon, double *m_e, double *dm_e, double *phi_e, double *dphi_e, double *f_e, double *df_e, double *a_e, double *da_e_de, double *r_e, double *dr_e_de)
Definition: transportCoefficients.c:10686
eikonalEquationEvaluate
void eikonalEquationEvaluate(int nPoints, int nSpace, double rhs, double *u, double *grad_u, double *m, double *dm, double *H, double *dH, double *r)
Definition: transportCoefficients.c:1354
groundwaterTransportCoefficientsEvaluate_hetMat
void groundwaterTransportCoefficientsEvaluate_hetMat(const int nSimplex, const int nPointsPerSimplex, const int nSpace, const double d, const int *materialTypes, const double *omega_types, const double *alpha_L_types, const double *alpha_T_types, const double *v, const double *u, double *m, double *dm, double *f, double *df, double *a)
Definition: transportCoefficients.c:413
conservativeSatRichardsBrooksCoreyBurdineHomEvaluate
void conservativeSatRichardsBrooksCoreyBurdineHomEvaluate(const int nPoints, const int nSpace, const double rho, const double *gravity, const double lambda, const double pd, const double thetaR, const double thetaSR, const double KWs, double *u, double *mass, double *dmass, double *f, double *df, double *a, double *da, double *phi, double *dphi)
Definition: transportCoefficients.c:6798
conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate
void conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate(const int nPoints, const int nSpace, const double rho, const double beta, const double *gravity, const double lambda, const double pd, const double thetaR, const double thetaSR, const double KWs, double *u, double *mass, double *dmass, double *f, double *df, double *a, double *da)
Definition: transportCoefficients.c:6706
twophasePotentialFlowUpdateFreeSurface
void twophasePotentialFlowUpdateFreeSurface(int nPoints, int nSpace, double eps, double *u_levelSet, double M1, double M2, double *M, double *A1, double *A2, double *A, double *B1, double *B2, double *B, double *Bcon1, double *Bcon2, double *Bcon, double C1, double C2, double *C)
Definition: transportCoefficients.c:1073
MovingMesh_2D_Evaluate
void MovingMesh_2D_Evaluate(const int nPoints, const double E0, const double nu, const double *g, const double *det_J, const double *u, const double *v, double *uu_diff_ten, double *uv_diff_ten, double *vu_diff_ten, double *vv_diff_ten, double *u_force, double *v_force)
Definition: transportCoefficients.c:8276
r
Double r
Definition: Headers.h:83
groundwaterTransportCoefficientsEvaluate
void groundwaterTransportCoefficientsEvaluate(const int nPoints, const int nSpace, const double omega, const double d, const double alpha_L, const double alpha_T, const double *v, const double *u, double *m, double *dm, double *f, double *df, double *a)
Definition: transportCoefficients.c:140
burgersDiagonalVelHJEvaluate
void burgersDiagonalVelHJEvaluate(const int nPoints, const int nSpace, const double self_a, const double *self_v, const double *u, const double *grad_u, double *m, double *dm, double *H, double *dH, double *a, double *phi, double *dphi)
Definition: transportCoefficients.c:989
calculateEddyViscosity_Smagorinsky2P_2D
void calculateEddyViscosity_Smagorinsky2P_2D(const int nElements_global, const int nQuadraturePoints_element, const double smagorinskyConstant_0, const double smagorinskyConstant_1, const double eps, const double *phi_ls, const double *h_e, const double *grad_u, const double *grad_v, double *nu_t)
Definition: transportCoefficients.c:12165
ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd
void ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd(const int nPoints, const double rho, const double nu, const double c_mu, const double *k, const double *grad_k, const double *epsilon, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_uv_diff_ten, double *mom_vu_diff_ten, double *mom_u_source, double *mom_v_source)
Definition: transportCoefficients.c:10890
nonlinearADR_pqrstDualEvaluate
void nonlinearADR_pqrstDualEvaluate(const int nPoints, const int nSpace, const double M, const double *A, const double *B, const double C, const double p1, const double q1, const double r1, const double s1, const double t1, const double p2, const double q2, const double r2, const double s2, const double t2, const double t, const double *x, const double *u, double *m, double *dm, double *f, double *df, double *a, double *da, double *phi, double *dphi, double *r, double *dr)
Definition: transportCoefficients.c:664
l2projectScalar
void l2projectScalar(const int nSimplices, const int nPointsPerSimplex, double *dV, double *r)
Definition: transportCoefficients.c:5651
smoothedHeaviside_integral
double smoothedHeaviside_integral(double eps, double phi)
Definition: numericalFlux.c:14181
pos
double pos(double a)
Definition: testFMMandFSW.cpp:8
eddyViscosity_2D_Update_sd
void eddyViscosity_2D_Update_sd(const int nPoints, const double *nu_t, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_uv_diff_ten, double *mom_vu_diff_ten)
Definition: transportCoefficients.c:12340
disVelEvaluate
void disVelEvaluate(const int nPoints, const int nSpace, const double self_a, const double *x, const double *u, double *m, double *dm, double *f, double *df, double *a, double *da, double *phi, double *dphi)
Definition: transportCoefficients.c:908
setWeakDirichletConditionsForLevelSet
void setWeakDirichletConditionsForLevelSet(int nElements_global, int nDOF_trial_element, double epsilon_freeze_factor, const double *elementDiameter, const int *u_l2g, const double *u_dof, int *freeze_nodes_tmp, int *weakDirichletConditionFlags)
Definition: transportCoefficients.c:1620
TwophaseStokes_VOF_SO_2D_Evaluate
void TwophaseStokes_VOF_SO_2D_Evaluate(const int nPoints, const double eps, const double rho_0, const double nu_0, const double rho_1, const double nu_1, const double *g, const double *vof, const double *p, const double *grad_p, const double *u, const double *v, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_u_source, double *mom_v_source, double *mom_u_ham, double *dmom_u_ham_grad_p, double *mom_v_ham, double *dmom_v_ham_grad_p)
Definition: transportCoefficients.c:4546
disRotatingPulseVelEvaluate
void disRotatingPulseVelEvaluate(const int nPoints, const int nSpace, const double self_a, const double *x, const double *u, double *m, double *dm, double *f, double *df, double *a, double *da, double *phi, double *dphi)
Definition: transportCoefficients.c:859
groundwaterBiodegradation01EvaluateFC
void groundwaterBiodegradation01EvaluateFC(const int nPoints, const int nSpace, const double omega, const double d_c, const double d_e, const double alpha_L, const double alpha_T, const double Kox_max, const double Kox_C, const double Kox_E, const double Kox_X, const double Yield, const double k_d, const double *v, const double *c_c, const double *c_e, const double *c_x, double *m_c, double *dm_c, double *m_e, double *dm_e, double *m_x, double *dm_x, double *f_c, double *df_c, double *f_e, double *df_e, double *a_c, double *a_e, double *r_c, double *dr_c_dc, double *dr_c_de, double *dr_c_dx, double *r_e, double *dr_e_dc, double *dr_e_de, double *dr_e_dx, double *r_x, double *dr_x_dc, double *dr_x_de, double *dr_x_dx)
Definition: transportCoefficients.c:187
constantNormalVelocityLevelSetEvaluate
void constantNormalVelocityLevelSetEvaluate(const int nPoints, const int nSpace, double b, const double *x, const double *u, const double *gradu, double *m, double *dm, double *f, double *df, double *H, double *dH)
Definition: transportCoefficients.c:4776
TwophaseNavierStokes_VOF_SO_3D_Evaluate
void TwophaseNavierStokes_VOF_SO_3D_Evaluate(const int nPoints, const double eps, const double rho_0, const double nu_0, const double rho_1, const double nu_1, const double *g, const double *vof, const double *p, const double *grad_p, const double *u, const double *v, const double *w, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mom_w_acc, double *dmom_w_acc_w, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *dmass_adv_w, double *mom_u_adv, double *dmom_u_adv_u, double *dmom_u_adv_v, double *dmom_u_adv_w, double *mom_v_adv, double *dmom_v_adv_u, double *dmom_v_adv_v, double *dmom_v_adv_w, double *mom_w_adv, double *dmom_w_adv_u, double *dmom_w_adv_v, double *dmom_w_adv_w, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_w_diff_ten, double *mom_u_source, double *mom_v_source, double *mom_w_source, double *mom_u_ham, double *dmom_u_ham_grad_p, double *mom_v_ham, double *dmom_v_ham_grad_p, double *mom_w_ham, double *dmom_w_ham_grad_p)
Definition: transportCoefficients.c:4398
unitSquareRotationLevelSetEvaluate
void unitSquareRotationLevelSetEvaluate(const int nPoints, const int nSpace, double t, const double *x, const double *u, const double *gradu, double *m, double *dm, double *f, double *df, double *H, double *dH)
Definition: transportCoefficients.c:4848
calculateEddyViscosity_Smagorinsky_2D
void calculateEddyViscosity_Smagorinsky_2D(const int nElements_global, const int nQuadraturePoints_element, const double smagorinskyConstant, const double *h_e, const double *grad_u, const double *grad_v, double *nu_t)
Definition: transportCoefficients.c:12036
setSimpleWeakDirichletConditionsForLevelSet
void setSimpleWeakDirichletConditionsForLevelSet(int nElements_global, int nDOF_trial_element, double epsilon_freeze_factor, const double *elementDiameter, const int *u_l2g, const double *u_dof, int *freeze_nodes_tmp, int *weakDirichletConditionFlags)
Definition: transportCoefficients.c:1672
twophaseSignedDistanceCoefficientsEvaluate
void twophaseSignedDistanceCoefficientsEvaluate(int nPoints, int nSpace, double *S, double *u, double *grad_u, double *m, double *dm, double *h, double *dh, double *rh)
Definition: transportCoefficients.c:1325
conservativeHeadRichardsMualemVanGenuchten_sd_het_linearized_at_saturation
void conservativeHeadRichardsMualemVanGenuchten_sd_het_linearized_at_saturation(const int nSimplex, const int nPointsPerSimplex, const int nSpace, double linear_break, const int *rowptr, const int *colind, const int *materialTypes, const double rho, const double beta, const double *gravity, const double *alpha, const double *n, const double *thetaR, const double *thetaSR, const double *KWs, double *u, double *mass, double *dmass, double *f, double *df, double *a, double *da, double *vol_frac)
Definition: transportCoefficients.c:5847
levelSetCurvatureCoefficientsEvaluate
void levelSetCurvatureCoefficientsEvaluate(int nPoints, int nSpace, double *grad_phi, double *u, double *f, double *r, double *dr)
Definition: transportCoefficients.c:1270
twophaseLevelSetCoefficientsEvaluateCI
void twophaseLevelSetCoefficientsEvaluateCI(int nPoints, int nSpace, double *B, double t, double *x, double *u, double *m, double *dm, double *f, double *df, double *a, double *da, double *phi, double *dphi, double *r, double *dr)
Definition: transportCoefficients.c:1173
unitSquareVortexLevelSetEvaluate
void unitSquareVortexLevelSetEvaluate(const int nPoints, const int nSpace, double t, const double *x, const double *u, const double *gradu, double *m, double *dm, double *f, double *df, double *H, double *dH)
Definition: transportCoefficients.c:4812
kEpsilon_3D_Evaluate_sd
void kEpsilon_3D_Evaluate_sd(int nPoints, int nSpace, double sigma_k, double sigma_e, double c_1, double c_2, double c_mu, double c_e, double nu, double *velocity, double *gradu, double *gradv, double *gradw, double *k, double *epsilon, double *m_k, double *dm_k, double *m_e, double *dm_e, double *phi_k, double *dphi_k, double *phi_e, double *dphi_e, double *f_k, double *df_k, double *f_e, double *df_e, double *a_k, double *da_k_dk, double *da_k_de, double *a_e, double *da_e_dk, double *da_e_de, double *r_k, double *dr_k_dk, double *dr_k_de, double *r_e, double *dr_e_dk, double *dr_e_de)
Definition: transportCoefficients.c:10205
Mass_2D_Evaluate
void Mass_2D_Evaluate(const int nPoints, double rho, double *p, double *u, double *v, double *mom_p_acc, double *mom_u_acc, double *mom_v_acc, double *dmom_p_acc_p, double *dmom_u_acc_u, double *dmom_v_acc_v)
Definition: transportCoefficients.c:12626