- MPI_File_write_shared(tempFile, buf, length, MPI_CHAR, &statusTemp);
- delete buf;
+ outputString = candidateSeq->getName() + "\t" + classify->getSimpleTax() + "\n";
+ length = outputString.length();
+ char* buf = new char[length];
+ memcpy(buf, outputString.c_str(), length);
+
+ MPI_File_write_shared(tempFile, buf, length, MPI_CHAR, &statusTemp);
+ delete buf;
+
+ if (classify->getFlipped()) {
+ outputString = candidateSeq->getName() + "\n";
+ length = outputString.length();
+ char* buf3 = new char[length];
+ memcpy(buf3, outputString.c_str(), length);
+
+ MPI_File_write_shared(accFile, buf3, length, MPI_CHAR, &statusAcc);
+ delete buf3;