Commit Graph

10494 Commits

Author SHA1 Message Date
Scot Breitenfeld
d364dc74a4 [svn-r15424] Description:
Fixed the error of passing an array to a scalar.
2008-07-29 09:19:19 -05:00
Scot Breitenfeld
607cadc648 [svn-r15419] Description:
Initialized a string with a space instead of a blank

i.e. var = '' is now var = ' '

This fixes a problem with AIX for bug 1252
2008-07-28 14:42:33 -05:00
Scot Breitenfeld
ec1358b0ca [svn-r15416] Description:
Changed the INTENT for total_error to be consistantly
INTENT(INOUT)

as noted in bug 1251
2008-07-28 12:33:38 -05:00
Scot Breitenfeld
adb2280c71 [svn-r15415] Description:
Added missing comma, i.e.

WRITE(*, "("" subroutine i"" i2.2,""()"")") j

should be

WRITE(*, "("" subroutine i"", i2.2,""()"")") j

etc...

as noted in bug 1251 and NAG compiler.


Checked the write fix using Sun f95, g95, pgf90, gfortran, ifort, absoft and all gave the correct write output.
2008-07-28 12:31:03 -05:00
Binh-Minh Ribler
98fdd752a4 [svn-r15404] Purpose: Code correction
Description:
    Accidentally left p_setId in public section in the previous checkin.
    Moved it to "protected:" section.

Platforms tested:
    Linux 2.6 (kagiso)
    SunOS 5.10 (linew)
    FreeBSD (duty)
2008-07-24 23:10:07 -05:00
Binh-Minh Ribler
836f7b53cc [svn-r15401] Purpose: Fix bug
Description:
    Changed all subclasses' setId to p_setId and put back setId in
    IdComponent.  p_setId is used in the library where the id provided
    by a C API passed on to user's application in the form of a C++ API
    object, which will be destroyed properly, and so p_setId does not
    call incRefCount.  On the other hand, the public version setId is
    used by other applications, in which the id passed to setId needs
    to be closed properly by the application, so setId must call incRefCount
    for the new object to prevent prematurely closing of the id.

Platforms tested:
    Linux 2.6 (kagiso)

    Still on going with these two platforms, but needed to check in before
    daily tests start.
    SunOS 5.10 (linew)
    FreeBSD (duty)
2008-07-24 16:18:28 -05:00
Christian Chilan
e1ee78dd09 [svn-r15398] Added declaration of functions needed for standalone building.
Tested on kagiso and abe.
2008-07-23 15:50:33 -05:00
Raymond Lu
9b6cc394cd [svn-r15392] Minor bug fix. The test tried to close an attribute handle with H5Pclose. Corrected it with
H5Aclose.  

No test needed.
2008-07-22 09:47:18 -05:00
Raymond Lu
e7037ad072 [svn-r15390] Last round of checkin introduced a bug. This checkin corrected it and made a few minor
changes.  

Last round of check in fixed the problem when an attribute was opened twice and data was 
written with one of the handles, the file didn't have the data.  It happened because each 
handle had its own object structure, and the empty one overwrote the data with fill value.
This is fixed by making some attribute information like the data be shared in the
attribute structure.

Tested on smirom, kagiso, and linew.
2008-07-21 11:50:22 -05:00
Binh-Minh Ribler
60957dc6cf [svn-r15387] Purpose: Fix bug
Description:
    Enclosed some code that test reference counts in brackets so that
    temporary objects will go out of scope before checking references.
    This is to work around the issue where some C++ compilers destroy
    temporary objects at different time than others.

Platforms tested:
    SunOS 5.10 (linew)
    Linux 2.6 (kagiso)
    FreeBSD (duty)
2008-07-18 16:05:05 -05:00
Binh-Minh Ribler
d6dc8a4dfd [svn-r15386] Purpose: Fix bug
Description:
    A bug in reference counter was exposed when Ray fixed H5Awrite in
    the main library.  ::setId() called incRefCount when it shouldn't.
    Made sure that id's reference counter is manually incremented
    properly in copy constructor and operator= only.  The main library
    handles the rest.

Platforms tested:
    SunOS 5.10 (linew)
    Linux 2.6 (kagiso)
    FreeBSD (duty)
2008-07-18 15:49:32 -05:00
Quincey Koziol
99e21e85c9 [svn-r15385] Description:
Correct return value for error condition to avoid compiler warning

Tested on:
    Just eyeballed, very minor
2008-07-18 09:08:21 -05:00
Christian Chilan
8b3ced0b9e [svn-r15384] Major update of h5perf files including bug fixes and extensions.
Tested on kagiso and abe.
2008-07-17 17:45:40 -05:00
Scot Breitenfeld
ba711c9cf5 [svn-r15379] Description:
Added optional "mounted" parameter to H5Gget_info_f, H5Gget_info_by_idx_f, H5Gget_info_by_name_f
2008-07-16 14:16:17 -05:00
Quincey Koziol
9981e28710 [svn-r15376] Description:
Bump shared library version # for change to H5G_info_t struct
2008-07-16 10:30:32 -05:00
Quincey Koziol
583eac5e6d [svn-r15373] Description:
Correct wrong error return value to avoid compiler warning

Tested on:
    Just eyeballed, extremely minor
2008-07-16 10:11:50 -05:00
Quincey Koziol
f21b99b592 [svn-r15371] Description:
Update release notes for file mounting bug fix and adding 'mounted' flag
to H5G_info_t.
2008-07-15 17:43:22 -05:00
Quincey Koziol
d6dadadc7e [svn-r15368] Description:
Bring back r15367 from the trunk:

    Add check to avoid mounting a file on a group twice, when the mounts
are done on the same HDF5 file, but opened with separate H5Fopen queries.

    Also add new 'mounted' flag to the H5G_info_t struct, queried with the
H5Gget_info() API call, to allow applications to detect and avoid this
situation.

Tested on:
    Mac OS X/32 10.5.4 (amazon)
    Linux/64 10.5.4 (chicago)
2008-07-15 16:23:19 -05:00
Raymond Lu
ac73359fb1 [svn-r15346] Commented out attribute test because there's a bug related to the recent change of attribute in
the library.  

No test - simple change.
2008-07-11 14:07:07 -05:00
Raymond Lu
32a3d96939 [svn-r15345] Commented out tsohm.c and tattr.c test because there's a bug related to the changes of attribute
in the library.

Tested on linew - simple change.
2008-07-11 14:05:31 -05:00
Scott Wegner
81de0a75cc [svn-r15338] Purpose: Reset fill value in correct hyperslab selection (fixes bug 1155)
Description:
This bug was previously fixed, but the fixed was modified slightly from the 1.8 branch and the trunk.  The problem is that after we write a particular byte to manipulate the fill values, we need to write it back before reading and comparing to the expected value.  The previous change makes the second write after the hyperslab is manipulated, so the initial hyperslab is still incorrect.

Tested:
VS2005 on WinXP (32- and 64-bit)
h5committest
2008-07-08 12:03:45 -05:00
Neil Fortner
d989ab71f4 [svn-r15336] Fixed incorrect error message in H5Pset_fletcher32:
"unable to add deflate filter to pipeline"
->
"unable to add fletcher32 filter to pipeline"

Tested: kagiso
2008-07-08 11:20:39 -05:00
Vailin Choi
0631ac2273 [svn-r15334] Update test files for h5stat.
h5committested.
2008-07-08 09:03:46 -05:00
Raymond Lu
9f56d7f5ab [svn-r15330] When an attribute was opened twice and data was written with one of the handles,
the file didn't have the data.  It happened because each handle had its own
object structure, and the empty one overwrote the data with fill value.  This is
fixed by making some attribute information like the data be shared in the
attribute structure.

Tested on smirom, kagiso, and linew.
2008-07-07 12:00:03 -05:00
Scott Wegner
1f4ee5485e [svn-r15313] Purpose: Support Visual Studio 2008 on Windows
Description:
Write documentation for building HDF5 with the latest version of Visual Studio, 2008.  The process is very similar to building with Visual Studio 2005, but with an automatic project-file conversion beforehand.

Also adapt commandline build scripts for Visual Studio 2008 as well.

Tested:
VS2008 on WinXP
2008-07-02 14:49:20 -05:00
Raymond Lu
d238f0663c [svn-r15305] Changed H5Tcreate_array to H5Tcreate_array2 from last checkin for the bug fix for
H5Tpack.  The problem was that H5Tpack didn't act correctly with nested
compound datatype.

Tested on smirom - simple change.
2008-07-01 11:25:08 -05:00
Scott Wegner
7447d79091 [svn-r15304] Purpose: Minor typo in Windows documentation (zlib DLL directory)
Description:
When specifying library search path in Visual Studio, use the DLL folder for zlib.  Previously we pointed to the "lib" folder, which was causing confusion.
2008-06-30 15:13:23 -05:00
Scott Wegner
0c0e746ce7 [svn-r15302] Purpose: Support Intel Visual Fortran 10.1 from Visual Studio and Windows command line
Description:
Modify Windows documentation to support Intel Visual Fortran 10.1.  We have tested it in our Virtual machines, and have fixed the problems we were encountering.

Also, add a new parameter to the hdf5build.BAT and hdf5bt.BAT build scripts to support IVF 10.1.
2008-06-30 14:19:11 -05:00
Raymond Lu
2b1ee377c3 [svn-r15297] Bug fix for H5Tpack. The problem was that H5Tpack didn't act correctly with nested
compound datatype.  The size of compound type's member type wasn't updated.  It's
fixed in this commit.

Tested on smirom.  The same change was tested on three systems for v1.9.
2008-06-30 14:00:44 -05:00
Scott Wegner
372af0302f [svn-r15289] Purpose: Project Cleanup / Support directories with spaces
Description:
On Windows, we manage dynamically-generated code through "post-build" steps in Visual Studio.  However, the command for it wasn't checking to see if the code already existed, so it was re-generating in each build (and thus re-generating all dependencies).  To overcome, we simply check if the source file exists before generating it.

Also, put all paths inside quotes so we can handle directory names with spaces.

Tested:
VS2005 on WinXP
2008-06-27 11:55:02 -05:00
Scott Wegner
0dd254246c [svn-r15287] Purpose: Fix project settings for Intel Fortran 10.1
Description:
A typo in the project output file name was causing Intel Fortran 10.1 to crash.  The output file was set to "$(OutDir)\hdf5_fortranddll.dll   " (three trailing spaces).  IVF 9.1 ignored this error and continued gracefully.  However, IVF 10.1 would simply crash.  With this fix, we can now build on IVF 10.1 (so far..)

Tested:
VS2008 w/ IVF 10.1 on WinXP
2008-06-27 11:26:41 -05:00
Neil Fortner
11b12d8f96 [svn-r15284] Fixed bug 1155, added fillval.c back to windows test file, other minor cleanup in fillval.c.
Tested: kagiso
Same fix in trunk: kagiso (parallel), smirom, linew
2008-06-26 11:18:22 -05:00
Scott Wegner
c3a26ef402 [svn-r15272] Purpose: Disable fillval test on Windows
Description:
The fillval test uses random input to test various fill cases.  Certain boundary cases cause the test to fail, which produces sporadic errors on Windows.  There is a bug filed for the issue here:
http://bugzilla.hdfgroup.uiuc.edu/show_bug.cgi?id=1155

We will disable the test until the bug is fixed.

Tested:
None, simply disabled.
2008-06-25 10:12:39 -05:00
Scot Breitenfeld
b950312318 [svn-r15255] Description:
Added the function h5tget_native_type and associated
requirements.
2008-06-20 11:38:54 -05:00
Scott Wegner
b5938a75af [svn-r15253] Purpose: Remove ttsafedll project from default build.
Description:
Somehow, the ttsafedll project was setup to build by default in Visual Studio .NET project files.  This causes build errors when the HDF5_EXT_PTHREAD variable isn't defined or the pthreads library path isn't setup.  It should be disabled by default.

Tested:
VS.NET on WinXP
2008-06-20 11:33:00 -05:00
Scott Wegner
f2a745a0bb [svn-r15241] Purpose: Port bugfix from trunk: Fix ohdr Windows timezone bug
Description:
On Windows, certain users were having trouble with the "ohdr" test, which does some processing on object header messages.  The errors were hard to reproduce on our machines, and we eventually determined that the errors were timezone-specific.

The bug is triggered on Windows when processing timestamps very near the "Epoch" (midnight on 1/1/1970)-- the mktime() function does some automatic adjustment on the time to correct for timezones.  In the USA, the correction adds a few hours; in Europe, it subtracts, thus giving us times pre-Epoch.

This only affects Windows because the Windows mktime() function cannot handle times before 1970-- other systems seemingly can.

The fix is to simply create timestamps only as early as 01/02/1970.  This way, any timezone adjustment will still be post-Epoch.

This bug only affects the ohdr test, and shouldn't be a problem in the library.  The earliest timestamps that will actually be read will be around the time HDF5 was created (~1996-7, per Quincey).

Tested:
(tested in trunk)
VS2005 on WinXP
h5committest (kagiso, linew, smirom)
2008-06-19 13:48:27 -05:00
Quincey Koziol
ea9b094c18 [svn-r15228] Description:
Bring back revision 15227 from trunk:

	Small cleanups to copying datatypes

Tested on:
        FreeBSD/32 6.2 (duty) in debug mode
        FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
        Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
                                in debug mode
        Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
                                in production mode
        Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
                                in production mode
        Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
                                w/szip filter, in production mode
        Mac OS X/32 10.5.3 (amazon) in debug mode
        Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-06-17 15:07:50 -05:00
Quincey Koziol
e7b55928b6 [svn-r15214] Description:
Fix gcc 4.2 flag that was put in gcc 4.1 section

Tested on:
        Eyeballed & man pages
2008-06-13 07:29:07 -05:00
Quincey Koziol
970fcd54e0 [svn-r15212] Description:
Bring back revision 15211 from trunk:

        Update the gcc flags for version 4.3

        Clean up warnings

Tested on:
    Mac OS X/32 10.5.3 (amazon)
2008-06-12 23:55:44 -05:00
Quincey Koziol
c7ad57374b [svn-r15209] Description:
Bring back revision 15208 from trunk:

    Add a "HDcompile_assert" macro for assertions that can/should be checked
at compile time, as opposed to run time.  (And used it for a couple of simple
cases, to begin)

Tested on:
    Mac OS X/32 10.5.3 (amazon)
2008-06-12 14:36:01 -05:00
Quincey Koziol
7dcf5b3972 [svn-r15189] Description:
Bring revision 15188 back from trunk:

        Avoid leaking memory when copying the internal "shared" struct for
a named datatype when it's already been opened earlier.

Tested on:
	Linux/64 2.6 (chicago)
2008-06-10 12:28:42 -05:00
Scott Wegner
6df2bbd6e9 [svn-r15181] Purpose: _WIN32 macro cleanup
Description:
As part of our Windows cleanup, we try to remove windows-specific tweaks in the source code.  There are many instances where Windows code is introduces via ifdef's.  We re-evaluate whether they are still required, and found that many of them are not.  Others we change to "feature"-specific code, rather than Windows-specific.

Tested:
VS2005 on WinXP
VS.NET on WinXP
h5committest (kagisopp, smirom, linew)
2008-06-09 12:31:22 -05:00
Christian Chilan
0304c9a5fa [svn-r15180] Change copyright notice to THG only. 2008-06-09 12:19:55 -05:00
Scott Wegner
720a985115 [svn-r15163] Purpose: Create new HDpthread_self and HDpthread_self_ulong macros
Description:
On Windows, the pthread_self function cannot be used to print the returned thread ID for debugging.  Instead, we need a separate function, GetCurrentThreadId.  To eliminate some Windows ifdef's in the code, we create two new function macros which can be used by all platforms.  It is conditionally defined in H5win32defs.h, and globally in H5private.h.

Tested:
VS2005 w/ pthreads on WinXP
kagiso w/ pthreads
2008-06-06 14:10:20 -05:00
Scott Wegner
0b5f34bfa6 [svn-r15160] Purpose: Separate Windows function macro definitions to win32defs.h
Description:
In library code, we try not to use system calls directly, but instead use the HD{function} macro instead.  This way, we can map special versions of the call on particular systems.  Previously, it was all done in H5private.h.  However, in an effort to clean up platform-specific definitions, we move all of the Windows macros into a separate file, win32defs.h.  This way, we can use the non-Posix versions that Visual Studio sends warnings about.

Some macros are set specifically in the platform-specific header files.  Then, any macros left unset will be set by the "default" implementation in H5private.h.

This checkin also cleans up various source files to use the HD* macros when possible.

Tested:
VS2005 on WinXP
VS.NET on WinXP
h5committest (kagiso, linew, smirom)
2008-06-05 16:39:30 -05:00
Pedro Vicente Nunes
13cc35de11 [svn-r15159]
- h5dump: when doing binary output (-b), the stdout printing of attributes 
           was done incorrectly. Removed printing of attributes when doing binary 
           output. PVN - 2008/06/05
2008-06-05 16:23:09 -05:00
Scott Wegner
1c63211301 [svn-r15152] Purpose: Add testhdf5_1_8fortran[dll] Windows projects as dependencies to all_fortran
Description:
The projects testhdf5_1_8fortran[dll] which test the new fortran features in HDF5 1.8 were not registered as dependencies to the "all_fortran" pseudo-project.  As a result, the projects would not be built if you simply build all_fortran in Visual Studio, rather than "Build Solution".  This is a very minor cleanup, but is neccessary to be consistent in our projects.

Tested:
VS2005 on WinXP x64
2008-06-05 14:56:23 -05:00
Pedro Vicente Nunes
1229fc7886 [svn-r15151]
Fix for #1169
http://bugzilla.hdfgroup.uiuc.edu/show_bug.cgi?id=1169

don't print attributes to stdout when doing binary output
added an attribute to the file run on the binary output test

tested: windows, linux
2008-06-05 14:26:35 -05:00
Quincey Koziol
c7b6018bda [svn-r15148] Description:
Bring back revision 15146 from the trunk:

        Correct the definition of the 'nbytes' variable in the in-memory version
    of the B-tree key for chunks from 'size_t' to 'uint32_t', to match the
    definitions everywhere else.

Tested on:
    Mac OS X/32 10.5.3 (amazon) debug & production
    Linux/64 2.6 (chicago) production
2008-06-05 11:47:50 -05:00
Mike McGreevy
c72fb2f329 [svn-r15147] Purpose: Bug Fix
Description: Changing h5perf installation so only h5perf is installed when
             parallel is enabled, while only h5perf_serial is installed when
             parallel is disabled.

Tested: kagiso
2008-06-05 11:46:29 -05:00