]> git.donarmstrong.com Git - mothur.git/blobdiff - commandfactory.cpp
testing mpi
[mothur.git] / commandfactory.cpp
index dd97b2f0d801dc64f4a9f110957c093dab136b04..b4f36549c0c65a22d0b2ad6057b9e07e294a4c65 100644 (file)
@@ -117,7 +117,7 @@ CommandFactory::CommandFactory(){
        commands["bootstrap.shared"]    = "bootstrap.shared";
        //commands["consensus"]                 = "consensus";
        commands["help"]                                = "help"; 
-       commands["filter.seqs"]                 = "filter.seqs";
+       commands["filter.seqs"]                 = "MPIEnabled";
        commands["align.seqs"]                  = "align.seqs";
        commands["summary.seqs"]                = "summary.seqs";
        commands["screen.seqs"]                 = "screen.seqs";
@@ -131,7 +131,7 @@ CommandFactory::CommandFactory(){
        commands["align.check"]                 = "align.check";
        commands["get.sharedseqs"]              = "get.sharedseqs";
        commands["get.otulist"]                 = "get.otulist";
-       commands["quit"]                                = "quit"; 
+       commands["quit"]                                = "MPIEnabled"; 
        commands["hcluster"]                    = "hcluster"; 
        commands["classify.seqs"]               = "classify.seqs"; 
        commands["phylotype"]                   = "phylotype";
@@ -145,6 +145,17 @@ CommandFactory::CommandFactory(){
 }
 /***********************************************************/
 
+/***********************************************************/
+bool CommandFactory::MPIEnabled(string commandName) {
+       bool mpi = false;
+       it = commands.find(commandName);
+       if (it != commands.end()) { 
+               if (it->second == "MPIEnabled") { return true; }
+       }
+       return mpi;
+}
+/***********************************************************/
+
 /***********************************************************/
 CommandFactory::~CommandFactory(){
        _uniqueInstance = 0;