packages/Utils/utils/HDF5_IO.cc
//---------------------------------------------------------------------------//
// PUBLIC FUNCTIONS
//---------------------------------------------------------------------------//
/*!
 * \brief Close the HDF5 file.
 *
 * This is a null-op if the file is already closed.
 */
PUBLIC FUNCTIONS
\brief Close the HDF5 file.

This is a null-op if the file is already closed.
PUBLIC FUNCTIONS \ brief Close the HDF5 file . This is a null - op if the file is already closed .
void HDF5_IO::close()
{
    if (b_file == 0)
        return;
    VALIDATE(b_loc_stack.size() <= 1, "HDF5 group was not ended. "
            "Last group name was '" << b_loc_stack.back().group_name << "'.");
    herr_t status = H5Fclose(b_file);
    INSIST(status >= 0, "HDF5 failed to close file.");
    b_mode = END_FILE_MODE;
    b_loc_stack.clear();
    b_file = 0;
}
void HDF5_IO :: close ( ) { if ( b_file == 0 ) return ; VALIDATE ( b_loc_stack . size ( ) <= 1 , " " " " << b_loc_stack . back ( ) . group_name << " " ) ; herr_t status = H5Fclose ( b_file ) ; INSIST ( status >= 0 , " " ) ; b_mode = END_FILE_MODE ; b_loc_stack . clear ( ) ; b_file = 0 ; }
PUBLIC FUNCTIONS
 \brief Close the HDF5 file.
PUBLIC FUNCTIONS \ brief Close the HDF5 file .
// Check file is at end of group // close file on node 0