mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-12 17:31:09 +08:00
[svn-r27630] Description:
Bring in changes from the trunk, through r27628. Tested on: MacOSX/64 10.10.5 (amazon) w/serial (h5committest not required on this branch)
This commit is contained in:
commit
2c91cbecc6
@ -614,8 +614,23 @@ if (BUILD_TESTING)
|
||||
CACHE INTEGER
|
||||
"Timeout in seconds for each test (default 1200=20minutes)"
|
||||
)
|
||||
|
||||
option (HDF5_TEST_VFD "Execute tests with different VFDs" OFF)
|
||||
mark_as_advanced (HDF5_TEST_VFD)
|
||||
if (HDF5_TEST_VFD)
|
||||
option (HDF5_TEST_FHEAP_VFD "Execute tests with different VFDs" ON)
|
||||
mark_as_advanced (HDF5_TEST_FHEAP_VFD)
|
||||
endif (HDF5_TEST_VFD)
|
||||
|
||||
option (HDF_TEST_EXPRESS "Control testing framework (0-3)" "0")
|
||||
mark_as_advanced (HDF_TEST_EXPRESS)
|
||||
|
||||
include (${HDF5_SOURCE_DIR}/CTestConfig.cmake)
|
||||
configure_file (${HDF_RESOURCES_DIR}/CTestCustom.cmake ${HDF5_BINARY_DIR}/CTestCustom.ctest @ONLY)
|
||||
|
||||
enable_testing ()
|
||||
include (CTest)
|
||||
|
||||
if (NOT HDF5_EXTERNALLY_CONFIGURED)
|
||||
if (EXISTS "${HDF5_SOURCE_DIR}/test" AND IS_DIRECTORY "${HDF5_SOURCE_DIR}/test")
|
||||
add_subdirectory (${HDF5_SOURCE_DIR}/tools/lib ${PROJECT_BINARY_DIR}/tools/lib)
|
||||
@ -627,16 +642,6 @@ if (BUILD_TESTING)
|
||||
endif (EXISTS "${HDF5_SOURCE_DIR}/testpar" AND IS_DIRECTORY "${HDF5_SOURCE_DIR}/testpar")
|
||||
endif (H5_HAVE_PARALLEL)
|
||||
endif (NOT HDF5_EXTERNALLY_CONFIGURED)
|
||||
|
||||
option (HDF5_TEST_VFD "Execute tests with different VFDs" OFF)
|
||||
mark_as_advanced (HDF5_TEST_VFD)
|
||||
if (HDF5_TEST_VFD)
|
||||
option (HDF5_TEST_FHEAP_VFD "Execute tests with different VFDs" ON)
|
||||
mark_as_advanced (HDF5_TEST_FHEAP_VFD)
|
||||
endif (HDF5_TEST_VFD)
|
||||
|
||||
include (${HDF5_SOURCE_DIR}/CTestConfig.cmake)
|
||||
configure_file (${HDF_RESOURCES_DIR}/CTestCustom.cmake ${HDF5_BINARY_DIR}/CTestCustom.ctest @ONLY)
|
||||
endif (BUILD_TESTING)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
|
60
MANIFEST
60
MANIFEST
@ -245,41 +245,41 @@
|
||||
|
||||
./fortran/test/Makefile.am
|
||||
./fortran/test/Makefile.in
|
||||
./fortran/test/fflush1.f90
|
||||
./fortran/test/fflush2.f90
|
||||
./fortran/test/fortranlib_test.f90
|
||||
./fortran/test/fortranlib_test_1_8.f90
|
||||
./fortran/test/fortranlib_test_F03.f90
|
||||
./fortran/test/fflush1.F90
|
||||
./fortran/test/fflush2.F90
|
||||
./fortran/test/fortranlib_test.F90
|
||||
./fortran/test/fortranlib_test_1_8.F90
|
||||
./fortran/test/fortranlib_test_F03.F90
|
||||
./fortran/test/H5_test_buildiface.F90
|
||||
./fortran/test/t.c
|
||||
./fortran/test/t.h
|
||||
./fortran/test/tf.F90
|
||||
./fortran/test/tH5A.f90
|
||||
./fortran/test/tH5A_1_8.f90
|
||||
./fortran/test/tH5D.f90
|
||||
./fortran/test/tH5E_F03.f90
|
||||
./fortran/test/tH5E.f90
|
||||
./fortran/test/tH5F.f90
|
||||
./fortran/test/tH5F_F03.f90
|
||||
./fortran/test/tH5G.f90
|
||||
./fortran/test/tH5G_1_8.f90
|
||||
./fortran/test/tH5I.f90
|
||||
./fortran/test/tH5L_F03.f90
|
||||
./fortran/test/tH5MISC_1_8.f90
|
||||
./fortran/test/tH5O.f90
|
||||
./fortran/test/tH5O_F03.f90
|
||||
./fortran/test/tH5P_F03.f90
|
||||
./fortran/test/tH5P.f90
|
||||
./fortran/test/tH5R.f90
|
||||
./fortran/test/tH5S.f90
|
||||
./fortran/test/tH5Sselect.f90
|
||||
./fortran/test/tH5A.F90
|
||||
./fortran/test/tH5A_1_8.F90
|
||||
./fortran/test/tH5D.F90
|
||||
./fortran/test/tH5E_F03.F90
|
||||
./fortran/test/tH5E.F90
|
||||
./fortran/test/tH5F.F90
|
||||
./fortran/test/tH5F_F03.F90
|
||||
./fortran/test/tH5G.F90
|
||||
./fortran/test/tH5G_1_8.F90
|
||||
./fortran/test/tH5I.F90
|
||||
./fortran/test/tH5L_F03.F90
|
||||
./fortran/test/tH5MISC_1_8.F90
|
||||
./fortran/test/tH5O.F90
|
||||
./fortran/test/tH5O_F03.F90
|
||||
./fortran/test/tH5P_F03.F90
|
||||
./fortran/test/tH5P.F90
|
||||
./fortran/test/tH5R.F90
|
||||
./fortran/test/tH5S.F90
|
||||
./fortran/test/tH5Sselect.F90
|
||||
./fortran/test/tH5T_F03.F90
|
||||
./fortran/test/tH5T.f90
|
||||
./fortran/test/tH5VL.f90
|
||||
./fortran/test/tH5Z.f90
|
||||
./fortran/test/tHDF5_1_8.f90
|
||||
./fortran/test/tHDF5_F03.f90
|
||||
./fortran/test/tHDF5.f90
|
||||
./fortran/test/tH5T.F90
|
||||
./fortran/test/tH5VL.F90
|
||||
./fortran/test/tH5Z.F90
|
||||
./fortran/test/tHDF5_1_8.F90
|
||||
./fortran/test/tHDF5_F03.F90
|
||||
./fortran/test/tHDF5.F90
|
||||
|
||||
./fortran/testpar/Makefile.am
|
||||
./fortran/testpar/Makefile.in
|
||||
|
@ -298,6 +298,7 @@ FORTRAN_C_LONG_DOUBLE_IS_UNIQUE = @FORTRAN_C_LONG_DOUBLE_IS_UNIQUE@
|
||||
FORTRAN_HAVE_C_LONG_DOUBLE = @FORTRAN_HAVE_C_LONG_DOUBLE@
|
||||
FORTRAN_SIZEOF_LONG_DOUBLE = @FORTRAN_SIZEOF_LONG_DOUBLE@
|
||||
FSEARCH_DIRS = @FSEARCH_DIRS@
|
||||
Fortran_COMPILER_ID = @Fortran_COMPILER_ID@
|
||||
GREP = @GREP@
|
||||
H5CONFIG_F_IKIND = @H5CONFIG_F_IKIND@
|
||||
H5CONFIG_F_NUM_IKIND = @H5CONFIG_F_NUM_IKIND@
|
||||
|
@ -1,4 +1,4 @@
|
||||
HDF5 version 1.9.229 currently under development
|
||||
HDF5 version 1.9.230 currently under development
|
||||
Please refer to the release_docs/INSTALL file for installation instructions.
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
|
@ -260,7 +260,7 @@ if [ X$revmode = Xyes ]; then
|
||||
# Copy old version of config/lt_vers.am, since it's hard to
|
||||
# "undo" changes to it.
|
||||
cp config/lt_vers.am $tmpdir
|
||||
branch=`svn info | grep URL: | awk -F/ '{print $NF}'`
|
||||
branch=`svn info | grep ^URL: | awk -F/ '{print $NF}'`
|
||||
revision=`svn info | grep "Last Changed Rev:" | awk '{print $4}'`
|
||||
# Set version information to m.n.r-r$revision.
|
||||
# (h5vers does not correctly handle just m.n.r-$today.)
|
||||
|
@ -458,6 +458,7 @@ FORTRAN_C_LONG_DOUBLE_IS_UNIQUE = @FORTRAN_C_LONG_DOUBLE_IS_UNIQUE@
|
||||
FORTRAN_HAVE_C_LONG_DOUBLE = @FORTRAN_HAVE_C_LONG_DOUBLE@
|
||||
FORTRAN_SIZEOF_LONG_DOUBLE = @FORTRAN_SIZEOF_LONG_DOUBLE@
|
||||
FSEARCH_DIRS = @FSEARCH_DIRS@
|
||||
Fortran_COMPILER_ID = @Fortran_COMPILER_ID@
|
||||
GREP = @GREP@
|
||||
H5CONFIG_F_IKIND = @H5CONFIG_F_IKIND@
|
||||
H5CONFIG_F_NUM_IKIND = @H5CONFIG_F_NUM_IKIND@
|
||||
|
@ -406,6 +406,7 @@ FORTRAN_C_LONG_DOUBLE_IS_UNIQUE = @FORTRAN_C_LONG_DOUBLE_IS_UNIQUE@
|
||||
FORTRAN_HAVE_C_LONG_DOUBLE = @FORTRAN_HAVE_C_LONG_DOUBLE@
|
||||
FORTRAN_SIZEOF_LONG_DOUBLE = @FORTRAN_SIZEOF_LONG_DOUBLE@
|
||||
FSEARCH_DIRS = @FSEARCH_DIRS@
|
||||
Fortran_COMPILER_ID = @Fortran_COMPILER_ID@
|
||||
GREP = @GREP@
|
||||
H5CONFIG_F_IKIND = @H5CONFIG_F_IKIND@
|
||||
H5CONFIG_F_NUM_IKIND = @H5CONFIG_F_NUM_IKIND@
|
||||
|
@ -469,6 +469,7 @@ FORTRAN_C_LONG_DOUBLE_IS_UNIQUE = @FORTRAN_C_LONG_DOUBLE_IS_UNIQUE@
|
||||
FORTRAN_HAVE_C_LONG_DOUBLE = @FORTRAN_HAVE_C_LONG_DOUBLE@
|
||||
FORTRAN_SIZEOF_LONG_DOUBLE = @FORTRAN_SIZEOF_LONG_DOUBLE@
|
||||
FSEARCH_DIRS = @FSEARCH_DIRS@
|
||||
Fortran_COMPILER_ID = @Fortran_COMPILER_ID@
|
||||
GREP = @GREP@
|
||||
H5CONFIG_F_IKIND = @H5CONFIG_F_IKIND@
|
||||
H5CONFIG_F_NUM_IKIND = @H5CONFIG_F_NUM_IKIND@
|
||||
@ -688,7 +689,7 @@ CHECK_CLEANFILES = *.chkexe *.chklog *.clog *.clog2
|
||||
# After making changes, run bin/reconfigure to update other configure related
|
||||
# files like Makefile.in.
|
||||
LT_VERS_INTERFACE = 6
|
||||
LT_VERS_REVISION = 219
|
||||
LT_VERS_REVISION = 220
|
||||
LT_VERS_AGE = 0
|
||||
|
||||
# This is our main target
|
||||
|
@ -38,7 +38,7 @@ PROJECT_NAME = "HDF5 C++ API"
|
||||
# could be handy for archiving the generated documentation or if some version
|
||||
# control system is used.
|
||||
|
||||
PROJECT_NUMBER = "1.9.229 currently under development"
|
||||
PROJECT_NUMBER = "1.9.230 currently under development"
|
||||
|
||||
# Using the PROJECT_BRIEF tag one can provide an optional one line description
|
||||
# for a project that appears at the top of each page and should give viewer a
|
||||
|
@ -460,6 +460,7 @@ FORTRAN_C_LONG_DOUBLE_IS_UNIQUE = @FORTRAN_C_LONG_DOUBLE_IS_UNIQUE@
|
||||
FORTRAN_HAVE_C_LONG_DOUBLE = @FORTRAN_HAVE_C_LONG_DOUBLE@
|
||||
FORTRAN_SIZEOF_LONG_DOUBLE = @FORTRAN_SIZEOF_LONG_DOUBLE@
|
||||
FSEARCH_DIRS = @FSEARCH_DIRS@
|
||||
Fortran_COMPILER_ID = @Fortran_COMPILER_ID@
|
||||
GREP = @GREP@
|
||||
H5CONFIG_F_IKIND = @H5CONFIG_F_IKIND@
|
||||
H5CONFIG_F_NUM_IKIND = @H5CONFIG_F_NUM_IKIND@
|
||||
|
@ -46,6 +46,8 @@ set (HDF5_USE_18_API_DEFAULT OFF CACHE BOOL "Use the HDF5 1.8.x API by default"
|
||||
|
||||
set (HDF5_ENABLE_THREADSAFE OFF CACHE BOOL "(WINDOWS)Enable Threadsafety" FORCE)
|
||||
|
||||
set (HDF_TEST_EXPRESS "2" CACHE STRING "Control testing framework (0-3)" FORCE)
|
||||
|
||||
set (HDF5_PACKAGE_EXTLIBS OFF CACHE BOOL "(WINDOWS)CPACK - include external libraries" FORCE)
|
||||
|
||||
set (HDF5_NO_PACKAGES OFF CACHE BOOL "CPACK - Disable packaging" FORCE)
|
||||
|
@ -19,7 +19,7 @@
|
||||
# After making changes, run bin/reconfigure to update other configure related
|
||||
# files like Makefile.in.
|
||||
LT_VERS_INTERFACE = 6
|
||||
LT_VERS_REVISION = 219
|
||||
LT_VERS_REVISION = 220
|
||||
LT_VERS_AGE = 0
|
||||
|
||||
## If the API changes *at all*, increment LT_VERS_INTERFACE and
|
||||
|
@ -69,6 +69,7 @@ if test "X-pgf90" = "X-$f9x_vendor"; then
|
||||
|
||||
# General
|
||||
FC_BASENAME=pgf90
|
||||
Fortran_COMPILER_ID=PGI
|
||||
F9XSUFFIXFLAG=""
|
||||
FSEARCH_DIRS=""
|
||||
# Uncomment the following to add something specific for FCFLAGS.
|
||||
|
30
configure
vendored
30
configure
vendored
@ -1,7 +1,7 @@
|
||||
#! /bin/sh
|
||||
# From configure.ac Id: configure.ac 22697 2012-08-19 14:35:47Z hdftest .
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated by GNU Autoconf 2.69 for HDF5 1.9.229.
|
||||
# Generated by GNU Autoconf 2.69 for HDF5 1.9.230.
|
||||
#
|
||||
# Report bugs to <help@hdfgroup.org>.
|
||||
#
|
||||
@ -591,8 +591,8 @@ MAKEFLAGS=
|
||||
# Identity of this package.
|
||||
PACKAGE_NAME='HDF5'
|
||||
PACKAGE_TARNAME='hdf5'
|
||||
PACKAGE_VERSION='1.9.229'
|
||||
PACKAGE_STRING='HDF5 1.9.229'
|
||||
PACKAGE_VERSION='1.9.230'
|
||||
PACKAGE_STRING='HDF5 1.9.230'
|
||||
PACKAGE_BUGREPORT='help@hdfgroup.org'
|
||||
PACKAGE_URL=''
|
||||
|
||||
@ -774,6 +774,7 @@ ac_ct_CC
|
||||
LDFLAGS
|
||||
CFLAGS
|
||||
CC
|
||||
Fortran_COMPILER_ID
|
||||
PAC_C_MAX_REAL_PRECISION
|
||||
UNAME_INFO
|
||||
enable_static
|
||||
@ -1479,7 +1480,7 @@ if test "$ac_init_help" = "long"; then
|
||||
# Omit some internal or obsolete options to make the list less imposing.
|
||||
# This message is too long to be a string in the A/UX 3.1 sh.
|
||||
cat <<_ACEOF
|
||||
\`configure' configures HDF5 1.9.229 to adapt to many kinds of systems.
|
||||
\`configure' configures HDF5 1.9.230 to adapt to many kinds of systems.
|
||||
|
||||
Usage: $0 [OPTION]... [VAR=VALUE]...
|
||||
|
||||
@ -1549,7 +1550,7 @@ fi
|
||||
|
||||
if test -n "$ac_init_help"; then
|
||||
case $ac_init_help in
|
||||
short | recursive ) echo "Configuration of HDF5 1.9.229:";;
|
||||
short | recursive ) echo "Configuration of HDF5 1.9.230:";;
|
||||
esac
|
||||
cat <<\_ACEOF
|
||||
|
||||
@ -1738,7 +1739,7 @@ fi
|
||||
test -n "$ac_init_help" && exit $ac_status
|
||||
if $ac_init_version; then
|
||||
cat <<\_ACEOF
|
||||
HDF5 configure 1.9.229
|
||||
HDF5 configure 1.9.230
|
||||
generated by GNU Autoconf 2.69
|
||||
|
||||
Copyright (C) 2012 Free Software Foundation, Inc.
|
||||
@ -2653,7 +2654,7 @@ cat >config.log <<_ACEOF
|
||||
This file contains any messages produced by compilers while
|
||||
running configure, to aid debugging if configure makes a mistake.
|
||||
|
||||
It was created by HDF5 $as_me 1.9.229, which was
|
||||
It was created by HDF5 $as_me 1.9.230, which was
|
||||
generated by GNU Autoconf 2.69. Invocation command line was
|
||||
|
||||
$ $0 $@
|
||||
@ -3525,7 +3526,7 @@ fi
|
||||
|
||||
# Define the identity of the package.
|
||||
PACKAGE='hdf5'
|
||||
VERSION='1.9.229'
|
||||
VERSION='1.9.230'
|
||||
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
@ -3881,6 +3882,8 @@ $as_echo "done" >&6; }
|
||||
UNAME_INFO=`uname -a`
|
||||
|
||||
|
||||
Fortran_COMPILER_ID=none
|
||||
|
||||
## ----------------------------------------------------------------------
|
||||
## Some platforms have broken basename, and/or xargs programs. Check
|
||||
## that it actually does what it's supposed to do. Catch this early
|
||||
@ -8261,6 +8264,11 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define Fortran_COMPILER_ID $Fortran_COMPILER_ID
|
||||
_ACEOF
|
||||
|
||||
|
||||
## Setting definition if there is a 16 byte fortran integer
|
||||
@ -29464,7 +29472,7 @@ Usage: $0 [OPTIONS]
|
||||
Report bugs to <bug-libtool@gnu.org>."
|
||||
|
||||
lt_cl_version="\
|
||||
HDF5 config.lt 1.9.229
|
||||
HDF5 config.lt 1.9.230
|
||||
configured by $0, generated by GNU Autoconf 2.69.
|
||||
|
||||
Copyright (C) 2011 Free Software Foundation, Inc.
|
||||
@ -31560,7 +31568,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
||||
# report actual input values of CONFIG_FILES etc. instead of their
|
||||
# values after options handling.
|
||||
ac_log="
|
||||
This file was extended by HDF5 $as_me 1.9.229, which was
|
||||
This file was extended by HDF5 $as_me 1.9.230, which was
|
||||
generated by GNU Autoconf 2.69. Invocation command line was
|
||||
|
||||
CONFIG_FILES = $CONFIG_FILES
|
||||
@ -31626,7 +31634,7 @@ _ACEOF
|
||||
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
||||
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
||||
ac_cs_version="\\
|
||||
HDF5 config.status 1.9.229
|
||||
HDF5 config.status 1.9.230
|
||||
configured by $0, generated by GNU Autoconf 2.69,
|
||||
with options \\"\$ac_cs_config\\"
|
||||
|
||||
|
@ -26,7 +26,7 @@ AC_PREREQ([2.69])
|
||||
## NOTE: Do not forget to change the version number here when we do a
|
||||
## release!!!
|
||||
##
|
||||
AC_INIT([HDF5], [1.9.229], [help@hdfgroup.org])
|
||||
AC_INIT([HDF5], [1.9.230], [help@hdfgroup.org])
|
||||
|
||||
AC_CONFIG_SRCDIR([src/H5.c])
|
||||
AC_CONFIG_HEADER([src/H5config.h])
|
||||
@ -183,6 +183,8 @@ AC_SUBST([enable_shared])
|
||||
AC_SUBST([enable_static])
|
||||
AC_SUBST([UNAME_INFO]) UNAME_INFO=`uname -a`
|
||||
AC_SUBST([PAC_C_MAX_REAL_PRECISION])
|
||||
AC_SUBST([Fortran_COMPILER_ID])
|
||||
Fortran_COMPILER_ID=none
|
||||
|
||||
## ----------------------------------------------------------------------
|
||||
## Some platforms have broken basename, and/or xargs programs. Check
|
||||
@ -517,7 +519,8 @@ if test "X$HDF_FORTRAN" = "Xyes"; then
|
||||
AC_SUBST([H5CONFIG_F_RKIND])
|
||||
AC_SUBST([H5CONFIG_F_RKIND_SIZEOF])
|
||||
AC_SUBST([H5CONFIG_F_NUM_IKIND])
|
||||
AC_SUBST([H5CONFIG_F_IKIND])
|
||||
AC_SUBST([H5CONFIG_F_IKIND])
|
||||
AC_DEFINE_UNQUOTED([Fortran_COMPILER_ID], $Fortran_COMPILER_ID, [Define Fortran compiler ID])
|
||||
|
||||
## Setting definition if there is a 16 byte fortran integer
|
||||
if `echo $PAC_FC_ALL_INTEGER_KINDS_SIZEOF | grep '16' >/dev/null`; then
|
||||
|
@ -406,6 +406,7 @@ FORTRAN_C_LONG_DOUBLE_IS_UNIQUE = @FORTRAN_C_LONG_DOUBLE_IS_UNIQUE@
|
||||
FORTRAN_HAVE_C_LONG_DOUBLE = @FORTRAN_HAVE_C_LONG_DOUBLE@
|
||||
FORTRAN_SIZEOF_LONG_DOUBLE = @FORTRAN_SIZEOF_LONG_DOUBLE@
|
||||
FSEARCH_DIRS = @FSEARCH_DIRS@
|
||||
Fortran_COMPILER_ID = @Fortran_COMPILER_ID@
|
||||
GREP = @GREP@
|
||||
H5CONFIG_F_IKIND = @H5CONFIG_F_IKIND@
|
||||
H5CONFIG_F_NUM_IKIND = @H5CONFIG_F_NUM_IKIND@
|
||||
|
@ -462,6 +462,7 @@ FORTRAN_C_LONG_DOUBLE_IS_UNIQUE = @FORTRAN_C_LONG_DOUBLE_IS_UNIQUE@
|
||||
FORTRAN_HAVE_C_LONG_DOUBLE = @FORTRAN_HAVE_C_LONG_DOUBLE@
|
||||
FORTRAN_SIZEOF_LONG_DOUBLE = @FORTRAN_SIZEOF_LONG_DOUBLE@
|
||||
FSEARCH_DIRS = @FSEARCH_DIRS@
|
||||
Fortran_COMPILER_ID = @Fortran_COMPILER_ID@
|
||||
GREP = @GREP@
|
||||
H5CONFIG_F_IKIND = @H5CONFIG_F_IKIND@
|
||||
H5CONFIG_F_NUM_IKIND = @H5CONFIG_F_NUM_IKIND@
|
||||
|
@ -411,6 +411,7 @@ FORTRAN_C_LONG_DOUBLE_IS_UNIQUE = @FORTRAN_C_LONG_DOUBLE_IS_UNIQUE@
|
||||
FORTRAN_HAVE_C_LONG_DOUBLE = @FORTRAN_HAVE_C_LONG_DOUBLE@
|
||||
FORTRAN_SIZEOF_LONG_DOUBLE = @FORTRAN_SIZEOF_LONG_DOUBLE@
|
||||
FSEARCH_DIRS = @FSEARCH_DIRS@
|
||||
Fortran_COMPILER_ID = @Fortran_COMPILER_ID@
|
||||
GREP = @GREP@
|
||||
H5CONFIG_F_IKIND = @H5CONFIG_F_IKIND@
|
||||
H5CONFIG_F_NUM_IKIND = @H5CONFIG_F_NUM_IKIND@
|
||||
|
@ -35,6 +35,8 @@ endif(HAVE_FLOAT128)
|
||||
configure_file (${HDF5_F90_SRC_SOURCE_DIR}/H5config_f.inc.cmake ${CMAKE_BINARY_DIR}/H5config_f.inc @ONLY)
|
||||
configure_file (${HDF5_F90_SRC_SOURCE_DIR}/H5fort_type_defines.h.in ${HDF5_F90_BINARY_DIR}/H5fort_type_defines.h @ONLY)
|
||||
|
||||
set (Fortran_COMPILER_ID CMAKE_Fortran_COMPILER_ID)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Setup the Fortran auto-detection utilities
|
||||
# H5_buildiface.F90 used to generate various KIND interfaces
|
||||
|
@ -82,3 +82,6 @@
|
||||
|
||||
! valid INTEGER KINDs (need to have a matching C counter-part)
|
||||
#define H5_H5CONFIG_F_IKIND @H5CONFIG_F_IKIND@
|
||||
|
||||
! Fortran compiler id
|
||||
#define H5_Fortran_COMPILER_ID @Fortran_COMPILER_ID@
|
||||
|
@ -57,3 +57,6 @@
|
||||
! valid INTEGER KINDs (need to have a matching C counter-part)
|
||||
#undef H5CONFIG_F_IKIND
|
||||
|
||||
! Fortran compiler name
|
||||
#undef Fortran_COMPILER_ID
|
||||
|
||||
|
@ -506,6 +506,7 @@ FORTRAN_C_LONG_DOUBLE_IS_UNIQUE = @FORTRAN_C_LONG_DOUBLE_IS_UNIQUE@
|
||||
FORTRAN_HAVE_C_LONG_DOUBLE = @FORTRAN_HAVE_C_LONG_DOUBLE@
|
||||
FORTRAN_SIZEOF_LONG_DOUBLE = @FORTRAN_SIZEOF_LONG_DOUBLE@
|
||||
FSEARCH_DIRS = @FSEARCH_DIRS@
|
||||
Fortran_COMPILER_ID = @Fortran_COMPILER_ID@
|
||||
GREP = @GREP@
|
||||
H5CONFIG_F_IKIND = @H5CONFIG_F_IKIND@
|
||||
H5CONFIG_F_NUM_IKIND = @H5CONFIG_F_NUM_IKIND@
|
||||
@ -725,7 +726,7 @@ CHECK_CLEANFILES = *.chkexe *.chklog *.clog *.clog2
|
||||
# After making changes, run bin/reconfigure to update other configure related
|
||||
# files like Makefile.in.
|
||||
LT_VERS_INTERFACE = 6
|
||||
LT_VERS_REVISION = 219
|
||||
LT_VERS_REVISION = 220
|
||||
LT_VERS_AGE = 0
|
||||
AM_FCLIBS = $(LIBHDF5)
|
||||
|
||||
|
@ -132,21 +132,21 @@ add_custom_command (
|
||||
|
||||
#-- Adding test for testhdf5_fortran
|
||||
add_executable (testhdf5_fortran
|
||||
fortranlib_test.f90
|
||||
tH5A.f90
|
||||
tH5D.f90
|
||||
tH5E.f90
|
||||
tH5F.f90
|
||||
tH5G.f90
|
||||
tH5I.f90
|
||||
tH5P.f90
|
||||
tH5R.f90
|
||||
tH5S.f90
|
||||
tH5Sselect.f90
|
||||
tH5T.f90
|
||||
tH5VL.f90
|
||||
tH5Z.f90
|
||||
tHDF5.f90
|
||||
fortranlib_test.F90
|
||||
tH5A.F90
|
||||
tH5D.F90
|
||||
tH5E.F90
|
||||
tH5F.F90
|
||||
tH5G.F90
|
||||
tH5I.F90
|
||||
tH5P.F90
|
||||
tH5R.F90
|
||||
tH5S.F90
|
||||
tH5Sselect.F90
|
||||
tH5T.F90
|
||||
tH5VL.F90
|
||||
tH5Z.F90
|
||||
tHDF5.F90
|
||||
)
|
||||
TARGET_NAMING (testhdf5_fortran STATIC)
|
||||
TARGET_FORTRAN_PROPERTIES (testhdf5_fortran STATIC " " " ")
|
||||
@ -166,21 +166,21 @@ set_target_properties (testhdf5_fortran PROPERTIES
|
||||
)
|
||||
if (BUILD_SHARED_LIBS AND NOT SKIP_HDF5_FORTRAN_SHARED)
|
||||
add_executable (testhdf5_fortran-shared
|
||||
fortranlib_test.f90
|
||||
tH5A.f90
|
||||
tH5D.f90
|
||||
tH5E.f90
|
||||
tH5F.f90
|
||||
tH5G.f90
|
||||
tH5I.f90
|
||||
tH5P.f90
|
||||
tH5R.f90
|
||||
tH5S.f90
|
||||
tH5Sselect.f90
|
||||
tH5T.f90
|
||||
tH5VL.f90
|
||||
tH5Z.f90
|
||||
tHDF5.f90
|
||||
fortranlib_test.F90
|
||||
tH5A.F90
|
||||
tH5D.F90
|
||||
tH5E.F90
|
||||
tH5F.F90
|
||||
tH5G.F90
|
||||
tH5I.F90
|
||||
tH5P.F90
|
||||
tH5R.F90
|
||||
tH5S.F90
|
||||
tH5Sselect.F90
|
||||
tH5T.F90
|
||||
tH5VL.F90
|
||||
tH5Z.F90
|
||||
tHDF5.F90
|
||||
)
|
||||
TARGET_NAMING (testhdf5_fortran-shared SHARED)
|
||||
TARGET_FORTRAN_PROPERTIES (testhdf5_fortran-shared SHARED " " " ")
|
||||
@ -202,12 +202,12 @@ endif (BUILD_SHARED_LIBS AND NOT SKIP_HDF5_FORTRAN_SHARED)
|
||||
|
||||
#-- Adding test for testhdf5_fortran_1_8
|
||||
add_executable (testhdf5_fortran_1_8
|
||||
fortranlib_test_1_8.f90
|
||||
tH5O.f90
|
||||
tH5A_1_8.f90
|
||||
tH5G_1_8.f90
|
||||
tH5MISC_1_8.f90
|
||||
tHDF5_1_8.f90
|
||||
fortranlib_test_1_8.F90
|
||||
tH5O.F90
|
||||
tH5A_1_8.F90
|
||||
tH5G_1_8.F90
|
||||
tH5MISC_1_8.F90
|
||||
tHDF5_1_8.F90
|
||||
)
|
||||
TARGET_NAMING (testhdf5_fortran_1_8 STATIC)
|
||||
TARGET_FORTRAN_PROPERTIES (testhdf5_fortran_1_8 STATIC " " " ")
|
||||
@ -227,12 +227,12 @@ set_target_properties (testhdf5_fortran_1_8 PROPERTIES
|
||||
)
|
||||
if (BUILD_SHARED_LIBS AND NOT SKIP_HDF5_FORTRAN_SHARED)
|
||||
add_executable (testhdf5_fortran_1_8-shared
|
||||
fortranlib_test_1_8.f90
|
||||
tH5O.f90
|
||||
tH5A_1_8.f90
|
||||
tH5G_1_8.f90
|
||||
tH5MISC_1_8.f90
|
||||
tHDF5_1_8.f90
|
||||
fortranlib_test_1_8.F90
|
||||
tH5O.F90
|
||||
tH5A_1_8.F90
|
||||
tH5G_1_8.F90
|
||||
tH5MISC_1_8.F90
|
||||
tHDF5_1_8.F90
|
||||
)
|
||||
TARGET_NAMING (testhdf5_fortran_1_8-shared SHARED)
|
||||
TARGET_FORTRAN_PROPERTIES (testhdf5_fortran_1_8-shared SHARED " " " ")
|
||||
@ -254,14 +254,14 @@ endif (BUILD_SHARED_LIBS AND NOT SKIP_HDF5_FORTRAN_SHARED)
|
||||
|
||||
#-- Adding test for fortranlib_test_F03
|
||||
add_executable (fortranlib_test_F03
|
||||
fortranlib_test_F03.f90
|
||||
tH5E_F03.f90
|
||||
tH5F_F03.f90
|
||||
tH5L_F03.f90
|
||||
tH5O_F03.f90
|
||||
tH5P_F03.f90
|
||||
fortranlib_test_F03.F90
|
||||
tH5E_F03.F90
|
||||
tH5F_F03.F90
|
||||
tH5L_F03.F90
|
||||
tH5O_F03.F90
|
||||
tH5P_F03.F90
|
||||
tH5T_F03.F90
|
||||
tHDF5_F03.f90
|
||||
tHDF5_F03.F90
|
||||
)
|
||||
TARGET_NAMING (fortranlib_test_F03 STATIC)
|
||||
TARGET_FORTRAN_PROPERTIES (fortranlib_test_F03 STATIC " " " ")
|
||||
@ -281,14 +281,14 @@ set_target_properties (fortranlib_test_F03 PROPERTIES
|
||||
)
|
||||
if (BUILD_SHARED_LIBS AND NOT SKIP_HDF5_FORTRAN_SHARED)
|
||||
add_executable (fortranlib_test_F03-shared
|
||||
fortranlib_test_F03.f90
|
||||
tH5E_F03.f90
|
||||
tH5F_F03.f90
|
||||
tH5L_F03.f90
|
||||
tH5O_F03.f90
|
||||
tH5P_F03.f90
|
||||
fortranlib_test_F03.F90
|
||||
tH5E_F03.F90
|
||||
tH5F_F03.F90
|
||||
tH5L_F03.F90
|
||||
tH5O_F03.F90
|
||||
tH5P_F03.F90
|
||||
tH5T_F03.F90
|
||||
tHDF5_F03.f90
|
||||
tHDF5_F03.F90
|
||||
)
|
||||
TARGET_NAMING (fortranlib_test_F03-shared SHARED)
|
||||
TARGET_FORTRAN_PROPERTIES (fortranlib_test_F03-shared SHARED " " " ")
|
||||
@ -309,7 +309,7 @@ if (BUILD_SHARED_LIBS AND NOT SKIP_HDF5_FORTRAN_SHARED)
|
||||
endif (BUILD_SHARED_LIBS AND NOT SKIP_HDF5_FORTRAN_SHARED)
|
||||
|
||||
#-- Adding test for fflush1
|
||||
add_executable (fflush1 fflush1.f90)
|
||||
add_executable (fflush1 fflush1.F90)
|
||||
TARGET_NAMING (fflush1 STATIC)
|
||||
TARGET_FORTRAN_PROPERTIES (fflush1 STATIC " " " ")
|
||||
target_link_libraries (fflush1
|
||||
@ -327,7 +327,7 @@ set_target_properties (fflush1 PROPERTIES
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/static
|
||||
)
|
||||
if (BUILD_SHARED_LIBS AND NOT SKIP_HDF5_FORTRAN_SHARED)
|
||||
add_executable (fflush1-shared fflush1.f90)
|
||||
add_executable (fflush1-shared fflush1.F90)
|
||||
TARGET_NAMING (fflush1-shared SHARED)
|
||||
TARGET_FORTRAN_PROPERTIES (fflush1-shared SHARED " " " ")
|
||||
target_link_libraries (fflush1-shared
|
||||
@ -347,7 +347,7 @@ if (BUILD_SHARED_LIBS AND NOT SKIP_HDF5_FORTRAN_SHARED)
|
||||
endif (BUILD_SHARED_LIBS AND NOT SKIP_HDF5_FORTRAN_SHARED)
|
||||
|
||||
#-- Adding test for fflush2
|
||||
add_executable (fflush2 fflush2.f90)
|
||||
add_executable (fflush2 fflush2.F90)
|
||||
TARGET_NAMING (fflush2 STATIC)
|
||||
TARGET_FORTRAN_PROPERTIES (fflush2 STATIC " " " ")
|
||||
target_link_libraries (fflush2
|
||||
@ -365,7 +365,7 @@ set_target_properties (fflush2 PROPERTIES
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/static
|
||||
)
|
||||
if (BUILD_SHARED_LIBS AND NOT SKIP_HDF5_FORTRAN_SHARED)
|
||||
add_executable (fflush2-shared fflush2.f90)
|
||||
add_executable (fflush2-shared fflush2.F90)
|
||||
TARGET_NAMING (fflush2-shared SHARED)
|
||||
TARGET_FORTRAN_PROPERTIES (fflush2-shared SHARED " " " ")
|
||||
target_link_libraries (fflush2-shared
|
||||
|
@ -48,18 +48,18 @@ libh5test_fortran_la_SOURCES = tf_gen.F90 tf.F90 t.c
|
||||
fortranlib_test_FCFLAGS=$(AM_FCFLAGS)
|
||||
fortranlib_test_CFLAGS=$(AM_CFLAGS)
|
||||
|
||||
fortranlib_test_SOURCES = tH5F.f90 tH5D.f90 tH5R.f90 tH5S.f90 tH5T.f90 tH5VL.f90 tH5Z.f90 \
|
||||
tH5Sselect.f90 tH5P.f90 tH5A.f90 tH5I.f90 tH5G.f90 tH5E.f90 tHDF5.f90 fortranlib_test.f90
|
||||
fortranlib_test_SOURCES = tH5F.F90 tH5D.F90 tH5R.F90 tH5S.F90 tH5T.F90 tH5VL.F90 tH5Z.F90 \
|
||||
tH5Sselect.F90 tH5P.F90 tH5A.F90 tH5I.F90 tH5G.F90 tH5E.F90 tHDF5.F90 fortranlib_test.F90
|
||||
|
||||
fortranlib_test_1_8_SOURCES = tH5O.f90 tH5A_1_8.f90 tH5G_1_8.f90 tH5MISC_1_8.f90 tHDF5_1_8.f90 \
|
||||
fortranlib_test_1_8.f90
|
||||
fortranlib_test_1_8_SOURCES = tH5O.F90 tH5A_1_8.F90 tH5G_1_8.F90 tH5MISC_1_8.F90 tHDF5_1_8.F90 \
|
||||
fortranlib_test_1_8.F90
|
||||
|
||||
fortranlib_test_F03_SOURCES = tH5E_F03.f90 tH5F_F03.f90 tH5L_F03.f90 \
|
||||
tH5O_F03.f90 tH5P_F03.f90 tH5T_F03.F90 tHDF5_F03.f90 fortranlib_test_F03.f90
|
||||
fortranlib_test_F03_SOURCES = tH5E_F03.F90 tH5F_F03.F90 tH5L_F03.F90 \
|
||||
tH5O_F03.F90 tH5P_F03.F90 tH5T_F03.F90 tHDF5_F03.F90 fortranlib_test_F03.F90
|
||||
|
||||
|
||||
fflush1_SOURCES=fflush1.f90
|
||||
fflush2_SOURCES=fflush2.f90
|
||||
fflush1_SOURCES=fflush1.F90
|
||||
fflush2_SOURCES=fflush2.F90
|
||||
|
||||
# The tests depend on both fortran libraries and both main libraries.
|
||||
LDADD=libh5test_fortran.la $(LIBH5TEST) $(LIBH5F) $(LIBHDF5)
|
||||
|
@ -210,13 +210,6 @@ AM_V_CCLD = $(am__v_CCLD_@AM_V@)
|
||||
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
|
||||
am__v_CCLD_0 = @echo " CCLD " $@;
|
||||
am__v_CCLD_1 =
|
||||
FCCOMPILE = $(FC) $(AM_FCFLAGS) $(FCFLAGS)
|
||||
LTFCCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=FC $(AM_LIBTOOLFLAGS) \
|
||||
$(LIBTOOLFLAGS) --mode=compile $(FC) $(AM_FCFLAGS) $(FCFLAGS)
|
||||
AM_V_FC = $(am__v_FC_@AM_V@)
|
||||
am__v_FC_ = $(am__v_FC_@AM_DEFAULT_V@)
|
||||
am__v_FC_0 = @echo " FC " $@;
|
||||
am__v_FC_1 =
|
||||
SOURCES = $(libh5test_fortran_la_SOURCES) \
|
||||
$(H5_test_buildiface_SOURCES) $(fflush1_SOURCES) \
|
||||
$(fflush2_SOURCES) $(fortranlib_test_SOURCES) \
|
||||
@ -525,6 +518,7 @@ FORTRAN_C_LONG_DOUBLE_IS_UNIQUE = @FORTRAN_C_LONG_DOUBLE_IS_UNIQUE@
|
||||
FORTRAN_HAVE_C_LONG_DOUBLE = @FORTRAN_HAVE_C_LONG_DOUBLE@
|
||||
FORTRAN_SIZEOF_LONG_DOUBLE = @FORTRAN_SIZEOF_LONG_DOUBLE@
|
||||
FSEARCH_DIRS = @FSEARCH_DIRS@
|
||||
Fortran_COMPILER_ID = @Fortran_COMPILER_ID@
|
||||
GREP = @GREP@
|
||||
H5CONFIG_F_IKIND = @H5CONFIG_F_IKIND@
|
||||
H5CONFIG_F_NUM_IKIND = @H5CONFIG_F_NUM_IKIND@
|
||||
@ -752,17 +746,17 @@ libh5test_fortran_la_SOURCES = tf_gen.F90 tf.F90 t.c
|
||||
# Automake will complain about this without the following workaround.
|
||||
fortranlib_test_FCFLAGS = $(AM_FCFLAGS)
|
||||
fortranlib_test_CFLAGS = $(AM_CFLAGS)
|
||||
fortranlib_test_SOURCES = tH5F.f90 tH5D.f90 tH5R.f90 tH5S.f90 tH5T.f90 tH5VL.f90 tH5Z.f90 \
|
||||
tH5Sselect.f90 tH5P.f90 tH5A.f90 tH5I.f90 tH5G.f90 tH5E.f90 tHDF5.f90 fortranlib_test.f90
|
||||
fortranlib_test_SOURCES = tH5F.F90 tH5D.F90 tH5R.F90 tH5S.F90 tH5T.F90 tH5VL.F90 tH5Z.F90 \
|
||||
tH5Sselect.F90 tH5P.F90 tH5A.F90 tH5I.F90 tH5G.F90 tH5E.F90 tHDF5.F90 fortranlib_test.F90
|
||||
|
||||
fortranlib_test_1_8_SOURCES = tH5O.f90 tH5A_1_8.f90 tH5G_1_8.f90 tH5MISC_1_8.f90 tHDF5_1_8.f90 \
|
||||
fortranlib_test_1_8.f90
|
||||
fortranlib_test_1_8_SOURCES = tH5O.F90 tH5A_1_8.F90 tH5G_1_8.F90 tH5MISC_1_8.F90 tHDF5_1_8.F90 \
|
||||
fortranlib_test_1_8.F90
|
||||
|
||||
fortranlib_test_F03_SOURCES = tH5E_F03.f90 tH5F_F03.f90 tH5L_F03.f90 \
|
||||
tH5O_F03.f90 tH5P_F03.f90 tH5T_F03.F90 tHDF5_F03.f90 fortranlib_test_F03.f90
|
||||
fortranlib_test_F03_SOURCES = tH5E_F03.F90 tH5F_F03.F90 tH5L_F03.F90 \
|
||||
tH5O_F03.F90 tH5P_F03.F90 tH5T_F03.F90 tHDF5_F03.F90 fortranlib_test_F03.F90
|
||||
|
||||
fflush1_SOURCES = fflush1.f90
|
||||
fflush2_SOURCES = fflush2.f90
|
||||
fflush1_SOURCES = fflush1.F90
|
||||
fflush2_SOURCES = fflush2.F90
|
||||
|
||||
# The tests depend on both fortran libraries and both main libraries.
|
||||
LDADD = libh5test_fortran.la $(LIBH5TEST) $(LIBH5F) $(LIBHDF5)
|
||||
@ -907,6 +901,96 @@ distclean-compile:
|
||||
.F90.lo:
|
||||
$(AM_V_PPFC)$(LTPPFCCOMPILE) -c -o $@ $<
|
||||
|
||||
fortranlib_test-tH5F.o: tH5F.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5F.o `test -f 'tH5F.F90' || echo '$(srcdir)/'`tH5F.F90
|
||||
|
||||
fortranlib_test-tH5F.obj: tH5F.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5F.obj `if test -f 'tH5F.F90'; then $(CYGPATH_W) 'tH5F.F90'; else $(CYGPATH_W) '$(srcdir)/tH5F.F90'; fi`
|
||||
|
||||
fortranlib_test-tH5D.o: tH5D.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5D.o `test -f 'tH5D.F90' || echo '$(srcdir)/'`tH5D.F90
|
||||
|
||||
fortranlib_test-tH5D.obj: tH5D.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5D.obj `if test -f 'tH5D.F90'; then $(CYGPATH_W) 'tH5D.F90'; else $(CYGPATH_W) '$(srcdir)/tH5D.F90'; fi`
|
||||
|
||||
fortranlib_test-tH5R.o: tH5R.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5R.o `test -f 'tH5R.F90' || echo '$(srcdir)/'`tH5R.F90
|
||||
|
||||
fortranlib_test-tH5R.obj: tH5R.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5R.obj `if test -f 'tH5R.F90'; then $(CYGPATH_W) 'tH5R.F90'; else $(CYGPATH_W) '$(srcdir)/tH5R.F90'; fi`
|
||||
|
||||
fortranlib_test-tH5S.o: tH5S.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5S.o `test -f 'tH5S.F90' || echo '$(srcdir)/'`tH5S.F90
|
||||
|
||||
fortranlib_test-tH5S.obj: tH5S.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5S.obj `if test -f 'tH5S.F90'; then $(CYGPATH_W) 'tH5S.F90'; else $(CYGPATH_W) '$(srcdir)/tH5S.F90'; fi`
|
||||
|
||||
fortranlib_test-tH5T.o: tH5T.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5T.o `test -f 'tH5T.F90' || echo '$(srcdir)/'`tH5T.F90
|
||||
|
||||
fortranlib_test-tH5T.obj: tH5T.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5T.obj `if test -f 'tH5T.F90'; then $(CYGPATH_W) 'tH5T.F90'; else $(CYGPATH_W) '$(srcdir)/tH5T.F90'; fi`
|
||||
|
||||
fortranlib_test-tH5VL.o: tH5VL.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5VL.o `test -f 'tH5VL.F90' || echo '$(srcdir)/'`tH5VL.F90
|
||||
|
||||
fortranlib_test-tH5VL.obj: tH5VL.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5VL.obj `if test -f 'tH5VL.F90'; then $(CYGPATH_W) 'tH5VL.F90'; else $(CYGPATH_W) '$(srcdir)/tH5VL.F90'; fi`
|
||||
|
||||
fortranlib_test-tH5Z.o: tH5Z.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5Z.o `test -f 'tH5Z.F90' || echo '$(srcdir)/'`tH5Z.F90
|
||||
|
||||
fortranlib_test-tH5Z.obj: tH5Z.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5Z.obj `if test -f 'tH5Z.F90'; then $(CYGPATH_W) 'tH5Z.F90'; else $(CYGPATH_W) '$(srcdir)/tH5Z.F90'; fi`
|
||||
|
||||
fortranlib_test-tH5Sselect.o: tH5Sselect.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5Sselect.o `test -f 'tH5Sselect.F90' || echo '$(srcdir)/'`tH5Sselect.F90
|
||||
|
||||
fortranlib_test-tH5Sselect.obj: tH5Sselect.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5Sselect.obj `if test -f 'tH5Sselect.F90'; then $(CYGPATH_W) 'tH5Sselect.F90'; else $(CYGPATH_W) '$(srcdir)/tH5Sselect.F90'; fi`
|
||||
|
||||
fortranlib_test-tH5P.o: tH5P.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5P.o `test -f 'tH5P.F90' || echo '$(srcdir)/'`tH5P.F90
|
||||
|
||||
fortranlib_test-tH5P.obj: tH5P.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5P.obj `if test -f 'tH5P.F90'; then $(CYGPATH_W) 'tH5P.F90'; else $(CYGPATH_W) '$(srcdir)/tH5P.F90'; fi`
|
||||
|
||||
fortranlib_test-tH5A.o: tH5A.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5A.o `test -f 'tH5A.F90' || echo '$(srcdir)/'`tH5A.F90
|
||||
|
||||
fortranlib_test-tH5A.obj: tH5A.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5A.obj `if test -f 'tH5A.F90'; then $(CYGPATH_W) 'tH5A.F90'; else $(CYGPATH_W) '$(srcdir)/tH5A.F90'; fi`
|
||||
|
||||
fortranlib_test-tH5I.o: tH5I.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5I.o `test -f 'tH5I.F90' || echo '$(srcdir)/'`tH5I.F90
|
||||
|
||||
fortranlib_test-tH5I.obj: tH5I.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5I.obj `if test -f 'tH5I.F90'; then $(CYGPATH_W) 'tH5I.F90'; else $(CYGPATH_W) '$(srcdir)/tH5I.F90'; fi`
|
||||
|
||||
fortranlib_test-tH5G.o: tH5G.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5G.o `test -f 'tH5G.F90' || echo '$(srcdir)/'`tH5G.F90
|
||||
|
||||
fortranlib_test-tH5G.obj: tH5G.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5G.obj `if test -f 'tH5G.F90'; then $(CYGPATH_W) 'tH5G.F90'; else $(CYGPATH_W) '$(srcdir)/tH5G.F90'; fi`
|
||||
|
||||
fortranlib_test-tH5E.o: tH5E.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5E.o `test -f 'tH5E.F90' || echo '$(srcdir)/'`tH5E.F90
|
||||
|
||||
fortranlib_test-tH5E.obj: tH5E.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5E.obj `if test -f 'tH5E.F90'; then $(CYGPATH_W) 'tH5E.F90'; else $(CYGPATH_W) '$(srcdir)/tH5E.F90'; fi`
|
||||
|
||||
fortranlib_test-tHDF5.o: tHDF5.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tHDF5.o `test -f 'tHDF5.F90' || echo '$(srcdir)/'`tHDF5.F90
|
||||
|
||||
fortranlib_test-tHDF5.obj: tHDF5.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tHDF5.obj `if test -f 'tHDF5.F90'; then $(CYGPATH_W) 'tHDF5.F90'; else $(CYGPATH_W) '$(srcdir)/tHDF5.F90'; fi`
|
||||
|
||||
fortranlib_test-fortranlib_test.o: fortranlib_test.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-fortranlib_test.o `test -f 'fortranlib_test.F90' || echo '$(srcdir)/'`fortranlib_test.F90
|
||||
|
||||
fortranlib_test-fortranlib_test.obj: fortranlib_test.F90
|
||||
$(AM_V_PPFC)$(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-fortranlib_test.obj `if test -f 'fortranlib_test.F90'; then $(CYGPATH_W) 'fortranlib_test.F90'; else $(CYGPATH_W) '$(srcdir)/fortranlib_test.F90'; fi`
|
||||
|
||||
.c.o:
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||
@ -928,102 +1012,6 @@ distclean-compile:
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
|
||||
|
||||
.f90.obj:
|
||||
$(AM_V_FC)$(FCCOMPILE) -c -o $@ $(FCFLAGS_f90) `$(CYGPATH_W) '$<'`
|
||||
|
||||
.f90.lo:
|
||||
$(AM_V_FC)$(LTFCCOMPILE) -c -o $@ $(FCFLAGS_f90) $<
|
||||
|
||||
fortranlib_test-tH5F.o: tH5F.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5F.o $(FCFLAGS_f90) `test -f 'tH5F.f90' || echo '$(srcdir)/'`tH5F.f90
|
||||
|
||||
fortranlib_test-tH5F.obj: tH5F.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5F.obj $(FCFLAGS_f90) `if test -f 'tH5F.f90'; then $(CYGPATH_W) 'tH5F.f90'; else $(CYGPATH_W) '$(srcdir)/tH5F.f90'; fi`
|
||||
|
||||
fortranlib_test-tH5D.o: tH5D.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5D.o $(FCFLAGS_f90) `test -f 'tH5D.f90' || echo '$(srcdir)/'`tH5D.f90
|
||||
|
||||
fortranlib_test-tH5D.obj: tH5D.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5D.obj $(FCFLAGS_f90) `if test -f 'tH5D.f90'; then $(CYGPATH_W) 'tH5D.f90'; else $(CYGPATH_W) '$(srcdir)/tH5D.f90'; fi`
|
||||
|
||||
fortranlib_test-tH5R.o: tH5R.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5R.o $(FCFLAGS_f90) `test -f 'tH5R.f90' || echo '$(srcdir)/'`tH5R.f90
|
||||
|
||||
fortranlib_test-tH5R.obj: tH5R.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5R.obj $(FCFLAGS_f90) `if test -f 'tH5R.f90'; then $(CYGPATH_W) 'tH5R.f90'; else $(CYGPATH_W) '$(srcdir)/tH5R.f90'; fi`
|
||||
|
||||
fortranlib_test-tH5S.o: tH5S.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5S.o $(FCFLAGS_f90) `test -f 'tH5S.f90' || echo '$(srcdir)/'`tH5S.f90
|
||||
|
||||
fortranlib_test-tH5S.obj: tH5S.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5S.obj $(FCFLAGS_f90) `if test -f 'tH5S.f90'; then $(CYGPATH_W) 'tH5S.f90'; else $(CYGPATH_W) '$(srcdir)/tH5S.f90'; fi`
|
||||
|
||||
fortranlib_test-tH5T.o: tH5T.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5T.o $(FCFLAGS_f90) `test -f 'tH5T.f90' || echo '$(srcdir)/'`tH5T.f90
|
||||
|
||||
fortranlib_test-tH5T.obj: tH5T.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5T.obj $(FCFLAGS_f90) `if test -f 'tH5T.f90'; then $(CYGPATH_W) 'tH5T.f90'; else $(CYGPATH_W) '$(srcdir)/tH5T.f90'; fi`
|
||||
|
||||
fortranlib_test-tH5VL.o: tH5VL.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5VL.o $(FCFLAGS_f90) `test -f 'tH5VL.f90' || echo '$(srcdir)/'`tH5VL.f90
|
||||
|
||||
fortranlib_test-tH5VL.obj: tH5VL.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5VL.obj $(FCFLAGS_f90) `if test -f 'tH5VL.f90'; then $(CYGPATH_W) 'tH5VL.f90'; else $(CYGPATH_W) '$(srcdir)/tH5VL.f90'; fi`
|
||||
|
||||
fortranlib_test-tH5Z.o: tH5Z.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5Z.o $(FCFLAGS_f90) `test -f 'tH5Z.f90' || echo '$(srcdir)/'`tH5Z.f90
|
||||
|
||||
fortranlib_test-tH5Z.obj: tH5Z.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5Z.obj $(FCFLAGS_f90) `if test -f 'tH5Z.f90'; then $(CYGPATH_W) 'tH5Z.f90'; else $(CYGPATH_W) '$(srcdir)/tH5Z.f90'; fi`
|
||||
|
||||
fortranlib_test-tH5Sselect.o: tH5Sselect.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5Sselect.o $(FCFLAGS_f90) `test -f 'tH5Sselect.f90' || echo '$(srcdir)/'`tH5Sselect.f90
|
||||
|
||||
fortranlib_test-tH5Sselect.obj: tH5Sselect.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5Sselect.obj $(FCFLAGS_f90) `if test -f 'tH5Sselect.f90'; then $(CYGPATH_W) 'tH5Sselect.f90'; else $(CYGPATH_W) '$(srcdir)/tH5Sselect.f90'; fi`
|
||||
|
||||
fortranlib_test-tH5P.o: tH5P.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5P.o $(FCFLAGS_f90) `test -f 'tH5P.f90' || echo '$(srcdir)/'`tH5P.f90
|
||||
|
||||
fortranlib_test-tH5P.obj: tH5P.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5P.obj $(FCFLAGS_f90) `if test -f 'tH5P.f90'; then $(CYGPATH_W) 'tH5P.f90'; else $(CYGPATH_W) '$(srcdir)/tH5P.f90'; fi`
|
||||
|
||||
fortranlib_test-tH5A.o: tH5A.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5A.o $(FCFLAGS_f90) `test -f 'tH5A.f90' || echo '$(srcdir)/'`tH5A.f90
|
||||
|
||||
fortranlib_test-tH5A.obj: tH5A.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5A.obj $(FCFLAGS_f90) `if test -f 'tH5A.f90'; then $(CYGPATH_W) 'tH5A.f90'; else $(CYGPATH_W) '$(srcdir)/tH5A.f90'; fi`
|
||||
|
||||
fortranlib_test-tH5I.o: tH5I.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5I.o $(FCFLAGS_f90) `test -f 'tH5I.f90' || echo '$(srcdir)/'`tH5I.f90
|
||||
|
||||
fortranlib_test-tH5I.obj: tH5I.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5I.obj $(FCFLAGS_f90) `if test -f 'tH5I.f90'; then $(CYGPATH_W) 'tH5I.f90'; else $(CYGPATH_W) '$(srcdir)/tH5I.f90'; fi`
|
||||
|
||||
fortranlib_test-tH5G.o: tH5G.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5G.o $(FCFLAGS_f90) `test -f 'tH5G.f90' || echo '$(srcdir)/'`tH5G.f90
|
||||
|
||||
fortranlib_test-tH5G.obj: tH5G.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5G.obj $(FCFLAGS_f90) `if test -f 'tH5G.f90'; then $(CYGPATH_W) 'tH5G.f90'; else $(CYGPATH_W) '$(srcdir)/tH5G.f90'; fi`
|
||||
|
||||
fortranlib_test-tH5E.o: tH5E.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5E.o $(FCFLAGS_f90) `test -f 'tH5E.f90' || echo '$(srcdir)/'`tH5E.f90
|
||||
|
||||
fortranlib_test-tH5E.obj: tH5E.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tH5E.obj $(FCFLAGS_f90) `if test -f 'tH5E.f90'; then $(CYGPATH_W) 'tH5E.f90'; else $(CYGPATH_W) '$(srcdir)/tH5E.f90'; fi`
|
||||
|
||||
fortranlib_test-tHDF5.o: tHDF5.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tHDF5.o $(FCFLAGS_f90) `test -f 'tHDF5.f90' || echo '$(srcdir)/'`tHDF5.f90
|
||||
|
||||
fortranlib_test-tHDF5.obj: tHDF5.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-tHDF5.obj $(FCFLAGS_f90) `if test -f 'tHDF5.f90'; then $(CYGPATH_W) 'tHDF5.f90'; else $(CYGPATH_W) '$(srcdir)/tHDF5.f90'; fi`
|
||||
|
||||
fortranlib_test-fortranlib_test.o: fortranlib_test.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-fortranlib_test.o $(FCFLAGS_f90) `test -f 'fortranlib_test.f90' || echo '$(srcdir)/'`fortranlib_test.f90
|
||||
|
||||
fortranlib_test-fortranlib_test.obj: fortranlib_test.f90
|
||||
$(AM_V_FC)$(FC) $(fortranlib_test_FCFLAGS) $(FCFLAGS) -c -o fortranlib_test-fortranlib_test.obj $(FCFLAGS_f90) `if test -f 'fortranlib_test.f90'; then $(CYGPATH_W) 'fortranlib_test.f90'; else $(CYGPATH_W) '$(srcdir)/fortranlib_test.f90'; fi`
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
|
@ -93,9 +93,12 @@ PROGRAM fortranlibtest
|
||||
ret_total_error = 0
|
||||
CALL extenddsettest(cleanup, ret_total_error)
|
||||
CALL write_test_status(ret_total_error, ' Extendible dataset test', total_error)
|
||||
! MSB--DISABLED TEST-- Fails for unknown reasons on platypus with pgf90 compiler
|
||||
|
||||
! -- DISABLE TEST FOR PGI COMPILER DUE TO COMPILER BUG -- 8/2015 -- HDFFV-9498
|
||||
!#if H5_Fortran_COMPILER_ID!=PGI
|
||||
! CALL test_userblock_offset(cleanup, ret_total_error)
|
||||
! CALL write_test_status(ret_total_error, ' Dataset offset with user block', total_error)
|
||||
!#endif
|
||||
|
||||
! write(*,*)
|
||||
! write(*,*) '========================================='
|
@ -463,6 +463,7 @@ FORTRAN_C_LONG_DOUBLE_IS_UNIQUE = @FORTRAN_C_LONG_DOUBLE_IS_UNIQUE@
|
||||
FORTRAN_HAVE_C_LONG_DOUBLE = @FORTRAN_HAVE_C_LONG_DOUBLE@
|
||||
FORTRAN_SIZEOF_LONG_DOUBLE = @FORTRAN_SIZEOF_LONG_DOUBLE@
|
||||
FSEARCH_DIRS = @FSEARCH_DIRS@
|
||||
Fortran_COMPILER_ID = @Fortran_COMPILER_ID@
|
||||
GREP = @GREP@
|
||||
H5CONFIG_F_IKIND = @H5CONFIG_F_IKIND@
|
||||
H5CONFIG_F_NUM_IKIND = @H5CONFIG_F_NUM_IKIND@
|
||||
|
@ -462,6 +462,7 @@ FORTRAN_C_LONG_DOUBLE_IS_UNIQUE = @FORTRAN_C_LONG_DOUBLE_IS_UNIQUE@
|
||||
FORTRAN_HAVE_C_LONG_DOUBLE = @FORTRAN_HAVE_C_LONG_DOUBLE@
|
||||
FORTRAN_SIZEOF_LONG_DOUBLE = @FORTRAN_SIZEOF_LONG_DOUBLE@
|
||||
FSEARCH_DIRS = @FSEARCH_DIRS@
|
||||
Fortran_COMPILER_ID = @Fortran_COMPILER_ID@
|
||||
GREP = @GREP@
|
||||
H5CONFIG_F_IKIND = @H5CONFIG_F_IKIND@
|
||||
H5CONFIG_F_NUM_IKIND = @H5CONFIG_F_NUM_IKIND@
|
||||
|
@ -458,6 +458,7 @@ FORTRAN_C_LONG_DOUBLE_IS_UNIQUE = @FORTRAN_C_LONG_DOUBLE_IS_UNIQUE@
|
||||
FORTRAN_HAVE_C_LONG_DOUBLE = @FORTRAN_HAVE_C_LONG_DOUBLE@
|
||||
FORTRAN_SIZEOF_LONG_DOUBLE = @FORTRAN_SIZEOF_LONG_DOUBLE@
|
||||
FSEARCH_DIRS = @FSEARCH_DIRS@
|
||||
Fortran_COMPILER_ID = @Fortran_COMPILER_ID@
|
||||
GREP = @GREP@
|
||||
H5CONFIG_F_IKIND = @H5CONFIG_F_IKIND@
|
||||
H5CONFIG_F_NUM_IKIND = @H5CONFIG_F_NUM_IKIND@
|
||||
|
@ -405,6 +405,7 @@ FORTRAN_C_LONG_DOUBLE_IS_UNIQUE = @FORTRAN_C_LONG_DOUBLE_IS_UNIQUE@
|
||||
FORTRAN_HAVE_C_LONG_DOUBLE = @FORTRAN_HAVE_C_LONG_DOUBLE@
|
||||
FORTRAN_SIZEOF_LONG_DOUBLE = @FORTRAN_SIZEOF_LONG_DOUBLE@
|
||||
FSEARCH_DIRS = @FSEARCH_DIRS@
|
||||
Fortran_COMPILER_ID = @Fortran_COMPILER_ID@
|
||||
GREP = @GREP@
|
||||
H5CONFIG_F_IKIND = @H5CONFIG_F_IKIND@
|
||||
H5CONFIG_F_NUM_IKIND = @H5CONFIG_F_NUM_IKIND@
|
||||
|
@ -461,6 +461,7 @@ FORTRAN_C_LONG_DOUBLE_IS_UNIQUE = @FORTRAN_C_LONG_DOUBLE_IS_UNIQUE@
|
||||
FORTRAN_HAVE_C_LONG_DOUBLE = @FORTRAN_HAVE_C_LONG_DOUBLE@
|
||||
FORTRAN_SIZEOF_LONG_DOUBLE = @FORTRAN_SIZEOF_LONG_DOUBLE@
|
||||
FSEARCH_DIRS = @FSEARCH_DIRS@
|
||||
Fortran_COMPILER_ID = @Fortran_COMPILER_ID@
|
||||
GREP = @GREP@
|
||||
H5CONFIG_F_IKIND = @H5CONFIG_F_IKIND@
|
||||
H5CONFIG_F_NUM_IKIND = @H5CONFIG_F_NUM_IKIND@
|
||||
@ -680,7 +681,7 @@ CHECK_CLEANFILES = *.chkexe *.chklog *.clog *.clog2
|
||||
# After making changes, run bin/reconfigure to update other configure related
|
||||
# files like Makefile.in.
|
||||
LT_VERS_INTERFACE = 6
|
||||
LT_VERS_REVISION = 219
|
||||
LT_VERS_REVISION = 220
|
||||
LT_VERS_AGE = 0
|
||||
|
||||
# This is our main target
|
||||
|
@ -458,6 +458,7 @@ FORTRAN_C_LONG_DOUBLE_IS_UNIQUE = @FORTRAN_C_LONG_DOUBLE_IS_UNIQUE@
|
||||
FORTRAN_HAVE_C_LONG_DOUBLE = @FORTRAN_HAVE_C_LONG_DOUBLE@
|
||||
FORTRAN_SIZEOF_LONG_DOUBLE = @FORTRAN_SIZEOF_LONG_DOUBLE@
|
||||
FSEARCH_DIRS = @FSEARCH_DIRS@
|
||||
Fortran_COMPILER_ID = @Fortran_COMPILER_ID@
|
||||
GREP = @GREP@
|
||||
H5CONFIG_F_IKIND = @H5CONFIG_F_IKIND@
|
||||
H5CONFIG_F_NUM_IKIND = @H5CONFIG_F_NUM_IKIND@
|
||||
|
@ -405,6 +405,7 @@ FORTRAN_C_LONG_DOUBLE_IS_UNIQUE = @FORTRAN_C_LONG_DOUBLE_IS_UNIQUE@
|
||||
FORTRAN_HAVE_C_LONG_DOUBLE = @FORTRAN_HAVE_C_LONG_DOUBLE@
|
||||
FORTRAN_SIZEOF_LONG_DOUBLE = @FORTRAN_SIZEOF_LONG_DOUBLE@
|
||||
FSEARCH_DIRS = @FSEARCH_DIRS@
|
||||
Fortran_COMPILER_ID = @Fortran_COMPILER_ID@
|
||||
GREP = @GREP@
|
||||
H5CONFIG_F_IKIND = @H5CONFIG_F_IKIND@
|
||||
H5CONFIG_F_NUM_IKIND = @H5CONFIG_F_NUM_IKIND@
|
||||
|
@ -462,6 +462,7 @@ FORTRAN_C_LONG_DOUBLE_IS_UNIQUE = @FORTRAN_C_LONG_DOUBLE_IS_UNIQUE@
|
||||
FORTRAN_HAVE_C_LONG_DOUBLE = @FORTRAN_HAVE_C_LONG_DOUBLE@
|
||||
FORTRAN_SIZEOF_LONG_DOUBLE = @FORTRAN_SIZEOF_LONG_DOUBLE@
|
||||
FSEARCH_DIRS = @FSEARCH_DIRS@
|
||||
Fortran_COMPILER_ID = @Fortran_COMPILER_ID@
|
||||
GREP = @GREP@
|
||||
H5CONFIG_F_IKIND = @H5CONFIG_F_IKIND@
|
||||
H5CONFIG_F_NUM_IKIND = @H5CONFIG_F_NUM_IKIND@
|
||||
|
@ -410,6 +410,7 @@ FORTRAN_C_LONG_DOUBLE_IS_UNIQUE = @FORTRAN_C_LONG_DOUBLE_IS_UNIQUE@
|
||||
FORTRAN_HAVE_C_LONG_DOUBLE = @FORTRAN_HAVE_C_LONG_DOUBLE@
|
||||
FORTRAN_SIZEOF_LONG_DOUBLE = @FORTRAN_SIZEOF_LONG_DOUBLE@
|
||||
FSEARCH_DIRS = @FSEARCH_DIRS@
|
||||
Fortran_COMPILER_ID = @Fortran_COMPILER_ID@
|
||||
GREP = @GREP@
|
||||
H5CONFIG_F_IKIND = @H5CONFIG_F_IKIND@
|
||||
H5CONFIG_F_NUM_IKIND = @H5CONFIG_F_NUM_IKIND@
|
||||
|
@ -489,6 +489,7 @@ FORTRAN_C_LONG_DOUBLE_IS_UNIQUE = @FORTRAN_C_LONG_DOUBLE_IS_UNIQUE@
|
||||
FORTRAN_HAVE_C_LONG_DOUBLE = @FORTRAN_HAVE_C_LONG_DOUBLE@
|
||||
FORTRAN_SIZEOF_LONG_DOUBLE = @FORTRAN_SIZEOF_LONG_DOUBLE@
|
||||
FSEARCH_DIRS = @FSEARCH_DIRS@
|
||||
Fortran_COMPILER_ID = @Fortran_COMPILER_ID@
|
||||
GREP = @GREP@
|
||||
H5CONFIG_F_IKIND = @H5CONFIG_F_IKIND@
|
||||
H5CONFIG_F_NUM_IKIND = @H5CONFIG_F_NUM_IKIND@
|
||||
@ -708,7 +709,7 @@ CHECK_CLEANFILES = *.chkexe *.chklog *.clog *.clog2
|
||||
# After making changes, run bin/reconfigure to update other configure related
|
||||
# files like Makefile.in.
|
||||
LT_VERS_INTERFACE = 6
|
||||
LT_VERS_REVISION = 219
|
||||
LT_VERS_REVISION = 220
|
||||
LT_VERS_AGE = 0
|
||||
|
||||
# Our main target, the high-level fortran library
|
||||
|
@ -472,6 +472,7 @@ FORTRAN_C_LONG_DOUBLE_IS_UNIQUE = @FORTRAN_C_LONG_DOUBLE_IS_UNIQUE@
|
||||
FORTRAN_HAVE_C_LONG_DOUBLE = @FORTRAN_HAVE_C_LONG_DOUBLE@
|
||||
FORTRAN_SIZEOF_LONG_DOUBLE = @FORTRAN_SIZEOF_LONG_DOUBLE@
|
||||
FSEARCH_DIRS = @FSEARCH_DIRS@
|
||||
Fortran_COMPILER_ID = @Fortran_COMPILER_ID@
|
||||
GREP = @GREP@
|
||||
H5CONFIG_F_IKIND = @H5CONFIG_F_IKIND@
|
||||
H5CONFIG_F_NUM_IKIND = @H5CONFIG_F_NUM_IKIND@
|
||||
|
@ -460,6 +460,7 @@ FORTRAN_C_LONG_DOUBLE_IS_UNIQUE = @FORTRAN_C_LONG_DOUBLE_IS_UNIQUE@
|
||||
FORTRAN_HAVE_C_LONG_DOUBLE = @FORTRAN_HAVE_C_LONG_DOUBLE@
|
||||
FORTRAN_SIZEOF_LONG_DOUBLE = @FORTRAN_SIZEOF_LONG_DOUBLE@
|
||||
FSEARCH_DIRS = @FSEARCH_DIRS@
|
||||
Fortran_COMPILER_ID = @Fortran_COMPILER_ID@
|
||||
GREP = @GREP@
|
||||
H5CONFIG_F_IKIND = @H5CONFIG_F_IKIND@
|
||||
H5CONFIG_F_NUM_IKIND = @H5CONFIG_F_NUM_IKIND@
|
||||
@ -679,7 +680,7 @@ CHECK_CLEANFILES = *.chkexe *.chklog *.clog *.clog2
|
||||
# After making changes, run bin/reconfigure to update other configure related
|
||||
# files like Makefile.in.
|
||||
LT_VERS_INTERFACE = 6
|
||||
LT_VERS_REVISION = 219
|
||||
LT_VERS_REVISION = 220
|
||||
LT_VERS_AGE = 0
|
||||
|
||||
# This library is our main target.
|
||||
|
@ -497,6 +497,7 @@ FORTRAN_C_LONG_DOUBLE_IS_UNIQUE = @FORTRAN_C_LONG_DOUBLE_IS_UNIQUE@
|
||||
FORTRAN_HAVE_C_LONG_DOUBLE = @FORTRAN_HAVE_C_LONG_DOUBLE@
|
||||
FORTRAN_SIZEOF_LONG_DOUBLE = @FORTRAN_SIZEOF_LONG_DOUBLE@
|
||||
FSEARCH_DIRS = @FSEARCH_DIRS@
|
||||
Fortran_COMPILER_ID = @Fortran_COMPILER_ID@
|
||||
GREP = @GREP@
|
||||
H5CONFIG_F_IKIND = @H5CONFIG_F_IKIND@
|
||||
H5CONFIG_F_NUM_IKIND = @H5CONFIG_F_NUM_IKIND@
|
||||
|
@ -459,6 +459,7 @@ FORTRAN_C_LONG_DOUBLE_IS_UNIQUE = @FORTRAN_C_LONG_DOUBLE_IS_UNIQUE@
|
||||
FORTRAN_HAVE_C_LONG_DOUBLE = @FORTRAN_HAVE_C_LONG_DOUBLE@
|
||||
FORTRAN_SIZEOF_LONG_DOUBLE = @FORTRAN_SIZEOF_LONG_DOUBLE@
|
||||
FSEARCH_DIRS = @FSEARCH_DIRS@
|
||||
Fortran_COMPILER_ID = @Fortran_COMPILER_ID@
|
||||
GREP = @GREP@
|
||||
H5CONFIG_F_IKIND = @H5CONFIG_F_IKIND@
|
||||
H5CONFIG_F_NUM_IKIND = @H5CONFIG_F_NUM_IKIND@
|
||||
|
@ -473,6 +473,7 @@ FORTRAN_C_LONG_DOUBLE_IS_UNIQUE = @FORTRAN_C_LONG_DOUBLE_IS_UNIQUE@
|
||||
FORTRAN_HAVE_C_LONG_DOUBLE = @FORTRAN_HAVE_C_LONG_DOUBLE@
|
||||
FORTRAN_SIZEOF_LONG_DOUBLE = @FORTRAN_SIZEOF_LONG_DOUBLE@
|
||||
FSEARCH_DIRS = @FSEARCH_DIRS@
|
||||
Fortran_COMPILER_ID = @Fortran_COMPILER_ID@
|
||||
GREP = @GREP@
|
||||
H5CONFIG_F_IKIND = @H5CONFIG_F_IKIND@
|
||||
H5CONFIG_F_NUM_IKIND = @H5CONFIG_F_NUM_IKIND@
|
||||
|
@ -1,4 +1,4 @@
|
||||
HDF5 version 1.9.229 currently under development
|
||||
HDF5 version 1.9.230 currently under development
|
||||
================================================================================
|
||||
|
||||
|
||||
|
@ -192,6 +192,8 @@ typedef struct H5D_chunk_coll_info_t {
|
||||
|
||||
/* Chunked layout operation callbacks */
|
||||
static herr_t H5D__chunk_construct(H5F_t *f, H5D_t *dset);
|
||||
static herr_t H5D__chunk_init(H5F_t *f, hid_t dxpl_id, const H5D_t *dset,
|
||||
hid_t dapl_id);
|
||||
static herr_t H5D__chunk_io_init(const H5D_io_info_t *io_info,
|
||||
const H5D_type_info_t *type_info, hsize_t nelmts, const H5S_t *file_space,
|
||||
const H5S_t *mem_space, H5D_chunk_map_t *fm);
|
||||
@ -585,7 +587,7 @@ done:
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
herr_t
|
||||
static herr_t
|
||||
H5D__chunk_init(H5F_t *f, hid_t dxpl_id, const H5D_t *dset, hid_t dapl_id)
|
||||
{
|
||||
H5D_chk_idx_info_t idx_info; /* Chunked index info */
|
||||
@ -593,7 +595,7 @@ H5D__chunk_init(H5F_t *f, hid_t dxpl_id, const H5D_t *dset, hid_t dapl_id)
|
||||
H5P_genplist_t *dapl; /* Data access property list object pointer */
|
||||
herr_t ret_value = SUCCEED; /* Return value */
|
||||
|
||||
FUNC_ENTER_PACKAGE
|
||||
FUNC_ENTER_STATIC
|
||||
|
||||
/* Sanity check */
|
||||
HDassert(f);
|
||||
@ -2118,10 +2120,6 @@ H5D__chunk_flush(H5D_t *dset, hid_t dxpl_id)
|
||||
/* Sanity check */
|
||||
HDassert(dset);
|
||||
|
||||
/* Flush any data caught in sieve buffer */
|
||||
if(H5D__flush_sieve_buf(dset, dxpl_id) < 0)
|
||||
HGOTO_ERROR(H5E_DATASET, H5E_CANTFLUSH, FAIL, "unable to flush sieve buffer")
|
||||
|
||||
/* Fill the DXPL cache values for later use */
|
||||
if(H5D__get_dxpl_cache(dxpl_id, &dxpl_cache) < 0)
|
||||
HGOTO_ERROR(H5E_DATASET, H5E_CANTGET, FAIL, "can't fill dxpl cache")
|
||||
|
@ -96,6 +96,8 @@ typedef struct H5D_contig_writevv_ud_t {
|
||||
|
||||
/* Layout operation callbacks */
|
||||
static herr_t H5D__contig_construct(H5F_t *f, H5D_t *dset);
|
||||
static herr_t H5D__contig_init(H5F_t *f, hid_t dxpl_id, const H5D_t *dset,
|
||||
hid_t dapl_id);
|
||||
static herr_t H5D__contig_io_init(const H5D_io_info_t *io_info, const H5D_type_info_t *type_info,
|
||||
hsize_t nelmts, const H5S_t *file_space, const H5S_t *mem_space,
|
||||
H5D_chunk_map_t *cm);
|
||||
@ -119,7 +121,7 @@ static herr_t H5D__contig_write_one(H5D_io_info_t *io_info, hsize_t offset,
|
||||
/* Contiguous storage layout I/O ops */
|
||||
const H5D_layout_ops_t H5D_LOPS_CONTIG[1] = {{
|
||||
H5D__contig_construct,
|
||||
NULL,
|
||||
H5D__contig_init,
|
||||
H5D__contig_is_space_alloc,
|
||||
H5D__contig_io_init,
|
||||
H5D__contig_read,
|
||||
@ -449,6 +451,78 @@ done:
|
||||
FUNC_LEAVE_NOAPI(ret_value)
|
||||
} /* end H5D__contig_construct() */
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* Function: H5D__contig_init
|
||||
*
|
||||
* Purpose: Initialize the contiguous info for a dataset. This is
|
||||
* called when the dataset is initialized.
|
||||
*
|
||||
* Return: Non-negative on success/Negative on failure
|
||||
*
|
||||
* Programmer: Quincey Koziol
|
||||
* Friday, August 28, 2015
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
static herr_t
|
||||
H5D__contig_init(H5F_t *f, hid_t dxpl_id, const H5D_t *dset, hid_t dapl_id)
|
||||
{
|
||||
hsize_t tmp_size; /* Temporary holder for raw data size */
|
||||
size_t tmp_sieve_buf_size; /* Temporary holder for sieve buffer size */
|
||||
herr_t ret_value = SUCCEED; /* Return value */
|
||||
|
||||
FUNC_ENTER_STATIC
|
||||
|
||||
/* Sanity check */
|
||||
HDassert(f);
|
||||
HDassert(dset);
|
||||
|
||||
/* Compute the size of the contiguous storage for versions of the
|
||||
* layout message less than version 3 because versions 1 & 2 would
|
||||
* truncate the dimension sizes to 32-bits of information. - QAK 5/26/04
|
||||
*/
|
||||
if(dset->shared->layout.version < 3) {
|
||||
hssize_t snelmts; /* Temporary holder for number of elements in dataspace */
|
||||
hsize_t nelmts; /* Number of elements in dataspace */
|
||||
size_t dt_size; /* Size of datatype */
|
||||
|
||||
/* Retrieve the number of elements in the dataspace */
|
||||
if((snelmts = H5S_GET_EXTENT_NPOINTS(dset->shared->space)) < 0)
|
||||
HGOTO_ERROR(H5E_DATASET, H5E_CANTGET, FAIL, "unable to retrieve number of elements in dataspace")
|
||||
nelmts = (hsize_t)snelmts;
|
||||
|
||||
/* Get the datatype's size */
|
||||
if(0 == (dt_size = H5T_GET_SIZE(dset->shared->type)))
|
||||
HGOTO_ERROR(H5E_DATASET, H5E_CANTGET, FAIL, "unable to retrieve size of datatype")
|
||||
|
||||
/* Compute the size of the dataset's contiguous storage */
|
||||
tmp_size = nelmts * dt_size;
|
||||
|
||||
/* Check for overflow during multiplication */
|
||||
if(nelmts != (tmp_size / dt_size))
|
||||
HGOTO_ERROR(H5E_DATASET, H5E_OVERFLOW, FAIL, "size of dataset's storage overflowed")
|
||||
|
||||
/* Assign the dataset's contiguous storage size */
|
||||
dset->shared->layout.storage.u.contig.size = tmp_size;
|
||||
} /* end if */
|
||||
else
|
||||
tmp_size = dset->shared->layout.storage.u.contig.size;
|
||||
|
||||
/* Get the sieve buffer size for the file */
|
||||
tmp_sieve_buf_size = H5F_SIEVE_BUF_SIZE(dset->oloc.file);
|
||||
|
||||
/* Adjust the sieve buffer size to the smaller one between the dataset size and the buffer size
|
||||
* from the file access property. (SLU - 2012/3/30) */
|
||||
if(tmp_size < tmp_sieve_buf_size)
|
||||
dset->shared->cache.contig.sieve_buf_size = tmp_size;
|
||||
else
|
||||
dset->shared->cache.contig.sieve_buf_size = tmp_sieve_buf_size;
|
||||
|
||||
done:
|
||||
FUNC_LEAVE_NOAPI(ret_value)
|
||||
} /* end H5D__contig_init() */
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* Function: H5D__contig_is_space_alloc
|
||||
|
101
src/H5Dint.c
101
src/H5Dint.c
@ -1048,12 +1048,14 @@ H5D__create(H5F_t *file, hid_t type_id, const H5S_t *space, hid_t dcpl_id,
|
||||
layout = &new_dset->shared->layout;
|
||||
if(H5P_get(dc_plist, H5D_CRT_LAYOUT_NAME, layout) < 0)
|
||||
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, NULL, "can't retrieve layout")
|
||||
if(pline->nused > 0 && H5D_CHUNKED != layout->type)
|
||||
HGOTO_ERROR(H5E_DATASET, H5E_BADVALUE, NULL, "filters can only be used with chunked layout")
|
||||
fill = &new_dset->shared->dcpl_cache.fill;
|
||||
if(H5P_get(dc_plist, H5D_CRT_FILL_VALUE_NAME, fill) < 0)
|
||||
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, NULL, "can't retrieve fill value info")
|
||||
|
||||
/* Check that chunked layout is used if filters are enabled */
|
||||
if(pline->nused > 0 && H5D_CHUNKED != layout->type)
|
||||
HGOTO_ERROR(H5E_DATASET, H5E_BADVALUE, NULL, "filters can only be used with chunked layout")
|
||||
|
||||
/* Check if the alloc_time is the default and error out */
|
||||
if(fill->alloc_time == H5D_ALLOC_TIME_DEFAULT)
|
||||
HGOTO_ERROR(H5E_DATASET, H5E_BADVALUE, NULL, "invalid space allocation state")
|
||||
@ -1491,7 +1493,7 @@ done:
|
||||
herr_t
|
||||
H5D_close(H5D_t *dataset)
|
||||
{
|
||||
unsigned free_failed = FALSE;
|
||||
hbool_t free_failed = FALSE;
|
||||
herr_t ret_value = SUCCEED; /* Return value */
|
||||
|
||||
FUNC_ENTER_NOAPI(FAIL)
|
||||
@ -1511,16 +1513,18 @@ H5D_close(H5D_t *dataset)
|
||||
if(H5D__flush_real(dataset, H5AC_dxpl_id) < 0)
|
||||
HDONE_ERROR(H5E_DATASET, H5E_WRITEERROR, FAIL, "unable to flush cached dataset info")
|
||||
|
||||
/* Free the data sieve buffer, if it's been allocated */
|
||||
if(dataset->shared->cache.contig.sieve_buf) {
|
||||
HDassert(dataset->shared->layout.type != H5D_COMPACT); /* We should never have a sieve buffer for compact storage */
|
||||
|
||||
dataset->shared->cache.contig.sieve_buf = (unsigned char *)H5FL_BLK_FREE(sieve_buf,dataset->shared->cache.contig.sieve_buf);
|
||||
} /* end if */
|
||||
/* Set a flag to indicate the dataset is closing, before we start freeing things */
|
||||
/* (Avoids problems with flushing datasets twice, when one is holding
|
||||
* the file open and it iterates through dataset to flush them -QAK)
|
||||
*/
|
||||
dataset->shared->closing = TRUE;
|
||||
|
||||
/* Free cached information for each kind of dataset */
|
||||
switch(dataset->shared->layout.type) {
|
||||
case H5D_CONTIGUOUS:
|
||||
/* Free the data sieve buffer, if it's been allocated */
|
||||
if(dataset->shared->cache.contig.sieve_buf)
|
||||
dataset->shared->cache.contig.sieve_buf = (unsigned char *)H5FL_BLK_FREE(sieve_buf,dataset->shared->cache.contig.sieve_buf);
|
||||
break;
|
||||
|
||||
case H5D_CHUNKED:
|
||||
@ -1591,6 +1595,14 @@ H5D_close(H5D_t *dataset)
|
||||
#endif /* NDEBUG */
|
||||
} /* end switch */ /*lint !e788 All appropriate cases are covered */
|
||||
|
||||
/*
|
||||
* Release datatype, dataspace and creation property list -- there isn't
|
||||
* much we can do if one of these fails, so we just continue.
|
||||
*/
|
||||
free_failed = (H5I_dec_ref(dataset->shared->type_id) < 0) ||
|
||||
(H5S_close(dataset->shared->space) < 0) ||
|
||||
(H5I_dec_ref(dataset->shared->dcpl_id) < 0);
|
||||
|
||||
/* Remove the dataset from the list of opened objects in the file */
|
||||
if(H5FO_top_decr(dataset->oloc.file, dataset->oloc.addr) < 0)
|
||||
HGOTO_ERROR(H5E_DATASET, H5E_CANTRELEASE, FAIL, "can't decrement count for object")
|
||||
@ -1602,13 +1614,6 @@ H5D_close(H5D_t *dataset)
|
||||
if(H5O_close(&(dataset->oloc)) < 0)
|
||||
HGOTO_ERROR(H5E_DATASET, H5E_CLOSEERROR, FAIL, "unable to release object header")
|
||||
|
||||
/*
|
||||
* Release datatype, dataspace and creation property list -- there isn't
|
||||
* much we can do if one of these fails, so we just continue.
|
||||
*/
|
||||
free_failed = (unsigned)(H5I_dec_ref(dataset->shared->type_id) < 0 || H5S_close(dataset->shared->space) < 0 ||
|
||||
H5I_dec_ref(dataset->shared->dcpl_id) < 0);
|
||||
|
||||
/*
|
||||
* Free memory. Before freeing the memory set the file pointer to NULL.
|
||||
* We always check for a null file pointer in other H5D functions to be
|
||||
@ -2535,44 +2540,48 @@ H5D__flush_real(H5D_t *dataset, hid_t dxpl_id)
|
||||
|
||||
/* Check args */
|
||||
HDassert(dataset);
|
||||
HDassert(dataset->shared);
|
||||
|
||||
/* Check for metadata changes that will require updating the object's modification time */
|
||||
if(dataset->shared->layout_dirty || dataset->shared->space_dirty) {
|
||||
unsigned update_flags = H5O_UPDATE_TIME; /* Modification time flag */
|
||||
/* Avoid flushing the dataset (again) if it's closing */
|
||||
if(!dataset->shared->closing) {
|
||||
/* Check for metadata changes that will require updating the object's modification time */
|
||||
if(dataset->shared->layout_dirty || dataset->shared->space_dirty) {
|
||||
unsigned update_flags = H5O_UPDATE_TIME; /* Modification time flag */
|
||||
|
||||
/* Pin the object header */
|
||||
if(NULL == (oh = H5O_pin(&dataset->oloc, dxpl_id)))
|
||||
HGOTO_ERROR(H5E_DATASET, H5E_CANTPIN, FAIL, "unable to pin dataset object header")
|
||||
/* Pin the object header */
|
||||
if(NULL == (oh = H5O_pin(&dataset->oloc, dxpl_id)))
|
||||
HGOTO_ERROR(H5E_DATASET, H5E_CANTPIN, FAIL, "unable to pin dataset object header")
|
||||
|
||||
/* Update the layout on disk, if it's been changed */
|
||||
if(dataset->shared->layout_dirty) {
|
||||
if(H5D__layout_oh_write(dataset, dxpl_id, oh, update_flags) < 0)
|
||||
HGOTO_ERROR(H5E_DATASET, H5E_WRITEERROR, FAIL, "unable to update layout/pline/efl info")
|
||||
dataset->shared->layout_dirty = FALSE;
|
||||
/* Update the layout on disk, if it's been changed */
|
||||
if(dataset->shared->layout_dirty) {
|
||||
if(H5D__layout_oh_write(dataset, dxpl_id, oh, update_flags) < 0)
|
||||
HGOTO_ERROR(H5E_DATASET, H5E_WRITEERROR, FAIL, "unable to update layout/pline/efl info")
|
||||
dataset->shared->layout_dirty = FALSE;
|
||||
|
||||
/* Reset the "update the modification time" flag, so we only do it once */
|
||||
update_flags = 0;
|
||||
/* Reset the "update the modification time" flag, so we only do it once */
|
||||
update_flags = 0;
|
||||
} /* end if */
|
||||
|
||||
/* Update the dataspace on disk, if it's been changed */
|
||||
if(dataset->shared->space_dirty) {
|
||||
if(H5S_write(dataset->oloc.file, dxpl_id, oh, update_flags, dataset->shared->space) < 0)
|
||||
HGOTO_ERROR(H5E_DATASET, H5E_WRITEERROR, FAIL, "unable to update file with new dataspace")
|
||||
dataset->shared->space_dirty = FALSE;
|
||||
|
||||
/* Reset the "update the modification time" flag, so we only do it once */
|
||||
update_flags = 0;
|
||||
} /* end if */
|
||||
|
||||
/* _Somebody_ should have update the modification time! */
|
||||
HDassert(update_flags == 0);
|
||||
} /* end if */
|
||||
|
||||
/* Update the dataspace on disk, if it's been changed */
|
||||
if(dataset->shared->space_dirty) {
|
||||
if(H5S_write(dataset->oloc.file, dxpl_id, oh, update_flags, dataset->shared->space) < 0)
|
||||
HGOTO_ERROR(H5E_DATASET, H5E_WRITEERROR, FAIL, "unable to update file with new dataspace")
|
||||
dataset->shared->space_dirty = FALSE;
|
||||
|
||||
/* Reset the "update the modification time" flag, so we only do it once */
|
||||
update_flags = 0;
|
||||
} /* end if */
|
||||
|
||||
/* _Somebody_ should have update the modification time! */
|
||||
HDassert(update_flags == 0);
|
||||
/* Flush cached raw data for each kind of dataset layout */
|
||||
if(dataset->shared->layout.ops->flush &&
|
||||
(dataset->shared->layout.ops->flush)(dataset, dxpl_id) < 0)
|
||||
HGOTO_ERROR(H5E_DATASET, H5E_CANTFLUSH, FAIL, "unable to flush raw data")
|
||||
} /* end if */
|
||||
|
||||
/* Flush cached raw data for each kind of dataset layout */
|
||||
if(dataset->shared->layout.ops->flush &&
|
||||
(dataset->shared->layout.ops->flush)(dataset, dxpl_id) < 0)
|
||||
HGOTO_ERROR(H5E_DATASET, H5E_CANTFLUSH, FAIL, "unable to flush raw data")
|
||||
|
||||
done:
|
||||
/* Release pointer to object header */
|
||||
if(oh != NULL)
|
||||
|
@ -391,56 +391,9 @@ H5D__layout_oh_read(H5D_t *dataset, hid_t dxpl_id, hid_t dapl_id, H5P_genplist_t
|
||||
if(H5D_CHUNKED == dataset->shared->layout.type)
|
||||
dataset->shared->layout.u.chunk.ndims++;
|
||||
|
||||
if(H5D_CONTIGUOUS == dataset->shared->layout.type) {
|
||||
hsize_t tmp_size; /* Temporary holder for raw data size */
|
||||
size_t tmp_sieve_buf_size; /* Temporary holder for sieve buffer size */
|
||||
|
||||
/* Compute the size of the contiguous storage for versions of the
|
||||
* layout message less than version 3 because versions 1 & 2 would
|
||||
* truncate the dimension sizes to 32-bits of information. - QAK 5/26/04
|
||||
*/
|
||||
if(dataset->shared->layout.version < 3) {
|
||||
hssize_t snelmts; /* Temporary holder for number of elements in dataspace */
|
||||
hsize_t nelmts; /* Number of elements in dataspace */
|
||||
size_t dt_size; /* Size of datatype */
|
||||
|
||||
/* Retrieve the number of elements in the dataspace */
|
||||
if((snelmts = H5S_GET_EXTENT_NPOINTS(dataset->shared->space)) < 0)
|
||||
HGOTO_ERROR(H5E_DATASET, H5E_CANTGET, FAIL, "unable to retrieve number of elements in dataspace")
|
||||
nelmts = (hsize_t)snelmts;
|
||||
|
||||
/* Get the datatype's size */
|
||||
if(0 == (dt_size = H5T_GET_SIZE(dataset->shared->type)))
|
||||
HGOTO_ERROR(H5E_DATASET, H5E_CANTGET, FAIL, "unable to retrieve size of datatype")
|
||||
|
||||
/* Compute the size of the dataset's contiguous storage */
|
||||
tmp_size = nelmts * dt_size;
|
||||
|
||||
/* Check for overflow during multiplication */
|
||||
if(nelmts != (tmp_size / dt_size))
|
||||
HGOTO_ERROR(H5E_DATASET, H5E_OVERFLOW, FAIL, "size of dataset's storage overflowed")
|
||||
|
||||
/* Assign the dataset's contiguous storage size */
|
||||
dataset->shared->layout.storage.u.contig.size = tmp_size;
|
||||
} /* end if */
|
||||
else
|
||||
tmp_size = dataset->shared->layout.storage.u.contig.size;
|
||||
|
||||
/* Get the sieve buffer size for the file */
|
||||
tmp_sieve_buf_size = H5F_SIEVE_BUF_SIZE(dataset->oloc.file);
|
||||
|
||||
/* Adjust the sieve buffer size to the smaller one between the dataset size and the buffer size
|
||||
* from the file access property. (SLU - 2012/3/30) */
|
||||
if(tmp_size < tmp_sieve_buf_size)
|
||||
dataset->shared->cache.contig.sieve_buf_size = tmp_size;
|
||||
else
|
||||
dataset->shared->cache.contig.sieve_buf_size = tmp_sieve_buf_size;
|
||||
} /* end if */
|
||||
|
||||
/* Initialize the layout information for the new dataset */
|
||||
/* Initialize the layout information for the dataset */
|
||||
if(dataset->shared->layout.ops->init && (dataset->shared->layout.ops->init)(dataset->oloc.file, dxpl_id, dataset, dapl_id) < 0)
|
||||
HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, FAIL, "unable to initialize layout information")
|
||||
|
||||
done:
|
||||
FUNC_LEAVE_NOAPI(ret_value)
|
||||
} /* end H5D__layout_oh_read() */
|
||||
|
@ -408,6 +408,7 @@ typedef struct H5D_rdcdc_t {
|
||||
*/
|
||||
typedef struct H5D_shared_t {
|
||||
size_t fo_count; /* Reference count */
|
||||
hbool_t closing; /* Flag to indicate dataset is closing */
|
||||
hid_t type_id; /* ID for dataset's datatype */
|
||||
H5T_t *type; /* Datatype for this dataset */
|
||||
H5S_t *space; /* Dataspace of this dataset */
|
||||
@ -616,8 +617,6 @@ H5_DLL htri_t H5D__chunk_cacheable(const H5D_io_info_t *io_info, haddr_t caddr,
|
||||
hbool_t write_op);
|
||||
H5_DLL herr_t H5D__chunk_create(const H5D_t *dset /*in,out*/, hid_t dxpl_id);
|
||||
H5_DLL herr_t H5D__chunk_set_info(const H5D_t *dset);
|
||||
H5_DLL herr_t H5D__chunk_init(H5F_t *f, hid_t dxpl_id, const H5D_t *dset,
|
||||
hid_t dapl_id);
|
||||
H5_DLL hbool_t H5D__chunk_is_space_alloc(const H5O_storage_t *storage);
|
||||
H5_DLL herr_t H5D__chunk_lookup(const H5D_t *dset, hid_t dxpl_id,
|
||||
const hsize_t *scaled, H5D_chunk_ud_t *udata);
|
||||
|
@ -43,17 +43,7 @@
|
||||
#include <windows.h>
|
||||
#include <io.h>
|
||||
|
||||
/* This is not defined in the Windows header files */
|
||||
#ifndef F_OK
|
||||
#define F_OK 00
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef MAX
|
||||
#undef MAX
|
||||
#endif /* MAX */
|
||||
#define MAX(X,Y) ((X)>(Y)?(X):(Y))
|
||||
#endif /* H5_HAVE_WIN32_API */
|
||||
|
||||
/* The driver identification number, initialized at runtime */
|
||||
static hid_t H5FD_STDIO_g = 0;
|
||||
@ -331,7 +321,7 @@ H5Pset_fapl_stdio(hid_t fapl_id)
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
static H5FD_t *
|
||||
H5FD_stdio_open( const char *name, unsigned flags, hid_t fapl_id,
|
||||
H5FD_stdio_open( const char *name, unsigned flags, hid_t /*UNUSED*/ fapl_id,
|
||||
haddr_t maxaddr)
|
||||
{
|
||||
FILE *f = NULL;
|
||||
@ -556,7 +546,7 @@ H5FD_stdio_cmp(const H5FD_t *_f1, const H5FD_t *_f2)
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
static herr_t
|
||||
H5FD_stdio_query(const H5FD_t *_f, unsigned long *flags /* out */)
|
||||
H5FD_stdio_query(const H5FD_t *_f, unsigned long /*OUT*/ *flags)
|
||||
{
|
||||
/* Quiet the compiler */
|
||||
_f=_f;
|
||||
@ -593,7 +583,7 @@ H5FD_stdio_query(const H5FD_t *_f, unsigned long *flags /* out */)
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
static haddr_t
|
||||
H5FD_stdio_alloc(H5FD_t *_file, H5FD_mem_t /*H5_ATTR_UNUSED*/ type, hid_t /*H5_ATTR_UNUSED*/ dxpl_id, hsize_t size)
|
||||
H5FD_stdio_alloc(H5FD_t *_file, H5FD_mem_t /*UNUSED*/ type, hid_t /*UNUSED*/ dxpl_id, hsize_t size)
|
||||
{
|
||||
H5FD_stdio_t *file = (H5FD_stdio_t*)_file;
|
||||
haddr_t addr;
|
||||
@ -638,7 +628,7 @@ H5FD_stdio_alloc(H5FD_t *_file, H5FD_mem_t /*H5_ATTR_UNUSED*/ type, hid_t /*H5_A
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
static haddr_t
|
||||
H5FD_stdio_get_eoa(const H5FD_t *_file, H5FD_mem_t /*H5_ATTR_UNUSED*/ type)
|
||||
H5FD_stdio_get_eoa(const H5FD_t *_file, H5FD_mem_t /*UNUSED*/ type)
|
||||
{
|
||||
const H5FD_stdio_t *file = (const H5FD_stdio_t *)_file;
|
||||
|
||||
@ -669,7 +659,7 @@ H5FD_stdio_get_eoa(const H5FD_t *_file, H5FD_mem_t /*H5_ATTR_UNUSED*/ type)
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
static herr_t
|
||||
H5FD_stdio_set_eoa(H5FD_t *_file, H5FD_mem_t /*H5_ATTR_UNUSED*/ type, haddr_t addr)
|
||||
H5FD_stdio_set_eoa(H5FD_t *_file, H5FD_mem_t /*UNUSED*/ type, haddr_t addr)
|
||||
{
|
||||
H5FD_stdio_t *file = (H5FD_stdio_t*)_file;
|
||||
|
||||
@ -704,10 +694,13 @@ H5FD_stdio_set_eoa(H5FD_t *_file, H5FD_mem_t /*H5_ATTR_UNUSED*/ type, haddr_t ad
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
static haddr_t
|
||||
H5FD_stdio_get_eof(const H5FD_t *_file, H5FD_mem_t /*H5_ATTR_UNUSED*/ type)
|
||||
H5FD_stdio_get_eof(const H5FD_t *_file, H5FD_mem_t /*UNUSED*/ type)
|
||||
{
|
||||
const H5FD_stdio_t *file = (const H5FD_stdio_t *)_file;
|
||||
|
||||
/* Quiet the compiler */
|
||||
type = type;
|
||||
|
||||
/* Clear the error stack */
|
||||
H5Eclear2(H5E_DEFAULT);
|
||||
|
||||
@ -728,7 +721,7 @@ H5FD_stdio_get_eof(const H5FD_t *_file, H5FD_mem_t /*H5_ATTR_UNUSED*/ type)
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
static herr_t
|
||||
H5FD_stdio_get_handle(H5FD_t *_file, hid_t fapl, void** file_handle)
|
||||
H5FD_stdio_get_handle(H5FD_t *_file, hid_t /*UNUSED*/ fapl, void **file_handle)
|
||||
{
|
||||
H5FD_stdio_t *file = (H5FD_stdio_t *)_file;
|
||||
static const char *func = "H5FD_stdio_get_handle"; /* Function Name for error reporting */
|
||||
@ -766,8 +759,8 @@ H5FD_stdio_get_handle(H5FD_t *_file, hid_t fapl, void** file_handle)
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
static herr_t
|
||||
H5FD_stdio_read(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, size_t size,
|
||||
void *buf/*out*/)
|
||||
H5FD_stdio_read(H5FD_t *_file, H5FD_mem_t /*UNUSED*/ type, hid_t /*UNUSED*/ dxpl_id,
|
||||
haddr_t addr, size_t size, void /*OUT*/ *buf)
|
||||
{
|
||||
H5FD_stdio_t *file = (H5FD_stdio_t*)_file;
|
||||
static const char *func = "H5FD_stdio_read"; /* Function Name for error reporting */
|
||||
@ -871,8 +864,8 @@ H5FD_stdio_read(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, siz
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
static herr_t
|
||||
H5FD_stdio_write(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr,
|
||||
size_t size, const void *buf)
|
||||
H5FD_stdio_write(H5FD_t *_file, H5FD_mem_t /*UNUSED*/ type, hid_t /*UNUSED*/ dxpl_id,
|
||||
haddr_t addr, size_t size, const void *buf)
|
||||
{
|
||||
H5FD_stdio_t *file = (H5FD_stdio_t*)_file;
|
||||
static const char *func = "H5FD_stdio_write"; /* Function Name for error reporting */
|
||||
@ -961,7 +954,7 @@ H5FD_stdio_write(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr,
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
static herr_t
|
||||
H5FD_stdio_flush(H5FD_t *_file, hid_t dxpl_id, unsigned closing)
|
||||
H5FD_stdio_flush(H5FD_t *_file, hid_t /*UNUSED*/ dxpl_id, unsigned closing)
|
||||
{
|
||||
H5FD_stdio_t *file = (H5FD_stdio_t*)_file;
|
||||
static const char *func = "H5FD_stdio_flush"; /* Function Name for error reporting */
|
||||
@ -1006,7 +999,8 @@ H5FD_stdio_flush(H5FD_t *_file, hid_t dxpl_id, unsigned closing)
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
static herr_t
|
||||
H5FD_stdio_truncate(H5FD_t *_file, hid_t dxpl_id, hbool_t closing)
|
||||
H5FD_stdio_truncate(H5FD_t *_file, hid_t /*UNUSED*/ dxpl_id,
|
||||
hbool_t /*UNUSED*/ closing)
|
||||
{
|
||||
H5FD_stdio_t *file = (H5FD_stdio_t*)_file;
|
||||
static const char *func = "H5FD_stdio_truncate"; /* Function Name for error reporting */
|
||||
|
@ -914,20 +914,20 @@ H5F__super_init(H5F_t *f, hid_t dxpl_id)
|
||||
|
||||
/* Check for driver info to store */
|
||||
if(driver_size > 0) {
|
||||
H5O_drvinfo_t drvinfo; /* Driver info */
|
||||
H5O_drvinfo_t info; /* Driver info */
|
||||
uint8_t dbuf[H5F_MAX_DRVINFOBLOCK_SIZE]; /* Driver info block encoding buffer */
|
||||
|
||||
/* Sanity check */
|
||||
HDassert(driver_size <= H5F_MAX_DRVINFOBLOCK_SIZE);
|
||||
|
||||
/* Encode driver-specific data */
|
||||
if(H5FD_sb_encode(f->shared->lf, drvinfo.name, dbuf) < 0)
|
||||
if(H5FD_sb_encode(f->shared->lf, info.name, dbuf) < 0)
|
||||
HGOTO_ERROR(H5E_FILE, H5E_CANTINIT, FAIL, "unable to encode driver information")
|
||||
|
||||
/* Write driver info information to the superblock extension */
|
||||
drvinfo.len = driver_size;
|
||||
drvinfo.buf = dbuf;
|
||||
if(H5O_msg_create(&ext_loc, H5O_DRVINFO_ID, H5O_MSG_FLAG_DONTSHARE, H5O_UPDATE_TIME, &drvinfo, dxpl_id) < 0)
|
||||
info.len = driver_size;
|
||||
info.buf = dbuf;
|
||||
if(H5O_msg_create(&ext_loc, H5O_DRVINFO_ID, H5O_MSG_FLAG_DONTSHARE, H5O_UPDATE_TIME, &info, dxpl_id) < 0)
|
||||
HGOTO_ERROR(H5E_FILE, H5E_CANTINIT, FAIL, "unable to update driver info header message")
|
||||
} /* end if */
|
||||
|
||||
|
@ -636,13 +636,21 @@ done:
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
static herr_t
|
||||
H5O__cache_clear(const H5F_t *f, void *_thing, hbool_t about_to_destroy)
|
||||
#ifdef H5_HAVE_PARALLEL
|
||||
H5O__cache_clear(const H5F_t *f, void *_thing, hbool_t H5_ATTR_UNUSED about_to_destroy)
|
||||
#else
|
||||
H5O__cache_clear(const H5F_t H5_ATTR_UNUSED *f, void *_thing, hbool_t H5_ATTR_UNUSED about_to_destroy)
|
||||
#endif /* H5_HAVE_PARALLEL */
|
||||
{
|
||||
H5O_t *oh = (H5O_t *)_thing; /* Object header to reset */
|
||||
unsigned u; /* Local index variable */
|
||||
herr_t ret_value = SUCCEED; /* Return value */
|
||||
|
||||
#ifdef H5_HAVE_PARALLEL
|
||||
FUNC_ENTER_STATIC
|
||||
#else
|
||||
FUNC_ENTER_STATIC_NOERR
|
||||
#endif /* H5_HAVE_PARALLEL */
|
||||
|
||||
/* Check arguments */
|
||||
HDassert(oh);
|
||||
@ -673,7 +681,9 @@ H5O__cache_clear(const H5F_t *f, void *_thing, hbool_t about_to_destroy)
|
||||
oh->ndecode_dirtied = 0;
|
||||
#endif /* NDEBUG */
|
||||
|
||||
#ifdef H5_HAVE_PARALLEL
|
||||
done:
|
||||
#endif /* H5_HAVE_PARALLEL */
|
||||
FUNC_LEAVE_NOAPI(ret_value)
|
||||
} /* end H5O__cache_clear() */
|
||||
|
||||
@ -942,14 +952,22 @@ done:
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
static herr_t
|
||||
#ifdef H5_HAVE_PARALLEL
|
||||
H5O__cache_chk_clear(const H5F_t *f, void *_thing, hbool_t about_to_destroy)
|
||||
#else
|
||||
H5O__cache_chk_clear(const H5F_t H5_ATTR_UNUSED *f, void *_thing, hbool_t H5_ATTR_UNUSED about_to_destroy)
|
||||
#endif /* H5_HAVE_PARALLEL */
|
||||
{
|
||||
H5O_chunk_proxy_t *chk_proxy = (H5O_chunk_proxy_t *)_thing; /* Object header chunk to reset */
|
||||
H5O_t *oh; /* Object header for chunk */
|
||||
unsigned u; /* Local index variable */
|
||||
herr_t ret_value = SUCCEED; /* Return value */
|
||||
|
||||
#ifdef H5_HAVE_PARALLEL
|
||||
FUNC_ENTER_STATIC
|
||||
#else
|
||||
FUNC_ENTER_STATIC_NOERR
|
||||
#endif /* H5_HAVE_PARALLEL */
|
||||
|
||||
/* Check arguments */
|
||||
HDassert(chk_proxy);
|
||||
@ -971,7 +989,9 @@ H5O__cache_chk_clear(const H5F_t *f, void *_thing, hbool_t about_to_destroy)
|
||||
if(chk_proxy->oh->mesg[u].chunkno == chk_proxy->chunkno)
|
||||
chk_proxy->oh->mesg[u].dirty = FALSE;
|
||||
|
||||
#ifdef H5_HAVE_PARALLEL
|
||||
done:
|
||||
#endif /* H5_HAVE_PARALLEL */
|
||||
FUNC_LEAVE_NOAPI(ret_value)
|
||||
} /* end H5O__cache_chk_clear() */
|
||||
|
||||
|
@ -632,24 +632,40 @@ H5O_layout_copy(const void *_mesg, void *_dest)
|
||||
/* copy */
|
||||
*dest = *mesg;
|
||||
|
||||
/* Deep copy the buffer for compact datasets also */
|
||||
if(mesg->type == H5D_COMPACT && mesg->storage.u.compact.size > 0) {
|
||||
/* Allocate memory for the raw data */
|
||||
if(NULL == (dest->storage.u.compact.buf = H5MM_malloc(dest->storage.u.compact.size)))
|
||||
HGOTO_ERROR(H5E_OHDR, H5E_NOSPACE, NULL, "unable to allocate memory for compact dataset")
|
||||
/* Special actions for each type of layout */
|
||||
switch(mesg->type) {
|
||||
case H5D_COMPACT:
|
||||
/* Deep copy the buffer for compact datasets also */
|
||||
if(mesg->storage.u.compact.size > 0) {
|
||||
/* Allocate memory for the raw data */
|
||||
if(NULL == (dest->storage.u.compact.buf = H5MM_malloc(dest->storage.u.compact.size)))
|
||||
HGOTO_ERROR(H5E_OHDR, H5E_NOSPACE, NULL, "unable to allocate memory for compact dataset")
|
||||
|
||||
/* Copy over the raw data */
|
||||
HDmemcpy(dest->storage.u.compact.buf, mesg->storage.u.compact.buf, dest->storage.u.compact.size);
|
||||
} /* end if */
|
||||
/* Copy over the raw data */
|
||||
HDmemcpy(dest->storage.u.compact.buf, mesg->storage.u.compact.buf, dest->storage.u.compact.size);
|
||||
} /* end if */
|
||||
break;
|
||||
|
||||
/* Reset the pointer of the chunked storage index but not the address */
|
||||
if(dest->type == H5D_CHUNKED && dest->storage.u.chunk.ops)
|
||||
H5D_chunk_idx_reset(&dest->storage.u.chunk, FALSE);
|
||||
case H5D_CONTIGUOUS:
|
||||
/* Nothing required */
|
||||
break;
|
||||
|
||||
/* Deep copy the entry list for virtual datasets */
|
||||
if(mesg->type == H5D_VIRTUAL)
|
||||
if(H5D__virtual_copy_layout(dest) < 0)
|
||||
HGOTO_ERROR(H5E_OHDR, H5E_CANTCOPY, NULL, "unable to copy virtual layout")
|
||||
case H5D_CHUNKED:
|
||||
/* Reset the pointer of the chunked storage index but not the address */
|
||||
if(dest->storage.u.chunk.ops)
|
||||
H5D_chunk_idx_reset(&dest->storage.u.chunk, FALSE);
|
||||
break;
|
||||
|
||||
case H5D_VIRTUAL:
|
||||
if(H5D__virtual_copy_layout(dest) < 0)
|
||||
HGOTO_ERROR(H5E_OHDR, H5E_CANTCOPY, NULL, "unable to copy virtual layout")
|
||||
break;
|
||||
|
||||
case H5D_LAYOUT_ERROR:
|
||||
case H5D_NLAYOUTS:
|
||||
default:
|
||||
HGOTO_ERROR(H5E_OHDR, H5E_CANTENCODE, NULL, "Invalid layout class")
|
||||
} /* end switch */
|
||||
|
||||
/* Set return value */
|
||||
ret_value = dest;
|
||||
|
@ -329,6 +329,8 @@ H5PL_load(H5PL_type_t type, int id)
|
||||
if((H5PL_plugin_g & H5PL_FILTER_PLUGIN) == 0)
|
||||
HGOTO_ERROR(H5E_PLUGIN, H5E_CANTLOAD, NULL, "required dynamically loaded plugin filter '%d' is not available", id)
|
||||
break;
|
||||
case H5PL_TYPE_ERROR:
|
||||
case H5PL_TYPE_NONE:
|
||||
default:
|
||||
HGOTO_ERROR(H5E_PLUGIN, H5E_CANTLOAD, NULL, "required dynamically loaded plugin '%d' is not valid", id)
|
||||
}
|
||||
|
@ -79,8 +79,8 @@ H5Tget_sign(hid_t type_id)
|
||||
H5TRACE1("Ts", "i", type_id);
|
||||
|
||||
/* Check args */
|
||||
if (NULL == (dt = H5I_object_verify(type_id,H5I_DATATYPE)))
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, H5T_SGN_ERROR, "not an integer datatype")
|
||||
if (NULL == (dt = (H5T_t *)H5I_object_verify(type_id,H5I_DATATYPE)))
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, H5T_SGN_ERROR, "not an integer datatype")
|
||||
|
||||
ret_value = H5T_get_sign(dt);
|
||||
|
||||
@ -158,18 +158,18 @@ H5Tset_sign(hid_t type_id, H5T_sign_t sign)
|
||||
H5TRACE2("e", "iTs", type_id, sign);
|
||||
|
||||
/* Check args */
|
||||
if (NULL == (dt = H5I_object_verify(type_id,H5I_DATATYPE)))
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not an integer datatype")
|
||||
if (NULL == (dt = (H5T_t *)H5I_object_verify(type_id,H5I_DATATYPE)))
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not an integer datatype")
|
||||
if (H5T_STATE_TRANSIENT!=dt->shared->state)
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_CANTINIT, FAIL, "datatype is read-only")
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_CANTINIT, FAIL, "datatype is read-only")
|
||||
if (sign < H5T_SGN_NONE || sign >= H5T_NSGN)
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "illegal sign type")
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "illegal sign type")
|
||||
if (H5T_ENUM==dt->shared->type && dt->shared->u.enumer.nmembs>0)
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "operation not allowed after members are defined")
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "operation not allowed after members are defined")
|
||||
while (dt->shared->parent)
|
||||
dt = dt->shared->parent; /*defer to parent*/
|
||||
if (H5T_INTEGER!=dt->shared->type)
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "operation not defined for datatype class")
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "operation not defined for datatype class")
|
||||
|
||||
/* Commit */
|
||||
dt->shared->u.atomic.u.i.sign = sign;
|
||||
|
@ -77,18 +77,18 @@ H5Tset_tag(hid_t type_id, const char *tag)
|
||||
H5TRACE2("e", "i*s", type_id, tag);
|
||||
|
||||
/* Check args */
|
||||
if (NULL == (dt = H5I_object_verify(type_id,H5I_DATATYPE)))
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a data type")
|
||||
if (NULL == (dt = (H5T_t *)H5I_object_verify(type_id,H5I_DATATYPE)))
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a data type")
|
||||
if (H5T_STATE_TRANSIENT!=dt->shared->state)
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_CANTINIT, FAIL, "data type is read-only")
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_CANTINIT, FAIL, "data type is read-only")
|
||||
while (dt->shared->parent)
|
||||
dt = dt->shared->parent; /*defer to parent*/
|
||||
if (H5T_OPAQUE!=dt->shared->type)
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not an opaque data type")
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not an opaque data type")
|
||||
if (!tag)
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "no tag")
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "no tag")
|
||||
if (HDstrlen(tag) >= H5T_OPAQUE_TAG_MAX)
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "tag too long")
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "tag too long")
|
||||
|
||||
/* Commit */
|
||||
H5MM_xfree(dt->shared->u.opaque.tag);
|
||||
@ -124,16 +124,16 @@ H5Tget_tag(hid_t type_id)
|
||||
H5TRACE1("*s", "i", type_id);
|
||||
|
||||
/* Check args */
|
||||
if (NULL == (dt = H5I_object_verify(type_id,H5I_DATATYPE)))
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a data type")
|
||||
if (NULL == (dt = (H5T_t *)H5I_object_verify(type_id,H5I_DATATYPE)))
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a data type")
|
||||
while (dt->shared->parent)
|
||||
dt = dt->shared->parent; /*defer to parent*/
|
||||
if (H5T_OPAQUE != dt->shared->type)
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, NULL, "operation not defined for data type class")
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, NULL, "operation not defined for data type class")
|
||||
|
||||
/* result */
|
||||
if (NULL==(ret_value=H5MM_strdup(dt->shared->u.opaque.tag)))
|
||||
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed")
|
||||
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed")
|
||||
|
||||
done:
|
||||
FUNC_LEAVE_API(ret_value)
|
||||
|
18
src/H5Tpad.c
18
src/H5Tpad.c
@ -80,12 +80,12 @@ H5Tget_pad(hid_t type_id, H5T_pad_t *lsb/*out*/, H5T_pad_t *msb/*out*/)
|
||||
H5TRACE3("e", "ixx", type_id, lsb, msb);
|
||||
|
||||
/* Check args */
|
||||
if (NULL == (dt = H5I_object_verify(type_id,H5I_DATATYPE)))
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a data type")
|
||||
if (NULL == (dt = (H5T_t *)H5I_object_verify(type_id,H5I_DATATYPE)))
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a data type")
|
||||
while (dt->shared->parent)
|
||||
dt = dt->shared->parent; /*defer to parent*/
|
||||
if (!H5T_IS_ATOMIC(dt->shared))
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_UNSUPPORTED, FAIL, "operation not defined for specified data type")
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_UNSUPPORTED, FAIL, "operation not defined for specified data type")
|
||||
|
||||
/* Get values */
|
||||
if (lsb)
|
||||
@ -124,18 +124,18 @@ H5Tset_pad(hid_t type_id, H5T_pad_t lsb, H5T_pad_t msb)
|
||||
H5TRACE3("e", "iTpTp", type_id, lsb, msb);
|
||||
|
||||
/* Check args */
|
||||
if (NULL == (dt = H5I_object_verify(type_id,H5I_DATATYPE)))
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a data type")
|
||||
if (NULL == (dt = (H5T_t *)H5I_object_verify(type_id,H5I_DATATYPE)))
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a data type")
|
||||
if (H5T_STATE_TRANSIENT!=dt->shared->state)
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_CANTINIT, FAIL, "data type is read-only")
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_CANTINIT, FAIL, "data type is read-only")
|
||||
if (lsb < H5T_PAD_ZERO || lsb >= H5T_NPAD || msb < H5T_PAD_ZERO || msb >= H5T_NPAD)
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "invalid pad type")
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "invalid pad type")
|
||||
if (H5T_ENUM==dt->shared->type && dt->shared->u.enumer.nmembs>0)
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "operation not allowed after members are defined")
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "operation not allowed after members are defined")
|
||||
while (dt->shared->parent)
|
||||
dt = dt->shared->parent; /*defer to parent*/
|
||||
if (!H5T_IS_ATOMIC(dt->shared))
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_UNSUPPORTED, FAIL, "operation not defined for specified data type")
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_UNSUPPORTED, FAIL, "operation not defined for specified data type")
|
||||
|
||||
/* Commit */
|
||||
dt->shared->u.atomic.lsb_pad = lsb;
|
||||
|
@ -87,12 +87,12 @@ H5Tget_precision(hid_t type_id)
|
||||
H5TRACE1("z", "i", type_id);
|
||||
|
||||
/* Check args */
|
||||
if (NULL == (dt = H5I_object_verify(type_id,H5I_DATATYPE)))
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, 0, "not a datatype")
|
||||
if (NULL == (dt = (H5T_t *)H5I_object_verify(type_id,H5I_DATATYPE)))
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, 0, "not a datatype")
|
||||
|
||||
/* Get precision */
|
||||
if((ret_value = H5T_get_precision(dt)) == 0)
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_UNSUPPORTED, 0, "cant't get precision for specified datatype")
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_UNSUPPORTED, 0, "cant't get precision for specified datatype")
|
||||
|
||||
done:
|
||||
FUNC_LEAVE_API(ret_value)
|
||||
@ -176,22 +176,22 @@ H5Tset_precision(hid_t type_id, size_t prec)
|
||||
H5TRACE2("e", "iz", type_id, prec);
|
||||
|
||||
/* Check args */
|
||||
if (NULL == (dt = H5I_object_verify(type_id,H5I_DATATYPE)))
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a datatype")
|
||||
if (NULL == (dt = (H5T_t *)H5I_object_verify(type_id,H5I_DATATYPE)))
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a datatype")
|
||||
if (H5T_STATE_TRANSIENT!=dt->shared->state)
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_CANTSET, FAIL, "datatype is read-only")
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_CANTSET, FAIL, "datatype is read-only")
|
||||
if (prec == 0)
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "precision must be positive")
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "precision must be positive")
|
||||
if (H5T_ENUM==dt->shared->type && dt->shared->u.enumer.nmembs>0)
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTSET, FAIL, "operation not allowed after members are defined")
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTSET, FAIL, "operation not allowed after members are defined")
|
||||
if (H5T_STRING==dt->shared->type)
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_UNSUPPORTED, FAIL, "precision for this type is read-only")
|
||||
if (H5T_COMPOUND==dt->shared->type || H5T_OPAQUE==dt->shared->type)
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_UNSUPPORTED, FAIL, "operation not defined for specified datatype")
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_UNSUPPORTED, FAIL, "operation not defined for specified datatype")
|
||||
|
||||
/* Do the work */
|
||||
if (H5T_set_precision(dt, prec)<0)
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTSET, FAIL, "unable to set precision")
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTSET, FAIL, "unable to set precision")
|
||||
|
||||
done:
|
||||
FUNC_LEAVE_API(ret_value)
|
||||
@ -283,9 +283,19 @@ H5T_set_precision(const H5T_t *dt, size_t prec)
|
||||
dt->shared->u.atomic.u.f.mpos + dt->shared->u.atomic.u.f.msize > prec+offset)
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "adjust sign, mantissa, and exponent fields first")
|
||||
break;
|
||||
|
||||
case H5T_NO_CLASS:
|
||||
case H5T_STRING:
|
||||
case H5T_OPAQUE:
|
||||
case H5T_COMPOUND:
|
||||
case H5T_REFERENCE:
|
||||
case H5T_ENUM:
|
||||
case H5T_VLEN:
|
||||
case H5T_ARRAY:
|
||||
case H5T_NCLASSES:
|
||||
default:
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_UNSUPPORTED, FAIL, "operation not defined for datatype class")
|
||||
} /* end switch */ /*lint !e788 All appropriate cases are covered */
|
||||
} /* end switch */
|
||||
|
||||
/* Commit */
|
||||
dt->shared->size = size;
|
||||
|
@ -83,12 +83,12 @@ H5Tget_strpad(hid_t type_id)
|
||||
H5TRACE1("Tz", "i", type_id);
|
||||
|
||||
/* Check args */
|
||||
if (NULL == (dt = H5I_object_verify(type_id,H5I_DATATYPE)))
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, H5T_STR_ERROR, "not a datatype")
|
||||
if (NULL == (dt = (H5T_t *)H5I_object_verify(type_id,H5I_DATATYPE)))
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, H5T_STR_ERROR, "not a datatype")
|
||||
while (dt->shared->parent && !H5T_IS_STRING(dt->shared))
|
||||
dt = dt->shared->parent; /*defer to parent*/
|
||||
if (!H5T_IS_STRING(dt->shared))
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_UNSUPPORTED, H5T_STR_ERROR, "operation not defined for datatype class")
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_UNSUPPORTED, H5T_STR_ERROR, "operation not defined for datatype class")
|
||||
|
||||
/* result */
|
||||
if(H5T_IS_FIXED_STRING(dt->shared))
|
||||
@ -140,16 +140,16 @@ H5Tset_strpad(hid_t type_id, H5T_str_t strpad)
|
||||
H5TRACE2("e", "iTz", type_id, strpad);
|
||||
|
||||
/* Check args */
|
||||
if (NULL == (dt = H5I_object_verify(type_id,H5I_DATATYPE)))
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a datatype")
|
||||
if (NULL == (dt = (H5T_t *)H5I_object_verify(type_id,H5I_DATATYPE)))
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a datatype")
|
||||
if (H5T_STATE_TRANSIENT!=dt->shared->state)
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_CANTINIT, FAIL, "datatype is read-only")
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_CANTINIT, FAIL, "datatype is read-only")
|
||||
if (strpad < H5T_STR_NULLTERM || strpad >= H5T_NSTR)
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "illegal string pad type")
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "illegal string pad type")
|
||||
while (dt->shared->parent && !H5T_IS_STRING(dt->shared))
|
||||
dt = dt->shared->parent; /*defer to parent*/
|
||||
if (!H5T_IS_STRING(dt->shared))
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_UNSUPPORTED, FAIL, "operation not defined for datatype class")
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_UNSUPPORTED, FAIL, "operation not defined for datatype class")
|
||||
|
||||
/* Commit */
|
||||
if(H5T_IS_FIXED_STRING(dt->shared))
|
||||
|
@ -136,6 +136,19 @@ H5T__visit(H5T_t *dt, unsigned visit_flags, H5T_operator_t op, void *op_value)
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_BADITER, FAIL, "can't visit parent datatype")
|
||||
break;
|
||||
|
||||
case H5T_NO_CLASS:
|
||||
case H5T_NCLASSES:
|
||||
/* Not real values */
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_UNSUPPORTED, FAIL, "operation not defined for datatype class")
|
||||
break;
|
||||
|
||||
case H5T_INTEGER:
|
||||
case H5T_FLOAT:
|
||||
case H5T_TIME:
|
||||
case H5T_STRING:
|
||||
case H5T_BITFIELD:
|
||||
case H5T_OPAQUE:
|
||||
case H5T_REFERENCE:
|
||||
default:
|
||||
/* Visit "simple" datatypes here */
|
||||
if(visit_flags & H5T_VISIT_SIMPLE)
|
||||
|
@ -113,7 +113,7 @@ H5Tvlen_create(hid_t base_id)
|
||||
H5TRACE1("i", "i", base_id);
|
||||
|
||||
/* Check args */
|
||||
if(NULL == (base = H5I_object_verify(base_id, H5I_DATATYPE)))
|
||||
if(NULL == (base = (H5T_t *)H5I_object_verify(base_id, H5I_DATATYPE)))
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not an valid base datatype")
|
||||
|
||||
/* Create up VL datatype */
|
||||
@ -288,6 +288,8 @@ H5T__vlen_set_loc(const H5T_t *dt, H5F_t *f, H5T_loc_t loc)
|
||||
*/
|
||||
break;
|
||||
|
||||
case H5T_LOC_MAXLOC:
|
||||
/* MAXLOC is invalid */
|
||||
default:
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_BADRANGE, FAIL, "invalid VL datatype location")
|
||||
} /* end switch */ /*lint !e788 All appropriate cases are covered */
|
||||
@ -716,11 +718,11 @@ H5T_vlen_str_mem_write(H5F_t H5_ATTR_UNUSED *f, hid_t H5_ATTR_UNUSED dxpl_id, co
|
||||
|
||||
/* Use the user's memory allocation routine if one is defined */
|
||||
if(vl_alloc_info->alloc_func!=NULL) {
|
||||
if(NULL==(t=(vl_alloc_info->alloc_func)((seq_len+1)*base_size,vl_alloc_info->alloc_info)))
|
||||
if(NULL==(t = (char *)(vl_alloc_info->alloc_func)((seq_len+1)*base_size,vl_alloc_info->alloc_info)))
|
||||
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed for VL data")
|
||||
} /* end if */
|
||||
else { /* Default to system malloc */
|
||||
if(NULL==(t=H5MM_malloc((seq_len+1)*base_size)))
|
||||
if(NULL==(t = (char *)H5MM_malloc((seq_len+1)*base_size)))
|
||||
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed for VL data")
|
||||
} /* end else */
|
||||
|
||||
@ -1119,8 +1121,24 @@ H5T_vlen_reclaim_recurse(void *elem, const H5T_t *dt, H5MM_free_t free_func, voi
|
||||
} /* end else */
|
||||
break;
|
||||
|
||||
default:
|
||||
/* Don't do anything for simple types */
|
||||
case H5T_INTEGER:
|
||||
case H5T_FLOAT:
|
||||
case H5T_TIME:
|
||||
case H5T_STRING:
|
||||
case H5T_BITFIELD:
|
||||
case H5T_OPAQUE:
|
||||
case H5T_REFERENCE:
|
||||
case H5T_ENUM:
|
||||
break;
|
||||
|
||||
/* Should never have these values */
|
||||
case H5T_NO_CLASS:
|
||||
case H5T_NCLASSES:
|
||||
default:
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_BADRANGE, FAIL, "invalid VL datatype class")
|
||||
break;
|
||||
|
||||
} /* end switch */ /*lint !e788 All appropriate cases are covered */
|
||||
|
||||
done:
|
||||
@ -1167,7 +1185,7 @@ H5T_vlen_reclaim(void *elem, hid_t type_id, unsigned H5_ATTR_UNUSED ndim, const
|
||||
HDassert(H5I_DATATYPE == H5I_get_type(type_id));
|
||||
|
||||
/* Check args */
|
||||
if(NULL == (dt = H5I_object_verify(type_id, H5I_DATATYPE)))
|
||||
if(NULL == (dt = (H5T_t *)H5I_object_verify(type_id, H5I_DATATYPE)))
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a datatype")
|
||||
|
||||
/* Pull the free function and free info pointer out of the op_data and call the recurse datatype free function */
|
||||
|
123
src/H5Znbit.c
123
src/H5Znbit.c
@ -266,9 +266,23 @@ H5Z_calc_parms_array(const H5T_t *type)
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "nbit cannot compute parameters for datatype")
|
||||
break;
|
||||
|
||||
default: /* Other datatype class: nbit does no compression */
|
||||
case H5T_TIME:
|
||||
case H5T_STRING:
|
||||
case H5T_BITFIELD:
|
||||
case H5T_OPAQUE:
|
||||
case H5T_REFERENCE:
|
||||
case H5T_ENUM:
|
||||
case H5T_VLEN:
|
||||
/* Other datatype classes: nbit does no compression */
|
||||
H5Z_calc_parms_nooptype();
|
||||
break;
|
||||
|
||||
case H5T_NO_CLASS:
|
||||
case H5T_NCLASSES:
|
||||
default:
|
||||
/* Badness */
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "nbit received bad datatype")
|
||||
break;
|
||||
} /* end switch */
|
||||
|
||||
done:
|
||||
@ -351,9 +365,23 @@ H5Z_calc_parms_compound(const H5T_t *type)
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "nbit cannot compute parameters for datatype")
|
||||
break;
|
||||
|
||||
default: /* Other datatype class: nbit does no compression */
|
||||
case H5T_TIME:
|
||||
case H5T_STRING:
|
||||
case H5T_BITFIELD:
|
||||
case H5T_OPAQUE:
|
||||
case H5T_REFERENCE:
|
||||
case H5T_ENUM:
|
||||
case H5T_VLEN:
|
||||
/* Other datatype classes: nbit does no compression */
|
||||
H5Z_calc_parms_nooptype();
|
||||
break;
|
||||
|
||||
case H5T_NO_CLASS:
|
||||
case H5T_NCLASSES:
|
||||
default:
|
||||
/* Badness */
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "nbit received bad datatype")
|
||||
break;
|
||||
} /* end switch */
|
||||
|
||||
/* Close member datatype */
|
||||
@ -444,7 +472,7 @@ H5Z_set_parms_atomic(const H5T_t *type, unsigned cd_values[])
|
||||
|
||||
/* Get datatype's size */
|
||||
if((dtype_size = H5T_get_size(type)) == 0)
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "bad datatype size")
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "bad datatype size")
|
||||
|
||||
/* Set "local" parameter for datatype size */
|
||||
cd_values[cd_values_index++] = dtype_size;
|
||||
@ -463,6 +491,10 @@ H5Z_set_parms_atomic(const H5T_t *type, unsigned cd_values[])
|
||||
cd_values[cd_values_index++] = H5Z_NBIT_ORDER_BE;
|
||||
break;
|
||||
|
||||
case H5T_ORDER_VAX:
|
||||
case H5T_ORDER_MIXED:
|
||||
case H5T_ORDER_ERROR:
|
||||
case H5T_ORDER_NONE:
|
||||
default:
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "bad datatype endianness order")
|
||||
} /* end switch */
|
||||
@ -561,7 +593,7 @@ H5Z_set_parms_array(const H5T_t *type, unsigned cd_values[])
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "nbit cannot set parameters for datatype")
|
||||
break;
|
||||
|
||||
default: /* other datatype that nbit does no compression */
|
||||
case H5T_VLEN:
|
||||
/* Check if base datatype is a variable-length string */
|
||||
if((is_vlstring = H5T_is_variable_str(dtype_base)) < 0)
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "cannot determine if datatype is a variable-length string")
|
||||
@ -573,6 +605,23 @@ H5Z_set_parms_array(const H5T_t *type, unsigned cd_values[])
|
||||
if(H5Z_set_parms_nooptype(dtype_base, cd_values) == FAIL)
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "nbit cannot set parameters for datatype")
|
||||
break;
|
||||
|
||||
case H5T_TIME:
|
||||
case H5T_STRING:
|
||||
case H5T_BITFIELD:
|
||||
case H5T_OPAQUE:
|
||||
case H5T_REFERENCE:
|
||||
case H5T_ENUM:
|
||||
if(H5Z_set_parms_nooptype(dtype_base, cd_values) == FAIL)
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "nbit cannot set parameters for datatype")
|
||||
break;
|
||||
|
||||
case H5T_NO_CLASS:
|
||||
case H5T_NCLASSES:
|
||||
default:
|
||||
/* Badness */
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "nbit received bad datatype")
|
||||
break;
|
||||
} /* end switch */
|
||||
|
||||
done:
|
||||
@ -666,16 +715,16 @@ H5Z_set_parms_compound(const H5T_t *type, unsigned cd_values[])
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "nbit cannot set parameters for datatype")
|
||||
break;
|
||||
|
||||
default: /* other datatype that nbit does no compression */
|
||||
case H5T_VLEN:
|
||||
/* Check if datatype is a variable-length string */
|
||||
if((is_vlstring = H5T_is_variable_str(dtype_member)) < 0)
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "cannot determine if datatype is a variable-length string")
|
||||
|
||||
/* Because for some no-op datatype (VL datatype and VL string datatype), its
|
||||
* size can not be retrieved correctly by using function call H5T_get_size,
|
||||
* special handling is needed for getting the size. Here the difference between
|
||||
* size can not be retrieved correctly by using function call H5T_get_size,
|
||||
* special handling is needed for getting the size. Here the difference between
|
||||
* adjacent member offset is used (if alignment is present, the result can be
|
||||
* larger, but it does not affect the nbit filter's correctness).
|
||||
* larger, but it does not affect the nbit filter's correctness).
|
||||
*/
|
||||
if(dtype_member_class == H5T_VLEN || is_vlstring) {
|
||||
/* Set datatype class code */
|
||||
@ -688,9 +737,25 @@ H5Z_set_parms_compound(const H5T_t *type, unsigned cd_values[])
|
||||
|
||||
/* Set "local" parameter for datatype size */
|
||||
cd_values[cd_values_index++] = dtype_next_member_offset - dtype_member_offset;
|
||||
} else
|
||||
if(H5Z_set_parms_nooptype(dtype_member, cd_values)==FAIL)
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "nbit cannot set parameters for datatype")
|
||||
}
|
||||
break;
|
||||
|
||||
case H5T_TIME:
|
||||
case H5T_STRING:
|
||||
case H5T_BITFIELD:
|
||||
case H5T_OPAQUE:
|
||||
case H5T_REFERENCE:
|
||||
case H5T_ENUM:
|
||||
/* other datatype that nbit does no compression */
|
||||
if(H5Z_set_parms_nooptype(dtype_member, cd_values) == FAIL)
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "nbit cannot set parameters for datatype")
|
||||
break;
|
||||
|
||||
case H5T_NO_CLASS:
|
||||
case H5T_NCLASSES:
|
||||
default:
|
||||
/* Badness */
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "nbit was passed bad datatype")
|
||||
break;
|
||||
} /* end switch */
|
||||
|
||||
@ -770,8 +835,22 @@ H5Z_set_local_nbit(hid_t dcpl_id, hid_t type_id, hid_t space_id)
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "nbit cannot compute parameters for datatype")
|
||||
break;
|
||||
|
||||
default: /* no need to calculate other datatypes at top level */
|
||||
break;
|
||||
case H5T_TIME:
|
||||
case H5T_STRING:
|
||||
case H5T_BITFIELD:
|
||||
case H5T_OPAQUE:
|
||||
case H5T_REFERENCE:
|
||||
case H5T_ENUM:
|
||||
case H5T_VLEN:
|
||||
/* No need to calculate other datatypes at top level */
|
||||
break;
|
||||
|
||||
case H5T_NO_CLASS:
|
||||
case H5T_NCLASSES:
|
||||
default:
|
||||
/* Badness */
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "nbit received bad datatype")
|
||||
break;
|
||||
} /* end switch */
|
||||
|
||||
/* Check if the number of parameters exceed what cd_values[] can store */
|
||||
@ -826,8 +905,22 @@ H5Z_set_local_nbit(hid_t dcpl_id, hid_t type_id, hid_t space_id)
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "nbit cannot set parameters for datatype")
|
||||
break;
|
||||
|
||||
default: /* no need to set parameters for other datatypes at top level */
|
||||
break;
|
||||
case H5T_TIME:
|
||||
case H5T_STRING:
|
||||
case H5T_BITFIELD:
|
||||
case H5T_OPAQUE:
|
||||
case H5T_REFERENCE:
|
||||
case H5T_ENUM:
|
||||
case H5T_VLEN:
|
||||
/* No need to set parameters for other datatypes at top level */
|
||||
break;
|
||||
|
||||
case H5T_NO_CLASS:
|
||||
case H5T_NCLASSES:
|
||||
default:
|
||||
/* Badness */
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "nbit received bad datatype")
|
||||
break;
|
||||
} /* end switch */
|
||||
|
||||
/* Check if calculation of parameters matches with setting of parameters */
|
||||
|
@ -977,6 +977,7 @@ H5Z_set_local_scaleoffset(hid_t dcpl_id, hid_t type_id, hid_t space_id)
|
||||
|
||||
case H5T_ORDER_ERROR:
|
||||
case H5T_ORDER_VAX:
|
||||
case H5T_ORDER_MIXED:
|
||||
case H5T_ORDER_NONE:
|
||||
default:
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "bad datatype endianness order")
|
||||
@ -1075,6 +1076,7 @@ H5Z_filter_scaleoffset(unsigned flags, size_t cd_nelmts, const unsigned cd_value
|
||||
|
||||
case H5T_ORDER_ERROR:
|
||||
case H5T_ORDER_VAX:
|
||||
case H5T_ORDER_MIXED:
|
||||
case H5T_ORDER_NONE:
|
||||
default:
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, 0, "bad H5T_NATIVE_INT endianness order")
|
||||
|
207
src/H5Ztrans.c
207
src/H5Ztrans.c
@ -731,11 +731,20 @@ H5Z_parse_term(H5Z_token *current, H5Z_datval_ptrs* dat_val_pointers)
|
||||
case H5Z_XFORM_END:
|
||||
HGOTO_DONE(term)
|
||||
|
||||
default:
|
||||
case H5Z_XFORM_INTEGER:
|
||||
case H5Z_XFORM_FLOAT:
|
||||
case H5Z_XFORM_SYMBOL:
|
||||
case H5Z_XFORM_PLUS:
|
||||
case H5Z_XFORM_MINUS:
|
||||
case H5Z_XFORM_LPAREN:
|
||||
H5Z_unget_token(current);
|
||||
HGOTO_DONE(term)
|
||||
}
|
||||
}
|
||||
|
||||
case H5Z_XFORM_ERROR:
|
||||
default:
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, NULL, "bad transform type passed to data transform expression")
|
||||
} /* end switch */
|
||||
} /* end for */
|
||||
|
||||
done:
|
||||
FUNC_LEAVE_NOAPI(ret_value)
|
||||
@ -773,112 +782,115 @@ H5Z_parse_factor(H5Z_token *current, H5Z_datval_ptrs* dat_val_pointers)
|
||||
current = H5Z_get_token(current);
|
||||
|
||||
switch (current->tok_type) {
|
||||
case H5Z_XFORM_INTEGER:
|
||||
factor = H5Z_new_node(H5Z_XFORM_INTEGER);
|
||||
case H5Z_XFORM_INTEGER:
|
||||
factor = H5Z_new_node(H5Z_XFORM_INTEGER);
|
||||
|
||||
if (!factor)
|
||||
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "Unable to allocate new node")
|
||||
sscanf(current->tok_begin, "%ld", &factor->value.int_val);
|
||||
break;
|
||||
if (!factor)
|
||||
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "Unable to allocate new node")
|
||||
sscanf(current->tok_begin, "%ld", &factor->value.int_val);
|
||||
break;
|
||||
|
||||
case H5Z_XFORM_FLOAT:
|
||||
factor = H5Z_new_node(H5Z_XFORM_FLOAT);
|
||||
case H5Z_XFORM_FLOAT:
|
||||
factor = H5Z_new_node(H5Z_XFORM_FLOAT);
|
||||
|
||||
if (!factor)
|
||||
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "Unable to allocate new node")
|
||||
sscanf(current->tok_begin, "%lf", &factor->value.float_val);
|
||||
break;
|
||||
if (!factor)
|
||||
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "Unable to allocate new node")
|
||||
sscanf(current->tok_begin, "%lf", &factor->value.float_val);
|
||||
break;
|
||||
|
||||
case H5Z_XFORM_SYMBOL:
|
||||
factor = H5Z_new_node(H5Z_XFORM_SYMBOL);
|
||||
case H5Z_XFORM_SYMBOL:
|
||||
factor = H5Z_new_node(H5Z_XFORM_SYMBOL);
|
||||
|
||||
if (!factor)
|
||||
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "Unable to allocate new node")
|
||||
if (!factor)
|
||||
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "Unable to allocate new node")
|
||||
|
||||
factor->value.dat_val = &(dat_val_pointers->ptr_dat_val[dat_val_pointers->num_ptrs]);
|
||||
dat_val_pointers->num_ptrs++;
|
||||
break;
|
||||
factor->value.dat_val = &(dat_val_pointers->ptr_dat_val[dat_val_pointers->num_ptrs]);
|
||||
dat_val_pointers->num_ptrs++;
|
||||
break;
|
||||
|
||||
case H5Z_XFORM_LPAREN:
|
||||
factor = H5Z_parse_expression(current, dat_val_pointers);
|
||||
case H5Z_XFORM_LPAREN:
|
||||
factor = H5Z_parse_expression(current, dat_val_pointers);
|
||||
|
||||
if (!factor)
|
||||
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "Unable to allocate new node")
|
||||
if (!factor)
|
||||
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "Unable to allocate new node")
|
||||
|
||||
current = H5Z_get_token(current);
|
||||
current = H5Z_get_token(current);
|
||||
|
||||
if (current->tok_type != H5Z_XFORM_RPAREN) {
|
||||
H5Z_xform_destroy_parse_tree(factor);
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, NULL, "Syntax error in data transform expression")
|
||||
}
|
||||
break;
|
||||
|
||||
case H5Z_XFORM_RPAREN:
|
||||
/* We shouldn't see a ) right now */
|
||||
H5Z_xform_destroy_parse_tree(factor);
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, NULL, "Syntax error: unexpected ')' ")
|
||||
|
||||
case H5Z_XFORM_PLUS:
|
||||
/* unary + */
|
||||
new_node = H5Z_parse_factor(current, dat_val_pointers);
|
||||
|
||||
if (new_node) {
|
||||
if (new_node->type != H5Z_XFORM_INTEGER && new_node->type != H5Z_XFORM_FLOAT &&
|
||||
new_node->type != H5Z_XFORM_SYMBOL) {
|
||||
H5Z_xform_destroy_parse_tree(new_node);
|
||||
H5Z_xform_destroy_parse_tree(factor);
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, NULL, "Error parsing data transform expression")
|
||||
}
|
||||
|
||||
factor = new_node;
|
||||
new_node = H5Z_new_node(H5Z_XFORM_PLUS);
|
||||
|
||||
if (!new_node) {
|
||||
H5Z_xform_destroy_parse_tree(factor);
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, NULL, "Error parsing data transform expression")
|
||||
}
|
||||
|
||||
new_node->rchild = factor;
|
||||
factor = new_node;
|
||||
} else {
|
||||
H5Z_xform_destroy_parse_tree(factor);
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, NULL, "Error parsing data transform expression")
|
||||
if (current->tok_type != H5Z_XFORM_RPAREN) {
|
||||
H5Z_xform_destroy_parse_tree(factor);
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, NULL, "Syntax error in data transform expression")
|
||||
}
|
||||
break;
|
||||
|
||||
case H5Z_XFORM_MINUS:
|
||||
/* unary - */
|
||||
new_node = H5Z_parse_factor(current, dat_val_pointers);
|
||||
case H5Z_XFORM_RPAREN:
|
||||
/* We shouldn't see a ) right now */
|
||||
H5Z_xform_destroy_parse_tree(factor);
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, NULL, "Syntax error: unexpected ')' ")
|
||||
|
||||
if (new_node) {
|
||||
if (new_node->type != H5Z_XFORM_INTEGER && new_node->type != H5Z_XFORM_FLOAT &&
|
||||
new_node->type != H5Z_XFORM_SYMBOL) {
|
||||
H5Z_xform_destroy_parse_tree(new_node);
|
||||
case H5Z_XFORM_PLUS:
|
||||
/* unary + */
|
||||
new_node = H5Z_parse_factor(current, dat_val_pointers);
|
||||
|
||||
if (new_node) {
|
||||
if (new_node->type != H5Z_XFORM_INTEGER && new_node->type != H5Z_XFORM_FLOAT &&
|
||||
new_node->type != H5Z_XFORM_SYMBOL) {
|
||||
H5Z_xform_destroy_parse_tree(new_node);
|
||||
H5Z_xform_destroy_parse_tree(factor);
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, NULL, "Error parsing data transform expression")
|
||||
}
|
||||
|
||||
factor = new_node;
|
||||
new_node = H5Z_new_node(H5Z_XFORM_PLUS);
|
||||
|
||||
if (!new_node) {
|
||||
H5Z_xform_destroy_parse_tree(factor);
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, NULL, "Error parsing data transform expression")
|
||||
}
|
||||
|
||||
new_node->rchild = factor;
|
||||
factor = new_node;
|
||||
} else {
|
||||
H5Z_xform_destroy_parse_tree(factor);
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, NULL, "Error parsing data transform expression")
|
||||
}
|
||||
break;
|
||||
|
||||
factor = new_node;
|
||||
new_node = H5Z_new_node(H5Z_XFORM_MINUS);
|
||||
case H5Z_XFORM_MINUS:
|
||||
/* unary - */
|
||||
new_node = H5Z_parse_factor(current, dat_val_pointers);
|
||||
|
||||
if (!new_node) {
|
||||
if (new_node) {
|
||||
if (new_node->type != H5Z_XFORM_INTEGER && new_node->type != H5Z_XFORM_FLOAT &&
|
||||
new_node->type != H5Z_XFORM_SYMBOL) {
|
||||
H5Z_xform_destroy_parse_tree(new_node);
|
||||
H5Z_xform_destroy_parse_tree(factor);
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, NULL, "Error parsing data transform expression")
|
||||
}
|
||||
|
||||
factor = new_node;
|
||||
new_node = H5Z_new_node(H5Z_XFORM_MINUS);
|
||||
|
||||
if (!new_node) {
|
||||
H5Z_xform_destroy_parse_tree(factor);
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, NULL, "Error parsing data transform expression")
|
||||
}
|
||||
|
||||
new_node->rchild = factor;
|
||||
factor = new_node;
|
||||
} else {
|
||||
H5Z_xform_destroy_parse_tree(factor);
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, NULL, "Error parsing data transform expression")
|
||||
}
|
||||
break;
|
||||
|
||||
new_node->rchild = factor;
|
||||
factor = new_node;
|
||||
} else {
|
||||
H5Z_xform_destroy_parse_tree(factor);
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, NULL, "Error parsing data transform expression")
|
||||
}
|
||||
break;
|
||||
case H5Z_XFORM_END:
|
||||
break;
|
||||
|
||||
case H5Z_XFORM_END:
|
||||
break;
|
||||
|
||||
default:
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, NULL, "Invalid token while parsing data transform expression")
|
||||
case H5Z_XFORM_MULT:
|
||||
case H5Z_XFORM_DIVIDE:
|
||||
case H5Z_XFORM_ERROR:
|
||||
default:
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, NULL, "Invalid token while parsing data transform expression")
|
||||
|
||||
}
|
||||
|
||||
@ -1091,23 +1103,30 @@ H5Z_xform_eval_full(H5Z_node *tree, const size_t array_size, const hid_t array_
|
||||
|
||||
switch (tree->type) {
|
||||
case H5Z_XFORM_PLUS:
|
||||
H5Z_XFORM_TYPE_OP(resl, resr, array_type, +, array_size)
|
||||
break;
|
||||
H5Z_XFORM_TYPE_OP(resl, resr, array_type, +, array_size)
|
||||
break;
|
||||
|
||||
case H5Z_XFORM_MINUS:
|
||||
H5Z_XFORM_TYPE_OP(resl, resr, array_type, -, array_size)
|
||||
break;
|
||||
H5Z_XFORM_TYPE_OP(resl, resr, array_type, -, array_size)
|
||||
break;
|
||||
|
||||
case H5Z_XFORM_MULT:
|
||||
H5Z_XFORM_TYPE_OP(resl, resr, array_type, *, array_size)
|
||||
break;
|
||||
H5Z_XFORM_TYPE_OP(resl, resr, array_type, *, array_size)
|
||||
break;
|
||||
|
||||
case H5Z_XFORM_DIVIDE:
|
||||
H5Z_XFORM_TYPE_OP(resl, resr, array_type, /, array_size)
|
||||
break;
|
||||
H5Z_XFORM_TYPE_OP(resl, resr, array_type, /, array_size)
|
||||
break;
|
||||
|
||||
case H5Z_XFORM_ERROR:
|
||||
case H5Z_XFORM_INTEGER:
|
||||
case H5Z_XFORM_FLOAT:
|
||||
case H5Z_XFORM_SYMBOL:
|
||||
case H5Z_XFORM_LPAREN:
|
||||
case H5Z_XFORM_RPAREN:
|
||||
case H5Z_XFORM_END:
|
||||
default:
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "Invalid expression tree")
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "Invalid expression tree")
|
||||
} /* end switch */
|
||||
|
||||
/* The result stores a pointer to the new data */
|
||||
|
@ -48,6 +48,9 @@
|
||||
/* Determine the size of C long double */
|
||||
#undef FORTRAN_SIZEOF_LONG_DOUBLE
|
||||
|
||||
/* Define Fortran compiler ID */
|
||||
#undef Fortran_COMPILER_ID
|
||||
|
||||
/* Define valid Fortran INTEGER KINDs */
|
||||
#undef H5CONFIG_F_IKIND
|
||||
|
||||
|
@ -94,10 +94,10 @@ extern "C" {
|
||||
/* Version numbers */
|
||||
#define H5_VERS_MAJOR 1 /* For major interface/format changes */
|
||||
#define H5_VERS_MINOR 9 /* For minor interface/format changes */
|
||||
#define H5_VERS_RELEASE 229 /* For tweaks, bug-fixes, or development */
|
||||
#define H5_VERS_RELEASE 230 /* For tweaks, bug-fixes, or development */
|
||||
#define H5_VERS_SUBRELEASE "" /* For pre-releases like snap0 */
|
||||
/* Empty string for real releases. */
|
||||
#define H5_VERS_INFO "HDF5 library version: 1.9.229" /* Full version string */
|
||||
#define H5_VERS_INFO "HDF5 library version: 1.9.230" /* Full version string */
|
||||
|
||||
#define H5check() H5check_version(H5_VERS_MAJOR,H5_VERS_MINOR, \
|
||||
H5_VERS_RELEASE)
|
||||
|
@ -522,6 +522,7 @@ FORTRAN_C_LONG_DOUBLE_IS_UNIQUE = @FORTRAN_C_LONG_DOUBLE_IS_UNIQUE@
|
||||
FORTRAN_HAVE_C_LONG_DOUBLE = @FORTRAN_HAVE_C_LONG_DOUBLE@
|
||||
FORTRAN_SIZEOF_LONG_DOUBLE = @FORTRAN_SIZEOF_LONG_DOUBLE@
|
||||
FSEARCH_DIRS = @FSEARCH_DIRS@
|
||||
Fortran_COMPILER_ID = @Fortran_COMPILER_ID@
|
||||
GREP = @GREP@
|
||||
H5CONFIG_F_IKIND = @H5CONFIG_F_IKIND@
|
||||
H5CONFIG_F_NUM_IKIND = @H5CONFIG_F_NUM_IKIND@
|
||||
@ -741,7 +742,7 @@ CHECK_CLEANFILES = *.chkexe *.chklog *.clog *.clog2
|
||||
# After making changes, run bin/reconfigure to update other configure related
|
||||
# files like Makefile.in.
|
||||
LT_VERS_INTERFACE = 6
|
||||
LT_VERS_REVISION = 219
|
||||
LT_VERS_REVISION = 220
|
||||
LT_VERS_AGE = 0
|
||||
|
||||
# Our main target, the HDF5 library
|
||||
|
@ -563,9 +563,10 @@ if (NOT CYGWIN)
|
||||
add_test (NAME H5TEST-cache COMMAND $<TARGET_FILE:cache>)
|
||||
set_tests_properties (H5TEST-cache PROPERTIES
|
||||
DEPENDS H5TEST-clear-cache-objects
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/H5TEST;HDF5TestExpress=2"
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/H5TEST;HDF5TestExpress=${HDF_TEST_EXPRESS}"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/H5TEST
|
||||
)
|
||||
set_tests_properties (H5TEST-cache PROPERTIES TIMEOUT 2400)
|
||||
endif (NOT CYGWIN)
|
||||
|
||||
#-- Adding test for cache_api
|
||||
@ -726,9 +727,10 @@ if (BUILD_SHARED_LIBS)
|
||||
add_test (NAME H5TEST-shared-cache COMMAND $<TARGET_FILE:cache-shared>)
|
||||
set_tests_properties (H5TEST-shared-cache PROPERTIES
|
||||
DEPENDS H5TEST-shared-clear-cache-objects
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/H5TEST-shared;HDF5TestExpress=2"
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/H5TEST-shared;HDF5TestExpress=${HDF_TEST_EXPRESS}"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/H5TEST-shared
|
||||
)
|
||||
set_tests_properties (H5TEST-cache PROPERTIES TIMEOUT 2400)
|
||||
endif (NOT CYGWIN)
|
||||
|
||||
#-- Adding test for cache_api
|
||||
@ -1053,7 +1055,7 @@ if (HDF5_TEST_VFD)
|
||||
-P "${HDF_RESOURCES_DIR}/vfdTest.cmake"
|
||||
)
|
||||
set_tests_properties (VFD-${vfdname}-${vfdtest} PROPERTIES
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/${vfdname};HDF5TestExpress=2"
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/${vfdname};HDF5TestExpress=${HDF_TEST_EXPRESS}"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/${vfdname}
|
||||
)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
@ -1069,7 +1071,7 @@ if (HDF5_TEST_VFD)
|
||||
-P "${HDF_RESOURCES_DIR}/vfdTest.cmake"
|
||||
)
|
||||
set_tests_properties (VFD-${vfdname}-${vfdtest}-shared PROPERTIES
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/${vfdname}-shared;HDF5TestExpress=2"
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/${vfdname}-shared;HDF5TestExpress=${HDF_TEST_EXPRESS}"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/${vfdname}-shared
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
@ -1137,7 +1139,7 @@ if (HDF5_TEST_VFD)
|
||||
)
|
||||
set_tests_properties (VFD-${vfdname}-fheap PROPERTIES
|
||||
TIMEOUT 1800
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/${vfdname};HDF5TestExpress=2"
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/${vfdname};HDF5TestExpress=${HDF_TEST_EXPRESS}"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/${vfdname}
|
||||
)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
@ -1154,7 +1156,7 @@ if (HDF5_TEST_VFD)
|
||||
)
|
||||
set_tests_properties (VFD-${vfdname}-fheap-shared PROPERTIES
|
||||
TIMEOUT 1800
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/${vfdname}-shared;HDF5TestExpress=2"
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/${vfdname}-shared;HDF5TestExpress=${HDF_TEST_EXPRESS}"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/${vfdname}-shared
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
@ -869,6 +869,7 @@ FORTRAN_C_LONG_DOUBLE_IS_UNIQUE = @FORTRAN_C_LONG_DOUBLE_IS_UNIQUE@
|
||||
FORTRAN_HAVE_C_LONG_DOUBLE = @FORTRAN_HAVE_C_LONG_DOUBLE@
|
||||
FORTRAN_SIZEOF_LONG_DOUBLE = @FORTRAN_SIZEOF_LONG_DOUBLE@
|
||||
FSEARCH_DIRS = @FSEARCH_DIRS@
|
||||
Fortran_COMPILER_ID = @Fortran_COMPILER_ID@
|
||||
GREP = @GREP@
|
||||
H5CONFIG_F_IKIND = @H5CONFIG_F_IKIND@
|
||||
H5CONFIG_F_NUM_IKIND = @H5CONFIG_F_NUM_IKIND@
|
||||
|
@ -7567,7 +7567,7 @@ test_chunk_expand(hid_t fapl)
|
||||
if(TRUE != H5Zfilter_avail(H5Z_FILTER_EXPAND)) FAIL_STACK_ERROR
|
||||
|
||||
/* Loop over storage allocation time */
|
||||
for(alloc_time = H5D_ALLOC_TIME_EARLY; alloc_time <= H5D_ALLOC_TIME_INCR; alloc_time++) {
|
||||
for(alloc_time = H5D_ALLOC_TIME_EARLY; alloc_time <= H5D_ALLOC_TIME_INCR; H5_INC_ENUM(H5D_alloc_time_t, alloc_time)) {
|
||||
/* Create file */
|
||||
if((fid = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl)) < 0) FAIL_STACK_ERROR
|
||||
|
||||
|
@ -2894,7 +2894,7 @@ main(void)
|
||||
init_cparam(&cparam);
|
||||
|
||||
/* Iterate over the testing parameters */
|
||||
for(curr_test = EARRAY_TEST_NORMAL; curr_test < EARRAY_TEST_NTESTS; curr_test++) {
|
||||
for(curr_test = EARRAY_TEST_NORMAL; curr_test < EARRAY_TEST_NTESTS; H5_INC_ENUM(earray_test_type_t, curr_test)) {
|
||||
|
||||
/* Initialize the testing parameters */
|
||||
init_tparam(&tparam, &cparam);
|
||||
@ -2926,7 +2926,7 @@ main(void)
|
||||
nerrors += test_flush_depend(fapl, &cparam, &tparam);
|
||||
|
||||
/* Iterate over the type of capacity tests */
|
||||
for(curr_iter = EARRAY_ITER_FW; curr_iter < EARRAY_ITER_NITERS; curr_iter++) {
|
||||
for(curr_iter = EARRAY_ITER_FW; curr_iter < EARRAY_ITER_NITERS; H5_INC_ENUM(earray_iter_type_t, curr_iter)) {
|
||||
hsize_t sblk; /* Super block index */
|
||||
hsize_t dblk; /* Data block index */
|
||||
hsize_t nelmts; /* # of elements to test */
|
||||
|
@ -1554,11 +1554,11 @@ main(void)
|
||||
}
|
||||
|
||||
/* Iterate over the testing parameters */
|
||||
for(curr_test = FARRAY_TEST_NORMAL; curr_test < FARRAY_TEST_NTESTS; curr_test++) {
|
||||
for(curr_test = FARRAY_TEST_NORMAL; curr_test < FARRAY_TEST_NTESTS; H5_INC_ENUM(farray_test_type_t, curr_test)) {
|
||||
|
||||
/* Initialize the testing parameters */
|
||||
HDmemset(&tparam, 0, sizeof(tparam));
|
||||
tparam.nelmts = TEST_NELMTS;
|
||||
HDmemset(&tparam, 0, sizeof(tparam));
|
||||
tparam.nelmts = TEST_NELMTS;
|
||||
|
||||
/* Set appropriate testing parameters for each test */
|
||||
switch(curr_test) {
|
||||
@ -1589,7 +1589,7 @@ main(void)
|
||||
nerrors += test_delete_open(fapl, &cparam, &tparam);
|
||||
|
||||
/* Iterate over the type of capacity tests */
|
||||
for(curr_iter = FARRAY_ITER_FW; curr_iter < FARRAY_ITER_NITERS; curr_iter++) {
|
||||
for(curr_iter = FARRAY_ITER_FW; curr_iter < FARRAY_ITER_NITERS; H5_INC_ENUM(farray_iter_type_t, curr_iter)) {
|
||||
|
||||
/* Set appropriate parameters for each type of iteration */
|
||||
switch(curr_iter) {
|
||||
|
12
test/fheap.c
12
test/fheap.c
@ -16380,7 +16380,7 @@ main(void)
|
||||
|
||||
/* Iterate over the testing parameters */
|
||||
#ifndef QAK
|
||||
for(curr_test = FHEAP_TEST_NORMAL; curr_test < FHEAP_TEST_NTESTS; curr_test++) {
|
||||
for(curr_test = FHEAP_TEST_NORMAL; curr_test < FHEAP_TEST_NTESTS; H5_INC_ENUM(fheap_test_type_t, curr_test)) {
|
||||
#else /* QAK */
|
||||
HDfprintf(stderr, "Uncomment test loop!\n");
|
||||
curr_test = FHEAP_TEST_NORMAL;
|
||||
@ -16430,7 +16430,7 @@ HDfprintf(stderr, "Uncomment tests!\n");
|
||||
|
||||
#ifndef QAK2
|
||||
/* Filling with different sized objects */
|
||||
for(fill = FHEAP_TEST_FILL_LARGE; fill < FHEAP_TEST_FILL_N; fill++) {
|
||||
for(fill = FHEAP_TEST_FILL_LARGE; fill < FHEAP_TEST_FILL_N; H5_INC_ENUM(fheap_test_fill_t, fill)) {
|
||||
#else /* QAK2 */
|
||||
HDfprintf(stderr, "Uncomment test loop!\n");
|
||||
fill = FHEAP_TEST_FILL_LARGE;
|
||||
@ -16542,9 +16542,9 @@ HDfprintf(stderr, "Uncomment tests!\n");
|
||||
fheap_test_del_drain_t drain_half; /* Deletion draining */
|
||||
|
||||
/* More complex removal patterns */
|
||||
for(del_dir = FHEAP_DEL_FORWARD; del_dir < FHEAP_DEL_NDIRS; del_dir++) {
|
||||
for(del_dir = FHEAP_DEL_FORWARD; del_dir < FHEAP_DEL_NDIRS; H5_INC_ENUM(fheap_test_del_dir_t, del_dir)) {
|
||||
tparam.del_dir = del_dir;
|
||||
for(drain_half = FHEAP_DEL_DRAIN_ALL; drain_half < FHEAP_DEL_DRAIN_N; drain_half++) {
|
||||
for(drain_half = FHEAP_DEL_DRAIN_ALL; drain_half < FHEAP_DEL_DRAIN_N; H5_INC_ENUM(fheap_test_del_drain_t, drain_half)) {
|
||||
tparam.drain_half = drain_half;
|
||||
#else /* QAK2 */
|
||||
HDfprintf(stderr, "Uncomment test loops!\n");
|
||||
@ -16683,7 +16683,7 @@ HDfprintf(stderr, "Uncomment tests!\n");
|
||||
} /* end switch */
|
||||
|
||||
/* Try several different methods of deleting objects */
|
||||
for(del_dir = FHEAP_DEL_FORWARD; del_dir < FHEAP_DEL_NDIRS; del_dir++) {
|
||||
for(del_dir = FHEAP_DEL_FORWARD; del_dir < FHEAP_DEL_NDIRS; H5_INC_ENUM(fheap_test_del_dir_t, del_dir)) {
|
||||
tparam.del_dir = del_dir;
|
||||
|
||||
/* Test 'huge' object insert & delete */
|
||||
@ -16726,7 +16726,7 @@ HDfprintf(stderr, "Uncomment tests!\n");
|
||||
{
|
||||
fheap_test_del_dir_t del_dir; /* Deletion direction */
|
||||
|
||||
for(del_dir = FHEAP_DEL_FORWARD; del_dir < FHEAP_DEL_NDIRS; del_dir++) {
|
||||
for(del_dir = FHEAP_DEL_FORWARD; del_dir < FHEAP_DEL_NDIRS; H5_INC_ENUM(fheap_test_del_dir_t, del_dir)) {
|
||||
tparam.del_dir = del_dir;
|
||||
|
||||
/* Controlled tests */
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user