[svn-r4670] Purpose:
Backward Compatibility Fix
Description:
One of H5P[gs]et_sym_k's parameters changed between v1.4 and the development
branch.
Solution:
Added v1.4 compat stuff around H5P[gs]et_sym_k implementation and testing
to allow v1.4.x users to continue to use their source code without
modification.
These changes are for everything except the FORTRAN wrappers - I spoke with
Elena and she will make the FORTRAN wrapper changes.
Platforms tested:
FreeBSD 4.4 (hawkwind)
This commit is contained in:
@@ -72,6 +72,27 @@ void FileCreatPropList::getSizes( size_t& sizeof_addr, size_t& sizeof_size ) con
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef H5_WANT_H5_V1_4_COMPAT
|
||||
void FileCreatPropList::setSymk( int ik, int lk ) const
|
||||
{
|
||||
herr_t ret_value = H5Pset_sym_k( id, ik, lk );
|
||||
if( ret_value < 0 )
|
||||
{
|
||||
throw PropListIException("FileCreatPropList::setSymk",
|
||||
"H5Pset_sym_k failed");
|
||||
}
|
||||
}
|
||||
|
||||
void FileCreatPropList::getSymk( int& ik, int& lk ) const
|
||||
{
|
||||
herr_t ret_value = H5Pget_sym_k( id, &ik, &lk );
|
||||
if( ret_value < 0 )
|
||||
{
|
||||
throw PropListIException("FileCreatPropList::getSymk",
|
||||
"H5Pget_sym_k failed");
|
||||
}
|
||||
}
|
||||
#else /* H5_WANT_H5_V1_4_COMPAT */
|
||||
void FileCreatPropList::setSymk( int ik, unsigned lk ) const
|
||||
{
|
||||
herr_t ret_value = H5Pset_sym_k( id, ik, lk );
|
||||
@@ -91,6 +112,7 @@ void FileCreatPropList::getSymk( int& ik, unsigned& lk ) const
|
||||
"H5Pget_sym_k failed");
|
||||
}
|
||||
}
|
||||
#endif /* H5_WANT_H5_V1_4_COMPAT */
|
||||
|
||||
void FileCreatPropList::setIstorek( int ik ) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user