Generated by Cython 0.29.21

Yellow lines hint at Python interaction.
Click on a line that starts with a "`+`" to see the C code that Cython generated for it.

Raw output: cython_impl.c

     001: #!/usr/bin/env python

     002: # -*- coding: utf-8 -*-

     003:

     004: #

     005: # ADD LICENSE SHORT INFORMATION HERE

     006: #

     007:

     008: """

     009: Cython version of rainflow counting algorithm.

     010: This version is considerable faster than the Python equivalent but require compilation.

     011: """

     012:

     013: # side-packages

    +014: import sys

      __pyx_t_1 = __Pyx_Import(__pyx_n_s_sys, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (PyDict_SetItem(__pyx_d, __pyx_n_s_sys, __pyx_t_1) < 0) __PYX_ERR(0, 14, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    +015: sys.path.append("../modules")

      __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_sys); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_path); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_3 = __Pyx_PyObject_Append(__pyx_t_2, __pyx_kp_u_modules); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 15, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    +016: from .common_impl import OccuranceCounter

      __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_INCREF(__pyx_n_s_OccuranceCounter);
      __Pyx_GIVEREF(__pyx_n_s_OccuranceCounter);
      PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_OccuranceCounter);
      __pyx_t_1 = __Pyx_Import(__pyx_n_s_common_impl, __pyx_t_2, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_OccuranceCounter); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_d, __pyx_n_s_OccuranceCounter, __pyx_t_2) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

     017: #import numpy as np

     018: cimport cython

     019:

     020: # define authorship information

    +021: __authors__ = ['Thomas Nygårds']

      __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_INCREF(__pyx_kp_u_Thomas_Nygrds);
      __Pyx_GIVEREF(__pyx_kp_u_Thomas_Nygrds);
      PyList_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_Thomas_Nygrds);
      if (PyDict_SetItem(__pyx_d, __pyx_n_s_authors, __pyx_t_1) < 0) __PYX_ERR(0, 21, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    +022: __author__ = ','.join(__authors__)

      __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_authors); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__11, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (PyDict_SetItem(__pyx_d, __pyx_n_s_author, __pyx_t_2) < 0) __PYX_ERR(0, 22, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    +023: __credits__ = []

      __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_d, __pyx_n_s_credits, __pyx_t_2) < 0) __PYX_ERR(0, 23, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    +024: __copyright__ = 'Copyright (c) 2020 MSC Software'

      if (PyDict_SetItem(__pyx_d, __pyx_n_s_copyright, __pyx_kp_u_Copyright_c_2020_MSC_Software) < 0) __PYX_ERR(0, 24, __pyx_L1_error)

    +025: __license__ = ''

      if (PyDict_SetItem(__pyx_d, __pyx_n_s_license, __pyx_kp_u__8) < 0) __PYX_ERR(0, 25, __pyx_L1_error)

     026:

     027: # maintenance information

    +028: __maintainer__ = 'Thomas Nygårds'

      if (PyDict_SetItem(__pyx_d, __pyx_n_s_maintainer, __pyx_kp_u_Thomas_Nygrds) < 0) __PYX_ERR(0, 28, __pyx_L1_error)

    +029: __email__ = 'thomas.nygards@mscsoftware.com'

      if (PyDict_SetItem(__pyx_d, __pyx_n_s_email, __pyx_kp_u_thomas_nygards_mscsoftware_com) < 0) __PYX_ERR(0, 29, __pyx_L1_error)

     030:

     031:

     032: # Notes to self:

     033: #

     034: # Decorator explanation:

     035: # @cython.boundscheck(False):   Deactivate bounds checking, so make sure to stay in range!

     036: # @cython.wraparound(False):    Deactivate negative indexing, so don't use negative indexes!

     037: #

     038: # cdef explanation:

     039: # Py_ssize_t:   Efficient index type, use this for all index variables, but nothing else.

     040: # int:          At least 16bit signed integer (many platforms use 32 bit today) ~ np.int32

     041: # long:         At least 32bit signed integer (many platforms use 64 bit today) ~ np.int64

     042: # long long:    At least 64bit signed integer (many platforms use 64 bit today) ~ np.int64

     043: # float:        32bit floating point ~ np.float32

     044: # double:       64bit floating point ~ np.float64

     045: # long double:  80bit floating point ~ np.longdouble

     046: #

     047:

     048:

    +049: cpdef double convert_real2(str val):

    static PyObject *__pyx_pw_5utils_11cython_impl_1convert_real2(PyObject *__pyx_self, PyObject *__pyx_v_val); /*proto*/
    static double __pyx_f_5utils_11cython_impl_convert_real2(PyObject *__pyx_v_val, CYTHON_UNUSED int __pyx_skip_dispatch) {
      PyObject *__pyx_v_ax = NULL;
      double __pyx_r;
      __Pyx_RefNannyDeclarations
      __Pyx_RefNannySetupContext("convert_real2", 0);
    /* … */
      /* function exit code */
      __pyx_L1_error:;
      __Pyx_XDECREF(__pyx_t_1);
      __Pyx_XDECREF(__pyx_t_4);
      __Pyx_XDECREF(__pyx_t_5);
      __Pyx_XDECREF(__pyx_t_6);
      __Pyx_WriteUnraisable("utils.cython_impl.convert_real2", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
      __pyx_r = 0;
      __pyx_L0:;
      __Pyx_XDECREF(__pyx_v_ax);
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    /* Python wrapper */
    static PyObject *__pyx_pw_5utils_11cython_impl_1convert_real2(PyObject *__pyx_self, PyObject *__pyx_v_val); /*proto*/
    static PyObject *__pyx_pw_5utils_11cython_impl_1convert_real2(PyObject *__pyx_self, PyObject *__pyx_v_val) {
      PyObject *__pyx_r = 0;
      __Pyx_RefNannyDeclarations
      __Pyx_RefNannySetupContext("convert_real2 (wrapper)", 0);
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_val), (&PyUnicode_Type), 1, "val", 1))) __PYX_ERR(0, 49, __pyx_L1_error)
      __pyx_r = __pyx_pf_5utils_11cython_impl_convert_real2(__pyx_self, ((PyObject*)__pyx_v_val));
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;

      /* function exit code */
      goto __pyx_L0;
      __pyx_L1_error:;
      __pyx_r = NULL;
      __pyx_L0:;
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    static PyObject *__pyx_pf_5utils_11cython_impl_convert_real2(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_val) {
      PyObject *__pyx_r = NULL;
      __Pyx_RefNannyDeclarations
      __Pyx_RefNannySetupContext("convert_real2", 0);
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_1 = PyFloat_FromDouble(__pyx_f_5utils_11cython_impl_convert_real2(__pyx_v_val, 0)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 49, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      goto __pyx_L0;

      /* function exit code */
      __pyx_L1_error:;
      __Pyx_XDECREF(__pyx_t_1);
      __Pyx_AddTraceback("utils.cython_impl.convert_real2", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __pyx_r = NULL;
      __pyx_L0:;
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    +050:     ax = val.strip()

      __pyx_t_1 = __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyUnicode_Type_strip, __pyx_v_val); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 50, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_v_ax = __pyx_t_1;
      __pyx_t_1 = 0;

    +051:     if not ax:

      __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_ax); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 51, __pyx_L1_error)
      __pyx_t_3 = ((!__pyx_t_2) != 0);
      if (__pyx_t_3) {
    /* … */
      }

    +052:         return 0.0

        __pyx_r = 0.0;
        goto __pyx_L0;

    +053:     return float(ax[0:1] + ax[1:].upper().replace('-', 'E-').replace('+', 'E+').replace('EE', 'E'))

      __pyx_t_1 = __Pyx_PyObject_GetSlice(__pyx_v_ax, 0, 1, NULL, NULL, &__pyx_slice_, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 53, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    /* … */
      __pyx_slice_ = PySlice_New(__pyx_int_0, __pyx_int_1, Py_None); if (unlikely(!__pyx_slice_)) __PYX_ERR(0, 53, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_slice_);
      __Pyx_GIVEREF(__pyx_slice_);
      __pyx_t_5 = __Pyx_PyObject_GetSlice(__pyx_v_ax, 1, 0, NULL, NULL, &__pyx_slice__2, 1, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 53, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_upper); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 53, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_5 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
        __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6);
        if (likely(__pyx_t_5)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
          __Pyx_INCREF(__pyx_t_5);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_6, function);
        }
      }
      __pyx_t_4 = (__pyx_t_5) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_5) : __Pyx_PyObject_CallNoArg(__pyx_t_6);
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 53, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_replace); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 53, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_slice__2 = PySlice_New(__pyx_int_1, Py_None, Py_None); if (unlikely(!__pyx_slice__2)) __PYX_ERR(0, 53, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_slice__2);
      __Pyx_GIVEREF(__pyx_slice__2);
      __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 53, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_replace); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 53, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_tuple__4 = PyTuple_Pack(2, __pyx_kp_u__3, __pyx_kp_u_E); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(0, 53, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_tuple__4);
      __Pyx_GIVEREF(__pyx_tuple__4);
      __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__6, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 53, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_replace); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 53, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_tuple__6 = PyTuple_Pack(2, __pyx_kp_u__5, __pyx_kp_u_E_2); if (unlikely(!__pyx_tuple__6)) __PYX_ERR(0, 53, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_tuple__6);
      __Pyx_GIVEREF(__pyx_tuple__6);
      __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__7, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 53, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = PyNumber_Add(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 53, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_7 = __Pyx_PyObject_AsDouble(__pyx_t_6); if (unlikely(__pyx_t_7 == ((double)((double)-1)) && PyErr_Occurred())) __PYX_ERR(0, 53, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_r = __pyx_t_7;
      goto __pyx_L0;
      __pyx_tuple__7 = PyTuple_Pack(2, __pyx_n_u_EE, __pyx_n_u_E_3); if (unlikely(!__pyx_tuple__7)) __PYX_ERR(0, 53, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_tuple__7);
      __Pyx_GIVEREF(__pyx_tuple__7);

     054:

     055:

     056: #def convert_real2(val):

     057: #    return c_convert_real2(val.encode('utf-8'))

     058:

    +059: cpdef process_ctetra(set BoltElList, set TopList, int cnt1, int cpid, int eflagtet, dict eltype, dict eqDict, list inl, str lin, dict matInteg,

    static PyObject *__pyx_pw_5utils_11cython_impl_3process_ctetra(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
    static PyObject *__pyx_f_5utils_11cython_impl_process_ctetra(PyObject *__pyx_v_BoltElList, PyObject *__pyx_v_TopList, int __pyx_v_cnt1, int __pyx_v_cpid, int __pyx_v_eflagtet, PyObject *__pyx_v_eltype, PyObject *__pyx_v_eqDict, PyObject *__pyx_v_inl, PyObject *__pyx_v_lin, PyObject *__pyx_v_matInteg, PyObject *__pyx_v_pSolDict, PyObject *__pyx_v_partName, PyObject *__pyx_v_pidname, PyObject *__pyx_v_tetFace, PyObject *__pyx_v_tetId, CYTHON_UNUSED int __pyx_skip_dispatch) {
      int __pyx_v_tId;
      int __pyx_v_g;
      PyObject *__pyx_v_nl = 0;
      PyObject *__pyx_v_out_strs = 0;
      long __pyx_v_torder;
      PyObject *__pyx_v_intAba = NULL;
      PyObject *__pyx_v_elSuffix = NULL;
      PyObject *__pyx_v_partpid = NULL;
      PyObject *__pyx_r = NULL;
      __Pyx_RefNannyDeclarations
      __Pyx_RefNannySetupContext("process_ctetra", 0);
      __Pyx_INCREF(__pyx_v_lin);
    /* … */
      /* function exit code */
      __pyx_L1_error:;
      __Pyx_XDECREF(__pyx_t_1);
      __Pyx_XDECREF(__pyx_t_5);
      __Pyx_XDECREF(__pyx_t_6);
      __Pyx_XDECREF(__pyx_t_10);
      __Pyx_XDECREF(__pyx_t_11);
      __Pyx_XDECREF(__pyx_t_12);
      __Pyx_XDECREF(__pyx_t_13);
      __Pyx_XDECREF(__pyx_t_14);
      __Pyx_XDECREF(__pyx_t_15);
      __Pyx_XDECREF(__pyx_t_16);
      __Pyx_XDECREF(__pyx_t_17);
      __Pyx_XDECREF(__pyx_t_18);
      __Pyx_AddTraceback("utils.cython_impl.process_ctetra", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __pyx_r = 0;
      __pyx_L0:;
      __Pyx_XDECREF(__pyx_v_nl);
      __Pyx_XDECREF(__pyx_v_out_strs);
      __Pyx_XDECREF(__pyx_v_intAba);
      __Pyx_XDECREF(__pyx_v_elSuffix);
      __Pyx_XDECREF(__pyx_v_partpid);
      __Pyx_XDECREF(__pyx_v_lin);
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    /* Python wrapper */
    static PyObject *__pyx_pw_5utils_11cython_impl_3process_ctetra(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
    static PyObject *__pyx_pw_5utils_11cython_impl_3process_ctetra(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
      PyObject *__pyx_v_BoltElList = 0;
      PyObject *__pyx_v_TopList = 0;
      int __pyx_v_cnt1;
      int __pyx_v_cpid;
      int __pyx_v_eflagtet;
      PyObject *__pyx_v_eltype = 0;
      PyObject *__pyx_v_eqDict = 0;
      PyObject *__pyx_v_inl = 0;
      PyObject *__pyx_v_lin = 0;
      PyObject *__pyx_v_matInteg = 0;
      PyObject *__pyx_v_pSolDict = 0;
      PyObject *__pyx_v_partName = 0;
      PyObject *__pyx_v_pidname = 0;
      PyObject *__pyx_v_tetFace = 0;
      PyObject *__pyx_v_tetId = 0;
      PyObject *__pyx_r = 0;
      __Pyx_RefNannyDeclarations
      __Pyx_RefNannySetupContext("process_ctetra (wrapper)", 0);
      {
        static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_BoltElList,&__pyx_n_s_TopList,&__pyx_n_s_cnt1,&__pyx_n_s_cpid,&__pyx_n_s_eflagtet,&__pyx_n_s_eltype,&__pyx_n_s_eqDict,&__pyx_n_s_inl,&__pyx_n_s_lin,&__pyx_n_s_matInteg,&__pyx_n_s_pSolDict,&__pyx_n_s_partName,&__pyx_n_s_pidname,&__pyx_n_s_tetFace,&__pyx_n_s_tetId,0};
        PyObject* values[15] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
        if (unlikely(__pyx_kwds)) {
          Py_ssize_t kw_args;
          const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
          switch (pos_args) {
            case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
            CYTHON_FALLTHROUGH;
            case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
            CYTHON_FALLTHROUGH;
            case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
            CYTHON_FALLTHROUGH;
            case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
            CYTHON_FALLTHROUGH;
            case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
            CYTHON_FALLTHROUGH;
            case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
            CYTHON_FALLTHROUGH;
            case  9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
            CYTHON_FALLTHROUGH;
            case  8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
            CYTHON_FALLTHROUGH;
            case  7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
            CYTHON_FALLTHROUGH;
            case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
            CYTHON_FALLTHROUGH;
            case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
            CYTHON_FALLTHROUGH;
            case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
            CYTHON_FALLTHROUGH;
            case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
            CYTHON_FALLTHROUGH;
            case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
            CYTHON_FALLTHROUGH;
            case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
            CYTHON_FALLTHROUGH;
            case  0: break;
            default: goto __pyx_L5_argtuple_error;
          }
          kw_args = PyDict_Size(__pyx_kwds);
          switch (pos_args) {
            case  0:
            if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_BoltElList)) != 0)) kw_args--;
            else goto __pyx_L5_argtuple_error;
            CYTHON_FALLTHROUGH;
            case  1:
            if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_TopList)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_ctetra", 1, 15, 15, 1); __PYX_ERR(0, 59, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case  2:
            if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cnt1)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_ctetra", 1, 15, 15, 2); __PYX_ERR(0, 59, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case  3:
            if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cpid)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_ctetra", 1, 15, 15, 3); __PYX_ERR(0, 59, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case  4:
            if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eflagtet)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_ctetra", 1, 15, 15, 4); __PYX_ERR(0, 59, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case  5:
            if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eltype)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_ctetra", 1, 15, 15, 5); __PYX_ERR(0, 59, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case  6:
            if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eqDict)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_ctetra", 1, 15, 15, 6); __PYX_ERR(0, 59, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case  7:
            if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inl)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_ctetra", 1, 15, 15, 7); __PYX_ERR(0, 59, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case  8:
            if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_lin)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_ctetra", 1, 15, 15, 8); __PYX_ERR(0, 59, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case  9:
            if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_matInteg)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_ctetra", 1, 15, 15, 9); __PYX_ERR(0, 59, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case 10:
            if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pSolDict)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_ctetra", 1, 15, 15, 10); __PYX_ERR(0, 59, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case 11:
            if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_partName)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_ctetra", 1, 15, 15, 11); __PYX_ERR(0, 59, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case 12:
            if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pidname)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_ctetra", 1, 15, 15, 12); __PYX_ERR(0, 59, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case 13:
            if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tetFace)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_ctetra", 1, 15, 15, 13); __PYX_ERR(0, 59, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case 14:
            if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tetId)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_ctetra", 1, 15, 15, 14); __PYX_ERR(0, 59, __pyx_L3_error)
            }
          }
          if (unlikely(kw_args > 0)) {
            if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "process_ctetra") < 0)) __PYX_ERR(0, 59, __pyx_L3_error)
          }
        } else if (PyTuple_GET_SIZE(__pyx_args) != 15) {
          goto __pyx_L5_argtuple_error;
        } else {
          values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
          values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
          values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
          values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
          values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
          values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
          values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
          values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
          values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
          values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
          values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
          values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
          values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
          values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
          values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
        }
        __pyx_v_BoltElList = ((PyObject*)values[0]);
        __pyx_v_TopList = ((PyObject*)values[1]);
        __pyx_v_cnt1 = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_cnt1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 59, __pyx_L3_error)
        __pyx_v_cpid = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_cpid == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 59, __pyx_L3_error)
        __pyx_v_eflagtet = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_eflagtet == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 59, __pyx_L3_error)
        __pyx_v_eltype = ((PyObject*)values[5]);
        __pyx_v_eqDict = ((PyObject*)values[6]);
        __pyx_v_inl = ((PyObject*)values[7]);
        __pyx_v_lin = ((PyObject*)values[8]);
        __pyx_v_matInteg = ((PyObject*)values[9]);
        __pyx_v_pSolDict = ((PyObject*)values[10]);
        __pyx_v_partName = ((PyObject*)values[11]);
        __pyx_v_pidname = ((PyObject*)values[12]);
        __pyx_v_tetFace = ((PyObject*)values[13]);
        __pyx_v_tetId = ((PyObject*)values[14]);
      }
      goto __pyx_L4_argument_unpacking_done;
      __pyx_L5_argtuple_error:;
      __Pyx_RaiseArgtupleInvalid("process_ctetra", 1, 15, 15, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 59, __pyx_L3_error)
      __pyx_L3_error:;
      __Pyx_AddTraceback("utils.cython_impl.process_ctetra", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __Pyx_RefNannyFinishContext();
      return NULL;
      __pyx_L4_argument_unpacking_done:;
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_BoltElList), (&PySet_Type), 1, "BoltElList", 1))) __PYX_ERR(0, 59, __pyx_L1_error)
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_TopList), (&PySet_Type), 1, "TopList", 1))) __PYX_ERR(0, 59, __pyx_L1_error)
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_eltype), (&PyDict_Type), 1, "eltype", 1))) __PYX_ERR(0, 59, __pyx_L1_error)
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_eqDict), (&PyDict_Type), 1, "eqDict", 1))) __PYX_ERR(0, 59, __pyx_L1_error)
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inl), (&PyList_Type), 1, "inl", 1))) __PYX_ERR(0, 59, __pyx_L1_error)
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_lin), (&PyUnicode_Type), 1, "lin", 1))) __PYX_ERR(0, 59, __pyx_L1_error)
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_matInteg), (&PyDict_Type), 1, "matInteg", 1))) __PYX_ERR(0, 59, __pyx_L1_error)
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pSolDict), (&PyDict_Type), 1, "pSolDict", 1))) __PYX_ERR(0, 60, __pyx_L1_error)
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_partName), (&PyUnicode_Type), 1, "partName", 1))) __PYX_ERR(0, 60, __pyx_L1_error)
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pidname), (&PyDict_Type), 1, "pidname", 1))) __PYX_ERR(0, 60, __pyx_L1_error)
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tetFace), (&PyDict_Type), 1, "tetFace", 1))) __PYX_ERR(0, 60, __pyx_L1_error)
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tetId), (&PyList_Type), 1, "tetId", 1))) __PYX_ERR(0, 60, __pyx_L1_error)
      __pyx_r = __pyx_pf_5utils_11cython_impl_2process_ctetra(__pyx_self, __pyx_v_BoltElList, __pyx_v_TopList, __pyx_v_cnt1, __pyx_v_cpid, __pyx_v_eflagtet, __pyx_v_eltype, __pyx_v_eqDict, __pyx_v_inl, __pyx_v_lin, __pyx_v_matInteg, __pyx_v_pSolDict, __pyx_v_partName, __pyx_v_pidname, __pyx_v_tetFace, __pyx_v_tetId);
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;

      /* function exit code */
      goto __pyx_L0;
      __pyx_L1_error:;
      __pyx_r = NULL;
      __pyx_L0:;
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    static PyObject *__pyx_pf_5utils_11cython_impl_2process_ctetra(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_BoltElList, PyObject *__pyx_v_TopList, int __pyx_v_cnt1, int __pyx_v_cpid, int __pyx_v_eflagtet, PyObject *__pyx_v_eltype, PyObject *__pyx_v_eqDict, PyObject *__pyx_v_inl, PyObject *__pyx_v_lin, PyObject *__pyx_v_matInteg, PyObject *__pyx_v_pSolDict, PyObject *__pyx_v_partName, PyObject *__pyx_v_pidname, PyObject *__pyx_v_tetFace, PyObject *__pyx_v_tetId) {
      PyObject *__pyx_r = NULL;
      __Pyx_RefNannyDeclarations
      __Pyx_RefNannySetupContext("process_ctetra", 0);
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_1 = __pyx_f_5utils_11cython_impl_process_ctetra(__pyx_v_BoltElList, __pyx_v_TopList, __pyx_v_cnt1, __pyx_v_cpid, __pyx_v_eflagtet, __pyx_v_eltype, __pyx_v_eqDict, __pyx_v_inl, __pyx_v_lin, __pyx_v_matInteg, __pyx_v_pSolDict, __pyx_v_partName, __pyx_v_pidname, __pyx_v_tetFace, __pyx_v_tetId, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 59, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      goto __pyx_L0;

      /* function exit code */
      __pyx_L1_error:;
      __Pyx_XDECREF(__pyx_t_1);
      __Pyx_AddTraceback("utils.cython_impl.process_ctetra", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __pyx_r = NULL;
      __pyx_L0:;
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

     060:                    dict pSolDict, str partName, dict pidname, dict tetFace, list tetId):

     061:     cdef int corder

     062:     cdef int tId

     063:     cdef int g

     064:     cdef list nl

     065:     cdef list out_strs

     066:

    +067:     out_strs=[]

      __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 67, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_v_out_strs = ((PyObject*)__pyx_t_1);
      __pyx_t_1 = 0;

    +068:     if len(lin) > 60:

      if (unlikely(__pyx_v_lin == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
        __PYX_ERR(0, 68, __pyx_L1_error)
      }
      __pyx_t_2 = __Pyx_PyUnicode_GET_LENGTH(__pyx_v_lin); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 68, __pyx_L1_error)
      __pyx_t_3 = ((__pyx_t_2 > 60) != 0);
      if (__pyx_t_3) {
    /* … */
        goto __pyx_L3;
      }

    +069:         torder = 2

        __pyx_v_torder = 2;

     070:     else:

    +071:         torder = 1

      /*else*/ {
        __pyx_v_torder = 1;
      }
      __pyx_L3:;

    +072:     if eflagtet == 1 or (cpid != int(lin[16:24])):

      __pyx_t_4 = ((__pyx_v_eflagtet == 1) != 0);
      if (!__pyx_t_4) {
      } else {
        __pyx_t_3 = __pyx_t_4;
        goto __pyx_L5_bool_binop_done;
      }
      __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_cpid); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 72, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (unlikely(__pyx_v_lin == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 72, __pyx_L1_error)
      }
      __pyx_t_5 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 16, 24); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 72, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 72, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_5 = PyObject_RichCompare(__pyx_t_1, __pyx_t_6, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 72, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 72, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_3 = __pyx_t_4;
      __pyx_L5_bool_binop_done:;
      if (__pyx_t_3) {
    /* … */
      }

    +073:         cpid = int(lin[16:24])

        if (unlikely(__pyx_v_lin == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 73, __pyx_L1_error)
        }
        __pyx_t_5 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 16, 24); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 73, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 73, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_t_6); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 73, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_v_cpid = __pyx_t_7;

    +074:         intAba = matInteg[pSolDict[cpid][0]]

        if (unlikely(__pyx_v_matInteg == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 74, __pyx_L1_error)
        }
        if (unlikely(__pyx_v_pSolDict == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 74, __pyx_L1_error)
        }
        __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_cpid); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 74, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_5 = __Pyx_PyDict_GetItem(__pyx_v_pSolDict, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 74, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_GetItemInt(__pyx_t_5, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 74, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyDict_GetItem(__pyx_v_matInteg, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 74, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_v_intAba = __pyx_t_5;
        __pyx_t_5 = 0;

    +075:         if intAba == 'cont':

        __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_v_intAba, __pyx_n_u_cont, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 75, __pyx_L1_error)
        if (__pyx_t_3) {
    /* … */
          goto __pyx_L7;
        }

    +076:             elSuffix = 'M'

          __Pyx_INCREF(__pyx_n_u_M);
          __pyx_v_elSuffix = __pyx_n_u_M;

    +077:             out_strs.append('** Modified formulation for contact selected from Material Description\n')

          __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_out_strs, __pyx_kp_u_Modified_formulation_for_contac); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 77, __pyx_L1_error)

    +078:         elif intAba == 'inc':

        __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_v_intAba, __pyx_n_u_inc, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 78, __pyx_L1_error)
        if (__pyx_t_3) {
    /* … */
          goto __pyx_L7;
        }

    +079:             elSuffix = 'I'

          __Pyx_INCREF(__pyx_n_u_I);
          __pyx_v_elSuffix = __pyx_n_u_I;

    +080:             out_strs.append('** Improved stress formulation selected from Material Description\n')

          __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_out_strs, __pyx_kp_u_Improved_stress_formulation_sel); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 80, __pyx_L1_error)

    +081:         elif intAba == 'std':

        __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_v_intAba, __pyx_n_u_std, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 81, __pyx_L1_error)
        if (__pyx_t_3) {
    /* … */
          goto __pyx_L7;
        }

    +082:             elSuffix = ''

          __Pyx_INCREF(__pyx_kp_u__8);
          __pyx_v_elSuffix = __pyx_kp_u__8;

    +083:             out_strs.append('** Full integration formulation selected from Material Description\n')

          __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_out_strs, __pyx_kp_u_Full_integration_formulation_se); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 83, __pyx_L1_error)

     084:         else:

    +085:             elSuffix = ''

        /*else*/ {
          __Pyx_INCREF(__pyx_kp_u__8);
          __pyx_v_elSuffix = __pyx_kp_u__8;

    +086:             out_strs.append('** Full integration formulation selected since Material Description is missing\n')

          __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_out_strs, __pyx_kp_u_Full_integration_formulation_se_2); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 86, __pyx_L1_error)
        }
        __pyx_L7:;

    +087:         partpid = '%s_PID_%i' % (partName, cpid)

        __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_cpid); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 87, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 87, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_INCREF(__pyx_v_partName);
        __Pyx_GIVEREF(__pyx_v_partName);
        PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_partName);
        __Pyx_GIVEREF(__pyx_t_5);
        PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5);
        __pyx_t_5 = 0;
        __pyx_t_5 = PyUnicode_Format(__pyx_kp_u_s_PID__i, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 87, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_v_partpid = ((PyObject*)__pyx_t_5);
        __pyx_t_5 = 0;

    +088:         pidname[partpid] = [cpid, 'sol']

        __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_cpid); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 88, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = PyList_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 88, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_5);
        PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_5);
        __Pyx_INCREF(__pyx_n_u_sol);
        __Pyx_GIVEREF(__pyx_n_u_sol);
        PyList_SET_ITEM(__pyx_t_6, 1, __pyx_n_u_sol);
        __pyx_t_5 = 0;
        if (unlikely(__pyx_v_pidname == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 88, __pyx_L1_error)
        }
        if (unlikely(PyDict_SetItem(__pyx_v_pidname, __pyx_v_partpid, __pyx_t_6) < 0)) __PYX_ERR(0, 88, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    +089:         if len(lin) > 60:

        if (unlikely(__pyx_v_lin == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
          __PYX_ERR(0, 89, __pyx_L1_error)
        }
        __pyx_t_2 = __Pyx_PyUnicode_GET_LENGTH(__pyx_v_lin); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 89, __pyx_L1_error)
        __pyx_t_3 = ((__pyx_t_2 > 60) != 0);
        if (__pyx_t_3) {
    /* … */
          goto __pyx_L8;
        }

    +090:             out_strs.append('*ELEMENT, TYPE=C3D10%s, ELSET=%s\n' % (elSuffix, partpid))

          __pyx_t_6 = PyTuple_New(5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 90, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = 0;
          __pyx_t_9 = 127;
          __Pyx_INCREF(__pyx_kp_u_ELEMENT_TYPE_C3D10);
          __pyx_t_2 += 20;
          __Pyx_GIVEREF(__pyx_kp_u_ELEMENT_TYPE_C3D10);
          PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_kp_u_ELEMENT_TYPE_C3D10);
          __Pyx_INCREF(__pyx_v_elSuffix);
          __pyx_t_9 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_v_elSuffix) > __pyx_t_9) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_v_elSuffix) : __pyx_t_9;
          __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_v_elSuffix);
          __Pyx_GIVEREF(__pyx_v_elSuffix);
          PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_elSuffix);
          __Pyx_INCREF(__pyx_kp_u_ELSET);
          __pyx_t_2 += 8;
          __Pyx_GIVEREF(__pyx_kp_u_ELSET);
          PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_kp_u_ELSET);
          __Pyx_INCREF(__pyx_v_partpid);
          __pyx_t_9 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_v_partpid) > __pyx_t_9) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_v_partpid) : __pyx_t_9;
          __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_v_partpid);
          __Pyx_GIVEREF(__pyx_v_partpid);
          PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_v_partpid);
          __Pyx_INCREF(__pyx_kp_u__9);
          __pyx_t_2 += 1;
          __Pyx_GIVEREF(__pyx_kp_u__9);
          PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_kp_u__9);
          __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_6, 5, __pyx_t_2, __pyx_t_9); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 90, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_out_strs, __pyx_t_5); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 90, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

     091:         else:

    +092:             out_strs.append('*ELEMENT, TYPE=C3D4, ELSET=%s\n' % (partpid))

        /*else*/ {
          __pyx_t_5 = PyUnicode_Format(__pyx_kp_u_ELEMENT_TYPE_C3D4_ELSET_s, __pyx_v_partpid); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 92, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_out_strs, __pyx_t_5); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 92, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
        __pyx_L8:;

    +093:         eflagtet = 0

        __pyx_v_eflagtet = 0;

    +094:     tId = int(lin[8:16])

      if (unlikely(__pyx_v_lin == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 94, __pyx_L1_error)
      }
      __pyx_t_5 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 8, 16); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 94, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 94, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_t_6); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 94, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_v_tId = __pyx_t_7;

    +095:     eltype[tId] = 4

      if (unlikely(__pyx_v_eltype == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 95, __pyx_L1_error)
      }
      __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_tId); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 95, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      if (unlikely(PyDict_SetItem(__pyx_v_eltype, __pyx_t_6, __pyx_int_4) < 0)) __PYX_ERR(0, 95, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

     096: #    n1 = int(lin[24:32])

     097: #    n2 = int(lin[32:40])

     098: #    n3 = int(lin[40:48])

     099: #    n4 = int(lin[48:56])

     100: #    if torder == 2:

     101: #        n5 = lin[56:64]

     102: #        n6 = lin[64:72]

     103: #        tId = int(lin[8:16])

     104: #        lin = inl[cnt1]

     105: #        cnt1 = cnt1 + 1

     106: #        n7 = lin[8:16]

     107: #        n8 = lin[16:24]

     108: #        n9 = lin[24:32]

     109: #        n10 = lin[32:40]

     110: #        out_strs.append('%8i,%8i,%8i,%8i,%8i,%s,%s,%s,%s,%s,%s\n' % (

     111: #            tId, n1, n2, n3, n4, n5, n6, n7, n8, n9, n10))

     112: #    else:

     113: #        out_strs.append( '%8i,%8i,%8i,%8i,%8i\n' % (tId, n1, n2, n3, n4))

    +114:     nl = []

      __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 114, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_v_nl = ((PyObject*)__pyx_t_6);
      __pyx_t_6 = 0;

    +115:     nl.append(int(lin[24:32]))

      if (unlikely(__pyx_v_lin == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 115, __pyx_L1_error)
      }
      __pyx_t_6 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 24, 32); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 115, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 115, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_5); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 115, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    +116:     nl.append(int(lin[32:40]))

      if (unlikely(__pyx_v_lin == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 116, __pyx_L1_error)
      }
      __pyx_t_5 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 32, 40); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 116, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 116, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_6); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 116, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    +117:     nl.append(int(lin[40:48]))

      if (unlikely(__pyx_v_lin == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 117, __pyx_L1_error)
      }
      __pyx_t_6 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 40, 48); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 117, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 117, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_5); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 117, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    +118:     nl.append(int(lin[48:56]))

      if (unlikely(__pyx_v_lin == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 118, __pyx_L1_error)
      }
      __pyx_t_5 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 48, 56); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 118, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 118, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_6); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 118, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    +119:     g = 0

      __pyx_v_g = 0;

    +120:     while g < 4:

      while (1) {
        __pyx_t_3 = ((__pyx_v_g < 4) != 0);
        if (!__pyx_t_3) break;

    +121:         if nl[g] in TopList:

        __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_nl, __pyx_v_g, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 121, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        if (unlikely(__pyx_v_TopList == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
          __PYX_ERR(0, 121, __pyx_L1_error)
        }
        __pyx_t_3 = (__Pyx_PySet_ContainsTF(__pyx_t_6, __pyx_v_TopList, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 121, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_4 = (__pyx_t_3 != 0);
        if (__pyx_t_4) {
    /* … */
        }

    +122:             nl[g] = eqDict[nl[g]]

          if (unlikely(__pyx_v_eqDict == Py_None)) {
            PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
            __PYX_ERR(0, 122, __pyx_L1_error)
          }
          __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_nl, __pyx_v_g, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 122, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_5 = __Pyx_PyDict_GetItem(__pyx_v_eqDict, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 122, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          if (unlikely(__Pyx_SetItemInt(__pyx_v_nl, __pyx_v_g, __pyx_t_5, int, 1, __Pyx_PyInt_From_int, 1, 1, 1) < 0)) __PYX_ERR(0, 122, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    +123:             BoltElList.add(tId)

          if (unlikely(__pyx_v_BoltElList == Py_None)) {
            PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "add");
            __PYX_ERR(0, 123, __pyx_L1_error)
          }
          __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_tId); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 123, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __pyx_t_8 = PySet_Add(__pyx_v_BoltElList, __pyx_t_5); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 123, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    +124:         g = g + 1

        __pyx_v_g = (__pyx_v_g + 1);
      }

    +125:     if torder == 2:

      __pyx_t_4 = ((__pyx_v_torder == 2) != 0);
      if (__pyx_t_4) {
    /* … */
        goto __pyx_L12;
      }

    +126:         nl.append(int(lin[56:64]))

        if (unlikely(__pyx_v_lin == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 126, __pyx_L1_error)
        }
        __pyx_t_5 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 56, 64); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 126, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 126, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_6); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 126, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    +127:         nl.append(int(lin[64:72]))

        if (unlikely(__pyx_v_lin == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 127, __pyx_L1_error)
        }
        __pyx_t_6 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 64, 72); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 127, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 127, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_5); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 127, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    +128:         tId = int(lin[8:16])

        if (unlikely(__pyx_v_lin == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 128, __pyx_L1_error)
        }
        __pyx_t_5 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 8, 16); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 128, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 128, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_t_6); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 128, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_v_tId = __pyx_t_7;

    +129:         lin = inl[cnt1]

        if (unlikely(__pyx_v_inl == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 129, __pyx_L1_error)
        }
        __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_inl, __pyx_v_cnt1, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 129, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        if (!(likely(PyUnicode_CheckExact(__pyx_t_6))||((__pyx_t_6) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_t_6)->tp_name), 0))) __PYX_ERR(0, 129, __pyx_L1_error)
        __Pyx_DECREF_SET(__pyx_v_lin, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

    +130:         cnt1 = cnt1 + 1

        __pyx_v_cnt1 = (__pyx_v_cnt1 + 1);

    +131:         nl.append(int(lin[8:16]))

        if (unlikely(__pyx_v_lin == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 131, __pyx_L1_error)
        }
        __pyx_t_6 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 8, 16); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 131, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 131, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_5); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 131, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    +132:         nl.append(int(lin[16:24]))

        if (unlikely(__pyx_v_lin == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 132, __pyx_L1_error)
        }
        __pyx_t_5 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 16, 24); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 132, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 132, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_6); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 132, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    +133:         nl.append(int(lin[24:32]))

        if (unlikely(__pyx_v_lin == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 133, __pyx_L1_error)
        }
        __pyx_t_6 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 24, 32); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 133, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 133, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_5); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 133, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    +134:         nl.append(int(lin[32:40]))

        if (unlikely(__pyx_v_lin == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 134, __pyx_L1_error)
        }
        __pyx_t_5 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 32, 40); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 134, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 134, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_6); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 134, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    +135:         g = 4

        __pyx_v_g = 4;

    +136:         while g < 10:

        while (1) {
          __pyx_t_4 = ((__pyx_v_g < 10) != 0);
          if (!__pyx_t_4) break;

    +137:             if nl[g] in TopList:

          __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_nl, __pyx_v_g, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 137, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          if (unlikely(__pyx_v_TopList == Py_None)) {
            PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
            __PYX_ERR(0, 137, __pyx_L1_error)
          }
          __pyx_t_4 = (__Pyx_PySet_ContainsTF(__pyx_t_6, __pyx_v_TopList, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 137, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_3 = (__pyx_t_4 != 0);
          if (__pyx_t_3) {
    /* … */
          }

    +138:                 nl[g] = eqDict[nl[g]]

            if (unlikely(__pyx_v_eqDict == Py_None)) {
              PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
              __PYX_ERR(0, 138, __pyx_L1_error)
            }
            __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_nl, __pyx_v_g, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 138, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_6);
            __pyx_t_5 = __Pyx_PyDict_GetItem(__pyx_v_eqDict, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 138, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
            if (unlikely(__Pyx_SetItemInt(__pyx_v_nl, __pyx_v_g, __pyx_t_5, int, 1, __Pyx_PyInt_From_int, 1, 1, 1) < 0)) __PYX_ERR(0, 138, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    +139:                 BoltElList.add(tId)

            if (unlikely(__pyx_v_BoltElList == Py_None)) {
              PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "add");
              __PYX_ERR(0, 139, __pyx_L1_error)
            }
            __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_tId); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 139, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
            __pyx_t_8 = PySet_Add(__pyx_v_BoltElList, __pyx_t_5); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 139, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    +140:             g = g + 1

          __pyx_v_g = (__pyx_v_g + 1);
        }

    +141:         out_strs.append('%8i,%8i,%8i,%8i,%8i,%8i,%8i,%8i,%8i,%8i,%8i\n' % (

        __pyx_t_17 = PyUnicode_Format(__pyx_kp_u_8i_8i_8i_8i_8i_8i_8i_8i_8i_8i_8, __pyx_t_18); if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 141, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_17);
        __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
        __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_out_strs, __pyx_t_17); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 141, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;

    +142:             tId, nl[0], nl[1], nl[2], nl[3], nl[4], nl[5], nl[6], nl[7], nl[8], nl[9]))

        __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_tId); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 142, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_nl, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 142, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_nl, 1, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 142, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_10 = __Pyx_GetItemInt_List(__pyx_v_nl, 2, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 142, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __pyx_t_11 = __Pyx_GetItemInt_List(__pyx_v_nl, 3, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 142, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_11);
        __pyx_t_12 = __Pyx_GetItemInt_List(__pyx_v_nl, 4, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 142, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_12);
        __pyx_t_13 = __Pyx_GetItemInt_List(__pyx_v_nl, 5, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 142, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_13);
        __pyx_t_14 = __Pyx_GetItemInt_List(__pyx_v_nl, 6, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 142, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        __pyx_t_15 = __Pyx_GetItemInt_List(__pyx_v_nl, 7, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 142, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_15);
        __pyx_t_16 = __Pyx_GetItemInt_List(__pyx_v_nl, 8, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 142, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_16);
        __pyx_t_17 = __Pyx_GetItemInt_List(__pyx_v_nl, 9, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 142, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_17);
        __pyx_t_18 = PyTuple_New(11); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 142, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_18);
        __Pyx_GIVEREF(__pyx_t_5);
        PyTuple_SET_ITEM(__pyx_t_18, 0, __pyx_t_5);
        __Pyx_GIVEREF(__pyx_t_6);
        PyTuple_SET_ITEM(__pyx_t_18, 1, __pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_1);
        PyTuple_SET_ITEM(__pyx_t_18, 2, __pyx_t_1);
        __Pyx_GIVEREF(__pyx_t_10);
        PyTuple_SET_ITEM(__pyx_t_18, 3, __pyx_t_10);
        __Pyx_GIVEREF(__pyx_t_11);
        PyTuple_SET_ITEM(__pyx_t_18, 4, __pyx_t_11);
        __Pyx_GIVEREF(__pyx_t_12);
        PyTuple_SET_ITEM(__pyx_t_18, 5, __pyx_t_12);
        __Pyx_GIVEREF(__pyx_t_13);
        PyTuple_SET_ITEM(__pyx_t_18, 6, __pyx_t_13);
        __Pyx_GIVEREF(__pyx_t_14);
        PyTuple_SET_ITEM(__pyx_t_18, 7, __pyx_t_14);
        __Pyx_GIVEREF(__pyx_t_15);
        PyTuple_SET_ITEM(__pyx_t_18, 8, __pyx_t_15);
        __Pyx_GIVEREF(__pyx_t_16);
        PyTuple_SET_ITEM(__pyx_t_18, 9, __pyx_t_16);
        __Pyx_GIVEREF(__pyx_t_17);
        PyTuple_SET_ITEM(__pyx_t_18, 10, __pyx_t_17);
        __pyx_t_5 = 0;
        __pyx_t_6 = 0;
        __pyx_t_1 = 0;
        __pyx_t_10 = 0;
        __pyx_t_11 = 0;
        __pyx_t_12 = 0;
        __pyx_t_13 = 0;
        __pyx_t_14 = 0;
        __pyx_t_15 = 0;
        __pyx_t_16 = 0;
        __pyx_t_17 = 0;

     143:     else:

    +144:         out_strs.append( '%8i,%8i,%8i,%8i,%8i\n' % (tId, nl[0], nl[1], nl[2], nl[3]))

      /*else*/ {
        __pyx_t_17 = __Pyx_PyInt_From_int(__pyx_v_tId); if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 144, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_17);
        __pyx_t_18 = __Pyx_GetItemInt_List(__pyx_v_nl, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 144, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_18);
        __pyx_t_16 = __Pyx_GetItemInt_List(__pyx_v_nl, 1, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 144, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_16);
        __pyx_t_15 = __Pyx_GetItemInt_List(__pyx_v_nl, 2, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 144, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_15);
        __pyx_t_14 = __Pyx_GetItemInt_List(__pyx_v_nl, 3, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 144, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        __pyx_t_13 = PyTuple_New(5); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 144, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_13);
        __Pyx_GIVEREF(__pyx_t_17);
        PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_17);
        __Pyx_GIVEREF(__pyx_t_18);
        PyTuple_SET_ITEM(__pyx_t_13, 1, __pyx_t_18);
        __Pyx_GIVEREF(__pyx_t_16);
        PyTuple_SET_ITEM(__pyx_t_13, 2, __pyx_t_16);
        __Pyx_GIVEREF(__pyx_t_15);
        PyTuple_SET_ITEM(__pyx_t_13, 3, __pyx_t_15);
        __Pyx_GIVEREF(__pyx_t_14);
        PyTuple_SET_ITEM(__pyx_t_13, 4, __pyx_t_14);
        __pyx_t_17 = 0;
        __pyx_t_18 = 0;
        __pyx_t_16 = 0;
        __pyx_t_15 = 0;
        __pyx_t_14 = 0;
        __pyx_t_14 = PyUnicode_Format(__pyx_kp_u_8i_8i_8i_8i_8i, __pyx_t_13); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 144, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
        __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_out_strs, __pyx_t_14); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 144, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      }
      __pyx_L12:;

     145:

     146:

     147:

    +148:     tetFace[tId, 1] = [nl[0], nl[2], nl[1]]

      __pyx_t_14 = __Pyx_GetItemInt_List(__pyx_v_nl, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 148, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __pyx_t_13 = __Pyx_GetItemInt_List(__pyx_v_nl, 2, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 148, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __pyx_t_15 = __Pyx_GetItemInt_List(__pyx_v_nl, 1, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 148, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_15);
      __pyx_t_16 = PyList_New(3); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 148, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_16);
      __Pyx_GIVEREF(__pyx_t_14);
      PyList_SET_ITEM(__pyx_t_16, 0, __pyx_t_14);
      __Pyx_GIVEREF(__pyx_t_13);
      PyList_SET_ITEM(__pyx_t_16, 1, __pyx_t_13);
      __Pyx_GIVEREF(__pyx_t_15);
      PyList_SET_ITEM(__pyx_t_16, 2, __pyx_t_15);
      __pyx_t_14 = 0;
      __pyx_t_13 = 0;
      __pyx_t_15 = 0;
      if (unlikely(__pyx_v_tetFace == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 148, __pyx_L1_error)
      }
      __pyx_t_15 = __Pyx_PyInt_From_int(__pyx_v_tId); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 148, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_15);
      __pyx_t_13 = PyTuple_New(2); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 148, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __Pyx_GIVEREF(__pyx_t_15);
      PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_15);
      __Pyx_INCREF(__pyx_int_1);
      __Pyx_GIVEREF(__pyx_int_1);
      PyTuple_SET_ITEM(__pyx_t_13, 1, __pyx_int_1);
      __pyx_t_15 = 0;
      if (unlikely(PyDict_SetItem(__pyx_v_tetFace, __pyx_t_13, __pyx_t_16) < 0)) __PYX_ERR(0, 148, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;

    +149:     tetFace[tId, 2] = [nl[0], nl[1], nl[3]]

      __pyx_t_16 = __Pyx_GetItemInt_List(__pyx_v_nl, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 149, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_16);
      __pyx_t_13 = __Pyx_GetItemInt_List(__pyx_v_nl, 1, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 149, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __pyx_t_15 = __Pyx_GetItemInt_List(__pyx_v_nl, 3, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 149, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_15);
      __pyx_t_14 = PyList_New(3); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 149, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __Pyx_GIVEREF(__pyx_t_16);
      PyList_SET_ITEM(__pyx_t_14, 0, __pyx_t_16);
      __Pyx_GIVEREF(__pyx_t_13);
      PyList_SET_ITEM(__pyx_t_14, 1, __pyx_t_13);
      __Pyx_GIVEREF(__pyx_t_15);
      PyList_SET_ITEM(__pyx_t_14, 2, __pyx_t_15);
      __pyx_t_16 = 0;
      __pyx_t_13 = 0;
      __pyx_t_15 = 0;
      if (unlikely(__pyx_v_tetFace == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 149, __pyx_L1_error)
      }
      __pyx_t_15 = __Pyx_PyInt_From_int(__pyx_v_tId); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 149, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_15);
      __pyx_t_13 = PyTuple_New(2); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 149, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __Pyx_GIVEREF(__pyx_t_15);
      PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_15);
      __Pyx_INCREF(__pyx_int_2);
      __Pyx_GIVEREF(__pyx_int_2);
      PyTuple_SET_ITEM(__pyx_t_13, 1, __pyx_int_2);
      __pyx_t_15 = 0;
      if (unlikely(PyDict_SetItem(__pyx_v_tetFace, __pyx_t_13, __pyx_t_14) < 0)) __PYX_ERR(0, 149, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;

    +150:     tetFace[tId, 4] = [nl[0], nl[3], nl[2]]

      __pyx_t_14 = __Pyx_GetItemInt_List(__pyx_v_nl, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 150, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __pyx_t_13 = __Pyx_GetItemInt_List(__pyx_v_nl, 3, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 150, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __pyx_t_15 = __Pyx_GetItemInt_List(__pyx_v_nl, 2, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 150, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_15);
      __pyx_t_16 = PyList_New(3); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 150, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_16);
      __Pyx_GIVEREF(__pyx_t_14);
      PyList_SET_ITEM(__pyx_t_16, 0, __pyx_t_14);
      __Pyx_GIVEREF(__pyx_t_13);
      PyList_SET_ITEM(__pyx_t_16, 1, __pyx_t_13);
      __Pyx_GIVEREF(__pyx_t_15);
      PyList_SET_ITEM(__pyx_t_16, 2, __pyx_t_15);
      __pyx_t_14 = 0;
      __pyx_t_13 = 0;
      __pyx_t_15 = 0;
      if (unlikely(__pyx_v_tetFace == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 150, __pyx_L1_error)
      }
      __pyx_t_15 = __Pyx_PyInt_From_int(__pyx_v_tId); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 150, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_15);
      __pyx_t_13 = PyTuple_New(2); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 150, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __Pyx_GIVEREF(__pyx_t_15);
      PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_15);
      __Pyx_INCREF(__pyx_int_4);
      __Pyx_GIVEREF(__pyx_int_4);
      PyTuple_SET_ITEM(__pyx_t_13, 1, __pyx_int_4);
      __pyx_t_15 = 0;
      if (unlikely(PyDict_SetItem(__pyx_v_tetFace, __pyx_t_13, __pyx_t_16) < 0)) __PYX_ERR(0, 150, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;

    +151:     tetFace[tId, 3] = [nl[1], nl[2], nl[3]]

      __pyx_t_16 = __Pyx_GetItemInt_List(__pyx_v_nl, 1, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 151, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_16);
      __pyx_t_13 = __Pyx_GetItemInt_List(__pyx_v_nl, 2, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 151, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __pyx_t_15 = __Pyx_GetItemInt_List(__pyx_v_nl, 3, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 151, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_15);
      __pyx_t_14 = PyList_New(3); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 151, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __Pyx_GIVEREF(__pyx_t_16);
      PyList_SET_ITEM(__pyx_t_14, 0, __pyx_t_16);
      __Pyx_GIVEREF(__pyx_t_13);
      PyList_SET_ITEM(__pyx_t_14, 1, __pyx_t_13);
      __Pyx_GIVEREF(__pyx_t_15);
      PyList_SET_ITEM(__pyx_t_14, 2, __pyx_t_15);
      __pyx_t_16 = 0;
      __pyx_t_13 = 0;
      __pyx_t_15 = 0;
      if (unlikely(__pyx_v_tetFace == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 151, __pyx_L1_error)
      }
      __pyx_t_15 = __Pyx_PyInt_From_int(__pyx_v_tId); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 151, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_15);
      __pyx_t_13 = PyTuple_New(2); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 151, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __Pyx_GIVEREF(__pyx_t_15);
      PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_15);
      __Pyx_INCREF(__pyx_int_3);
      __Pyx_GIVEREF(__pyx_int_3);
      PyTuple_SET_ITEM(__pyx_t_13, 1, __pyx_int_3);
      __pyx_t_15 = 0;
      if (unlikely(PyDict_SetItem(__pyx_v_tetFace, __pyx_t_13, __pyx_t_14) < 0)) __PYX_ERR(0, 151, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;

     152:

    +153:     tetId.append(tId)

      if (unlikely(__pyx_v_tetId == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "append");
        __PYX_ERR(0, 153, __pyx_L1_error)
      }
      __pyx_t_14 = __Pyx_PyInt_From_int(__pyx_v_tId); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 153, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_tetId, __pyx_t_14); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 153, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;

    +154:     return cnt1, cpid, eflagtet, out_strs,tId, nl

      __Pyx_XDECREF(__pyx_r);
      __pyx_t_14 = __Pyx_PyInt_From_int(__pyx_v_cnt1); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 154, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __pyx_t_13 = __Pyx_PyInt_From_int(__pyx_v_cpid); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 154, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __pyx_t_15 = __Pyx_PyInt_From_int(__pyx_v_eflagtet); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 154, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_15);
      __pyx_t_16 = __Pyx_PyInt_From_int(__pyx_v_tId); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 154, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_16);
      __pyx_t_18 = PyTuple_New(6); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 154, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_18);
      __Pyx_GIVEREF(__pyx_t_14);
      PyTuple_SET_ITEM(__pyx_t_18, 0, __pyx_t_14);
      __Pyx_GIVEREF(__pyx_t_13);
      PyTuple_SET_ITEM(__pyx_t_18, 1, __pyx_t_13);
      __Pyx_GIVEREF(__pyx_t_15);
      PyTuple_SET_ITEM(__pyx_t_18, 2, __pyx_t_15);
      __Pyx_INCREF(__pyx_v_out_strs);
      __Pyx_GIVEREF(__pyx_v_out_strs);
      PyTuple_SET_ITEM(__pyx_t_18, 3, __pyx_v_out_strs);
      __Pyx_GIVEREF(__pyx_t_16);
      PyTuple_SET_ITEM(__pyx_t_18, 4, __pyx_t_16);
      __Pyx_INCREF(__pyx_v_nl);
      __Pyx_GIVEREF(__pyx_v_nl);
      PyTuple_SET_ITEM(__pyx_t_18, 5, __pyx_v_nl);
      __pyx_t_14 = 0;
      __pyx_t_13 = 0;
      __pyx_t_15 = 0;
      __pyx_t_16 = 0;
      __pyx_r = __pyx_t_18;
      __pyx_t_18 = 0;
      goto __pyx_L0;

     155:

     156:

    +157: cpdef process_chexa(set BoltElList, set TopList, int cnt1, int cpid, int eflaghex, dict eltype, dict eqDict, dict hexFace, list hexId, list inl, str lin,

    static PyObject *__pyx_pw_5utils_11cython_impl_5process_chexa(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
    static PyObject *__pyx_f_5utils_11cython_impl_process_chexa(PyObject *__pyx_v_BoltElList, PyObject *__pyx_v_TopList, int __pyx_v_cnt1, int __pyx_v_cpid, int __pyx_v_eflaghex, PyObject *__pyx_v_eltype, PyObject *__pyx_v_eqDict, PyObject *__pyx_v_hexFace, PyObject *__pyx_v_hexId, PyObject *__pyx_v_inl, PyObject *__pyx_v_lin, PyObject *__pyx_v_matInteg, PyObject *__pyx_v_pSolDict, PyObject *__pyx_v_partName, PyObject *__pyx_v_pidname, CYTHON_UNUSED int __pyx_skip_dispatch) {
      int __pyx_v_hId;
      int __pyx_v_g;
      PyObject *__pyx_v_nl = 0;
      PyObject *__pyx_v_out_strs = 0;
      PyObject *__pyx_v_lin3 = NULL;
      long __pyx_v_horder;
      PyObject *__pyx_v_intAba = NULL;
      PyObject *__pyx_v_elSuffix = NULL;
      PyObject *__pyx_v_partpid = NULL;
      PyObject *__pyx_v_tmp = NULL;
      PyObject *__pyx_r = NULL;
      __Pyx_RefNannyDeclarations
      __Pyx_RefNannySetupContext("process_chexa", 0);
      __Pyx_INCREF(__pyx_v_lin);
    /* … */
      /* function exit code */
      __pyx_L1_error:;
      __Pyx_XDECREF(__pyx_t_2);
      __Pyx_XDECREF(__pyx_t_5);
      __Pyx_XDECREF(__pyx_t_6);
      __Pyx_XDECREF(__pyx_t_11);
      __Pyx_XDECREF(__pyx_t_12);
      __Pyx_XDECREF(__pyx_t_13);
      __Pyx_XDECREF(__pyx_t_14);
      __Pyx_XDECREF(__pyx_t_15);
      __Pyx_XDECREF(__pyx_t_16);
      __Pyx_XDECREF(__pyx_t_17);
      __Pyx_XDECREF(__pyx_t_18);
      __Pyx_XDECREF(__pyx_t_19);
      __Pyx_XDECREF(__pyx_t_20);
      __Pyx_XDECREF(__pyx_t_21);
      __Pyx_XDECREF(__pyx_t_22);
      __Pyx_XDECREF(__pyx_t_23);
      __Pyx_XDECREF(__pyx_t_24);
      __Pyx_XDECREF(__pyx_t_25);
      __Pyx_XDECREF(__pyx_t_26);
      __Pyx_XDECREF(__pyx_t_27);
      __Pyx_XDECREF(__pyx_t_28);
      __Pyx_XDECREF(__pyx_t_29);
      __Pyx_AddTraceback("utils.cython_impl.process_chexa", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __pyx_r = 0;
      __pyx_L0:;
      __Pyx_XDECREF(__pyx_v_nl);
      __Pyx_XDECREF(__pyx_v_out_strs);
      __Pyx_XDECREF(__pyx_v_lin3);
      __Pyx_XDECREF(__pyx_v_intAba);
      __Pyx_XDECREF(__pyx_v_elSuffix);
      __Pyx_XDECREF(__pyx_v_partpid);
      __Pyx_XDECREF(__pyx_v_tmp);
      __Pyx_XDECREF(__pyx_v_lin);
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    /* Python wrapper */
    static PyObject *__pyx_pw_5utils_11cython_impl_5process_chexa(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
    static PyObject *__pyx_pw_5utils_11cython_impl_5process_chexa(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
      PyObject *__pyx_v_BoltElList = 0;
      PyObject *__pyx_v_TopList = 0;
      int __pyx_v_cnt1;
      int __pyx_v_cpid;
      int __pyx_v_eflaghex;
      PyObject *__pyx_v_eltype = 0;
      PyObject *__pyx_v_eqDict = 0;
      PyObject *__pyx_v_hexFace = 0;
      PyObject *__pyx_v_hexId = 0;
      PyObject *__pyx_v_inl = 0;
      PyObject *__pyx_v_lin = 0;
      PyObject *__pyx_v_matInteg = 0;
      PyObject *__pyx_v_pSolDict = 0;
      PyObject *__pyx_v_partName = 0;
      PyObject *__pyx_v_pidname = 0;
      PyObject *__pyx_r = 0;
      __Pyx_RefNannyDeclarations
      __Pyx_RefNannySetupContext("process_chexa (wrapper)", 0);
      {
        static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_BoltElList,&__pyx_n_s_TopList,&__pyx_n_s_cnt1,&__pyx_n_s_cpid,&__pyx_n_s_eflaghex,&__pyx_n_s_eltype,&__pyx_n_s_eqDict,&__pyx_n_s_hexFace,&__pyx_n_s_hexId,&__pyx_n_s_inl,&__pyx_n_s_lin,&__pyx_n_s_matInteg,&__pyx_n_s_pSolDict,&__pyx_n_s_partName,&__pyx_n_s_pidname,0};
        PyObject* values[15] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
        if (unlikely(__pyx_kwds)) {
          Py_ssize_t kw_args;
          const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
          switch (pos_args) {
            case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
            CYTHON_FALLTHROUGH;
            case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
            CYTHON_FALLTHROUGH;
            case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
            CYTHON_FALLTHROUGH;
            case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
            CYTHON_FALLTHROUGH;
            case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
            CYTHON_FALLTHROUGH;
            case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
            CYTHON_FALLTHROUGH;
            case  9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
            CYTHON_FALLTHROUGH;
            case  8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
            CYTHON_FALLTHROUGH;
            case  7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
            CYTHON_FALLTHROUGH;
            case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
            CYTHON_FALLTHROUGH;
            case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
            CYTHON_FALLTHROUGH;
            case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
            CYTHON_FALLTHROUGH;
            case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
            CYTHON_FALLTHROUGH;
            case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
            CYTHON_FALLTHROUGH;
            case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
            CYTHON_FALLTHROUGH;
            case  0: break;
            default: goto __pyx_L5_argtuple_error;
          }
          kw_args = PyDict_Size(__pyx_kwds);
          switch (pos_args) {
            case  0:
            if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_BoltElList)) != 0)) kw_args--;
            else goto __pyx_L5_argtuple_error;
            CYTHON_FALLTHROUGH;
            case  1:
            if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_TopList)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_chexa", 1, 15, 15, 1); __PYX_ERR(0, 157, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case  2:
            if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cnt1)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_chexa", 1, 15, 15, 2); __PYX_ERR(0, 157, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case  3:
            if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cpid)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_chexa", 1, 15, 15, 3); __PYX_ERR(0, 157, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case  4:
            if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eflaghex)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_chexa", 1, 15, 15, 4); __PYX_ERR(0, 157, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case  5:
            if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eltype)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_chexa", 1, 15, 15, 5); __PYX_ERR(0, 157, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case  6:
            if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eqDict)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_chexa", 1, 15, 15, 6); __PYX_ERR(0, 157, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case  7:
            if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hexFace)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_chexa", 1, 15, 15, 7); __PYX_ERR(0, 157, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case  8:
            if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hexId)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_chexa", 1, 15, 15, 8); __PYX_ERR(0, 157, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case  9:
            if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inl)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_chexa", 1, 15, 15, 9); __PYX_ERR(0, 157, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case 10:
            if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_lin)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_chexa", 1, 15, 15, 10); __PYX_ERR(0, 157, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case 11:
            if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_matInteg)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_chexa", 1, 15, 15, 11); __PYX_ERR(0, 157, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case 12:
            if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pSolDict)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_chexa", 1, 15, 15, 12); __PYX_ERR(0, 157, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case 13:
            if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_partName)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_chexa", 1, 15, 15, 13); __PYX_ERR(0, 157, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case 14:
            if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pidname)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_chexa", 1, 15, 15, 14); __PYX_ERR(0, 157, __pyx_L3_error)
            }
          }
          if (unlikely(kw_args > 0)) {
            if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "process_chexa") < 0)) __PYX_ERR(0, 157, __pyx_L3_error)
          }
        } else if (PyTuple_GET_SIZE(__pyx_args) != 15) {
          goto __pyx_L5_argtuple_error;
        } else {
          values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
          values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
          values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
          values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
          values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
          values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
          values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
          values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
          values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
          values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
          values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
          values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
          values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
          values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
          values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
        }
        __pyx_v_BoltElList = ((PyObject*)values[0]);
        __pyx_v_TopList = ((PyObject*)values[1]);
        __pyx_v_cnt1 = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_cnt1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 157, __pyx_L3_error)
        __pyx_v_cpid = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_cpid == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 157, __pyx_L3_error)
        __pyx_v_eflaghex = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_eflaghex == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 157, __pyx_L3_error)
        __pyx_v_eltype = ((PyObject*)values[5]);
        __pyx_v_eqDict = ((PyObject*)values[6]);
        __pyx_v_hexFace = ((PyObject*)values[7]);
        __pyx_v_hexId = ((PyObject*)values[8]);
        __pyx_v_inl = ((PyObject*)values[9]);
        __pyx_v_lin = ((PyObject*)values[10]);
        __pyx_v_matInteg = ((PyObject*)values[11]);
        __pyx_v_pSolDict = ((PyObject*)values[12]);
        __pyx_v_partName = ((PyObject*)values[13]);
        __pyx_v_pidname = ((PyObject*)values[14]);
      }
      goto __pyx_L4_argument_unpacking_done;
      __pyx_L5_argtuple_error:;
      __Pyx_RaiseArgtupleInvalid("process_chexa", 1, 15, 15, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 157, __pyx_L3_error)
      __pyx_L3_error:;
      __Pyx_AddTraceback("utils.cython_impl.process_chexa", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __Pyx_RefNannyFinishContext();
      return NULL;
      __pyx_L4_argument_unpacking_done:;
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_BoltElList), (&PySet_Type), 1, "BoltElList", 1))) __PYX_ERR(0, 157, __pyx_L1_error)
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_TopList), (&PySet_Type), 1, "TopList", 1))) __PYX_ERR(0, 157, __pyx_L1_error)
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_eltype), (&PyDict_Type), 1, "eltype", 1))) __PYX_ERR(0, 157, __pyx_L1_error)
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_eqDict), (&PyDict_Type), 1, "eqDict", 1))) __PYX_ERR(0, 157, __pyx_L1_error)
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_hexFace), (&PyDict_Type), 1, "hexFace", 1))) __PYX_ERR(0, 157, __pyx_L1_error)
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_hexId), (&PyList_Type), 1, "hexId", 1))) __PYX_ERR(0, 157, __pyx_L1_error)
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inl), (&PyList_Type), 1, "inl", 1))) __PYX_ERR(0, 157, __pyx_L1_error)
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_lin), (&PyUnicode_Type), 1, "lin", 1))) __PYX_ERR(0, 157, __pyx_L1_error)
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_matInteg), (&PyDict_Type), 1, "matInteg", 1))) __PYX_ERR(0, 158, __pyx_L1_error)
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pSolDict), (&PyDict_Type), 1, "pSolDict", 1))) __PYX_ERR(0, 158, __pyx_L1_error)
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_partName), (&PyUnicode_Type), 1, "partName", 1))) __PYX_ERR(0, 158, __pyx_L1_error)
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pidname), (&PyDict_Type), 1, "pidname", 1))) __PYX_ERR(0, 158, __pyx_L1_error)
      __pyx_r = __pyx_pf_5utils_11cython_impl_4process_chexa(__pyx_self, __pyx_v_BoltElList, __pyx_v_TopList, __pyx_v_cnt1, __pyx_v_cpid, __pyx_v_eflaghex, __pyx_v_eltype, __pyx_v_eqDict, __pyx_v_hexFace, __pyx_v_hexId, __pyx_v_inl, __pyx_v_lin, __pyx_v_matInteg, __pyx_v_pSolDict, __pyx_v_partName, __pyx_v_pidname);
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;

      /* function exit code */
      goto __pyx_L0;
      __pyx_L1_error:;
      __pyx_r = NULL;
      __pyx_L0:;
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    static PyObject *__pyx_pf_5utils_11cython_impl_4process_chexa(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_BoltElList, PyObject *__pyx_v_TopList, int __pyx_v_cnt1, int __pyx_v_cpid, int __pyx_v_eflaghex, PyObject *__pyx_v_eltype, PyObject *__pyx_v_eqDict, PyObject *__pyx_v_hexFace, PyObject *__pyx_v_hexId, PyObject *__pyx_v_inl, PyObject *__pyx_v_lin, PyObject *__pyx_v_matInteg, PyObject *__pyx_v_pSolDict, PyObject *__pyx_v_partName, PyObject *__pyx_v_pidname) {
      PyObject *__pyx_r = NULL;
      __Pyx_RefNannyDeclarations
      __Pyx_RefNannySetupContext("process_chexa", 0);
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_1 = __pyx_f_5utils_11cython_impl_process_chexa(__pyx_v_BoltElList, __pyx_v_TopList, __pyx_v_cnt1, __pyx_v_cpid, __pyx_v_eflaghex, __pyx_v_eltype, __pyx_v_eqDict, __pyx_v_hexFace, __pyx_v_hexId, __pyx_v_inl, __pyx_v_lin, __pyx_v_matInteg, __pyx_v_pSolDict, __pyx_v_partName, __pyx_v_pidname, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 157, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      goto __pyx_L0;

      /* function exit code */
      __pyx_L1_error:;
      __Pyx_XDECREF(__pyx_t_1);
      __Pyx_AddTraceback("utils.cython_impl.process_chexa", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __pyx_r = NULL;
      __pyx_L0:;
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

     158:                   dict matInteg, dict pSolDict, str partName, dict pidname):

     159: # Stefan added try/except need to be taken care of

     160: #    try:

     161: #        eflaghex == 1

     162: #    except:

     163: #        print("Warning eflaghex not defined...setting it to zero")

     164: #        eflaghex = 0

     165: #    cdef int corder

     166:     cdef int hId

     167:     cdef int g

     168:     cdef list nl

     169:     cdef list out_strs

    +170:     lin3=inl[cnt1+1]

      if (unlikely(__pyx_v_inl == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 170, __pyx_L1_error)
      }
      __pyx_t_1 = (__pyx_v_cnt1 + 1);
      __pyx_t_2 = __Pyx_GetItemInt_List(__pyx_v_inl, __pyx_t_1, long, 1, __Pyx_PyInt_From_long, 1, 1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 170, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_v_lin3 = __pyx_t_2;
      __pyx_t_2 = 0;

    +171:     if lin3[0:1] == ' ' or lin3[0:1] == '+' :

      __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_lin3, 0, 1, NULL, NULL, &__pyx_slice_, 1, 1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 171, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u__10, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 171, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (!__pyx_t_4) {
      } else {
        __pyx_t_3 = __pyx_t_4;
        goto __pyx_L4_bool_binop_done;
      }
      __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_lin3, 0, 1, NULL, NULL, &__pyx_slice_, 1, 1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 171, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u__5, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 171, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_3 = __pyx_t_4;
      __pyx_L4_bool_binop_done:;
      if (__pyx_t_3) {
    /* … */
        goto __pyx_L3;
      }

    +172:         horder=2

        __pyx_v_horder = 2;

     173:     else :

    +174:         horder=1

      /*else*/ {
        __pyx_v_horder = 1;
      }
      __pyx_L3:;

     175:

    +176:     out_strs=[]

      __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 176, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_v_out_strs = ((PyObject*)__pyx_t_2);
      __pyx_t_2 = 0;

    +177:     if eflaghex == 1 or (cpid != int(lin[16:24])):

      __pyx_t_4 = ((__pyx_v_eflaghex == 1) != 0);
      if (!__pyx_t_4) {
      } else {
        __pyx_t_3 = __pyx_t_4;
        goto __pyx_L7_bool_binop_done;
      }
      __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_cpid); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 177, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (unlikely(__pyx_v_lin == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 177, __pyx_L1_error)
      }
      __pyx_t_5 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 16, 24); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 177, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 177, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_5 = PyObject_RichCompare(__pyx_t_2, __pyx_t_6, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 177, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 177, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_3 = __pyx_t_4;
      __pyx_L7_bool_binop_done:;
      if (__pyx_t_3) {
    /* … */
      }

    +178:         cpid = int(lin[16:24])

        if (unlikely(__pyx_v_lin == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 178, __pyx_L1_error)
        }
        __pyx_t_5 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 16, 24); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 178, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 178, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_t_6); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 178, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_v_cpid = __pyx_t_7;

    +179:         intAba = matInteg[pSolDict[cpid][0]]

        if (unlikely(__pyx_v_matInteg == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 179, __pyx_L1_error)
        }
        if (unlikely(__pyx_v_pSolDict == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 179, __pyx_L1_error)
        }
        __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_cpid); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 179, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_5 = __Pyx_PyDict_GetItem(__pyx_v_pSolDict, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 179, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_GetItemInt(__pyx_t_5, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 179, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyDict_GetItem(__pyx_v_matInteg, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 179, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_v_intAba = __pyx_t_5;
        __pyx_t_5 = 0;

    +180:         if intAba == 'inc':

        __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_v_intAba, __pyx_n_u_inc, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 180, __pyx_L1_error)
        if (__pyx_t_3) {
    /* … */
          goto __pyx_L9;
        }

    +181:             elSuffix = 'I'

          __Pyx_INCREF(__pyx_n_u_I);
          __pyx_v_elSuffix = __pyx_n_u_I;

    +182:             out_strs.append('** Incomapatible modes formulation selected from Material Description\n')

          __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_out_strs, __pyx_kp_u_Incomapatible_modes_formulation); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 182, __pyx_L1_error)

    +183:         elif intAba == 'red':

        __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_v_intAba, __pyx_n_u_red, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 183, __pyx_L1_error)
        if (__pyx_t_3) {
    /* … */
          goto __pyx_L9;
        }

    +184:             elSuffix = 'R'

          __Pyx_INCREF(__pyx_n_u_R);
          __pyx_v_elSuffix = __pyx_n_u_R;

    +185:             out_strs.append('** Reduced integration formulation selected from Material Description\n')

          __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_out_strs, __pyx_kp_u_Reduced_integration_formulation); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 185, __pyx_L1_error)

    +186:         elif intAba == 'std':

        __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_v_intAba, __pyx_n_u_std, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 186, __pyx_L1_error)
        if (__pyx_t_3) {
    /* … */
          goto __pyx_L9;
        }

    +187:             elSuffix = ''

          __Pyx_INCREF(__pyx_kp_u__8);
          __pyx_v_elSuffix = __pyx_kp_u__8;

    +188:             out_strs.append('** Full integration formulation selected from Material Description\n')

          __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_out_strs, __pyx_kp_u_Full_integration_formulation_se); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 188, __pyx_L1_error)

     189:         else:

    +190:             elSuffix = ''

        /*else*/ {
          __Pyx_INCREF(__pyx_kp_u__8);
          __pyx_v_elSuffix = __pyx_kp_u__8;

    +191:             out_strs.append('** Full integration formulation selected since Material Description is missing\n')

          __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_out_strs, __pyx_kp_u_Full_integration_formulation_se_2); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 191, __pyx_L1_error)
        }
        __pyx_L9:;

    +192:         partpid = '%s_PID_%i' % (partName, cpid)

        __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_cpid); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 192, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 192, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_INCREF(__pyx_v_partName);
        __Pyx_GIVEREF(__pyx_v_partName);
        PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_partName);
        __Pyx_GIVEREF(__pyx_t_5);
        PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5);
        __pyx_t_5 = 0;
        __pyx_t_5 = PyUnicode_Format(__pyx_kp_u_s_PID__i, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 192, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_v_partpid = ((PyObject*)__pyx_t_5);
        __pyx_t_5 = 0;

    +193:         pidname[partpid] = [cpid, 'sol']

        __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_cpid); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 193, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = PyList_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 193, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_5);
        PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_5);
        __Pyx_INCREF(__pyx_n_u_sol);
        __Pyx_GIVEREF(__pyx_n_u_sol);
        PyList_SET_ITEM(__pyx_t_6, 1, __pyx_n_u_sol);
        __pyx_t_5 = 0;
        if (unlikely(__pyx_v_pidname == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 193, __pyx_L1_error)
        }
        if (unlikely(PyDict_SetItem(__pyx_v_pidname, __pyx_v_partpid, __pyx_t_6) < 0)) __PYX_ERR(0, 193, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    +194:         if horder == 1 :

        __pyx_t_3 = ((__pyx_v_horder == 1) != 0);
        if (__pyx_t_3) {
    /* … */
          goto __pyx_L10;
        }

    +195:             tmp = '*ELEMENT, TYPE=C3D8%s, ELSET=%s\n' % (elSuffix, partpid)

          __pyx_t_6 = PyTuple_New(5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 195, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_9 = 0;
          __pyx_t_10 = 127;
          __Pyx_INCREF(__pyx_kp_u_ELEMENT_TYPE_C3D8);
          __pyx_t_9 += 19;
          __Pyx_GIVEREF(__pyx_kp_u_ELEMENT_TYPE_C3D8);
          PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_kp_u_ELEMENT_TYPE_C3D8);
          __Pyx_INCREF(__pyx_v_elSuffix);
          __pyx_t_10 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_v_elSuffix) > __pyx_t_10) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_v_elSuffix) : __pyx_t_10;
          __pyx_t_9 += __Pyx_PyUnicode_GET_LENGTH(__pyx_v_elSuffix);
          __Pyx_GIVEREF(__pyx_v_elSuffix);
          PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_elSuffix);
          __Pyx_INCREF(__pyx_kp_u_ELSET);
          __pyx_t_9 += 8;
          __Pyx_GIVEREF(__pyx_kp_u_ELSET);
          PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_kp_u_ELSET);
          __Pyx_INCREF(__pyx_v_partpid);
          __pyx_t_10 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_v_partpid) > __pyx_t_10) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_v_partpid) : __pyx_t_10;
          __pyx_t_9 += __Pyx_PyUnicode_GET_LENGTH(__pyx_v_partpid);
          __Pyx_GIVEREF(__pyx_v_partpid);
          PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_v_partpid);
          __Pyx_INCREF(__pyx_kp_u__9);
          __pyx_t_9 += 1;
          __Pyx_GIVEREF(__pyx_kp_u__9);
          PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_kp_u__9);
          __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_6, 5, __pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 195, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_v_tmp = ((PyObject*)__pyx_t_5);
          __pyx_t_5 = 0;

     196:         else :

    +197:             tmp = '*ELEMENT, TYPE=C3D20%s, ELSET=%s\n' % (elSuffix, partpid)

        /*else*/ {
          __pyx_t_5 = PyTuple_New(5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 197, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __pyx_t_9 = 0;
          __pyx_t_10 = 127;
          __Pyx_INCREF(__pyx_kp_u_ELEMENT_TYPE_C3D20);
          __pyx_t_9 += 20;
          __Pyx_GIVEREF(__pyx_kp_u_ELEMENT_TYPE_C3D20);
          PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_kp_u_ELEMENT_TYPE_C3D20);
          __Pyx_INCREF(__pyx_v_elSuffix);
          __pyx_t_10 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_v_elSuffix) > __pyx_t_10) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_v_elSuffix) : __pyx_t_10;
          __pyx_t_9 += __Pyx_PyUnicode_GET_LENGTH(__pyx_v_elSuffix);
          __Pyx_GIVEREF(__pyx_v_elSuffix);
          PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_elSuffix);
          __Pyx_INCREF(__pyx_kp_u_ELSET);
          __pyx_t_9 += 8;
          __Pyx_GIVEREF(__pyx_kp_u_ELSET);
          PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_kp_u_ELSET);
          __Pyx_INCREF(__pyx_v_partpid);
          __pyx_t_10 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_v_partpid) > __pyx_t_10) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_v_partpid) : __pyx_t_10;
          __pyx_t_9 += __Pyx_PyUnicode_GET_LENGTH(__pyx_v_partpid);
          __Pyx_GIVEREF(__pyx_v_partpid);
          PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_v_partpid);
          __Pyx_INCREF(__pyx_kp_u__9);
          __pyx_t_9 += 1;
          __Pyx_GIVEREF(__pyx_kp_u__9);
          PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_kp_u__9);
          __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_5, 5, __pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 197, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __pyx_v_tmp = ((PyObject*)__pyx_t_6);
          __pyx_t_6 = 0;
        }
        __pyx_L10:;

    +198:         out_strs.append(tmp)

        __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_out_strs, __pyx_v_tmp); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 198, __pyx_L1_error)

    +199:         eflaghex = 0

        __pyx_v_eflaghex = 0;

    +200:     nl = []

      __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 200, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_v_nl = ((PyObject*)__pyx_t_6);
      __pyx_t_6 = 0;

    +201:     nl.append(int(lin[24:32]))

      if (unlikely(__pyx_v_lin == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 201, __pyx_L1_error)
      }
      __pyx_t_6 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 24, 32); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 201, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 201, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_5); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 201, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    +202:     nl.append(int(lin[32:40]))

      if (unlikely(__pyx_v_lin == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 202, __pyx_L1_error)
      }
      __pyx_t_5 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 32, 40); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 202, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 202, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_6); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 202, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    +203:     nl.append(int(lin[40:48]))

      if (unlikely(__pyx_v_lin == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 203, __pyx_L1_error)
      }
      __pyx_t_6 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 40, 48); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 203, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 203, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_5); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 203, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    +204:     nl.append(int(lin[48:56]))

      if (unlikely(__pyx_v_lin == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 204, __pyx_L1_error)
      }
      __pyx_t_5 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 48, 56); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 204, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 204, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_6); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 204, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    +205:     nl.append(int(lin[56:64]))

      if (unlikely(__pyx_v_lin == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 205, __pyx_L1_error)
      }
      __pyx_t_6 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 56, 64); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 205, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 205, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_5); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 205, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    +206:     nl.append(int(lin[64:72]))

      if (unlikely(__pyx_v_lin == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 206, __pyx_L1_error)
      }
      __pyx_t_5 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 64, 72); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 206, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 206, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_6); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 206, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    +207:     hId = int(lin[8:16])

      if (unlikely(__pyx_v_lin == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 207, __pyx_L1_error)
      }
      __pyx_t_6 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 8, 16); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 207, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 207, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_t_5); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 207, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_v_hId = __pyx_t_7;

    +208:     hexId.append(hId)

      if (unlikely(__pyx_v_hexId == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "append");
        __PYX_ERR(0, 208, __pyx_L1_error)
      }
      __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_hId); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 208, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_hexId, __pyx_t_5); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 208, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    +209:     eltype[hId] = 6

      if (unlikely(__pyx_v_eltype == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 209, __pyx_L1_error)
      }
      __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_hId); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 209, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (unlikely(PyDict_SetItem(__pyx_v_eltype, __pyx_t_5, __pyx_int_6) < 0)) __PYX_ERR(0, 209, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    +210:     lin = inl[cnt1]

      if (unlikely(__pyx_v_inl == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 210, __pyx_L1_error)
      }
      __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_inl, __pyx_v_cnt1, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 210, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (!(likely(PyUnicode_CheckExact(__pyx_t_5))||((__pyx_t_5) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_t_5)->tp_name), 0))) __PYX_ERR(0, 210, __pyx_L1_error)
      __Pyx_DECREF_SET(__pyx_v_lin, ((PyObject*)__pyx_t_5));
      __pyx_t_5 = 0;

    +211:     cnt1 = cnt1 + 1

      __pyx_v_cnt1 = (__pyx_v_cnt1 + 1);

    +212:     nl.append(int(lin[8:16]))

      if (unlikely(__pyx_v_lin == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 212, __pyx_L1_error)
      }
      __pyx_t_5 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 8, 16); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 212, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 212, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_6); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 212, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    +213:     nl.append(int(lin[16:24]))

      if (unlikely(__pyx_v_lin == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 213, __pyx_L1_error)
      }
      __pyx_t_6 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 16, 24); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 213, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 213, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_5); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 213, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    +214:     g = 0

      __pyx_v_g = 0;

    +215:     while g < 8:

      while (1) {
        __pyx_t_3 = ((__pyx_v_g < 8) != 0);
        if (!__pyx_t_3) break;

    +216:         if nl[g] in TopList:

        __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_nl, __pyx_v_g, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 216, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        if (unlikely(__pyx_v_TopList == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
          __PYX_ERR(0, 216, __pyx_L1_error)
        }
        __pyx_t_3 = (__Pyx_PySet_ContainsTF(__pyx_t_5, __pyx_v_TopList, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 216, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_4 = (__pyx_t_3 != 0);
        if (__pyx_t_4) {
    /* … */
        }

    +217:             nl[g] = eqDict[nl[g]]

          if (unlikely(__pyx_v_eqDict == Py_None)) {
            PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
            __PYX_ERR(0, 217, __pyx_L1_error)
          }
          __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_nl, __pyx_v_g, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 217, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __pyx_t_6 = __Pyx_PyDict_GetItem(__pyx_v_eqDict, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 217, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(__Pyx_SetItemInt(__pyx_v_nl, __pyx_v_g, __pyx_t_6, int, 1, __Pyx_PyInt_From_int, 1, 1, 1) < 0)) __PYX_ERR(0, 217, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    +218:             BoltElList.add(hId)

          if (unlikely(__pyx_v_BoltElList == Py_None)) {
            PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "add");
            __PYX_ERR(0, 218, __pyx_L1_error)
          }
          __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_hId); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 218, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_8 = PySet_Add(__pyx_v_BoltElList, __pyx_t_6); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 218, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    +219:         g = g + 1

        __pyx_v_g = (__pyx_v_g + 1);
      }

    +220:     if horder == 2 :

      __pyx_t_4 = ((__pyx_v_horder == 2) != 0);
      if (__pyx_t_4) {
    /* … */
        goto __pyx_L14;
      }

    +221:         nl.append(int(lin[24:32]))

        if (unlikely(__pyx_v_lin == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 221, __pyx_L1_error)
        }
        __pyx_t_6 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 24, 32); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 221, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 221, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_5); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 221, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    +222:         nl.append(int(lin[32:40]))

        if (unlikely(__pyx_v_lin == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 222, __pyx_L1_error)
        }
        __pyx_t_5 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 32, 40); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 222, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 222, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_6); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 222, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    +223:         nl.append(int(lin[40:48]))

        if (unlikely(__pyx_v_lin == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 223, __pyx_L1_error)
        }
        __pyx_t_6 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 40, 48); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 223, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 223, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_5); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 223, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    +224:         nl.append(int(lin[48:56]))

        if (unlikely(__pyx_v_lin == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 224, __pyx_L1_error)
        }
        __pyx_t_5 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 48, 56); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 224, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 224, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_6); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 224, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    +225:         nl.append(int(lin[56:64]))

        if (unlikely(__pyx_v_lin == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 225, __pyx_L1_error)
        }
        __pyx_t_6 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 56, 64); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 225, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 225, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_5); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 225, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    +226:         nl.append(int(lin[64:72]))

        if (unlikely(__pyx_v_lin == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 226, __pyx_L1_error)
        }
        __pyx_t_5 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 64, 72); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 226, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 226, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_6); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 226, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    +227:         lin = inl[cnt1]

        if (unlikely(__pyx_v_inl == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 227, __pyx_L1_error)
        }
        __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_inl, __pyx_v_cnt1, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 227, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        if (!(likely(PyUnicode_CheckExact(__pyx_t_6))||((__pyx_t_6) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_t_6)->tp_name), 0))) __PYX_ERR(0, 227, __pyx_L1_error)
        __Pyx_DECREF_SET(__pyx_v_lin, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

    +228:         cnt1 = cnt1 + 1

        __pyx_v_cnt1 = (__pyx_v_cnt1 + 1);

    +229:         nl.append(int(lin[8:16]))

        if (unlikely(__pyx_v_lin == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 229, __pyx_L1_error)
        }
        __pyx_t_6 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 8, 16); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 229, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 229, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_5); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 229, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    +230:         nl.append(int(lin[16:24]))

        if (unlikely(__pyx_v_lin == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 230, __pyx_L1_error)
        }
        __pyx_t_5 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 16, 24); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 230, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 230, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_6); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 230, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    +231:         nl.append(int(lin[24:32]))

        if (unlikely(__pyx_v_lin == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 231, __pyx_L1_error)
        }
        __pyx_t_6 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 24, 32); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 231, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 231, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_5); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 231, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    +232:         nl.append(int(lin[32:40]))

        if (unlikely(__pyx_v_lin == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 232, __pyx_L1_error)
        }
        __pyx_t_5 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 32, 40); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 232, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 232, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_6); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 232, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    +233:         nl.append(int(lin[40:48]))

        if (unlikely(__pyx_v_lin == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 233, __pyx_L1_error)
        }
        __pyx_t_6 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 40, 48); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 233, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 233, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_5); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 233, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    +234:         nl.append(int(lin[48:56]))

        if (unlikely(__pyx_v_lin == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 234, __pyx_L1_error)
        }
        __pyx_t_5 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 48, 56); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 234, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 234, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_nl, __pyx_t_6); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 234, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    +235:         g = 8

        __pyx_v_g = 8;

    +236:         while g < 20:

        while (1) {
          __pyx_t_4 = ((__pyx_v_g < 20) != 0);
          if (!__pyx_t_4) break;

    +237:             if nl[g] in TopList:

          __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_nl, __pyx_v_g, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 237, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          if (unlikely(__pyx_v_TopList == Py_None)) {
            PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
            __PYX_ERR(0, 237, __pyx_L1_error)
          }
          __pyx_t_4 = (__Pyx_PySet_ContainsTF(__pyx_t_6, __pyx_v_TopList, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 237, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_3 = (__pyx_t_4 != 0);
          if (__pyx_t_3) {
    /* … */
          }

    +238:                 nl[g] = eqDict[nl[g]]

            if (unlikely(__pyx_v_eqDict == Py_None)) {
              PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
              __PYX_ERR(0, 238, __pyx_L1_error)
            }
            __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_nl, __pyx_v_g, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 238, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_6);
            __pyx_t_5 = __Pyx_PyDict_GetItem(__pyx_v_eqDict, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 238, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
            if (unlikely(__Pyx_SetItemInt(__pyx_v_nl, __pyx_v_g, __pyx_t_5, int, 1, __Pyx_PyInt_From_int, 1, 1, 1) < 0)) __PYX_ERR(0, 238, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    +239:                 BoltElList.add(hId)

            if (unlikely(__pyx_v_BoltElList == Py_None)) {
              PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "add");
              __PYX_ERR(0, 239, __pyx_L1_error)
            }
            __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_hId); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 239, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
            __pyx_t_8 = PySet_Add(__pyx_v_BoltElList, __pyx_t_5); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 239, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    +240:             g = g + 1

          __pyx_v_g = (__pyx_v_g + 1);
        }

    +241:         tmp = '%8i,%8i,%8i,%8i,%8i,%8i,%8i,%8i,%8i,%8i,%8i,\n%8i,%8i,%8i,%8i,%8i,%8i,%8i,%8i,%8i,%8i\n' % (

        __pyx_t_28 = PyUnicode_Format(__pyx_kp_u_8i_8i_8i_8i_8i_8i_8i_8i_8i_8i_8_2, __pyx_t_29); if (unlikely(!__pyx_t_28)) __PYX_ERR(0, 241, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_28);
        __Pyx_DECREF(__pyx_t_29); __pyx_t_29 = 0;
        __Pyx_XDECREF_SET(__pyx_v_tmp, ((PyObject*)__pyx_t_28));
        __pyx_t_28 = 0;

    +242:             hId, nl[0], nl[1], nl[2], nl[3], nl[4], nl[5], nl[6], nl[7], nl[8], nl[9], nl[10], nl[11],

        __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_hId); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 242, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_nl, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 242, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_GetItemInt_List(__pyx_v_nl, 1, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 242, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_11 = __Pyx_GetItemInt_List(__pyx_v_nl, 2, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 242, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_11);
        __pyx_t_12 = __Pyx_GetItemInt_List(__pyx_v_nl, 3, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 242, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_12);
        __pyx_t_13 = __Pyx_GetItemInt_List(__pyx_v_nl, 4, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 242, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_13);
        __pyx_t_14 = __Pyx_GetItemInt_List(__pyx_v_nl, 5, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 242, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        __pyx_t_15 = __Pyx_GetItemInt_List(__pyx_v_nl, 6, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 242, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_15);
        __pyx_t_16 = __Pyx_GetItemInt_List(__pyx_v_nl, 7, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 242, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_16);
        __pyx_t_17 = __Pyx_GetItemInt_List(__pyx_v_nl, 8, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 242, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_17);
        __pyx_t_18 = __Pyx_GetItemInt_List(__pyx_v_nl, 9, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 242, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_18);
        __pyx_t_19 = __Pyx_GetItemInt_List(__pyx_v_nl, 10, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 242, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_19);
        __pyx_t_20 = __Pyx_GetItemInt_List(__pyx_v_nl, 11, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 242, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_20);
    /* … */
        __pyx_t_29 = PyTuple_New(21); if (unlikely(!__pyx_t_29)) __PYX_ERR(0, 242, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_29);
        __Pyx_GIVEREF(__pyx_t_5);
        PyTuple_SET_ITEM(__pyx_t_29, 0, __pyx_t_5);
        __Pyx_GIVEREF(__pyx_t_6);
        PyTuple_SET_ITEM(__pyx_t_29, 1, __pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        PyTuple_SET_ITEM(__pyx_t_29, 2, __pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_11);
        PyTuple_SET_ITEM(__pyx_t_29, 3, __pyx_t_11);
        __Pyx_GIVEREF(__pyx_t_12);
        PyTuple_SET_ITEM(__pyx_t_29, 4, __pyx_t_12);
        __Pyx_GIVEREF(__pyx_t_13);
        PyTuple_SET_ITEM(__pyx_t_29, 5, __pyx_t_13);
        __Pyx_GIVEREF(__pyx_t_14);
        PyTuple_SET_ITEM(__pyx_t_29, 6, __pyx_t_14);
        __Pyx_GIVEREF(__pyx_t_15);
        PyTuple_SET_ITEM(__pyx_t_29, 7, __pyx_t_15);
        __Pyx_GIVEREF(__pyx_t_16);
        PyTuple_SET_ITEM(__pyx_t_29, 8, __pyx_t_16);
        __Pyx_GIVEREF(__pyx_t_17);
        PyTuple_SET_ITEM(__pyx_t_29, 9, __pyx_t_17);
        __Pyx_GIVEREF(__pyx_t_18);
        PyTuple_SET_ITEM(__pyx_t_29, 10, __pyx_t_18);
        __Pyx_GIVEREF(__pyx_t_19);
        PyTuple_SET_ITEM(__pyx_t_29, 11, __pyx_t_19);
        __Pyx_GIVEREF(__pyx_t_20);
        PyTuple_SET_ITEM(__pyx_t_29, 12, __pyx_t_20);
        __Pyx_GIVEREF(__pyx_t_21);
        PyTuple_SET_ITEM(__pyx_t_29, 13, __pyx_t_21);
        __Pyx_GIVEREF(__pyx_t_22);
        PyTuple_SET_ITEM(__pyx_t_29, 14, __pyx_t_22);
        __Pyx_GIVEREF(__pyx_t_23);
        PyTuple_SET_ITEM(__pyx_t_29, 15, __pyx_t_23);
        __Pyx_GIVEREF(__pyx_t_24);
        PyTuple_SET_ITEM(__pyx_t_29, 16, __pyx_t_24);
        __Pyx_GIVEREF(__pyx_t_25);
        PyTuple_SET_ITEM(__pyx_t_29, 17, __pyx_t_25);
        __Pyx_GIVEREF(__pyx_t_26);
        PyTuple_SET_ITEM(__pyx_t_29, 18, __pyx_t_26);
        __Pyx_GIVEREF(__pyx_t_27);
        PyTuple_SET_ITEM(__pyx_t_29, 19, __pyx_t_27);
        __Pyx_GIVEREF(__pyx_t_28);
        PyTuple_SET_ITEM(__pyx_t_29, 20, __pyx_t_28);
        __pyx_t_5 = 0;
        __pyx_t_6 = 0;
        __pyx_t_2 = 0;
        __pyx_t_11 = 0;
        __pyx_t_12 = 0;
        __pyx_t_13 = 0;
        __pyx_t_14 = 0;
        __pyx_t_15 = 0;
        __pyx_t_16 = 0;
        __pyx_t_17 = 0;
        __pyx_t_18 = 0;
        __pyx_t_19 = 0;
        __pyx_t_20 = 0;
        __pyx_t_21 = 0;
        __pyx_t_22 = 0;
        __pyx_t_23 = 0;
        __pyx_t_24 = 0;
        __pyx_t_25 = 0;
        __pyx_t_26 = 0;
        __pyx_t_27 = 0;
        __pyx_t_28 = 0;

    +243:             nl[16], nl[17], nl[18], nl[19], nl[12], nl[13], nl[14], nl[15])

        __pyx_t_21 = __Pyx_GetItemInt_List(__pyx_v_nl, 16, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_21)) __PYX_ERR(0, 243, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_21);
        __pyx_t_22 = __Pyx_GetItemInt_List(__pyx_v_nl, 17, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_22)) __PYX_ERR(0, 243, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_22);
        __pyx_t_23 = __Pyx_GetItemInt_List(__pyx_v_nl, 18, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_23)) __PYX_ERR(0, 243, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_23);
        __pyx_t_24 = __Pyx_GetItemInt_List(__pyx_v_nl, 19, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_24)) __PYX_ERR(0, 243, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_24);
        __pyx_t_25 = __Pyx_GetItemInt_List(__pyx_v_nl, 12, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_25)) __PYX_ERR(0, 243, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_25);
        __pyx_t_26 = __Pyx_GetItemInt_List(__pyx_v_nl, 13, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_26)) __PYX_ERR(0, 243, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_26);
        __pyx_t_27 = __Pyx_GetItemInt_List(__pyx_v_nl, 14, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_27)) __PYX_ERR(0, 243, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_27);
        __pyx_t_28 = __Pyx_GetItemInt_List(__pyx_v_nl, 15, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_28)) __PYX_ERR(0, 243, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_28);

     244:     else :

    +245:         tmp = '%8i,%8i,%8i,%8i,%8i,%8i,%8i,%8i,%8i\n' % (

      /*else*/ {
    /* … */
        __pyx_t_21 = PyUnicode_Format(__pyx_kp_u_8i_8i_8i_8i_8i_8i_8i_8i_8i, __pyx_t_20); if (unlikely(!__pyx_t_21)) __PYX_ERR(0, 245, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_21);
        __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
        __Pyx_XDECREF_SET(__pyx_v_tmp, ((PyObject*)__pyx_t_21));
        __pyx_t_21 = 0;
      }
      __pyx_L14:;

    +246:         hId, nl[0], nl[1], nl[2], nl[3], nl[4], nl[5], nl[6], nl[7])

        __pyx_t_28 = __Pyx_PyInt_From_int(__pyx_v_hId); if (unlikely(!__pyx_t_28)) __PYX_ERR(0, 246, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_28);
        __pyx_t_29 = __Pyx_GetItemInt_List(__pyx_v_nl, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_29)) __PYX_ERR(0, 246, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_29);
        __pyx_t_27 = __Pyx_GetItemInt_List(__pyx_v_nl, 1, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_27)) __PYX_ERR(0, 246, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_27);
        __pyx_t_26 = __Pyx_GetItemInt_List(__pyx_v_nl, 2, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_26)) __PYX_ERR(0, 246, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_26);
        __pyx_t_25 = __Pyx_GetItemInt_List(__pyx_v_nl, 3, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_25)) __PYX_ERR(0, 246, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_25);
        __pyx_t_24 = __Pyx_GetItemInt_List(__pyx_v_nl, 4, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_24)) __PYX_ERR(0, 246, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_24);
        __pyx_t_23 = __Pyx_GetItemInt_List(__pyx_v_nl, 5, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_23)) __PYX_ERR(0, 246, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_23);
        __pyx_t_22 = __Pyx_GetItemInt_List(__pyx_v_nl, 6, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_22)) __PYX_ERR(0, 246, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_22);
        __pyx_t_21 = __Pyx_GetItemInt_List(__pyx_v_nl, 7, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_21)) __PYX_ERR(0, 246, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_21);
        __pyx_t_20 = PyTuple_New(9); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 246, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_20);
        __Pyx_GIVEREF(__pyx_t_28);
        PyTuple_SET_ITEM(__pyx_t_20, 0, __pyx_t_28);
        __Pyx_GIVEREF(__pyx_t_29);
        PyTuple_SET_ITEM(__pyx_t_20, 1, __pyx_t_29);
        __Pyx_GIVEREF(__pyx_t_27);
        PyTuple_SET_ITEM(__pyx_t_20, 2, __pyx_t_27);
        __Pyx_GIVEREF(__pyx_t_26);
        PyTuple_SET_ITEM(__pyx_t_20, 3, __pyx_t_26);
        __Pyx_GIVEREF(__pyx_t_25);
        PyTuple_SET_ITEM(__pyx_t_20, 4, __pyx_t_25);
        __Pyx_GIVEREF(__pyx_t_24);
        PyTuple_SET_ITEM(__pyx_t_20, 5, __pyx_t_24);
        __Pyx_GIVEREF(__pyx_t_23);
        PyTuple_SET_ITEM(__pyx_t_20, 6, __pyx_t_23);
        __Pyx_GIVEREF(__pyx_t_22);
        PyTuple_SET_ITEM(__pyx_t_20, 7, __pyx_t_22);
        __Pyx_GIVEREF(__pyx_t_21);
        PyTuple_SET_ITEM(__pyx_t_20, 8, __pyx_t_21);
        __pyx_t_28 = 0;
        __pyx_t_29 = 0;
        __pyx_t_27 = 0;
        __pyx_t_26 = 0;
        __pyx_t_25 = 0;
        __pyx_t_24 = 0;
        __pyx_t_23 = 0;
        __pyx_t_22 = 0;
        __pyx_t_21 = 0;

    +247:     out_strs.append(tmp)

      __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_out_strs, __pyx_v_tmp); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 247, __pyx_L1_error)

    +248:     hexFace[hId, 1] = [nl[0], nl[3], nl[2], nl[1]]

      __pyx_t_21 = __Pyx_GetItemInt_List(__pyx_v_nl, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_21)) __PYX_ERR(0, 248, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_21);
      __pyx_t_20 = __Pyx_GetItemInt_List(__pyx_v_nl, 3, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 248, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_20);
      __pyx_t_22 = __Pyx_GetItemInt_List(__pyx_v_nl, 2, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_22)) __PYX_ERR(0, 248, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_22);
      __pyx_t_23 = __Pyx_GetItemInt_List(__pyx_v_nl, 1, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_23)) __PYX_ERR(0, 248, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_23);
      __pyx_t_24 = PyList_New(4); if (unlikely(!__pyx_t_24)) __PYX_ERR(0, 248, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_24);
      __Pyx_GIVEREF(__pyx_t_21);
      PyList_SET_ITEM(__pyx_t_24, 0, __pyx_t_21);
      __Pyx_GIVEREF(__pyx_t_20);
      PyList_SET_ITEM(__pyx_t_24, 1, __pyx_t_20);
      __Pyx_GIVEREF(__pyx_t_22);
      PyList_SET_ITEM(__pyx_t_24, 2, __pyx_t_22);
      __Pyx_GIVEREF(__pyx_t_23);
      PyList_SET_ITEM(__pyx_t_24, 3, __pyx_t_23);
      __pyx_t_21 = 0;
      __pyx_t_20 = 0;
      __pyx_t_22 = 0;
      __pyx_t_23 = 0;
      if (unlikely(__pyx_v_hexFace == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 248, __pyx_L1_error)
      }
      __pyx_t_23 = __Pyx_PyInt_From_int(__pyx_v_hId); if (unlikely(!__pyx_t_23)) __PYX_ERR(0, 248, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_23);
      __pyx_t_22 = PyTuple_New(2); if (unlikely(!__pyx_t_22)) __PYX_ERR(0, 248, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_22);
      __Pyx_GIVEREF(__pyx_t_23);
      PyTuple_SET_ITEM(__pyx_t_22, 0, __pyx_t_23);
      __Pyx_INCREF(__pyx_int_1);
      __Pyx_GIVEREF(__pyx_int_1);
      PyTuple_SET_ITEM(__pyx_t_22, 1, __pyx_int_1);
      __pyx_t_23 = 0;
      if (unlikely(PyDict_SetItem(__pyx_v_hexFace, __pyx_t_22, __pyx_t_24) < 0)) __PYX_ERR(0, 248, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_22); __pyx_t_22 = 0;
      __Pyx_DECREF(__pyx_t_24); __pyx_t_24 = 0;

    +249:     hexFace[hId, 3] = [nl[0], nl[1], nl[5], nl[4]]

      __pyx_t_24 = __Pyx_GetItemInt_List(__pyx_v_nl, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_24)) __PYX_ERR(0, 249, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_24);
      __pyx_t_22 = __Pyx_GetItemInt_List(__pyx_v_nl, 1, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_22)) __PYX_ERR(0, 249, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_22);
      __pyx_t_23 = __Pyx_GetItemInt_List(__pyx_v_nl, 5, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_23)) __PYX_ERR(0, 249, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_23);
      __pyx_t_20 = __Pyx_GetItemInt_List(__pyx_v_nl, 4, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 249, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_20);
      __pyx_t_21 = PyList_New(4); if (unlikely(!__pyx_t_21)) __PYX_ERR(0, 249, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_21);
      __Pyx_GIVEREF(__pyx_t_24);
      PyList_SET_ITEM(__pyx_t_21, 0, __pyx_t_24);
      __Pyx_GIVEREF(__pyx_t_22);
      PyList_SET_ITEM(__pyx_t_21, 1, __pyx_t_22);
      __Pyx_GIVEREF(__pyx_t_23);
      PyList_SET_ITEM(__pyx_t_21, 2, __pyx_t_23);
      __Pyx_GIVEREF(__pyx_t_20);
      PyList_SET_ITEM(__pyx_t_21, 3, __pyx_t_20);
      __pyx_t_24 = 0;
      __pyx_t_22 = 0;
      __pyx_t_23 = 0;
      __pyx_t_20 = 0;
      if (unlikely(__pyx_v_hexFace == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 249, __pyx_L1_error)
      }
      __pyx_t_20 = __Pyx_PyInt_From_int(__pyx_v_hId); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 249, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_20);
      __pyx_t_23 = PyTuple_New(2); if (unlikely(!__pyx_t_23)) __PYX_ERR(0, 249, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_23);
      __Pyx_GIVEREF(__pyx_t_20);
      PyTuple_SET_ITEM(__pyx_t_23, 0, __pyx_t_20);
      __Pyx_INCREF(__pyx_int_3);
      __Pyx_GIVEREF(__pyx_int_3);
      PyTuple_SET_ITEM(__pyx_t_23, 1, __pyx_int_3);
      __pyx_t_20 = 0;
      if (unlikely(PyDict_SetItem(__pyx_v_hexFace, __pyx_t_23, __pyx_t_21) < 0)) __PYX_ERR(0, 249, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0;
      __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;

    +250:     hexFace[hId, 6] = [nl[0], nl[4], nl[7], nl[3]]

      __pyx_t_21 = __Pyx_GetItemInt_List(__pyx_v_nl, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_21)) __PYX_ERR(0, 250, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_21);
      __pyx_t_23 = __Pyx_GetItemInt_List(__pyx_v_nl, 4, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_23)) __PYX_ERR(0, 250, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_23);
      __pyx_t_20 = __Pyx_GetItemInt_List(__pyx_v_nl, 7, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 250, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_20);
      __pyx_t_22 = __Pyx_GetItemInt_List(__pyx_v_nl, 3, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_22)) __PYX_ERR(0, 250, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_22);
      __pyx_t_24 = PyList_New(4); if (unlikely(!__pyx_t_24)) __PYX_ERR(0, 250, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_24);
      __Pyx_GIVEREF(__pyx_t_21);
      PyList_SET_ITEM(__pyx_t_24, 0, __pyx_t_21);
      __Pyx_GIVEREF(__pyx_t_23);
      PyList_SET_ITEM(__pyx_t_24, 1, __pyx_t_23);
      __Pyx_GIVEREF(__pyx_t_20);
      PyList_SET_ITEM(__pyx_t_24, 2, __pyx_t_20);
      __Pyx_GIVEREF(__pyx_t_22);
      PyList_SET_ITEM(__pyx_t_24, 3, __pyx_t_22);
      __pyx_t_21 = 0;
      __pyx_t_23 = 0;
      __pyx_t_20 = 0;
      __pyx_t_22 = 0;
      if (unlikely(__pyx_v_hexFace == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 250, __pyx_L1_error)
      }
      __pyx_t_22 = __Pyx_PyInt_From_int(__pyx_v_hId); if (unlikely(!__pyx_t_22)) __PYX_ERR(0, 250, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_22);
      __pyx_t_20 = PyTuple_New(2); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 250, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_20);
      __Pyx_GIVEREF(__pyx_t_22);
      PyTuple_SET_ITEM(__pyx_t_20, 0, __pyx_t_22);
      __Pyx_INCREF(__pyx_int_6);
      __Pyx_GIVEREF(__pyx_int_6);
      PyTuple_SET_ITEM(__pyx_t_20, 1, __pyx_int_6);
      __pyx_t_22 = 0;
      if (unlikely(PyDict_SetItem(__pyx_v_hexFace, __pyx_t_20, __pyx_t_24) < 0)) __PYX_ERR(0, 250, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
      __Pyx_DECREF(__pyx_t_24); __pyx_t_24 = 0;

    +251:     hexFace[hId, 4] = [nl[1], nl[2], nl[6], nl[5]]

      __pyx_t_24 = __Pyx_GetItemInt_List(__pyx_v_nl, 1, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_24)) __PYX_ERR(0, 251, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_24);
      __pyx_t_20 = __Pyx_GetItemInt_List(__pyx_v_nl, 2, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 251, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_20);
      __pyx_t_22 = __Pyx_GetItemInt_List(__pyx_v_nl, 6, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_22)) __PYX_ERR(0, 251, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_22);
      __pyx_t_23 = __Pyx_GetItemInt_List(__pyx_v_nl, 5, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_23)) __PYX_ERR(0, 251, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_23);
      __pyx_t_21 = PyList_New(4); if (unlikely(!__pyx_t_21)) __PYX_ERR(0, 251, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_21);
      __Pyx_GIVEREF(__pyx_t_24);
      PyList_SET_ITEM(__pyx_t_21, 0, __pyx_t_24);
      __Pyx_GIVEREF(__pyx_t_20);
      PyList_SET_ITEM(__pyx_t_21, 1, __pyx_t_20);
      __Pyx_GIVEREF(__pyx_t_22);
      PyList_SET_ITEM(__pyx_t_21, 2, __pyx_t_22);
      __Pyx_GIVEREF(__pyx_t_23);
      PyList_SET_ITEM(__pyx_t_21, 3, __pyx_t_23);
      __pyx_t_24 = 0;
      __pyx_t_20 = 0;
      __pyx_t_22 = 0;
      __pyx_t_23 = 0;
      if (unlikely(__pyx_v_hexFace == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 251, __pyx_L1_error)
      }
      __pyx_t_23 = __Pyx_PyInt_From_int(__pyx_v_hId); if (unlikely(!__pyx_t_23)) __PYX_ERR(0, 251, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_23);
      __pyx_t_22 = PyTuple_New(2); if (unlikely(!__pyx_t_22)) __PYX_ERR(0, 251, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_22);
      __Pyx_GIVEREF(__pyx_t_23);
      PyTuple_SET_ITEM(__pyx_t_22, 0, __pyx_t_23);
      __Pyx_INCREF(__pyx_int_4);
      __Pyx_GIVEREF(__pyx_int_4);
      PyTuple_SET_ITEM(__pyx_t_22, 1, __pyx_int_4);
      __pyx_t_23 = 0;
      if (unlikely(PyDict_SetItem(__pyx_v_hexFace, __pyx_t_22, __pyx_t_21) < 0)) __PYX_ERR(0, 251, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_22); __pyx_t_22 = 0;
      __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;

    +252:     hexFace[hId, 5] = [nl[2], nl[3], nl[6], nl[7]]

      __pyx_t_21 = __Pyx_GetItemInt_List(__pyx_v_nl, 2, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_21)) __PYX_ERR(0, 252, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_21);
      __pyx_t_22 = __Pyx_GetItemInt_List(__pyx_v_nl, 3, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_22)) __PYX_ERR(0, 252, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_22);
      __pyx_t_23 = __Pyx_GetItemInt_List(__pyx_v_nl, 6, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_23)) __PYX_ERR(0, 252, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_23);
      __pyx_t_20 = __Pyx_GetItemInt_List(__pyx_v_nl, 7, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 252, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_20);
      __pyx_t_24 = PyList_New(4); if (unlikely(!__pyx_t_24)) __PYX_ERR(0, 252, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_24);
      __Pyx_GIVEREF(__pyx_t_21);
      PyList_SET_ITEM(__pyx_t_24, 0, __pyx_t_21);
      __Pyx_GIVEREF(__pyx_t_22);
      PyList_SET_ITEM(__pyx_t_24, 1, __pyx_t_22);
      __Pyx_GIVEREF(__pyx_t_23);
      PyList_SET_ITEM(__pyx_t_24, 2, __pyx_t_23);
      __Pyx_GIVEREF(__pyx_t_20);
      PyList_SET_ITEM(__pyx_t_24, 3, __pyx_t_20);
      __pyx_t_21 = 0;
      __pyx_t_22 = 0;
      __pyx_t_23 = 0;
      __pyx_t_20 = 0;
      if (unlikely(__pyx_v_hexFace == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 252, __pyx_L1_error)
      }
      __pyx_t_20 = __Pyx_PyInt_From_int(__pyx_v_hId); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 252, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_20);
      __pyx_t_23 = PyTuple_New(2); if (unlikely(!__pyx_t_23)) __PYX_ERR(0, 252, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_23);
      __Pyx_GIVEREF(__pyx_t_20);
      PyTuple_SET_ITEM(__pyx_t_23, 0, __pyx_t_20);
      __Pyx_INCREF(__pyx_int_5);
      __Pyx_GIVEREF(__pyx_int_5);
      PyTuple_SET_ITEM(__pyx_t_23, 1, __pyx_int_5);
      __pyx_t_20 = 0;
      if (unlikely(PyDict_SetItem(__pyx_v_hexFace, __pyx_t_23, __pyx_t_24) < 0)) __PYX_ERR(0, 252, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0;
      __Pyx_DECREF(__pyx_t_24); __pyx_t_24 = 0;

    +253:     hexFace[hId, 2] = [nl[4], nl[5], nl[6], nl[7]]

      __pyx_t_24 = __Pyx_GetItemInt_List(__pyx_v_nl, 4, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_24)) __PYX_ERR(0, 253, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_24);
      __pyx_t_23 = __Pyx_GetItemInt_List(__pyx_v_nl, 5, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_23)) __PYX_ERR(0, 253, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_23);
      __pyx_t_20 = __Pyx_GetItemInt_List(__pyx_v_nl, 6, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 253, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_20);
      __pyx_t_22 = __Pyx_GetItemInt_List(__pyx_v_nl, 7, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_22)) __PYX_ERR(0, 253, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_22);
      __pyx_t_21 = PyList_New(4); if (unlikely(!__pyx_t_21)) __PYX_ERR(0, 253, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_21);
      __Pyx_GIVEREF(__pyx_t_24);
      PyList_SET_ITEM(__pyx_t_21, 0, __pyx_t_24);
      __Pyx_GIVEREF(__pyx_t_23);
      PyList_SET_ITEM(__pyx_t_21, 1, __pyx_t_23);
      __Pyx_GIVEREF(__pyx_t_20);
      PyList_SET_ITEM(__pyx_t_21, 2, __pyx_t_20);
      __Pyx_GIVEREF(__pyx_t_22);
      PyList_SET_ITEM(__pyx_t_21, 3, __pyx_t_22);
      __pyx_t_24 = 0;
      __pyx_t_23 = 0;
      __pyx_t_20 = 0;
      __pyx_t_22 = 0;
      if (unlikely(__pyx_v_hexFace == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 253, __pyx_L1_error)
      }
      __pyx_t_22 = __Pyx_PyInt_From_int(__pyx_v_hId); if (unlikely(!__pyx_t_22)) __PYX_ERR(0, 253, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_22);
      __pyx_t_20 = PyTuple_New(2); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 253, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_20);
      __Pyx_GIVEREF(__pyx_t_22);
      PyTuple_SET_ITEM(__pyx_t_20, 0, __pyx_t_22);
      __Pyx_INCREF(__pyx_int_2);
      __Pyx_GIVEREF(__pyx_int_2);
      PyTuple_SET_ITEM(__pyx_t_20, 1, __pyx_int_2);
      __pyx_t_22 = 0;
      if (unlikely(PyDict_SetItem(__pyx_v_hexFace, __pyx_t_20, __pyx_t_21) < 0)) __PYX_ERR(0, 253, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
      __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;

    +254:     return cnt1, cpid, hId, out_strs, eflaghex, nl

      __Pyx_XDECREF(__pyx_r);
      __pyx_t_21 = __Pyx_PyInt_From_int(__pyx_v_cnt1); if (unlikely(!__pyx_t_21)) __PYX_ERR(0, 254, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_21);
      __pyx_t_20 = __Pyx_PyInt_From_int(__pyx_v_cpid); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 254, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_20);
      __pyx_t_22 = __Pyx_PyInt_From_int(__pyx_v_hId); if (unlikely(!__pyx_t_22)) __PYX_ERR(0, 254, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_22);
      __pyx_t_23 = __Pyx_PyInt_From_int(__pyx_v_eflaghex); if (unlikely(!__pyx_t_23)) __PYX_ERR(0, 254, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_23);
      __pyx_t_24 = PyTuple_New(6); if (unlikely(!__pyx_t_24)) __PYX_ERR(0, 254, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_24);
      __Pyx_GIVEREF(__pyx_t_21);
      PyTuple_SET_ITEM(__pyx_t_24, 0, __pyx_t_21);
      __Pyx_GIVEREF(__pyx_t_20);
      PyTuple_SET_ITEM(__pyx_t_24, 1, __pyx_t_20);
      __Pyx_GIVEREF(__pyx_t_22);
      PyTuple_SET_ITEM(__pyx_t_24, 2, __pyx_t_22);
      __Pyx_INCREF(__pyx_v_out_strs);
      __Pyx_GIVEREF(__pyx_v_out_strs);
      PyTuple_SET_ITEM(__pyx_t_24, 3, __pyx_v_out_strs);
      __Pyx_GIVEREF(__pyx_t_23);
      PyTuple_SET_ITEM(__pyx_t_24, 4, __pyx_t_23);
      __Pyx_INCREF(__pyx_v_nl);
      __Pyx_GIVEREF(__pyx_v_nl);
      PyTuple_SET_ITEM(__pyx_t_24, 5, __pyx_v_nl);
      __pyx_t_21 = 0;
      __pyx_t_20 = 0;
      __pyx_t_22 = 0;
      __pyx_t_23 = 0;
      __pyx_r = __pyx_t_24;
      __pyx_t_24 = 0;
      goto __pyx_L0;

     255:

    +256: def process_cquad4(int cpid, int eflagq, dict eltype, str lin, dict matInteg, dict pShlDict, str partName, dict pidname):

    /* Python wrapper */
    static PyObject *__pyx_pw_5utils_11cython_impl_7process_cquad4(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
    static PyMethodDef __pyx_mdef_5utils_11cython_impl_7process_cquad4 = {"process_cquad4", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5utils_11cython_impl_7process_cquad4, METH_VARARGS|METH_KEYWORDS, 0};
    static PyObject *__pyx_pw_5utils_11cython_impl_7process_cquad4(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
      int __pyx_v_cpid;
      int __pyx_v_eflagq;
      PyObject *__pyx_v_eltype = 0;
      PyObject *__pyx_v_lin = 0;
      PyObject *__pyx_v_matInteg = 0;
      PyObject *__pyx_v_pShlDict = 0;
      PyObject *__pyx_v_partName = 0;
      PyObject *__pyx_v_pidname = 0;
      PyObject *__pyx_r = 0;
      __Pyx_RefNannyDeclarations
      __Pyx_RefNannySetupContext("process_cquad4 (wrapper)", 0);
      {
        static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_cpid,&__pyx_n_s_eflagq,&__pyx_n_s_eltype,&__pyx_n_s_lin,&__pyx_n_s_matInteg,&__pyx_n_s_pShlDict,&__pyx_n_s_partName,&__pyx_n_s_pidname,0};
        PyObject* values[8] = {0,0,0,0,0,0,0,0};
        if (unlikely(__pyx_kwds)) {
          Py_ssize_t kw_args;
          const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
          switch (pos_args) {
            case  8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
            CYTHON_FALLTHROUGH;
            case  7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
            CYTHON_FALLTHROUGH;
            case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
            CYTHON_FALLTHROUGH;
            case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
            CYTHON_FALLTHROUGH;
            case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
            CYTHON_FALLTHROUGH;
            case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
            CYTHON_FALLTHROUGH;
            case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
            CYTHON_FALLTHROUGH;
            case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
            CYTHON_FALLTHROUGH;
            case  0: break;
            default: goto __pyx_L5_argtuple_error;
          }
          kw_args = PyDict_Size(__pyx_kwds);
          switch (pos_args) {
            case  0:
            if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cpid)) != 0)) kw_args--;
            else goto __pyx_L5_argtuple_error;
            CYTHON_FALLTHROUGH;
            case  1:
            if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eflagq)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_cquad4", 1, 8, 8, 1); __PYX_ERR(0, 256, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case  2:
            if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eltype)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_cquad4", 1, 8, 8, 2); __PYX_ERR(0, 256, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case  3:
            if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_lin)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_cquad4", 1, 8, 8, 3); __PYX_ERR(0, 256, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case  4:
            if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_matInteg)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_cquad4", 1, 8, 8, 4); __PYX_ERR(0, 256, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case  5:
            if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pShlDict)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_cquad4", 1, 8, 8, 5); __PYX_ERR(0, 256, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case  6:
            if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_partName)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_cquad4", 1, 8, 8, 6); __PYX_ERR(0, 256, __pyx_L3_error)
            }
            CYTHON_FALLTHROUGH;
            case  7:
            if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pidname)) != 0)) kw_args--;
            else {
              __Pyx_RaiseArgtupleInvalid("process_cquad4", 1, 8, 8, 7); __PYX_ERR(0, 256, __pyx_L3_error)
            }
          }
          if (unlikely(kw_args > 0)) {
            if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "process_cquad4") < 0)) __PYX_ERR(0, 256, __pyx_L3_error)
          }
        } else if (PyTuple_GET_SIZE(__pyx_args) != 8) {
          goto __pyx_L5_argtuple_error;
        } else {
          values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
          values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
          values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
          values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
          values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
          values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
          values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
          values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
        }
        __pyx_v_cpid = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_cpid == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 256, __pyx_L3_error)
        __pyx_v_eflagq = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_eflagq == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 256, __pyx_L3_error)
        __pyx_v_eltype = ((PyObject*)values[2]);
        __pyx_v_lin = ((PyObject*)values[3]);
        __pyx_v_matInteg = ((PyObject*)values[4]);
        __pyx_v_pShlDict = ((PyObject*)values[5]);
        __pyx_v_partName = ((PyObject*)values[6]);
        __pyx_v_pidname = ((PyObject*)values[7]);
      }
      goto __pyx_L4_argument_unpacking_done;
      __pyx_L5_argtuple_error:;
      __Pyx_RaiseArgtupleInvalid("process_cquad4", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 256, __pyx_L3_error)
      __pyx_L3_error:;
      __Pyx_AddTraceback("utils.cython_impl.process_cquad4", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __Pyx_RefNannyFinishContext();
      return NULL;
      __pyx_L4_argument_unpacking_done:;
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_eltype), (&PyDict_Type), 1, "eltype", 1))) __PYX_ERR(0, 256, __pyx_L1_error)
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_lin), (&PyUnicode_Type), 1, "lin", 1))) __PYX_ERR(0, 256, __pyx_L1_error)
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_matInteg), (&PyDict_Type), 1, "matInteg", 1))) __PYX_ERR(0, 256, __pyx_L1_error)
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pShlDict), (&PyDict_Type), 1, "pShlDict", 1))) __PYX_ERR(0, 256, __pyx_L1_error)
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_partName), (&PyUnicode_Type), 1, "partName", 1))) __PYX_ERR(0, 256, __pyx_L1_error)
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pidname), (&PyDict_Type), 1, "pidname", 1))) __PYX_ERR(0, 256, __pyx_L1_error)
      __pyx_r = __pyx_pf_5utils_11cython_impl_6process_cquad4(__pyx_self, __pyx_v_cpid, __pyx_v_eflagq, __pyx_v_eltype, __pyx_v_lin, __pyx_v_matInteg, __pyx_v_pShlDict, __pyx_v_partName, __pyx_v_pidname);
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;

      /* function exit code */
      goto __pyx_L0;
      __pyx_L1_error:;
      __pyx_r = NULL;
      __pyx_L0:;
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    static PyObject *__pyx_pf_5utils_11cython_impl_6process_cquad4(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_cpid, int __pyx_v_eflagq, PyObject *__pyx_v_eltype, PyObject *__pyx_v_lin, PyObject *__pyx_v_matInteg, PyObject *__pyx_v_pShlDict, PyObject *__pyx_v_partName, PyObject *__pyx_v_pidname) {
      PyObject *__pyx_v_out_strs = 0;
      PyObject *__pyx_v_intAba = NULL;
      PyObject *__pyx_v_elSuffix = NULL;
      PyObject *__pyx_v_partpid = NULL;
      PyObject *__pyx_v_tmp = NULL;
      PyObject *__pyx_r = NULL;
      __Pyx_RefNannyDeclarations
      __Pyx_RefNannySetupContext("process_cquad4", 0);
    /* … */
      /* function exit code */
      __pyx_L1_error:;
      __Pyx_XDECREF(__pyx_t_1);
      __Pyx_XDECREF(__pyx_t_4);
      __Pyx_XDECREF(__pyx_t_5);
      __Pyx_XDECREF(__pyx_t_10);
      __Pyx_XDECREF(__pyx_t_11);
      __Pyx_XDECREF(__pyx_t_12);
      __Pyx_AddTraceback("utils.cython_impl.process_cquad4", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __pyx_r = NULL;
      __pyx_L0:;
      __Pyx_XDECREF(__pyx_v_out_strs);
      __Pyx_XDECREF(__pyx_v_intAba);
      __Pyx_XDECREF(__pyx_v_elSuffix);
      __Pyx_XDECREF(__pyx_v_partpid);
      __Pyx_XDECREF(__pyx_v_tmp);
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }
    /* … */
      __pyx_tuple__12 = PyTuple_Pack(13, __pyx_n_s_cpid, __pyx_n_s_eflagq, __pyx_n_s_eltype, __pyx_n_s_lin, __pyx_n_s_matInteg, __pyx_n_s_pShlDict, __pyx_n_s_partName, __pyx_n_s_pidname, __pyx_n_s_out_strs, __pyx_n_s_intAba, __pyx_n_s_elSuffix, __pyx_n_s_partpid, __pyx_n_s_tmp); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(0, 256, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_tuple__12);
      __Pyx_GIVEREF(__pyx_tuple__12);
    /* … */
      __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5utils_11cython_impl_7process_cquad4, NULL, __pyx_n_s_utils_cython_impl); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 256, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_d, __pyx_n_s_process_cquad4, __pyx_t_2) < 0) __PYX_ERR(0, 256, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

     257:     cdef list out_strs

    +258:     out_strs=[]

      __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 258, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_v_out_strs = ((PyObject*)__pyx_t_1);
      __pyx_t_1 = 0;

    +259:     if eflagq == 1 or (cpid != int(lin[16:24])):

      __pyx_t_3 = ((__pyx_v_eflagq == 1) != 0);
      if (!__pyx_t_3) {
      } else {
        __pyx_t_2 = __pyx_t_3;
        goto __pyx_L4_bool_binop_done;
      }
      __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_cpid); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 259, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (unlikely(__pyx_v_lin == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 259, __pyx_L1_error)
      }
      __pyx_t_4 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 16, 24); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 259, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 259, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = PyObject_RichCompare(__pyx_t_1, __pyx_t_5, Py_NE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 259, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 259, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_2 = __pyx_t_3;
      __pyx_L4_bool_binop_done:;
      if (__pyx_t_2) {
    /* … */
      }

    +260:         cpid = int(lin[16:24])

        if (unlikely(__pyx_v_lin == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 260, __pyx_L1_error)
        }
        __pyx_t_4 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 16, 24); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 260, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 260, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_5); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 260, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_v_cpid = __pyx_t_6;

    +261:         intAba = matInteg[pShlDict[cpid][0]]

        if (unlikely(__pyx_v_matInteg == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 261, __pyx_L1_error)
        }
        if (unlikely(__pyx_v_pShlDict == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 261, __pyx_L1_error)
        }
        __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_cpid); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 261, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_4 = __Pyx_PyDict_GetItem(__pyx_v_pShlDict, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 261, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_4, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 261, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = __Pyx_PyDict_GetItem(__pyx_v_matInteg, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 261, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_v_intAba = __pyx_t_4;
        __pyx_t_4 = 0;

    +262:         if intAba == 'red':

        __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_intAba, __pyx_n_u_red, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 262, __pyx_L1_error)
        if (__pyx_t_2) {
    /* … */
          goto __pyx_L6;
        }

    +263:             elSuffix = 'R'

          __Pyx_INCREF(__pyx_n_u_R);
          __pyx_v_elSuffix = __pyx_n_u_R;

    +264:             out_strs.append('** Reduced integration formulation selected from Material Description\n')

          __pyx_t_7 = __Pyx_PyList_Append(__pyx_v_out_strs, __pyx_kp_u_Reduced_integration_formulation); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 264, __pyx_L1_error)

    +265:         elif intAba == 'std':

        __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_intAba, __pyx_n_u_std, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 265, __pyx_L1_error)
        if (__pyx_t_2) {
    /* … */
          goto __pyx_L6;
        }

    +266:             elSuffix = ''

          __Pyx_INCREF(__pyx_kp_u__8);
          __pyx_v_elSuffix = __pyx_kp_u__8;

    +267:             out_strs.append('** Full integration formulation selected from Material Description\n')

          __pyx_t_7 = __Pyx_PyList_Append(__pyx_v_out_strs, __pyx_kp_u_Full_integration_formulation_se); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 267, __pyx_L1_error)

     268:         else:

    +269:             elSuffix = ''

        /*else*/ {
          __Pyx_INCREF(__pyx_kp_u__8);
          __pyx_v_elSuffix = __pyx_kp_u__8;

    +270:             out_strs.append('** Full integration formulation selected since Material Description is missing\n')

          __pyx_t_7 = __Pyx_PyList_Append(__pyx_v_out_strs, __pyx_kp_u_Full_integration_formulation_se_2); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 270, __pyx_L1_error)
        }
        __pyx_L6:;

    +271:         partpid = '%s_PID_%i' % (partName, cpid)

        __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_cpid); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 271, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 271, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_INCREF(__pyx_v_partName);
        __Pyx_GIVEREF(__pyx_v_partName);
        PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_partName);
        __Pyx_GIVEREF(__pyx_t_4);
        PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_4);
        __pyx_t_4 = 0;
        __pyx_t_4 = PyUnicode_Format(__pyx_kp_u_s_PID__i, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 271, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_v_partpid = ((PyObject*)__pyx_t_4);
        __pyx_t_4 = 0;

    +272:         pidname[partpid] = [cpid, 'shell']

        __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_cpid); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 272, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_5 = PyList_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 272, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_GIVEREF(__pyx_t_4);
        PyList_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
        __Pyx_INCREF(__pyx_n_u_shell);
        __Pyx_GIVEREF(__pyx_n_u_shell);
        PyList_SET_ITEM(__pyx_t_5, 1, __pyx_n_u_shell);
        __pyx_t_4 = 0;
        if (unlikely(__pyx_v_pidname == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 272, __pyx_L1_error)
        }
        if (unlikely(PyDict_SetItem(__pyx_v_pidname, __pyx_v_partpid, __pyx_t_5) < 0)) __PYX_ERR(0, 272, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    +273:         tmp = '*ELEMENT, TYPE=S4%s, ELSET=%s\n' % (elSuffix, partpid)

        __pyx_t_5 = PyTuple_New(5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 273, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_8 = 0;
        __pyx_t_9 = 127;
        __Pyx_INCREF(__pyx_kp_u_ELEMENT_TYPE_S4);
        __pyx_t_8 += 17;
        __Pyx_GIVEREF(__pyx_kp_u_ELEMENT_TYPE_S4);
        PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_kp_u_ELEMENT_TYPE_S4);
        __Pyx_INCREF(__pyx_v_elSuffix);
        __pyx_t_9 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_v_elSuffix) > __pyx_t_9) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_v_elSuffix) : __pyx_t_9;
        __pyx_t_8 += __Pyx_PyUnicode_GET_LENGTH(__pyx_v_elSuffix);
        __Pyx_GIVEREF(__pyx_v_elSuffix);
        PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_elSuffix);
        __Pyx_INCREF(__pyx_kp_u_ELSET);
        __pyx_t_8 += 8;
        __Pyx_GIVEREF(__pyx_kp_u_ELSET);
        PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_kp_u_ELSET);
        __Pyx_INCREF(__pyx_v_partpid);
        __pyx_t_9 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_v_partpid) > __pyx_t_9) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_v_partpid) : __pyx_t_9;
        __pyx_t_8 += __Pyx_PyUnicode_GET_LENGTH(__pyx_v_partpid);
        __Pyx_GIVEREF(__pyx_v_partpid);
        PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_v_partpid);
        __Pyx_INCREF(__pyx_kp_u__9);
        __pyx_t_8 += 1;
        __Pyx_GIVEREF(__pyx_kp_u__9);
        PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_kp_u__9);
        __pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_5, 5, __pyx_t_8, __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 273, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_v_tmp = ((PyObject*)__pyx_t_4);
        __pyx_t_4 = 0;

    +274:         out_strs.append(tmp)

        __pyx_t_7 = __Pyx_PyList_Append(__pyx_v_out_strs, __pyx_v_tmp); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 274, __pyx_L1_error)

    +275:         eflagq = 0

        __pyx_v_eflagq = 0;

    +276:     tmp = '%8i,%8i,%8i,%8i,%8i\n' % (

      __pyx_t_12 = PyUnicode_Format(__pyx_kp_u_8i_8i_8i_8i_8i, __pyx_t_4); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 276, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF_SET(__pyx_v_tmp, ((PyObject*)__pyx_t_12));
      __pyx_t_12 = 0;

    +277:         int(lin[8:16]), int(lin[24:32]), int(lin[32:40]), int(lin[40:48]), int(lin[48:56]))

      if (unlikely(__pyx_v_lin == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 277, __pyx_L1_error)
      }
      __pyx_t_4 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 8, 16); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 277, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 277, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(__pyx_v_lin == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 277, __pyx_L1_error)
      }
      __pyx_t_4 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 24, 32); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 277, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 277, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(__pyx_v_lin == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 277, __pyx_L1_error)
      }
      __pyx_t_4 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 32, 40); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 277, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_10 = __Pyx_PyNumber_Int(__pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 277, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(__pyx_v_lin == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 277, __pyx_L1_error)
      }
      __pyx_t_4 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 40, 48); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 277, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_11 = __Pyx_PyNumber_Int(__pyx_t_4); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 277, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(__pyx_v_lin == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 277, __pyx_L1_error)
      }
      __pyx_t_4 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 48, 56); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 277, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_12 = __Pyx_PyNumber_Int(__pyx_t_4); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 277, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = PyTuple_New(5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 277, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_GIVEREF(__pyx_t_5);
      PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
      __Pyx_GIVEREF(__pyx_t_1);
      PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
      __Pyx_GIVEREF(__pyx_t_10);
      PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_10);
      __Pyx_GIVEREF(__pyx_t_11);
      PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_11);
      __Pyx_GIVEREF(__pyx_t_12);
      PyTuple_SET_ITEM(__pyx_t_4, 4, __pyx_t_12);
      __pyx_t_5 = 0;
      __pyx_t_1 = 0;
      __pyx_t_10 = 0;
      __pyx_t_11 = 0;
      __pyx_t_12 = 0;

    +278:     out_strs.append(tmp)

      __pyx_t_7 = __Pyx_PyList_Append(__pyx_v_out_strs, __pyx_v_tmp); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 278, __pyx_L1_error)

    +279:     eltype[int(lin[8:16])] = 1

      if (unlikely(__pyx_v_eltype == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 279, __pyx_L1_error)
      }
      if (unlikely(__pyx_v_lin == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 279, __pyx_L1_error)
      }
      __pyx_t_12 = __Pyx_PyUnicode_Substring(__pyx_v_lin, 8, 16); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 279, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_12); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 279, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(PyDict_SetItem(__pyx_v_eltype, __pyx_t_4, __pyx_int_1) < 0)) __PYX_ERR(0, 279, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    +280:     return cpid, eflagq, out_strs

      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_cpid); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 280, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_12 = __Pyx_PyInt_From_int(__pyx_v_eflagq); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 280, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __pyx_t_11 = PyTuple_New(3); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 280, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __Pyx_GIVEREF(__pyx_t_4);
      PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_4);
      __Pyx_GIVEREF(__pyx_t_12);
      PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_t_12);
      __Pyx_INCREF(__pyx_v_out_strs);
      __Pyx_GIVEREF(__pyx_v_out_strs);
      PyTuple_SET_ITEM(__pyx_t_11, 2, __pyx_v_out_strs);
      __pyx_t_4 = 0;
      __pyx_t_12 = 0;
      __pyx_r = __pyx_t_11;
      __pyx_t_11 = 0;
      goto __pyx_L0;

     281: