for (int j = 0; j < wordGenusProb.size(); j++) { wordGenusProb[j].resize(genusNodes.size()); }
+ ofstream out;
+ ofstream out2;
#ifdef USE_MPI
int pid;
if (pid == 0) {
#endif
- ofstream out;
+
openOutputFile(probFileName, out);
out << numKmers << endl;
- ofstream out2;
openOutputFile(probFileName2, out2);
#ifdef USE_MPI
//for each word
for (int i = 0; i < numKmers; i++) {
- if (m->control_pressed) { break; }
+ if (m->control_pressed) { break; }
#ifdef USE_MPI
MPI_Comm_rank(MPI_COMM_WORLD, &pid); //find out who we are
wordGenusProb[i][k] = log((count[genusNodes[k]] + probabilityInTemplate) / (float) (genusTotals[k] + 1));
if (count[genusNodes[k]] != 0) {
#ifdef USE_MPI
+ int pid;
MPI_Comm_rank(MPI_COMM_WORLD, &pid); //find out who we are
+
if (pid == 0) {
#endif
#ifdef USE_MPI
MPI_Comm_rank(MPI_COMM_WORLD, &pid); //find out who we are
+
if (pid == 0) {
#endif
#ifdef USE_MPI
MPI_Comm_rank(MPI_COMM_WORLD, &pid); //find out who we are
+
if (pid == 0) {
#endif