- mpi_init() and mpi_free() only accept a single argument and do not accept variable arguments anymore. This prevents unexpected memory corruption in a number of use cases.

This commit is contained in:
Paul Bakker 2011-05-05 11:49:20 +00:00
parent f968857a82
commit 6c591fab72
11 changed files with 230 additions and 137 deletions

View file

@ -92,14 +92,18 @@ extern "C" {
#endif
/**
* \brief Initialize one or more mpi
* \brief Initialize one MPI
*
* \param X One MPI to initialize.
*/
void mpi_init( mpi *X, ... );
void mpi_init( mpi *X );
/**
* \brief Unallocate one or more mpi
* \brief Unallocate one MPI
*
* \param X One MPI to unallocate.
*/
void mpi_free( mpi *X, ... );
void mpi_free( mpi *X );
/**
* \brief Enlarge to the specified number of limbs