moab
|
#include <assert.h>
#include <time.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <limits>
#include <cstdio>
#include <iostream>
#include "WriteHDF5.hpp"
#include <H5Tpublic.h>
#include <H5Ppublic.h>
#include <H5Epublic.h>
#include "moab/Interface.hpp"
#include "Internals.hpp"
#include "MBTagConventions.hpp"
#include "moab/CN.hpp"
#include "moab/FileOptions.hpp"
#include "moab/Version.h"
#include "moab/CpuTimer.hpp"
#include "IODebugTrack.hpp"
#include "mhdf.h"
Go to the source code of this file.
Classes | |
class | moab::CheckOpenWriteHDF5Handles |
Namespaces | |
namespace | moab |
Class representing axis-aligned bounding box. | |
Defines | |
#define | myassert(A) |
#define | VALGRIND_CHECK_MEM_IS_DEFINED(a, b) |
#define | VALGRIND_CHECK_MEM_IS_ADDRESSABLE(a, b) |
#define | VALGRIND_MAKE_MEM_UNDEFINED(a, b) |
#define | WRITE_HDF5_BUFFER_SIZE (40*1024*1024) |
#define | CHK_MHDF_ERR_0(A) |
#define | CHK_MHDF_ERR_1(A, B) |
#define | CHK_MHDF_ERR_2(A, B) |
#define | CHK_MHDF_ERR_3(A, B) |
#define | CHK_MHDF_ERR_2C(A, B, C, D) |
#define | CHK_MB_ERR_0(A) do if (MB_SUCCESS != (A)) return error(A); while(false) |
#define | CHK_MB_ERR_1(A, B, C) |
#define | CHK_MB_ERR_2(A, B, C) |
#define | CHK_MB_ERR_3(A, B, C) |
#define | CHK_MB_ERR_2C(A, B, C, D, E) |
#define | debug_barrier() debug_barrier_line(__LINE__) |
#define | CHECK_OPEN_HANDLES CheckOpenWriteHDF5Handles check_open_handles_(filePtr,__LINE__) |
Functions | |
template<typename T > | |
void | moab::VALGRIND_MAKE_VEC_UNDEFINED (std::vector< T > &v) |
static hid_t | moab::get_id_type () |
static ErrorCode | moab::error (ErrorCode rval) |
static herr_t | moab::handle_hdf5_error (void *data) |
template<class HandleRangeIter > | |
size_t | moab::count_num_handles (HandleRangeIter iter, HandleRangeIter end) |
template<class HandleRangeIter > | |
ErrorCode | moab::range_to_id_list_templ (HandleRangeIter begin, HandleRangeIter end, const RangeMap< EntityHandle, WriteHDF5::id_t > &idMap, WriteHDF5::id_t *array) |
template<class HandleRangeIter > | |
ErrorCode | moab::range_to_blocked_list_templ (HandleRangeIter begin, HandleRangeIter end, const RangeMap< EntityHandle, WriteHDF5::id_t > &idMap, std::vector< WriteHDF5::id_t > &output_id_list, bool &ranged_list) |
#define CHECK_OPEN_HANDLES CheckOpenWriteHDF5Handles check_open_handles_(filePtr,__LINE__) |
Definition at line 289 of file WriteHDF5.cpp.
#define CHK_MB_ERR_0 | ( | A | ) | do if (MB_SUCCESS != (A)) return error(A); while(false) |
Definition at line 215 of file WriteHDF5.cpp.
#define CHK_MB_ERR_1 | ( | A, | |
B, | |||
C | |||
) |
do if (MB_SUCCESS != (A)) { \ mhdf_closeData( filePtr, (B), &(C) ); \ myassert(0); \ return error(A); \ } while(false)
Definition at line 218 of file WriteHDF5.cpp.
#define CHK_MB_ERR_2 | ( | A, | |
B, | |||
C | |||
) |
do if (MB_SUCCESS != (A)) { \ mhdf_closeData( filePtr, (B)[0], &(C) ); \ mhdf_closeData( filePtr, (B)[1], &(C) ); \ write_finished(); \ myassert(0); \ return error(A); \ } while(false)
Definition at line 225 of file WriteHDF5.cpp.
#define CHK_MB_ERR_2C | ( | A, | |
B, | |||
C, | |||
D, | |||
E | |||
) |
do if (MB_SUCCESS != (A)) { \ mhdf_closeData( filePtr, (B), &(E) ); \ if (C) mhdf_closeData( filePtr, (D), &(E) ); \ write_finished(); \ myassert(0); \ return error(A); \ } while(false)
Definition at line 244 of file WriteHDF5.cpp.
#define CHK_MB_ERR_3 | ( | A, | |
B, | |||
C | |||
) |
do if (MB_SUCCESS != (A)) { \ mhdf_closeData( filePtr, (B)[0], &(C) ); \ mhdf_closeData( filePtr, (B)[1], &(C) ); \ mhdf_closeData( filePtr, (B)[2], &(C) ); \ write_finished(); \ myassert(0); \ return error(A); \ } while(false)
Definition at line 234 of file WriteHDF5.cpp.
#define CHK_MHDF_ERR_0 | ( | A | ) |
do if ( mhdf_isError( &(A) )) { \ writeUtil->report_error( "%s\n", mhdf_message( &(A) ) );\ myassert(0); \ return error(MB_FAILURE); \ } while(false)
Definition at line 171 of file WriteHDF5.cpp.
#define CHK_MHDF_ERR_1 | ( | A, | |
B | |||
) |
do if ( mhdf_isError( &(A) )) { \ writeUtil->report_error( "%s\n", mhdf_message( &(A) ) );\ myassert(0); \ mhdf_closeData( filePtr, (B), &(A) ); \ return error(MB_FAILURE); \ } while(false)
Definition at line 178 of file WriteHDF5.cpp.
#define CHK_MHDF_ERR_2 | ( | A, | |
B | |||
) |
do if ( mhdf_isError( &(A) )) { \ writeUtil->report_error( "%s\n", mhdf_message( &(A) ) );\ myassert(0); \ mhdf_closeData( filePtr, (B)[0], &(A) ); \ mhdf_closeData( filePtr, (B)[1], &(A) ); \ return error(MB_FAILURE); \ } while(false)
Definition at line 186 of file WriteHDF5.cpp.
#define CHK_MHDF_ERR_2C | ( | A, | |
B, | |||
C, | |||
D | |||
) |
do if ( mhdf_isError( &(A) )) { \ writeUtil->report_error( "%s\n", mhdf_message( &(A) ) );\ myassert(0); \ mhdf_closeData( filePtr, (B), &(A) ); \ if (C) mhdf_closeData( filePtr, (D), &(A) ); \ return error(MB_FAILURE); \ } while(false)
Definition at line 205 of file WriteHDF5.cpp.
#define CHK_MHDF_ERR_3 | ( | A, | |
B | |||
) |
do if ( mhdf_isError( &(A) )) { \ writeUtil->report_error( "%s\n", mhdf_message( &(A) ) );\ myassert(0); \ mhdf_closeData( filePtr, (B)[0], &(A) ); \ mhdf_closeData( filePtr, (B)[1], &(A) ); \ mhdf_closeData( filePtr, (B)[2], &(A) ); \ return error(MB_FAILURE); \ } while(false)
Definition at line 195 of file WriteHDF5.cpp.
#define debug_barrier | ( | ) | debug_barrier_line(__LINE__) |
Definition at line 254 of file WriteHDF5.cpp.
#define myassert | ( | A | ) |
MOAB, a Mesh-Oriented datABase, is a software component for creating, storing and accessing finite element mesh data.
Copyright 2004 Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with Sandia Coroporation, the U.S. Government retains certain rights in this software.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
Definition at line 78 of file WriteHDF5.cpp.
#define VALGRIND_CHECK_MEM_IS_ADDRESSABLE | ( | a, | |
b | |||
) |
Definition at line 89 of file WriteHDF5.cpp.
#define VALGRIND_CHECK_MEM_IS_DEFINED | ( | a, | |
b | |||
) |
Definition at line 86 of file WriteHDF5.cpp.
#define VALGRIND_MAKE_MEM_UNDEFINED | ( | a, | |
b | |||
) |
Definition at line 92 of file WriteHDF5.cpp.
#define WRITE_HDF5_BUFFER_SIZE (40*1024*1024) |
Definition at line 103 of file WriteHDF5.cpp.