1
1

Fixes trac:830. Put in argument checking for MPI_INIT_THREAD.

This commit was SVN r13353.

The following Trac tickets were found above:
  Ticket 830 --> https://svn.open-mpi.org/trac/ompi/ticket/830
Этот коммит содержится в:
Jeff Squyres 2007-01-29 21:56:15 +00:00
родитель 0ce78f22fa
Коммит a45e8bea05

Просмотреть файл

@ -39,6 +39,12 @@ int MPI_Init_thread(int *argc, char ***argv, int required,
int err;
MPI_Comm null = NULL;
if ( MPI_PARAM_CHECK ) {
if (required < MPI_THREAD_SINGLE || required > MPI_THREAD_MULTIPLE) {
ompi_mpi_errors_are_fatal_comm_handler(NULL, NULL, FUNC_NAME);
}
}
/*
* A thread compliant MPI implementation will be able to return provided
* = MPI_THREAD_MULTIPLE. Such an implementation may always return provided