1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
4 * (C) 2003 by Argonne National Laboratory.
5 * See COPYRIGHT in top-level directory.
12 static char MTEST_Descrip[] = "Test file_get_extent";
15 int main(int argc, char *argv[])
20 MPI_Aint extent, nextent;
22 MTest_Init(&argc, &argv);
24 comm = MPI_COMM_WORLD;
25 MPI_File_open(comm, (char *) "test.ord",
26 MPI_MODE_RDWR | MPI_MODE_CREATE | MPI_MODE_DELETE_ON_CLOSE, MPI_INFO_NULL, &fh);
28 MPI_File_get_type_extent(fh, MPI_INT, &extent);
29 MPI_Type_extent(MPI_INT, &nextent);
31 if (nextent != extent) {
33 fprintf(stderr, "Native extent not the same as the file extent\n");