[petsc-dev] hdf5.py is messed up

Matthew Knepley knepley at gmail.com
Thu Jan 19 09:05:30 CST 2012


On Thu, Jan 19, 2012 at 8:06 AM, Barry Smith <bsmith at mcs.anl.gov> wrote:

>
>   hdf5.py is messed up, it starts with crap from a patch??? Please fix
>

HDF5 in their infinite wisdom run tests in the same make target as the
build. One of the Fortran
tests breaks on the Mac. The only solution that worked for me was to
disable that test with a
patch for the source. I mailed them this problem with no response. Feel
free to fix this in a way
that satisfies you aesthetically.

   Matt


> import config.package
> import os
>
> testPatch = '''\
> Index: fortran/test/tH5Sselect.f90
> ===================================================================
> --- fortran/test/tH5Sselect.f90 2011-10-20 09:37:20.000000000 -0400
> +++ fortran/test/tH5Sselect.f90 2011-10-20 09:38:22.000000000 -0400
> @@ -1884,13 +1884,13 @@
>   CALL check("H5Soffset_simple_f", error, total_error)
>
>   ! /* Set "regular" hyperslab selection */
> -  start(1:2) = 2
> +  !start(1:2) = 2
>   stride(1:2) = 10
>   count(1:2) = 4
>   block(1:2) = 5
>
> -  CALL h5sselect_hyperslab_f(sid, H5S_SELECT_SET_F, start, &
> -       count, error, stride, block)
> +  !CALL h5sselect_hyperslab_f(sid, H5S_SELECT_SET_F, start, &
> +  !     count, error, stride, block)
>   CALL check("h5sselect_hyperslab_f", error, total_error)
>
>   !/* Get bounds for hyperslab selection */
> @@ -1931,13 +1931,13 @@
>   CALL check("H5Soffset_simple_f", error, total_error)
>
>   ! /* Make "irregular" hyperslab selection */
> -  start(1:2) = 20
> +  !start(1:2) = 20
>   stride(1:2) = 20
>   count(1:2) = 2
>   block(1:2) = 10
>
> -  CALL h5sselect_hyperslab_f(sid, H5S_SELECT_OR_F, start, &
> -       count, error, stride, block)
> +  !CALL h5sselect_hyperslab_f(sid, H5S_SELECT_OR_F, start, &
> +  !     count, error, stride, block)
>   CALL check("h5sselect_hyperslab_f", error, total_error)
>
>   !/* Get bounds for hyperslab selection */
> '''
>
> class Configure(config.package.Package):
>  def __init__(self, framework):
>    config.package.Package.__init__(self, framework)
>    self.download     = ['
> http://ftp.mcs.anl.gov/pub/petsc/externalpackages/hdf5-1.8.6.tar.gz']
>
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120119/cf343c5e/attachment.html>


More information about the petsc-dev mailing list