#include <iostream>
#include <vector>
#include <string>
#include <iomanip>
#include <fstream>
#include <ctime>
#include <cmath>
#include <cassert>
#include <cfloat>
#include "moab/Core.hpp"
#include "moab/Interface.hpp"
#include "moab/verdict/VerdictWrapper.hpp"
#include "moab/NestedRefine.hpp"
Go to the source code of this file.
Macros | |
#define | SUCCESS 0 |
#define | USAGE_ERROR 1 |
#define | NOT_IMPLEMENTED 2 |
Functions | |
static void | print_usage (const char *name, std::ostream &stream) |
static void | usage_error (const char *name) |
bool | parse_id_list (const char *string, int dim, int nval, std::vector< int > &results) |
bool | make_opts_string (std::vector< std::string > options, std::string &opts) |
ErrorCode | get_degree_seq (Core &mb, EntityHandle fileset, int dim, double desired_vol, int &num_levels, std::vector< int > &level_degs) |
ErrorCode | get_max_volume (Core &mb, EntityHandle fileset, int dim, double &vmax) |
int | main (int argc, char *argv[]) |
ErrorCode get_degree_seq | ( | Core & | mb, |
EntityHandle | fileset, | ||
int | dim, | ||
double | desired_vol, | ||
int & | num_levels, | ||
std::vector< int > & | level_degs | ||
) |
Definition at line 411 of file umr.cpp.
References dim, moab::error(), ErrorCode, get_max_volume(), mb, MB_CHK_ERR, and MB_SUCCESS.
Referenced by main().
ErrorCode get_max_volume | ( | Core & | mb, |
EntityHandle | fileset, | ||
int | dim, | ||
double & | vmax | ||
) |
Definition at line 506 of file umr.cpp.
References moab::Range::begin(), moab::Range::clear(), dim, moab::Range::end(), moab::error(), ErrorCode, moab::ParallelComm::filter_pstatus(), moab::Core::get_entities_by_handle(), moab::ParallelComm::get_pcomm(), mb, moab::MB_AREA, MB_CHK_ERR, moab::MB_LENGTH, MB_SUCCESS, moab::MB_VOLUME, PSTATUS_NOT, PSTATUS_NOT_OWNED, moab::VerdictWrapper::quality_measure(), size, and moab::Range::subset_by_dimension().
Referenced by get_degree_seq(), and main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 89 of file umr.cpp.
References moab::Range::clear(), moab::Core::create_meshset(), dim, moab::error(), ErrorCode, moab::NestedRefine::generate_mesh_hierarchy(), get_degree_seq(), moab::Core::get_entities_by_handle(), get_max_volume(), moab::Core::load_file(), make_opts_string(), mb, MB_CHK_ERR, MESHSET_SET, output, parse_id_list(), print_usage(), size, moab::Range::size(), moab::Range::subset_by_dimension(), SUCCESS, moab::NestedRefine::timeall, moab::NestedRefine::codeperf::tm_refine, moab::NestedRefine::codeperf::tm_resolve, moab::NestedRefine::codeperf::tm_total, USAGE_ERROR, usage_error(), and moab::Core::write_file().
bool make_opts_string | ( | std::vector< std::string > | options, |
std::string & | opts | ||
) |
bool parse_id_list | ( | const char * | string, |
int | dim, | ||
int | nval, | ||
std::vector< int > & | results | ||
) |
|
static |
Definition at line 35 of file umr.cpp.
References USAGE_ERROR.
Referenced by main(), and usage_error().
|
static |
Definition at line 67 of file umr.cpp.
References print_usage(), and USAGE_ERROR.
Referenced by main().