mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-29 06:35:28 -04:00
Void signatures
- Ensure no arguments taken. - Rather than variadic.
This commit is contained in:
parent
50b0971e18
commit
4b78685af9
4 changed files with 9 additions and 9 deletions
|
|
@ -181,7 +181,7 @@ __constant__ double binomial_coef[19][19];
|
|||
* \brief Initializes the device's constant memory.
|
||||
* \author Ole Schuett
|
||||
******************************************************************************/
|
||||
static void init_constant_memory() {
|
||||
static void init_constant_memory(void) {
|
||||
static bool initialized = false;
|
||||
if (initialized) {
|
||||
return; // constant memory has to be initialized only once
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ void cp_mpi_init(int *argc, char ***argv) {
|
|||
* \brief Wrapper around MPI_Finalize.
|
||||
* \author Ole Schuett
|
||||
******************************************************************************/
|
||||
void cp_mpi_finalize() {
|
||||
void cp_mpi_finalize(void) {
|
||||
#if defined(__parallel)
|
||||
CHECK(MPI_Finalize());
|
||||
#endif
|
||||
|
|
@ -54,7 +54,7 @@ void cp_mpi_finalize() {
|
|||
* \brief Returns MPI_COMM_WORLD.
|
||||
* \author Ole Schuett
|
||||
******************************************************************************/
|
||||
cp_mpi_comm_t cp_mpi_get_comm_world() {
|
||||
cp_mpi_comm_t cp_mpi_get_comm_world(void) {
|
||||
#if defined(__parallel)
|
||||
return MPI_COMM_WORLD;
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -28,13 +28,13 @@ void cp_mpi_init(int *argc, char ***argv);
|
|||
* \brief Wrapper around MPI_Finalize.
|
||||
* \author Ole Schuett
|
||||
******************************************************************************/
|
||||
void cp_mpi_finalize();
|
||||
void cp_mpi_finalize(void);
|
||||
|
||||
/*******************************************************************************
|
||||
* \brief Returns MPI_COMM_WORLD.
|
||||
* \author Ole Schuett
|
||||
******************************************************************************/
|
||||
cp_mpi_comm_t cp_mpi_get_comm_world();
|
||||
cp_mpi_comm_t cp_mpi_get_comm_world(void);
|
||||
|
||||
/*******************************************************************************
|
||||
* \brief Wrapper around MPI_Comm_f2c.
|
||||
|
|
|
|||
|
|
@ -32,23 +32,23 @@ void cp2k_get_version(char *version_str, int str_length);
|
|||
* \brief Initialize CP2K and MPI
|
||||
* \warning You are supposed to call cp2k_finalize() before exiting the program.
|
||||
******************************************************************************/
|
||||
void cp2k_init();
|
||||
void cp2k_init(void);
|
||||
|
||||
/*******************************************************************************
|
||||
* \brief Initialize CP2K without initializing MPI
|
||||
* \warning You are supposed to call cp2k_finalize() before exiting the program.
|
||||
******************************************************************************/
|
||||
void cp2k_init_without_mpi();
|
||||
void cp2k_init_without_mpi(void);
|
||||
|
||||
/*******************************************************************************
|
||||
* \brief Finalize CP2K and MPI
|
||||
******************************************************************************/
|
||||
void cp2k_finalize();
|
||||
void cp2k_finalize(void);
|
||||
|
||||
/*******************************************************************************
|
||||
* \brief Finalize CP2K and without finalizing MPI
|
||||
******************************************************************************/
|
||||
void cp2k_finalize_without_mpi();
|
||||
void cp2k_finalize_without_mpi(void);
|
||||
|
||||
/*******************************************************************************
|
||||
* \brief Create a new force environment
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue