#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"
#include "PointPropagate.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) |
template<class T > | |
T | square (T t) |
void | init_attributes (const string &wname, const Control_parameter &cntr_param) |
double | output_solution (const string &wname, const char *timelevel, double ref=0.) |
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 395 of file advectest.C.
References COM_call_function(), COM_get_attribute_handle(), COM_get_function_handle(), and MPI_COMM_WORLD.
Referenced by main().
double compute_volume | ( | const string & | wname | ) |
Definition at line 414 of file advectest.C.
References COM_call_function(), COM_get_attribute_handle(), and COM_get_function_handle().
Referenced by main().
void init_attributes | ( | const string & | wname, |
const Control_parameter & | cntr_param | ||
) |
Definition at line 323 of file advectest.C.
References COM_CHAR, COM_DOUBLE, COM_INT, COM_new_attribute(), COM_resize_array(), COM_set_size(), and COM_window_init_done().
Referenced by main(), and remesh().
void init_parameters | ( | const Control_parameter & | cntr_param | ) |
Definition at line 217 of file advectest.C.
References COM_call_function(), COM_get_function_handle(), Control_parameter::conserv, Control_parameter::courant, Control_parameter::eigthres, Control_parameter::fangle, 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.
Referenced by main().
void load_modules | ( | ) |
Definition at line 58 of file advectest.C.
References COM_LOAD_MODULE_STATIC_DYNAMIC.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 429 of file advectest.C.
References Control_parameter::adapt_iter, cimg_library::cimg::atof(), Control_parameter::collapse_ratio, COM_assertion_msg, 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::eigthres, Control_parameter::fangle, i, init_attributes(), init_parameters(), Control_parameter::interval, j, k, load_modules(), MPI_COMM_WORLD, output_solution(), print_usage(), PointPropagate::propagate_faces(), PointPropagate::propagate_nodes(), rank, read_control_file(), read_in_mesh(), Control_parameter::refine, Control_parameter::remesh_interval, rescale_object(), Control_parameter::sangle, Control_parameter::speed, Control_parameter::split_angle, Control_parameter::start, Control_parameter::steps, Control_parameter::test, Control_parameter::timestep, and v.
double output_solution | ( | const string & | wname, |
const char * | timelevel, | ||
double | ref = 0. |
||
) |
Definition at line 357 of file advectest.C.
References NTS::abs(), COM_call_function(), COM_get_attribute_handle(), COM_get_function_handle(), COM_get_roccom(), and COMMPI_Initialized().
Referenced by main().
void print_usage | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 68 of file advectest.C.
Referenced by main().
void read_control_file | ( | const char * | fname, |
Control_parameter & | cp | ||
) |
Definition at line 115 of file advectest.C.
References Control_parameter::adapt_iter, Control_parameter::collapse_ratio, COM_assertion_msg, Control_parameter::conserv, Control_parameter::courant, Control_parameter::do_collapse, Control_parameter::do_flip, Control_parameter::do_redist, Control_parameter::do_split, Control_parameter::eigthres, Control_parameter::fangle, Control_parameter::interval, Control_parameter::method, Control_parameter::normaldif, 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::start, Control_parameter::steps, Control_parameter::test, Control_parameter::timestep, Control_parameter::verbose, Control_parameter::wavefrontal, and Control_parameter::weight.
Referenced by main().
std::string read_in_mesh | ( | const char * | fname | ) |
Definition at line 283 of file advectest.C.
References COM_assertion_msg, rank, and IM_Reader::read_winmesh().
Referenced by main().
void rescale_object | ( | std::string & | wname, |
double | alpha, | ||
const SURF::Vector_3< double > & | origin | ||
) |
Definition at line 300 of file advectest.C.
References Rocblas::add_scalar(), COM_get_roccom(), Rocblas::mul_scalar(), x, y, and z.
Referenced by main().
T square | ( | T | t | ) |
Definition at line 320 of file advectest.C.
|
static |
Definition at line 66 of file advectest.C.
Referenced by _load_rocface(), Pane_communicator::begin_update(), setup_py::burn_init_0d(), cg_array_core_write_internal(), Rocmop::check_all_elem_quality(), Rocmop::check_input_pconn(), COM_F_FUNC2(), COM_get_panes(), COMMPI_Comm_rank(), HDF4::DFSDadddata(), HDF4::DFSDputdata(), HDF4::DFSDsetdims(), FindFirstGeometryDataset(), get_comm_rank(), Rocout::get_fname(), Roccom_base::get_panes(), setup_py::grid(), init_parameters(), io_hdf_data(), io_pane_attribute(), RFC_Window_transfer::is_root(), main(), max_element__(), min_element__(), Rocmop::obtain_extremal_dihedrals(), Rocstar::ParallelTest(), GridConversion::ParallelTest(), Rocmop::print_extremal_dihedrals(), Rocmop::print_legible(), Rocmop::print_mquality(), Rocmop::print_quality(), Mesh::Partition::Read(), Rocin::read_by_control_file(), Rocmop::read_config_file(), read_control_file(), read_file(), read_hdf(), read_in_mesh(), setup_py::read_properties(), Rocin::read_windows(), Partition::ReadPartition(), setup_py::readtable(), RFC_Window_transfer::replicate_metadata(), Roccom_base::Roccom_base(), FluidPropagateSurface::run(), SolidPropagateSurface_ALE::run(), scan_files_HDF4(), HDF4::SDcreate(), HDF4::SDgetinfo(), Roccom_base::set_function(), Rocmop::smooth_vol_mesq_ng(), TRAIL_AutoSurfer(), TRAIL_Debug(), TRAIL_FD2FE_Transfer(), TRAIL_FD2FE_WinCreate(), TRAIL_FD2FE_WinCreate2(), TRAIL_FE2FD_Transfer(), TRAIL_RemeshAutoSurfer(), TRAIL_RemeshRunDirSetup(), TRAIL_RemeshWrite(), TRAIL_TransferSurfDataFILE(), TRAIL_WriteWindow(), write_attr_CGNS(), Rocout::write_attr_internal(), write_data(), and Rocout::write_rocin_control_file().