Blame test/mpi/errors/basic/lefthandles.c

Packit 0848f5
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
Packit 0848f5
/*
Packit 0848f5
 *  (C) 2006 by Argonne National Laboratory.
Packit 0848f5
 *      See COPYRIGHT in top-level directory.
Packit 0848f5
 */
Packit 0848f5
#include <mpi.h>
Packit 0848f5
Packit 0848f5
int main(int argc, char *argv[])
Packit 0848f5
{
Packit 0848f5
    MPI_Comm comm;
Packit 0848f5
    MPI_Datatype ntype;
Packit 0848f5
    int i;
Packit 0848f5
Packit 0848f5
    MPI_Init(&argc, &argv);
Packit 0848f5
Packit 0848f5
    for (i = 0; i < 20; i++) {
Packit 0848f5
        MPI_Comm_dup(MPI_COMM_WORLD, &comm);
Packit 0848f5
    }
Packit 0848f5
Packit 0848f5
    MPI_Type_contiguous(27, MPI_INT, &ntype);
Packit 0848f5
    MPI_Type_contiguous(27, MPI_INT, &ntype);
Packit 0848f5
    MPI_Type_contiguous(27, MPI_INT, &ntype);
Packit 0848f5
    MPI_Type_contiguous(27, MPI_INT, &ntype);
Packit 0848f5
    MPI_Type_contiguous(27, MPI_INT, &ntype);
Packit 0848f5
    MPI_Finalize();
Packit 0848f5
Packit 0848f5
    return 0;
Packit 0848f5
}