]> git.treefish.org Git - phys/latlib.git/blobdiff - o815/obs.cpp
...
[phys/latlib.git] / o815 / obs.cpp
index ae973401eec82cde4eb9cef70fd0445cd0e2729f..37d1d4ed7f3740f07a3b33684c0af8c24ddde2b4 100644 (file)
@@ -2,6 +2,10 @@
 
 #include "latlib/hypercache.h"
 
+#ifndef MPI_DISABLED
+#include <mpi.h>
+#endif
+
 void o815::obs::finish() {
   _finish();
 }
@@ -12,9 +16,11 @@ void o815::obs::start() {
     *out << "#" << O815->programid << "-" << obsid << obsidpostfix << O815->headMaster() << "-" << datadesc << endl << flush;
   }
 
+#ifndef MPI_DISABLED
   if (O815->comargs.outdir=="")
     MPI_Barrier(MPI_COMM_WORLD);
-  
+#endif  
+
   _start();
 }