49 main(
int argc,
char *argv[])
52 cerr <<
"genstar <source_prefix> <target_prefix> <npartitions>" << endl;
58 MPI_Init(&argc,&argv);
66 string source_prefix(argv[1]);
67 string targ_prefix(argv[2]);
69 string snpart(argv[3]);
70 istringstream Istr(snpart);
76 if(npart < (
unsigned int)nproc){
82 R = npart - (nproc*N);
84 first = rank * N +
rank;
91 cout << rank <<
": Processing " << npart <<
" partitions." << endl;
93 cout << rank <<
": Local partitions: (" << N <<
"," << first
95 int part_index = first;
99 cout <<
"Processing " << part_index++ <<
"." << endl;
102 bool unsteady =
true;
104 unsigned int niter = 0;
115 fluregion.InitDone();
116 string::size_type
y = targ_prefix.find_last_of(
"/");
117 string targ_dir = targ_prefix.substr(0,y);
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
bool InitRoccomWindows(const std::string &wname)
bool WriteFluSolnASCII(const std::string &p="", unsigned int=0, double=0.0, bool=true)
bool CreateRegionMapFile(const string &p="", unsigned int=0, unsigned int=0)
void int int REAL REAL * y
bool ReadRegionASCII(const string &p="", unsigned int=0, unsigned int=0, double=0.0, bool=true)
vector< FluBorder > _borders
This file contains the prototypes for Roccom API.
bool WriteRocstar(const std::string &, double t=0.0)
bool RegisterVolumeSoln(bool)
bool WriteFluNative(const string &p="")
vector< FluPatch > _patches
int main(int argc, char *argv[])
bool RegisterSurfaceSoln(bool)
void COM_init(int *argc, char ***argv)
bool WriteFluGridASCII(const string &pre="", double=0.0, bool=true)
bool RegisterFluSurfaceMesh()
#define COM_EXTERN_MODULE(moduleName)