31 int main(
int argc,
char *argv[]) {
35 std::cout <<
"Usage: " << argv[0]
36 <<
" <out_hdf_file> " << endl;
40 std::cout <<
"Reading mesh file \"" << argv[1] <<
'"' << endl;
42 std::string wname(
"surf");
61 std::cout <<
"Creating window \"" << wname <<
'"' << endl;
65 std::cout <<
"Reading window " << endl;
69 "test/surf000[01].hdf",
74 std::cout <<
"Obtaining the mesh " << endl;
78 std::cout <<
"Resizing the attribute arrays " << endl;
90 std::cout<<
"Labeling nodes with pane ids" << endl;
96 for(
int j = 0;
j <npanes; ++
j){
98 std::cout <<
" pane[" << j <<
"] has " << nitems <<
" items " << endl;
100 for(
int k =0;
k<nitems; ++
k){
101 ptr[
k] = pane_ids[
j];
108 std::cout <<
"Performing an average-reduction on shared nodes." << endl;
112 std::cout <<
"Updating ghost nodes." << endl;
116 std::cout <<
"Finalizing the window" << endl;
119 std::cout <<
"loading Rocout" << endl;
122 std::cout <<
"Output window into file..." << endl;
131 (
char*)wname.c_str(),
"0000");
#define COM_assertion(EX)
Error checking utility similar to the assert macro of the C language.
This file contains the prototypes for Roccom API.
void COM_get_array(const char *wa_str, int pane_id, void **addr, int *strd, int *cap)
Get the address for an attribute on a specific pane.
int COM_get_attribute_handle(const char *waname)
void COM_load_module(const char *libname, const char *winname)
void COM_window_init_done(const char *w_str, int pane_changed=true)
void COM_get_size(const char *wa_str, int pane_id, int *size, int *ng=0)
Get the sizes of an attribute.
void COM_call_function(const int wf, int argc,...)
int main(int argc, char *argv[])
void COM_init(int *argc, char ***argv)
void COM_new_attribute(const char *wa_str, const char loc, const int type, int ncomp, const char *unit)
Registering an attribute type.
void COM_get_panes(const char *wname, std::vector< int > &pane_ids, int rank=-2)
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)