From 2136489ddae1196b6a5d8386a79ba2bb426c7027 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Fri, 30 Jan 2004 23:03:12 +0000 Subject: [PATCH] Return the real error, not LAM_ERROR This commit was SVN r619. --- src/mpi/runtime/lam_mpi_init.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/mpi/runtime/lam_mpi_init.c b/src/mpi/runtime/lam_mpi_init.c index df2079d224..160dd0af7b 100644 --- a/src/mpi/runtime/lam_mpi_init.c +++ b/src/mpi/runtime/lam_mpi_init.c @@ -46,16 +46,15 @@ int lam_mpi_init(int argc, char **argv, int requested, int *provided) if (LAM_SUCCESS != (ret = mca_pml_base_open())) { /* JMS show_help */ - return LAM_ERROR; + return ret; } if (LAM_SUCCESS != (ret = mca_ptl_base_open())) { /* JMS show_help */ - return LAM_ERROR; + return ret; } - /* JMS Uncomment when have coll_base_open() implemented */ if (LAM_SUCCESS != (ret = mca_coll_base_open())) { /* JMS show_help */ - return LAM_ERROR; + return ret; } /* Select which pml, ptl, and coll modules to use, and determine the @@ -64,7 +63,7 @@ int lam_mpi_init(int argc, char **argv, int requested, int *provided) if (LAM_SUCCESS != (ret = mca_mpi_init_select_modules(requested, provided))) { /* JMS show_help */ - return LAM_ERROR; + return ret; } /* Add MPI_COMM_WORLD lam_proc_t's to PML */