X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=chimeracheckcommand.cpp;fp=chimeracheckcommand.cpp;h=400a715aeedf604efb80e580f6c345677f74a430;hb=7f0cae4f4853cc3f12bc751ee06ea31c7c97496e;hp=3a530fde0ab5b31c71cbe19437984bb8a75578c1;hpb=113672689e4c84383a0304bfd21fb9574a77866c;p=mothur.git diff --git a/chimeracheckcommand.cpp b/chimeracheckcommand.cpp index 3a530fd..400a715 100644 --- a/chimeracheckcommand.cpp +++ b/chimeracheckcommand.cpp @@ -424,14 +424,16 @@ int ChimeraCheckCommand::execute(){ MPI_Barrier(MPI_COMM_WORLD); //make everyone wait - just in case #else - vector positions = m->divideFile(fastaFileNames[i], processors); - - for (int s = 0; s < (positions.size()-1); s++) { - lines.push_back(new linePair(positions[s], positions[(s+1)])); - } + //break up file #if defined (__APPLE__) || (__MACH__) || (linux) || (__linux) + vector positions = m->divideFile(fastaFileNames[i], processors); + + for (int s = 0; s < (positions.size()-1); s++) { + lines.push_back(new linePair(positions[s], positions[(s+1)])); + } + if(processors == 1){ numSeqs = driver(lines[0], outputFileName, fastaFileNames[i]); @@ -459,6 +461,7 @@ int ChimeraCheckCommand::execute(){ } #else + lines.push_back(new linePair(0, 1000)); numSeqs = driver(lines[0], outputFileName, fastaFileNames[i]); if (m->control_pressed) { for (int j = 0; j < lines.size(); j++) { delete lines[j]; } lines.clear(); for (int j = 0; j < outputNames.size(); j++) { m->mothurRemove(outputNames[j]); } outputTypes.clear(); delete chimera; return 0; }