Home
last modified time | relevance | path

Searched refs:exc (Results 1 – 20 of 20) sorted by relevance

/petsc/src/ts/tutorials/power_grid/stability_9bus/
H A Dex9busdmnetwork.c115 Exc *exc; in read_data() local
184 … nc, &bus, NGEN * nc, &gen, NLOAD * nc, &load, NBRANCH * nc + (nc - 1), &branch, NGEN * nc, &exc)); in read_data()
226 exc[i * 3 + j].KA = KA[j]; in read_data()
227 exc[i * 3 + j].TA = TA[j]; in read_data()
228 exc[i * 3 + j].KE = KE[j]; in read_data()
229 exc[i * 3 + j].TE = TE[j]; in read_data()
230 exc[i * 3 + j].KF = KF[j]; in read_data()
231 exc[i * 3 + j].TF = TF[j]; in read_data()
232 exc[i * 3 + j].k1 = k1[j]; in read_data()
233 exc[i * 3 + j].k2 = k2[j]; in read_data()
[all …]
/petsc/src/sys/python/
H A Dpythonsys.c269 PyObject *exc = NULL, *val = NULL, *tb = NULL; in PetscPythonPrintError() local
274 PyErr_Fetch(&exc, &val, &tb); in PetscPythonPrintError()
275 PyErr_NormalizeException(&exc, &val, &tb); in PetscPythonPrintError()
276 PyErr_Display(exc ? exc : Py_None, val ? val : Py_None, tb ? tb : Py_None); in PetscPythonPrintError()
277 PyErr_Restore(exc, val, tb); in PetscPythonPrintError()
/petsc/src/binding/petsc4py/conf/
H A Dcythonize.py32 except SystemExit as exc:
33 return exc.code
H A Dcyautodoc.py301 except Exception as exc:
304 logging.Logger(__name__).exception(exc)
320 except Exception as exc:
323 logging.Logger(__name__).exception(exc)
/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/
H A Dpkg_consistency_checks.py101 except Exception as exc:
105 print('ERROR:', str(exc))
H A Dqueue_main.py83 except Exception as exc:
84 raise MainLoopError(str(filename)) from exc
H A Dtest_main.py165 except Exception as exc:
166 exception = ''.join(traceback_format_exception(exc))
/petsc/config/
H A Dconfigure.py33 …for exc in ['mkl_sparse', 'mkl_sparse_optimize', 'mkl_cpardiso', 'mkl_pardiso', 'superlu_dist', 'P…
34 if name.find(exc) >= 0:
42 for exc in ['mkl_sparse', 'mkl_sparse_optimize', 'mkl_cpardiso', 'mkl_pardiso', 'superlu_dist']:
43 if name.find(exc.replace('_','-')) > -1:
44 raise ValueError('The option '+opt+' should be '+opt.replace(exc.replace('_','-'),exc));
/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/util/
H A D_utility.py22 def traceback_format_exception(exc: ExceptionKind) -> list[str]:
40 ret = traceback.format_exception(exc, chain=True) # type: ignore [call-arg, arg-type]
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A Dpetscdmcomposite.pxi49 def __exit__(self, *exc): argument
H A Dpetscis.pxi184 def __exit__(self, *exc): argument
H A DLog.pyx292 def __exit__(self, *exc): argument
555 def __exit__(self, *exc): argument
H A DPETSc.pyx69 cdef inline void PetscTracebackAdd(object exc) noexcept: argument
72 exc._traceback[:] = tracebacklist[:]
H A Dpetscvec.pxi574 def __exit__(self, *exc): argument
608 def __exit__(self, *exc): argument
H A Dpetscdmda.pxi284 def __exit__(self, *exc): argument
H A DIS.pyx50 def __exit__(self, *exc): argument
H A DVec.pyx137 def __exit__(self, *exc): argument
/petsc/lib/petsc/bin/maint/
H A Dgcov.py692 exc = make_error_exc()
694 exc = mem
695 raise exc from e
/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/
H A D_cursor.py86 parsing_error_handler = lambda exc: None argument
225 except Exception as exc:
/petsc/src/binding/petsc4py/test/
H A Dtest_dmplex.py253 except PETSc.Error as exc:
255 if exc.ierr != ERR_ARG_OUTOFRANGE: