diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2000-11-21 00:55:14 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2000-11-21 00:55:14 (GMT) |
commit | a7e6dfe5bc705841ca1faf2d8e5c5d63f8c760f5 (patch) | |
tree | b310971754f14c81fb1940a4f37e243252633bc4 /testpar/testphdf5.h | |
parent | 06b3fc0951a8df8984208cd54730d2dce647d83d (diff) | |
download | hdf5-a7e6dfe5bc705841ca1faf2d8e5c5d63f8c760f5.zip hdf5-a7e6dfe5bc705841ca1faf2d8e5c5d63f8c760f5.tar.gz hdf5-a7e6dfe5bc705841ca1faf2d8e5c5d63f8c760f5.tar.bz2 |
[svn-r2983] Purpose:
Simple changes
Description:
testphdf5.h:
Call MPI_Abort when error is detected. MPI_Finalized was used
before but it might hang if the test has already encountered errors.
Also, it does not do the H5Eprint any more since auto report is on.
t_mdest.c:
Changed the variable name of rank and nprocs to mpi_rank and mpi_size
so that it is the same with the other tests and can use the VRFY macro
call.
Platforms tested:
modi4-64.
Diffstat (limited to 'testpar/testphdf5.h')
-rw-r--r-- | testpar/testphdf5.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testpar/testphdf5.h b/testpar/testphdf5.h index b246f6a..371e07f 100644 --- a/testpar/testphdf5.h +++ b/testpar/testphdf5.h @@ -21,14 +21,14 @@ } \ } \ else{ \ + printf("Proc %d: ", mpi_rank); \ printf("*** PHDF5 Assertion failed (%s) at line %4d in %s\n", \ mesg, (int)__LINE__, __FILE__); \ nerrors++; \ - H5Eprint (stdout); \ fflush(stdout); \ if (!verbose){ \ printf("aborting MPI process\n"); \ - MPI_Abort(MPI_COMM_WORLD, nerrors); \ + MPI_Finalize(); exit(nerrors); \ } \ } \ H5Eclear(); \ |