28 #include "../Rocsurf/test/IM_Reader.h"
37 int main(
int argc,
char *argv[]) {
41 std::cout <<
"Usage:\n\tTo run in serial: " << argv[0]
42 <<
" <surffile> <hdffile> " << endl;
43 std::cout <<
"\n\tTo run in parallel: <mpirun-command> " << argv[0]
44 <<
" -com-mpi <Rocin control file> <hdfoutput-prefix> " << endl;
48 std::cout <<
"Reading surface mesh file \"" << argv[1] <<
'"' << endl;
50 std::string fname(argv[1]), wname;
51 string::size_type n0 = fname.find_last_of(
"/");
53 if ( n0 != std::string::npos)
54 fname = fname.substr( n0+1, fname.size());
57 ni = fname.find_first_of(
".:-*[]?\\\"\'0123456789");
60 if ( ni == std::string::npos) {
64 while (fname[ni-1]==
'_') --
ni;
65 wname = fname.substr( 0, ni);
68 std::cout <<
"Creating window \"" << wname <<
'"' << endl;
75 const string rb = wname+
".rb";
80 const string disps = wname+
".disps";
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)
This file contains the prototypes for Roccom API.
int COM_get_attribute_handle(const char *waname)
void COM_window_init_done(const char *w_str, int pane_changed=true)
void COM_call_function(const int wf, int argc,...)
int main(int argc, char *argv[])
void COM_init(int *argc, char ***argv)
void int int REAL REAL REAL *z blockDim dim * ni
void COM_new_attribute(const char *wa_str, const char loc, const int type, int ncomp, const char *unit)
Registering an attribute type.
int read_winmesh(const char *fname, const std::string &wname, bool del=true)
#define COM_LOAD_MODULE_STATIC_DYNAMIC(moduleName, windowString)
void COM_resize_array(const char *wa_str, int pane_id=0, void **addr=NULL, int strd=-1, int cap=0)
Resize an attribute on a specific pane and return the address by setting addr.
int COM_get_function_handle(const char *wfname)
#define COM_EXTERN_MODULE(moduleName)