summaryrefslogtreecommitdiffstats
path: root/fortran/testpar/ptesthdf5_fortran.f90
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2005-05-03 16:12:39 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2005-05-03 16:12:39 (GMT)
commit9639b3df77f4a700645980ba7903a0f0d78332d1 (patch)
treeff1fb7c320d25c9ec1aaa8c544fbd1836890a20b /fortran/testpar/ptesthdf5_fortran.f90
parent149e6b77b82bcf8e15a9a2a58671ef348f681118 (diff)
downloadhdf5-9639b3df77f4a700645980ba7903a0f0d78332d1.zip
hdf5-9639b3df77f4a700645980ba7903a0f0d78332d1.tar.gz
hdf5-9639b3df77f4a700645980ba7903a0f0d78332d1.tar.bz2
[svn-r10719] Purpose:
added new fortran parallel tests that replace the old ones Description: this first set of tests do a write/read by hyperslabs Solution: Platforms tested: Linux (heping) PGI compiler Linux (heping) Intel compiler AIX (copper) IBM compiler SGI Altix (cobalt) Intel compiler Xeon Linux cluster (tungsten) Intel compiler Misc. update:
Diffstat (limited to 'fortran/testpar/ptesthdf5_fortran.f90')
-rw-r--r--fortran/testpar/ptesthdf5_fortran.f9086
1 files changed, 0 insertions, 86 deletions
diff --git a/fortran/testpar/ptesthdf5_fortran.f90 b/fortran/testpar/ptesthdf5_fortran.f90
deleted file mode 100644
index 0edb0ff..0000000
--- a/fortran/testpar/ptesthdf5_fortran.f90
+++ /dev/null
@@ -1,86 +0,0 @@
-! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-! Copyright by the Board of Trustees of the University of Illinois. *
-! All rights reserved. *
-! *
-! This file is part of HDF5. The full HDF5 copyright notice, including *
-! terms governing use, modification, and redistribution, is contained in *
-! the files COPYING and Copyright.html. COPYING can be found at the root *
-! of the source code distribution tree; Copyright.html can be found at the *
-! root level of an installed copy of the electronic HDF5 document set and *
-! is linked from the top-level documents page. It can also be found at *
-! http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have *
-! access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
-! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-!
-!
-! Main program for parallel HDF5 Fortran tests.
-
- PROGRAM PHDF5F90TEST
-
- USE HDF5 ! This module contains all necessary modules
- USE THDF5
-! USE MPI
-
- IMPLICIT NONE
- INTEGER :: h5retcode ! HDF5 call return code
- INTEGER :: nerrors = 0 ! Error flags
- !
- ! MPI definitions and calls.
- !
- INTEGER :: mpiretcode ! MPI calls return code
- INTEGER :: comm, info
- INTEGER :: mpi_size, mpi_rank
- LOGICAL :: cleanup = .TRUE.
-! LOGICAL :: cleanup = .FALSE.
- comm = MPI_COMM_WORLD
- info = MPI_INFO_NULL
- CALL MPI_INIT(mpiretcode)
- CALL MPI_COMM_SIZE(comm, mpi_size, mpiretcode)
- CALL MPI_COMM_RANK(comm, mpi_rank, mpiretcode)
- !
- ! Check that datasets can be divided into equal parts by the processes.
- !
- if ( (mod(DIM1, mpi_size) .ne. 0) .or. (mod(DIM2, mpi_size) .ne. 0)) then
- if (mpi_rank .eq. 0) then
- write(*,*) "Number of processors is", mpi_size
- write(*,*) "It must be a factor of ", DIM1, " and ", DIM2
- write(*,*) "Exiting..."
- endif
- nerrors = nerrors + 1
- goto 1000
- endif
- !
- ! Initialize FORTRAN predefined datatypes
- !
- CALL h5open_f(h5retcode)
- if (mpi_rank .eq. 0) then
- write(*,*) '==========================================='
- write(*,*) ' Parallel Fortran Tests '
- write(*,*) '==========================================='
- write(*,*)
- endif
- if (mpi_rank .eq. 0) then
- write(*,*) 'Writing/reading dataset by hyperslabs'
- endif
- CALL dataset_wr_by_hyperslabs(cleanup, nerrors)
- if (nerrors .ne. 0 ) write(*,*) 'Process ', mpi_rank, 'reports failure'
- if (mpi_rank .eq. 0) then
- write(*,*)
- write(*,*) '==========================================='
- write(*,*) ' Parallel Fortran Tests finished '
- write(*,*) '==========================================='
- endif
- !
- ! Close FORTRAN predefined datatypes.
- !
- CALL h5close_f(h5retcode)
-
-1000 continue
-
- if (nerrors .eq. 0) then
- CALL MPI_FINALIZE(mpiretcode)
- else
- CALL MPI_ABORT(MPI_COMM_WORLD, 1, mpiretcode)
- endif
-
- END PROGRAM PHDF5F90TEST