_h5b_open_file()

- we cannot call H5_check_filehandle() here
H5_open_file()
- Output of info-message changed
This commit is contained in:
2008-02-18 13:52:38 +00:00
parent 1597d075fd
commit 1cec74a0b4
+3 -10
View File
@@ -107,13 +107,10 @@ static h5part_int64_t
_h5b_open_file (
h5_file *f /*!< IN: file handle */
) {
h5part_int64_t herr;
struct h5b_fdata *b;
herr = H5_check_filehandle ( f );
if ( herr == H5_SUCCESS ) return H5_SUCCESS;
if ( (f == 0) || (f->file == 0) ) return HANDLE_H5_BADFD_ERR;
if ( f->block ) return H5_SUCCESS;
f->block = (struct h5b_fdata*) malloc( sizeof (*f->block) );
if ( f->block == NULL ) {
@@ -150,6 +147,8 @@ H5_open_file (
MPI_Comm comm /*!< [in] MPI communicator */
) {
H5_info ( "Opening file %s.", filename );
if ( _init() < 0 ) {
HANDLE_H5_INIT_ERR;
return NULL;
@@ -282,12 +281,6 @@ H5_open_file (
goto error_cleanup;
}
H5_print_debug (
"Proc[%d]: Opened file \"%s\" val=%lld",
f->myproc,
filename,
(long long)(size_t)f );
return f;
error_cleanup: