[cig-commits] [commit] baagaard/fix-error: Update PYLITH_CHECK_ERROR for PETSc interface changes. (d683f6e)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Fri Oct 25 13:36:20 PDT 2013
Repository : ssh://geoshell/pylith
On branch : baagaard/fix-error
Link : https://github.com/geodynamics/pylith/compare/0000000000000000000000000000000000000000...d683f6e38b8038f0faf65be8dd88c477f5b1559a
>---------------------------------------------------------------
commit d683f6e38b8038f0faf65be8dd88c477f5b1559a
Author: Brad Aagaard <baagaard at usgs.gov>
Date: Fri Oct 25 13:38:08 2013 -0700
Update PYLITH_CHECK_ERROR for PETSc interface changes.
Remove __SDIR__.
>---------------------------------------------------------------
d683f6e38b8038f0faf65be8dd88c477f5b1559a
libsrc/pylith/utils/error.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libsrc/pylith/utils/error.h b/libsrc/pylith/utils/error.h
index 8295b95..e14d665 100644
--- a/libsrc/pylith/utils/error.h
+++ b/libsrc/pylith/utils/error.h
@@ -42,11 +42,11 @@
#define PYLITH_METHOD_END PetscFunctionReturnVoid()
#define PYLITH_METHOD_RETURN(v) PetscFunctionReturn(v)
-#define PYLITH_CHECK_ERROR(err) do {if (PetscUnlikely(err)) {PetscError(PETSC_COMM_SELF,__LINE__,PETSC_FUNCTION_NAME,__FILE__,__SDIR__,err,PETSC_ERROR_IN_CXX,0);}} while(0)
+#define PYLITH_CHECK_ERROR(err) do {if (PetscUnlikely(err)) {PetscError(PETSC_COMM_SELF,__LINE__,PETSC_FUNCTION_NAME,__FILE__,err,PETSC_ERROR_IN_CXX,0);}} while(0)
#define PYLITH_CHECK_ERROR_MSG(err, msg) \
if (err) { \
- PetscError(PETSC_COMM_SELF, __LINE__, __FUNCT__, __FILE__, __SDIR__, err, PETSC_ERROR_IN_CXX, 0, " "); \
+ PetscError(PETSC_COMM_SELF,__LINE__,__FUNCT__,__FILE__,err,PETSC_ERROR_IN_CXX, 0, " "); \
throw std::runtime_error(msg); }
#endif // pylith_utils_error_h
More information about the CIG-COMMITS
mailing list