[Debian-astro-commits] [gyoto] 74/221: Bug fix: build yorick plug-in successfully also without MPI support
Thibaut Jean-Claude Paumard
thibaut at moszumanska.debian.org
Fri May 22 20:52:35 UTC 2015
This is an automated email from the git hooks/post-receive script.
thibaut pushed a commit to branch master
in repository gyoto.
commit 2a2fe9dda180ddd79392e36161ea9c417303979d
Author: Thibaut Paumard <paumard at users.sourceforge.net>
Date: Thu Oct 30 12:27:11 2014 +0100
Bug fix: build yorick plug-in successfully also without MPI support
---
yorick/gyoto_utils.C | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/yorick/gyoto_utils.C b/yorick/gyoto_utils.C
index 97fd64a..236fb5a 100644
--- a/yorick/gyoto_utils.C
+++ b/yorick/gyoto_utils.C
@@ -41,6 +41,7 @@ static YGyotoSupplier_t *YGyotoGlobalSupplier = NULL;
void ygyotoErrorHandler (const Gyoto::Error e) { y_error(e); }
+#if defined HAVE_MPI
void ygyotoMPIErrorHandlerFcn(MPI_Comm * comm, int * error_code, ...) {
char error_string[MPI_MAX_ERROR_STRING];
int error_string_length;
@@ -48,8 +49,8 @@ void ygyotoMPIErrorHandlerFcn(MPI_Comm * comm, int * error_code, ...) {
error_string[error_string_length] = '\0';
y_error(error_string);
}
-
MPI_Errhandler ygyotoMPIErrorHandler;
+#endif
extern "C" {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/gyoto.git
More information about the Debian-astro-commits
mailing list