[cig-commits] r8003 - short/3D/PyLith/trunk/modulesrc/solver
brad at geodynamics.org
brad at geodynamics.org
Fri Sep 21 16:19:58 PDT 2007
Author: brad
Date: 2007-09-21 16:19:58 -0700 (Fri, 21 Sep 2007)
New Revision: 8003
Modified:
short/3D/PyLith/trunk/modulesrc/solver/solver.pyxe.src
Log:
Added missing return statement at end of SolverLinear_solve() and SolverNonlinear_solve().
Modified: short/3D/PyLith/trunk/modulesrc/solver/solver.pyxe.src
===================================================================
--- short/3D/PyLith/trunk/modulesrc/solver/solver.pyxe.src 2007-09-21 22:09:46 UTC (rev 8002)
+++ short/3D/PyLith/trunk/modulesrc/solver/solver.pyxe.src 2007-09-21 23:19:58 UTC (rev 8003)
@@ -228,6 +228,7 @@
# create shim for method 'solve'
#embed{ int SolverLinear_solve(void* objVptr, void* fieldOutVptr, void* jacobianVptr, void* fieldInVptr, void* scatterVptr, void* vecInVptr, void* vecOutVptr)
typedef ALE::Mesh::real_section_type real_section_type;
+ PetscErrorCode err = 0;
try {
assert(0 != objVptr);
assert(0 != fieldOutVptr);
@@ -247,7 +248,6 @@
Vec vecIn = (Vec) vecInVptr;
Vec vecOut = (Vec) vecOutVptr;
- PetscErrorCode err = 0;
Vec localVec;
err = VecCreateSeqWithArray(PETSC_COMM_SELF, (*fieldIn)->sizeWithBC(),
@@ -276,7 +276,8 @@
} catch (...) {
PyErr_SetString(PyExc_RuntimeError,
"Caught unknown C++ exception.");
- } // try/catch
+ } // try/catch
+ return err;
#}embed
cdef void* fieldOutVptr
@@ -309,6 +310,7 @@
# create shim for method 'solve'
#embed{ int SolverNonlinear_solve(void* objVptr, void* fieldOutVptr, void* jacobianVptr, void* fieldInVptr, void* scatterVptr, void* vecInVptr, void* vecOutVptr)
typedef ALE::Mesh::real_section_type real_section_type;
+ PetscErrorCode err = 0;
try {
assert(0 != objVptr);
assert(0 != fieldOutVptr);
@@ -328,7 +330,6 @@
Vec vecIn = (Vec) vecInVptr;
Vec vecOut = (Vec) vecOutVptr;
- PetscErrorCode err = 0;
Vec localVec;
err = VecCreateSeqWithArray(PETSC_COMM_SELF, (*fieldIn)->sizeWithBC(),
@@ -357,7 +358,8 @@
} catch (...) {
PyErr_SetString(PyExc_RuntimeError,
"Caught unknown C++ exception.");
- } // try/catch
+ } // try/catch
+ return err;
#}embed
cdef void* fieldOutVptr
More information about the cig-commits
mailing list