]> git.donarmstrong.com Git - mothur.git/blobdiff - validparameter.cpp
added MPI code, broke up chimera.seqs into 5 separated commands, added parse.sff...
[mothur.git] / validparameter.cpp
index 0c32a3e1c7b00e9fa90c8a5e4ca7fb759238c9e2..2d29ee3f668ee1817cb71c82189c2a8c6f61cf00 100644 (file)
@@ -207,11 +207,23 @@ string ValidParameters::validFile(map<string, string> container, string paramete
                if(it != container.end()){ //no parameter given
 
                        if(isFile == true) {
+                       
+                       #ifdef USE_MPI  
+                               int pid;
+                               MPI_Comm_rank(MPI_COMM_WORLD, &pid); //find out who we are
+                               
+                               if (pid == 0) {
+                       #endif
 
                                ableToOpen = openInputFile(it->second, in);
 
                                if (ableToOpen == 1) { return "not open"; }
                                in.close();
+                               
+                       #ifdef USE_MPI  
+                               }
+                       #endif
+
                        }
                }else { return "not found"; }