moab
|
#include <stdio.h>
#include <stdarg.h>
#include <time.h>
#include <stdlib.h>
#include <string.h>
#include <vector>
#include <set>
#include <map>
#include <utility>
#include <iostream>
#include <sstream>
#include "WriteHDF5Parallel.hpp"
#include <H5Tpublic.h>
#include <H5Ppublic.h>
#include <H5FDmpi.h>
#include <H5FDmpio.h>
#include "mhdf.h"
#include "moab/Interface.hpp"
#include "Internals.hpp"
#include "MBTagConventions.hpp"
#include "MBParallelConventions.h"
#include "moab/ParallelComm.hpp"
#include "moab/CN.hpp"
#include "moab/Range.hpp"
#include "IODebugTrack.hpp"
#include "moab/FileOptions.hpp"
Go to the source code of this file.
Classes | |
class | moab::CpuTimer |
class | moab::TagNameCompare |
struct | moab::serial_tag_data |
struct | moab::DatasetVals |
struct | moab::elemtype |
Namespaces | |
namespace | moab |
Class representing axis-aligned bounding box. | |
Defines | |
#define | PP_CAT_(a, b) a ## b |
#define | PP_CAT(a, b) PP_CAT_(a,b) |
#define | STATIC_ASSERT(Condition) enum { PP_CAT(dummy, __LINE__) = sizeof(::STATIC_ASSERTION<(bool)(Condition)>) } |
#define | MPI_FAILURE_MSG(A) |
#define | CHECK_MPI(A) |
#define | MB_FAILURE_MSG(A) |
#define | CHECK_MB(A) |
#define | HDF_FAILURE_MSG(A) |
#define | CHECK_HDF(A) |
#define | CHECK_HDFN(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 | START_SERIAL |
#define | END_SERIAL |
#define | assert(A) if (!(A)) do_assert(__FILE__, __LINE__, #A) |
#define | debug_barrier() debug_barrier_line(__LINE__) |
Functions | |
moab::STATIC_ASSERT (sizeof(unsigned long) >=sizeof(EntityHandle)) | |
moab::STATIC_ASSERT (sizeof(unsigned long) >=sizeof(id_t)) | |
static ErrorCode | moab::error (ErrorCode rval) |
const char * | moab::mpi_err_str (int errorcode) |
template<typename T > | |
void | moab::VALGRIND_MAKE_VEC_UNDEFINED (std::vector< T > &v) |
static void | moab::do_assert (const char *file, int line, const char *condstr) |
static int | moab::my_Gatherv (void *sendbuf, int sendcount, MPI_Datatype sendtype, std::vector< unsigned char > &recvbuf, std::vector< int > &recvcounts, int root, MPI_Comm comm) |
static void | moab::print_type_sets (Interface *iFace, DebugOutput *str, Range &sets) |
static void | moab::set_bit (int position, unsigned char *bytes) |
static bool | moab::get_bit (int position, const unsigned char *bytes) |
moab::STATIC_ASSERT (sizeof(DatasetVals)==3 *sizeof(long)) | |
template<typename TYPE > | |
static void | moab::convert_to_ranged_ids (const TYPE *buffer, size_t len, std::vector< WriteHDF5::id_t > &result) |
static void | moab::merge_ranged_ids (const unsigned long *range_list, size_t len, std::vector< WriteHDF5::id_t > &result) |
static void | moab::merge_vector_ids (const unsigned long *list, size_t len, std::vector< WriteHDF5::id_t > &result) |
Variables | |
const unsigned | moab::SSVB = 3 |
#define assert | ( | A | ) | if (!(A)) do_assert(__FILE__, __LINE__, #A) |
Definition at line 144 of file WriteHDF5Parallel.cpp.
#define CHECK_HDF | ( | A | ) |
do { if (mhdf_isError(&(A))) { \ writeUtil->report_error( HDF_FAILURE_MSG(A) ); \ dbgOut.printf(1, HDF_FAILURE_MSG((A)) ); \ return error(MB_FAILURE); } } while(false)
Definition at line 95 of file WriteHDF5Parallel.cpp.
#define CHECK_HDFN | ( | A | ) |
do { if (mhdf_isError(&(A))) { \ file->write_util()->report_error( HDF_FAILURE_MSG(A) ); \ return error(MB_FAILURE); } } while(false)
Definition at line 100 of file WriteHDF5Parallel.cpp.
#define CHECK_MB | ( | A | ) |
do { if (MB_SUCCESS != (A)) { \ writeUtil->report_error( MB_FAILURE_MSG(A) ); \ dbgOut.printf(1, MB_FAILURE_MSG((A)) ); \ return error(A); } } while(false)
Definition at line 87 of file WriteHDF5Parallel.cpp.
#define CHECK_MPI | ( | A | ) |
do { if (MPI_SUCCESS != (A)) { \ writeUtil->report_error( MPI_FAILURE_MSG((A)) ); \ dbgOut.printf(1, MPI_FAILURE_MSG((A)) ); \ return error(MB_FAILURE); } } while(false)
Definition at line 79 of file WriteHDF5Parallel.cpp.
#define debug_barrier | ( | ) | debug_barrier_line(__LINE__) |
Definition at line 241 of file WriteHDF5Parallel.cpp.
#define END_SERIAL |
Definition at line 136 of file WriteHDF5Parallel.cpp.
#define HDF_FAILURE_MSG | ( | A | ) |
"MHDF Failure at " __FILE__ ":%d : %s\n", \ __LINE__, mhdf_message(&(A))
Definition at line 92 of file WriteHDF5Parallel.cpp.
#define MB_FAILURE_MSG | ( | A | ) |
"MOAB_Failure at " __FILE__ ":%d : %s (%d)\n", \ __LINE__, ErrorCodeStr[(A)], (int)(A)
Definition at line 84 of file WriteHDF5Parallel.cpp.
#define MPI_FAILURE_MSG | ( | A | ) |
"MPI Failure at " __FILE__ ":%d : (Code %d) %s\n", \ __LINE__, (int)(A), mpi_err_str((A))
Definition at line 76 of file WriteHDF5Parallel.cpp.
Definition at line 51 of file WriteHDF5Parallel.cpp.
#define PP_CAT_ | ( | a, | |
b | |||
) | a ## b |
Definition at line 50 of file WriteHDF5Parallel.cpp.
#define START_SERIAL |
Definition at line 135 of file WriteHDF5Parallel.cpp.
#define STATIC_ASSERT | ( | Condition | ) | enum { PP_CAT(dummy, __LINE__) = sizeof(::STATIC_ASSERTION<(bool)(Condition)>) } |
Definition at line 52 of file WriteHDF5Parallel.cpp.
#define VALGRIND_CHECK_MEM_IS_ADDRESSABLE | ( | a, | |
b | |||
) |
Definition at line 112 of file WriteHDF5Parallel.cpp.
#define VALGRIND_CHECK_MEM_IS_DEFINED | ( | a, | |
b | |||
) |
Definition at line 109 of file WriteHDF5Parallel.cpp.
#define VALGRIND_MAKE_MEM_UNDEFINED | ( | a, | |
b | |||
) |
Definition at line 115 of file WriteHDF5Parallel.cpp.