From 2bdff63e6ffbfadc74f22ccb2c58a3e63b40f1ec Mon Sep 17 00:00:00 2001 From: Josh Hursey Date: Mon, 3 Jan 2011 18:16:53 +0000 Subject: [PATCH] move the INIT to after the error handler, so it matches MPI_INIT. Thanks to Jeff for catching this This commit was SVN r24200. --- ompi/mpi/c/init_thread.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ompi/mpi/c/init_thread.c b/ompi/mpi/c/init_thread.c index 179e45e651..ed6d686734 100644 --- a/ompi/mpi/c/init_thread.c +++ b/ompi/mpi/c/init_thread.c @@ -86,8 +86,6 @@ int MPI_Init_thread(int *argc, char ***argv, int required, err = ompi_mpi_init(0, NULL, required, provided); } - OPAL_CR_INIT_LIBRARY(); - /* Since we don't have a communicator to invoke an errorhandler on here, don't use the fancy-schmancy ERRHANDLER macros; they're really designed for real communicator objects. Just use the @@ -98,5 +96,8 @@ int MPI_Init_thread(int *argc, char ***argv, int required, err < 0 ? ompi_errcode_get_mpi_code(err) : err, FUNC_NAME); } + + OPAL_CR_INIT_LIBRARY(); + return MPI_SUCCESS; }