55 void read_plot3d( istream &is, vector<vector<Point_3> > &coors,
56 vector< pair<int,int> > &dims) {
61 for (
int i=0;
i<ngrid; ++
i) {
63 is >> dims[
i].first >> dims[
i].second >> t;
67 for (
int i=0;
i<ngrid; ++
i) {
68 coors[
i].resize( dims[
i].first*dims[
i].second);
70 for (
int l=0; l<3; ++l) {
71 for (
int j=0,
nj=coors[
i].size();
j<
nj; ++
j)
77 int main(
int argc,
char *argv[]) {
78 MPI_Init( &argc, &argv);
82 std::cout <<
"Usage: " << argv[0]
83 <<
" file1 file2 [<out_path>] "
84 <<
" [<scale_1>] [<scale_2>]" << std::endl;
91 const string wnames[2] = {string(argv[1],
string( argv[1]).find(
".")),
92 string(argv[2],
string( argv[2]).find(
"."))};
94 vector< vector<Point_3> > coors[2];
98 for (
int k=0;
k<2; ++
k) {
101 ifstream fi( argv[
k+1]);
102 vector<pair< int, int> > dims;
105 for (
int i=0,
ni=dims.size();
i<
ni; ++
i) {
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_WORLD
This file contains the prototypes for Roccom API.
Point_3(Type a, Type b, Type c)
void COM_set_verbose(int i)
int COM_get_attribute_handle(const char *waname)
void read_plot3d(istream &is, vector< vector< Point_3 > > &coors, vector< pair< int, int > > &dims)
void COM_print_profile(const char *fname, const char *header)
Contains declarations of MPI subroutines used in Roccom.
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_profiling(int i)
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.
Type & operator[](const int i)
int main(int argc, char *argv[])
void COM_init(int *argc, char ***argv)
SURF::Point_3< Real > Point_3
void int int REAL REAL REAL *z blockDim dim * ni
const Type & operator[](const int i) const
#define COM_LOAD_MODULE_STATIC_DYNAMIC(moduleName, windowString)
int COM_get_function_handle(const char *wfname)
#define COM_EXTERN_MODULE(moduleName)