35 #ifndef __ROCCOM_C_H__
36 #define __ROCCOM_C_H__
47 #define LOAD_MODULE_WRAPPER( mixed, lower, UPPER) \
49 void mixed ## _load_module( const char * mod) { \
50 extern void COM_F_FUNC2( lower ## _load_module, UPPER ## _LOAD_MODULE) \
51 ( const char *mod, long int len); \
53 long int len = strlen(mod); \
54 COM_F_FUNC2( lower ## _load_module, UPPER ## _LOAD_MODULE) \
58 void mixed ## _unload_module( const char * mod) { \
59 extern void COM_F_FUNC2( lower ## _unload_module, UPPER ## _UNLOAD_MODULE) \
60 ( const char *mod, long int len); \
62 long int len = strlen(mod); \
63 COM_F_FUNC2( lower ## _unload_module, UPPER ## _UNLOAD_MODULE) \
70 void COM_init(
int *argc,
char ***argv);
141 void COM_set_size(
const char *wa_str,
int pane_id,
int size,
int ng);
146 void *addr,
int strd,
int cap);
150 const void *lbound,
const void *ubound);
156 void **addr,
int strd,
int cap);
164 void **addr,
int strd,
int cap);
169 const void *val,
int v_strd,
int v_size);
174 int with_ghost,
const char *ptnname,
int val);
179 int with_ghost,
const char *ptnname,
int val);
183 int with_ghost,
const char *ptnname,
int val);
186 int with_ghost,
int ptn_hdl,
int val) ;
193 void COM_get_size(
const char *wa_str,
int pane_id,
int *size,
int *ng);
197 int *type,
int *ncomp,
char *unit,
int n);
202 void **addr,
int *strd,
int *cap);
206 void *val,
int v_strd,
int v_size,
int offset);
210 void *lbound,
void *ubound);
218 int *type,
int *ncomp,
char *unit,
int n);
227 int **pane_ids,
int rank);
232 int *nc,
char **names);
234 void COM_get_parent(
const char *waname,
int pane_id,
char **parent);
void COM_wait(const int id)
int COM_Type
Indices for derived data types.
void COM_get_communicator(const char *wname, MPI_Comm *comm)
void COM_set_debug(bool debug)
void COM_delete_window(const char *wname)
void COM_get_attribute(const std::string wa_str, char *loc, int *type, int *ncomp, std::string *unit)
void COM_set_size(const char *wa_str, int pane_id, int size, int ng=0)
Set sizes of for a specific attribute.
void COM_set_default_communicator(MPI_Comm comm)
void COM_set_function(const char *wf_str, Func_ptr func, const char *intents, const COM_Type *types)
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.
void COM_get_bounds(const char *wa_str, int pane_id, void *lbound, void *ubound)
Get the lower and upper bounds of an attribute.
real *8 function offset(vNorm, x2, y2, z2)
void COM_set_verbose(int i)
int COM_get_attribute_handle(const char *waname)
This file contains some definitions of macros and constants for Roccoms.
void COM_delete_attribute(const char *wa_str)
Delete an existing attribute.
void COM_copy_array(const char *wa_str, int pane_id, void *val, int v_strd=0, int v_size=0, int offset=0)
Copy an array from an attribute on a specific pane into a given buffer.
void COM_deallocate_array(const char *wa_str, const int pid=0)
Deallocate space for an attribute in a pane, asuming the memory was allocated allocate_mesh or alloca...
void COM_get_connectivities(const char *wname, int pane_id, int *nc, std::string &names)
int COM_test(const int id)
void COM_set_bounds(const char *wa_str, int pane_id, const void *lbound, const void *ubound)
Set the lower and upper bounds of an attribute.
void COM_get_attributes(const char *wname, int *na, std::string &names)
void COM_load_module(const char *libname, const char *winname)
void COM_use_attribute(const char *wname, const char *attr, int wg=1, const char *ptnname=0, int val=0)
Use the subset of panes of another window of which the given pane attribute has value val...
void COM_print_profile(const char *fname, const char *header)
void(* Func_ptr)()
Pointer of functions.
int COM_compatible_types(COM_Type type1, COM_Type type2)
int COM_check_bounds(const char *wa_str, int pane_id)
Check the lower and upper bounds of an attribute for a specific pane.
Contains declarations of MPI subroutines used in Roccom.
void COM_set_profiling_barrier(int hdl, MPI_Comm comm)
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.
int COM_get_sizeof(const COM_Type type, int c)
void COM_clone_attribute(const char *wname, const char *attr, int wg=1, const char *ptnname=0, int val=0)
Clone the subset of panes of another window of which the given pane attribute has value val...
void COM_new_window(const char *wname, MPI_Comm c=MPI_COMM_NULL)
void COM_set_profiling(int i)
void COM_call_function(const int wf, int argc,...)
void COM_unload_module(const char *libname, const char *winname=NULL)
void COM_allocate_array(const char *wa_str, int pane_id=0, void **addr=NULL, int strd=0, int cap=0)
Allocate space for an attribute on a specific pane and return the address by setting addr...
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 COM_get_attribute_handle_const(const char *waname)
int COM_get_window_handle(const char *wname)
void COM_delete_pane(const char *str, int pid)
void COM_init(int *argc, char ***argv)
void COM_get_parent(const char *waname, int pane_id, std::string &parent)
void COM_copy_attribute_handles(int trg_hdl, int src_hdl, int with_ghost, int ptn_hdl, int val)
void COM_copy_attribute(const char *wname, const char *attr, int wg=1, const char *ptnname=0, int val=0)
Copy an attribute onto another.
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_free_buffer(int **buf)
void COM_set_member_function(const char *wf_str, Member_func_ptr func, const char *wa_str, const char *intents, const COM_Type *types)
MPI_Comm COM_get_default_communicator()
void COM_append_array(const char *wa_str, int pane_id, const void *val, int v_strd, int v_size)
Append an array to the end of the attribute on a specific pane and return the new address by setting ...
void COM_icall_function(const int wf, int argc,...)
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)
int COM_get_status(const char *waname, const int pane_id)