X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=validparameter.cpp;fp=validparameter.cpp;h=d693bcb721184c251896c917328f9d9d07b3fc18;hb=e189982e0a9b7352ad57cc38ccee675f128be22e;hp=2d29ee3f668ee1817cb71c82189c2a8c6f61cf00;hpb=fdc1f6eaf544f695fc1511f24bddd7e6069c33ba;p=mothur.git diff --git a/validparameter.cpp b/validparameter.cpp index 2d29ee3..d693bcb 100644 --- a/validparameter.cpp +++ b/validparameter.cpp @@ -216,14 +216,16 @@ string ValidParameters::validFile(map 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"; }