#include "roccom.h"
#include <cstdio>
#include <iostream>
#include <fstream>
#include <algorithm>
#include <cstring>
#include <string>
#include <cstdlib>
#include <cmath>
#include <cassert>
#include <sstream>
#include "roccom_assertion.h"
#include "../Rocblas/include/Rocblas.h"
#include "../Rocsurf/include/Rocsurf.h"
#include "../Rocsurf/test/IM_Reader.h"
Go to the source code of this file.
Classes | |
struct | Control_parameter |
Functions | |
COM_EXTERN_MODULE (Rocblas) | |
COM_EXTERN_MODULE (Rocmap) | |
COM_EXTERN_MODULE (Rocprop) | |
COM_EXTERN_MODULE (Rocsurf) | |
COM_EXTERN_MODULE (Rocout) | |
void | load_modules () |
void | print_usage (int argc, char *argv[]) |
void | read_control_file (const char *fname, Control_parameter &cp) |
void | init_parameters (const Control_parameter &cntr_param) |
std::string | read_in_mesh (const char *fname) |
void | rescale_object (std::string &wname, double alpha, const SURF::Vector_3< double > &origin) |
void | init_constraints_acmflu (const string &wname) |
void | init_constraints_acmfrac (const string &wname) |
template<class T > | |
T | square (T t) |
void | init_constraints_starslice (const string &wname, const Control_parameter &cntr_param) |
void | init_constraints_staraft (const string &wname, const Control_parameter &cntr_param) |
void | init_constraints_myacm (const string &wname, const Control_parameter &cntr_param) |
void | init_constraints_labscale (const string &wname, const Control_parameter &cntr_param) |
void | init_constraints (const string &wname, const Control_parameter &cntr_param) |
void | init_attributes (const string &wname, const Control_parameter &cntr_param) |
void | output_solution (const string &wname, const char *timelevel, const string &format) |
double | compute_area (const string &wname) |
double | compute_volume (const string &wname) |
int | main (int argc, char *argv[]) |
Variables | |
static int | rank = 0 |
COM_EXTERN_MODULE | ( | Rocblas | ) |
COM_EXTERN_MODULE | ( | Rocmap | ) |
COM_EXTERN_MODULE | ( | Rocprop | ) |
COM_EXTERN_MODULE | ( | Rocsurf | ) |
COM_EXTERN_MODULE | ( | Rocout | ) |
double compute_area | ( | const string & | wname | ) |
Definition at line 841 of file proptest.C.
References COM_call_function(), COM_get_attribute_handle(), COM_get_function_handle(), and MPI_COMM_WORLD.
double compute_volume | ( | const string & | wname | ) |
Definition at line 862 of file proptest.C.
References COM_call_function(), COM_get_attribute_handle(), and COM_get_function_handle().
void init_attributes | ( | const string & | wname, |
const Control_parameter & | cntr_param | ||
) |
Definition at line 722 of file proptest.C.
References COM_call_function(), COM_DOUBLE, COM_free_buffer(), COM_get_array(), COM_get_attribute_handle(), COM_get_function_handle(), COM_get_panes(), COM_INT, COM_new_attribute(), COM_resize_array(), COM_set_size(), COM_window_init_done(), i, Control_parameter::speed, and Control_parameter::sploc.
void init_constraints | ( | const string & | wname, |
const Control_parameter & | cntr_param | ||
) |
Definition at line 700 of file proptest.C.
References COM_call_function(), COM_get_attribute_handle(), COM_get_function_handle(), init_constraints_acmflu(), init_constraints_labscale(), init_constraints_myacm(), init_constraints_staraft(), and init_constraints_starslice().
Referenced by main().
void init_constraints_acmflu | ( | const string & | wname | ) |
Definition at line 334 of file proptest.C.
References COM_call_function(), COM_free_buffer(), COM_get_array(), COM_get_attribute_handle(), COM_get_function_handle(), COM_get_panes(), COM_get_size(), i, j, and x.
Referenced by init_constraints(), and main().
void init_constraints_acmfrac | ( | const string & | wname | ) |
Definition at line 388 of file proptest.C.
References COM_call_function(), COM_get_array(), COM_get_attribute_handle(), and COM_get_function_handle().
Referenced by main().
void init_constraints_labscale | ( | const string & | wname, |
const Control_parameter & | cntr_param | ||
) |
Definition at line 652 of file proptest.C.
References NTS::abs(), COM_call_function(), COM_free_buffer(), COM_get_array(), COM_get_attribute_handle(), COM_get_function_handle(), COM_get_panes(), COM_get_size(), i, and j.
Referenced by init_constraints().
void init_constraints_myacm | ( | const string & | wname, |
const Control_parameter & | cntr_param | ||
) |
Definition at line 579 of file proptest.C.
References NTS::abs(), COM_call_function(), COM_free_buffer(), COM_get_array(), COM_get_attribute_handle(), COM_get_function_handle(), COM_get_panes(), COM_get_size(), i, j, Control_parameter::speed, square(), and Control_parameter::start.
Referenced by init_constraints().
void init_constraints_staraft | ( | const string & | wname, |
const Control_parameter & | cntr_param | ||
) |
Definition at line 462 of file proptest.C.
References NTS::abs(), COM_call_function(), COM_free_buffer(), COM_get_array(), COM_get_attribute_handle(), COM_get_function_handle(), COM_get_panes(), COM_get_size(), COM_resize_array(), COM_set_size(), i, j, Control_parameter::speed, and Control_parameter::start.
Referenced by init_constraints().
void init_constraints_starslice | ( | const string & | wname, |
const Control_parameter & | cntr_param | ||
) |
Definition at line 404 of file proptest.C.
References NTS::abs(), COM_call_function(), COM_free_buffer(), COM_get_array(), COM_get_attribute_handle(), COM_get_function_handle(), COM_get_panes(), COM_get_size(), i, j, Control_parameter::speed, and square().
Referenced by init_constraints(), main(), and remesh().
void init_parameters | ( | const Control_parameter & | cntr_param | ) |
Definition at line 228 of file proptest.C.
References COM_call_function(), COM_get_function_handle(), Control_parameter::courant, Control_parameter::eigthres, Control_parameter::fangle, Control_parameter::feature_layer, Control_parameter::method, Control_parameter::normaldif, rank, Control_parameter::rediter, Control_parameter::sangle, Control_parameter::smoother, Control_parameter::verbose, Control_parameter::wavefrontal, and Control_parameter::weight.
void load_modules | ( | ) |
Definition at line 56 of file proptest.C.
References COM_LOAD_MODULE_STATIC_DYNAMIC.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 878 of file proptest.C.
References Control_parameter::adapt_iter, cimg_library::cimg::atof(), Control_parameter::collapse_ratio, COM_call_function(), COM_finalize(), COM_get_attribute_handle(), COM_get_function_handle(), COM_init(), COM_print_profile(), COM_set_profiling(), COM_set_profiling_barrier(), COMMPI_Comm_rank(), COMMPI_Initialized(), compute_area(), compute_volume(), Control_parameter::do_collapse, Control_parameter::do_flip, Control_parameter::do_redist, Control_parameter::do_split, Control_parameter::edge_len, Control_parameter::eigthres, Control_parameter::fangle, Control_parameter::feature_layer, Control_parameter::format, i, init_attributes(), init_constraints(), init_parameters(), Control_parameter::interval, j, k, load_modules(), max(), MPI_COMM_WORLD, output_solution(), Control_parameter::perturb, print_usage(), rank, read_control_file(), read_in_mesh(), Control_parameter::refine, Control_parameter::remesh_interval, Control_parameter::sangle, Control_parameter::smoother, Control_parameter::speed, Control_parameter::split_angle, Control_parameter::start, Control_parameter::steps, Control_parameter::subadapt, Control_parameter::timestep, and v.
void output_solution | ( | const string & | wname, |
const char * | timelevel, | ||
const string & | format | ||
) |
Definition at line 808 of file proptest.C.
References COM_call_function(), COM_get_attribute_handle(), COM_get_function_handle(), and COMMPI_Initialized().
void print_usage | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 66 of file proptest.C.
void read_control_file | ( | const char * | fname, |
Control_parameter & | cp | ||
) |
Definition at line 117 of file proptest.C.
References Control_parameter::adapt_iter, Control_parameter::collapse_ratio, COM_assertion_msg, Control_parameter::courant, Control_parameter::do_collapse, Control_parameter::do_flip, Control_parameter::do_redist, Control_parameter::do_split, Control_parameter::edge_len, Control_parameter::eigthres, Control_parameter::fangle, Control_parameter::feature_layer, Control_parameter::format, Control_parameter::interval, Control_parameter::method, Control_parameter::normaldif, Control_parameter::perturb, rank, Control_parameter::rediter, Control_parameter::refine, Control_parameter::remesh_interval, Control_parameter::sangle, Control_parameter::smoother, Control_parameter::speed, Control_parameter::split_angle, Control_parameter::sploc, Control_parameter::start, Control_parameter::steps, Control_parameter::subadapt, Control_parameter::timestep, Control_parameter::verbose, Control_parameter::wavefrontal, and Control_parameter::weight.
std::string read_in_mesh | ( | const char * | fname | ) |
Definition at line 297 of file proptest.C.
References COM_assertion_msg, rank, and IM_Reader::read_winmesh().
void rescale_object | ( | std::string & | wname, |
double | alpha, | ||
const SURF::Vector_3< double > & | origin | ||
) |
Definition at line 314 of file proptest.C.
References Rocblas::add_scalar(), COM_get_roccom(), Rocblas::mul_scalar(), x, y, and z.
T square | ( | T | t | ) |
Definition at line 401 of file proptest.C.
|
static |
Definition at line 64 of file proptest.C.
Referenced by init_parameters(), main(), read_control_file(), and read_in_mesh().