]> git.donarmstrong.com Git - mothur.git/blobdiff - validparameter.cpp
some changes while testing 1.9
[mothur.git] / validparameter.cpp
index 2d29ee3f668ee1817cb71c82189c2a8c6f61cf00..d693bcb721184c251896c917328f9d9d07b3fc18 100644 (file)
@@ -216,14 +216,16 @@ string ValidParameters::validFile(map<string, string> container, string paramete
                        #endif
 
                                ableToOpen = openInputFile(it->second, in);
-
-                               if (ableToOpen == 1) { return "not open"; }
                                in.close();
-                               
+
                        #ifdef USE_MPI  
+                                       MPI_Bcast(&ableToOpen, 1, MPI_INT, 0, MPI_COMM_WORLD);  //send ableToOPen
+                               }else {
+                                       MPI_Bcast(&ableToOpen, 1, MPI_INT, 0, MPI_COMM_WORLD); //get ableToOPen
                                }
                        #endif
-
+                       
+                               if (ableToOpen == 1) { return "not open"; }
                        }
                }else { return "not found"; }