53 const std::string &prefix,
65 std::string bufprefix =
"__BUF";
66 std::string sdv_material = prefix+
"_sdv";
67 std::string sdv_wname = bufprefix+sdv_material;
73 sdv_material.c_str(), &comm_self);
78 int nsubn, nsubf, nn, nf;
79 COM_get_size( (sdv_wname+
".sn_parent_fcID").c_str(), pid, &nsubn);
82 COM_get_size( (sdv_wname+
".sn_subID").c_str(), pid, &nn);
83 COM_get_size( (sdv_wname+
".sf_offset").c_str(), pid, &nf);
137 int main(
int argc,
char *argv[]) {
141 std::cerr <<
"Usage: " << argv[0] <<
" <file-name> <prefix> <pane_id>\n"
142 <<
"Example: " << argv[0] <<
"A_101_sdv.hdf A 101" << std::endl;
146 std::string fname = argv[1], prefix = argv[2];
147 int pid = std::atoi(argv[3]);
void Rocin_load_module(const char *name)
Load the module Rocin into Roccom using the given module name.
void read_pane_sp(std::string &fname, const std::string &prefix, int pid, Subdiv &sd)
here we put it at the!beginning of the common block The point to point and collective!routines know about but MPI_TYPE_STRUCT as yet does not!MPI_STATUS_IGNORE and MPI_STATUSES_IGNORE are similar objects!Until the underlying MPI library implements the C version of these are declared as arrays of MPI_STATUS_SIZE!The types and are OPTIONAL!Their values are zero if they are not available Note that!using these reduces the portability of MPI_IO INTEGER MPI_BOTTOM INTEGER MPI_DOUBLE_PRECISION INTEGER MPI_LOGICAL INTEGER MPI_2REAL INTEGER MPI_2DOUBLE_COMPLEX INTEGER MPI_LB INTEGER MPI_WTIME_IS_GLOBAL INTEGER MPI_COMM_SELF
void COM_delete_window(const char *wname)
This file contains the prototypes for Roccom API.
std::vector< int > subfaces
std::vector< int > subface_offsets
std::vector< float > subnode_ncs
int COM_get_attribute_handle(const char *waname)
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.
std::vector< int > subnode_parents
std::vector< int > subface_counterparts
void COM_get_size(const char *wa_str, int pane_id, int *size, int *ng=0)
Get the sizes of an attribute.
std::vector< int > subface_parents
void COM_call_function(const int wf, int argc,...)
int main(int argc, char *argv[])
void COM_init(int *argc, char ***argv)
std::vector< float > subface_nat_coors
std::vector< int > subnode_counterparts
std::vector< int > subnode_subIDs
int COM_get_function_handle(const char *wfname)
void Rocin_unload_module(const char *name)
Unload the module Rocin from Roccom.