Skip to content
Snippets Groups Projects
Commit 22ac2751 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Beautify tests.

parent bfe58459
No related branches found
No related tags found
No related merge requests found
#include <mpi.h>
#include <stdlib.h>
#include <stdio.h>
#include <mpi.h>
static void mpi_err_handler(int error_code, MPI_Comm comm);
char const * datarep = "external32";
static const char datarep[] = "external32";
#define UINT_COUNT (2)
#define DBLE_COUNT (24)
enum {
UINT_COUNT = 2,
DBLE_COUNT = 27,
};
int main(void) {
int main(int argc, char **argv) {
MPI_Init(NULL, NULL);
MPI_Init(&argc, &argv);
unsigned * uint_data = calloc(UINT_COUNT, sizeof(*uint_data));
double * dble_data = calloc(DBLE_COUNT, sizeof(*dble_data));
......
......@@ -4,7 +4,7 @@
static void mpi_err_handler(int error_code, MPI_Comm comm);
char const * datarep = "external32";
static const char datarep[] = "external32";
int main(void) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment