MOAB: Mesh Oriented datABase
(version 5.5.0)
|
#include <cstdio>
#include <cmath>
#include "moab/Core.hpp"
#include "moab/Range.hpp"
#include "MBTagConventions.hpp"
#include "moab/CN.hpp"
#include <iostream>
#include <sstream>
Go to the source code of this file.
Macros | |
#define | filename "h5test.h5m" |
#define | tagname "foo/\\/\\" |
#define | bitname "bar\n" |
#define | intname "int tag" |
#define | dblname " dbl " |
#define | handlename "hanlde" |
Functions | |
void | create () |
bool | compare () |
void | moab_error (const char *function) |
int | main (int argc, char *argv[]) |
EntityHandle | vtx (double x, double y, double z) |
EntityHandle | pent (EntityHandle *vtx_list, int i1, int i2, int i3, int i4, int i5) |
EntityHandle | make_set (unsigned int options, EntityHandle *entities, size_t num_entities, bool reverse, int id) |
bool | compare_conn (std::vector< EntityHandle > &conn1, std::vector< EntityHandle > &conn2) |
bool | compare_sets (int id, const char *tag_name=0) |
bool | compare_tags (EntityHandle dod[]) |
Variables | |
const int | FACE_SET_ID = 1101 |
const int | VERTEX_SET_ID = 1102 |
const int | REGION_SET_ID = 1103 |
const int | EMPTY_SET_ID = 1100 |
const int | SET_SET_ID = 1105 |
Interface * | iface |
#define bitname "bar\n" |
Definition at line 34 of file h5file_test.cpp.
#define dblname " dbl " |
Definition at line 36 of file h5file_test.cpp.
#define filename "h5test.h5m" |
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 Corporation, 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 24 of file h5file_test.cpp.
#define handlename "hanlde" |
Definition at line 37 of file h5file_test.cpp.
#define intname "int tag" |
Definition at line 35 of file h5file_test.cpp.
#define tagname "foo/\\/\\" |
Definition at line 33 of file h5file_test.cpp.
bool compare | ( | ) |
Definition at line 714 of file h5file_test.cpp.
References moab::Range::begin(), bitname, moab::Range::clear(), compare_conn(), compare_sets(), compare_tags(), EMPTY_SET_ID, FACE_SET_ID, moab::Interface::get_connectivity(), moab::Interface::get_entities_by_type_and_tag(), GLOBAL_ID_TAG_NAME, iface, MB_SUCCESS, MB_TYPE_BIT, MBHEX, MBPOLYHEDRON, moab_error(), REGION_SET_ID, SET_SET_ID, size, moab::Range::size(), moab::Interface::tag_get_handle(), tagname, and VERTEX_SET_ID.
Referenced by moab::Bvh_tree< _Entity_handles, _Box, _Moab, _Parametrizer >::choose_best_split(), moab::find_map_values(), moab::find_tag_values(), main(), and moab::ReadRTT::split_string().
bool compare_conn | ( | std::vector< EntityHandle > & | conn1, |
std::vector< EntityHandle > & | conn2 | ||
) |
Definition at line 367 of file h5file_test.cpp.
References moab::Interface::get_coords(), iface, MB_SUCCESS, MB_TYPE_INTEGER, moab_error(), moab::Interface::tag_get_data(), moab::Interface::tag_get_handle(), and tagname.
Referenced by compare().
bool compare_sets | ( | int | id, |
const char * | tag_name = 0 |
||
) |
Definition at line 427 of file h5file_test.cpp.
References moab::Range::begin(), moab::CN::EntityTypeName(), ErrorCode, moab::Interface::get_child_meshsets(), moab::Interface::get_entities_by_handle(), moab::Interface::get_entities_by_type_and_tag(), moab::Interface::get_meshset_options(), moab::Interface::get_parent_meshsets(), moab::Interface::globalId_tag(), id_tag, iface, MB_ENTITY_NOT_FOUND, MB_SUCCESS, MB_TAG_ANY, MB_TAG_NOT_FOUND, MB_TYPE_INTEGER, MB_TYPE_OPAQUE, MBENTITYSET, MBMAXTYPE, MESHSET_SET, MESHSET_TRACK_OWNER, moab_error(), moab::Range::size(), moab::Interface::tag_get_data(), moab::Interface::tag_get_data_type(), moab::Interface::tag_get_handle(), and moab::Interface::type_from_handle().
Referenced by compare().
bool compare_tags | ( | EntityHandle | dod[] | ) |
Definition at line 620 of file h5file_test.cpp.
References dblname, moab::Interface::get_connectivity(), handlename, iface, intname, MB_ENTITY_NOT_FOUND, MB_SUCCESS, MB_TAG_DENSE, MB_TAG_SPARSE, MB_TAG_STORE, MB_TYPE_DOUBLE, MB_TYPE_HANDLE, MB_TYPE_INTEGER, MBHEX, MBPOLYHEDRON, moab_error(), moab::Interface::tag_get_data(), moab::Interface::tag_get_default_value(), moab::Interface::tag_get_handle(), and moab::Interface::type_from_handle().
Referenced by compare().
void create | ( | ) |
Definition at line 217 of file h5file_test.cpp.
References moab::Interface::add_child_meshset(), moab::Interface::add_parent_child(), moab::Interface::add_parent_meshset(), bitname, moab::Interface::create_element(), dblname, EMPTY_SET_ID, FACE_SET_ID, handlename, iface, intname, make_set(), MB_SUCCESS, MB_TAG_DENSE, MB_TAG_EXCL, MB_TAG_SPARSE, MB_TYPE_BIT, MB_TYPE_DOUBLE, MB_TYPE_HANDLE, MB_TYPE_INTEGER, MBHEX, MBPOLYHEDRON, MESHSET_SET, MESHSET_TRACK_OWNER, moab_error(), pent(), REGION_SET_ID, SET_SET_ID, moab::Interface::tag_get_handle(), moab::Interface::tag_set_data(), tagname, VERTEX_SET_ID, and vtx().
Referenced by moab::GeomTopoTool::check_edge_sense_tags(), moab::GeomTopoTool::check_face_sense_tag(), moab::GeomTopoTool::check_geom_tag(), moab::GeomTopoTool::check_gid_tag(), moab::AEntityFactory::get_adjacencies(), get_tag(), main(), and moab::WriteNC::write_file().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 53 of file h5file_test.cpp.
References compare(), create(), moab::Interface::delete_mesh(), ErrorCode, filename, moab::Interface::get_last_error(), iface, moab::Interface::load_file(), MB_SUCCESS, moab_error(), and moab::Interface::write_file().
EntityHandle make_set | ( | unsigned int | options, |
EntityHandle * | entities, | ||
size_t | num_entities, | ||
bool | reverse, | ||
int | id | ||
) |
Definition at line 196 of file h5file_test.cpp.
References moab::Interface::add_entities(), moab::Interface::create_meshset(), entities, moab::Interface::globalId_tag(), id_tag, iface, MB_SUCCESS, moab_error(), and moab::Interface::tag_set_data().
Referenced by create().
void moab_error | ( | const char * | function | ) |
Definition at line 800 of file h5file_test.cpp.
References moab::Interface::get_last_error(), iface, and MB_SUCCESS.
Referenced by compare(), compare_conn(), compare_sets(), compare_tags(), create(), main(), make_set(), pent(), and vtx().
EntityHandle pent | ( | EntityHandle * | vtx_list, |
int | i1, | ||
int | i2, | ||
int | i3, | ||
int | i4, | ||
int | i5 | ||
) |
Definition at line 182 of file h5file_test.cpp.
References moab::Interface::create_element(), iface, MB_SUCCESS, MBPOLYGON, and moab_error().
Referenced by calc_centroid(), and create().
EntityHandle vtx | ( | double | x, |
double | y, | ||
double | z | ||
) |
Definition at line 174 of file h5file_test.cpp.
References moab::Interface::create_vertex(), iface, MB_SUCCESS, and moab_error().
Referenced by check_one_layer(), compute_dual_mesh(), create(), moab::ReadCGM::create_surface_facets(), get_num_adj_quads(), moab::BSPTreePoly::is_valid(), mb_skin_adjacent_surf_patches(), moab::BSPTreePoly::Edge::other(), PartMap::part_from_coords(), moab::ReadVtk::read_vertices(), moab::BSPTreePoly::VertexUse::set_vertex(), test_entity_copy_parts(), test_ghost_elements(), moab::BSPTreePoly::Edge::use(), and moab::BSPTreePoly::VertexUse::VertexUse().
const int EMPTY_SET_ID = 1100 |
Definition at line 42 of file h5file_test.cpp.
const int FACE_SET_ID = 1101 |
Definition at line 39 of file h5file_test.cpp.
Interface* iface |
Definition at line 45 of file h5file_test.cpp.
Referenced by compare(), compare_conn(), compare_sets(), compare_tags(), create(), main(), make_set(), moab_error(), pent(), and vtx().
const int REGION_SET_ID = 1103 |
Definition at line 41 of file h5file_test.cpp.
const int SET_SET_ID = 1105 |
Definition at line 43 of file h5file_test.cpp.
const int VERTEX_SET_ID = 1102 |
Definition at line 40 of file h5file_test.cpp.