35 int main(
int argc,
char *argv[]) {
39 cout <<
"Usage: " << argv[0] <<
" <smf_file> [hdf_name] " << endl;
43 char *firstdot=strchr( argv[1],
'.');
44 const string wname(argv[1], firstdot? firstdot-argv[1]: strlen( argv[1]));
46 std::cout <<
"Reading surface mesh file \"" << argv[1] <<
'"' << endl;
59 std::string fname( argc>=3 ? argv[2] : (wname+
".hdf").c_str());
61 int separate_files = fname.find(
".hdf") == string::npos;
63 if ( !separate_files) {
64 std::cout <<
"Writing HDF file(s) " << fname << endl;
72 for (
int i=0;
i<npanes; ++
i) {
73 std::ostringstream ostr;
76 ostr.fill(
'0'); ostr.width(5);
77 ostr << paneIDs[
i] <<
".hdf";
79 std::cout <<
"Writing HDF file(s) " << ostr.str() << endl;
83 "000", NULL, NULL, &paneIDs[
i]);
This file contains the prototypes for Roccom API.
int read_mesh(const char *fname, const std::string &wname)
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,...)
int COM_get_attribute_handle_const(const char *waname)
int main(int argc, char *argv[])
void COM_init(int *argc, char ***argv)
void COM_get_panes(const char *wname, std::vector< int > &pane_ids, int rank=-2)
void COM_free_buffer(int **buf)
#define COM_LOAD_MODULE_STATIC_DYNAMIC(moduleName, windowString)
int COM_get_function_handle(const char *wfname)
#define COM_EXTERN_MODULE(moduleName)