37 for (
int i=0;
i<10;
i++){
38 for (
int j=0;
j<6;
j++){
39 for (
int k=0;
k<5;
k++){
40 coors_s[
k][
j][
i][0] =
i*.02;
41 coors_s[
k][
j][
i][1] =
j*.02;
42 coors_s[
k][
j][
i][2] =
k*.02;
49 bool is_local(
int pid,
int comm_rank,
int comm_size) {
50 return ( pid % comm_size == comm_rank);
53 int main(
int argc,
char *argv[]) {
54 const int ni=10,
nj=6,
nk=5;
84 std::cout <<
"Get border nodes... " << endl;
void COM_set_size(const char *wa_str, int pane_id, int size, int ng=0)
Set sizes of for a specific attribute.
void init_structure_mesh(double coors_s[5][6][10][3])
This file contains the prototypes for Roccom API.
int COM_get_attribute_handle(const char *waname)
bool is_local(int pid, int comm_rank, int comm_size)
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_set_array_const(const char *wa_str, int pane_id, const void *addr, int strd=0, int cap=0)
void COM_call_function(const int wf, int argc,...)
void COM_set_array(const char *wa_str, int pane_id, void *addr, int strd=0, int cap=0)
Associates an array with an attribute for a specific pane.
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.
double coors_s[total_npanes][num_nodes][3]
#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)