40 std::cout <<
"Usage:\n\tTo run in serial: " << argv[0]
41 <<
" <surffile> <hdffile> " << endl;
42 std::cout <<
"\n\tTo run in parallel: <mpirun-command> " << argv[0]
43 <<
" -com-mpi <Rocin control file> <hdfoutput-prefix> " << endl;
47 std::cout <<
"Reading surface mesh file \"" << argv[1] <<
'"' << endl;
49 std::string fname(argv[1]), wname;
50 string::size_type n0 = fname.find_last_of(
"/");
52 if ( n0 != std::string::npos)
53 fname = fname.substr( n0+1, fname.size());
56 ni = fname.find_first_of(
".:-*[]?\\\"\'0123456789");
59 if ( ni == std::string::npos) {
63 while (fname[ni-1]==
'_') --
ni;
64 wname = fname.substr( 0, ni);
67 std::cout <<
"Creating window \"" << wname <<
'"' << endl;
73 std::cout <<
"finishing up window initialization" << endl;
76 std::cout <<
"loading Rocout" << endl;
79 std::cout <<
"Performing remeshing" << endl;
90 PROP::Remesher_Simmetrix rem;
98 std::cout <<
"Enter average edge length (0 for current average)"
101 std::cout <<
"Enter feature angle (in degrees. 0 to disable features)"
107 std::cout <<
"Output window into file..." << endl;
116 (
char*)wname.c_str(),
"000");
#define COM_assertion(EX)
Error checking utility similar to the assert macro of the C language.
#define COM_assertion_msg(EX, msg)
int COM_get_attribute_handle(const char *waname)
void COM_window_init_done(const char *w_str, int pane_changed=true)
void COM_new_window(const char *wname, MPI_Comm c=MPI_COMM_NULL)
void COM_call_function(const int wf, int argc,...)
void COM_init(int *argc, char ***argv)
void int int REAL REAL REAL *z blockDim dim * ni
int read_winmesh(const char *fname, const std::string &wname, bool del=true)
#define COM_LOAD_MODULE_STATIC_DYNAMIC(moduleName, windowString)
int COM_get_function_handle(const char *wfname)