X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/3db2602cfe30c61445e89cc334541ebb4ff76ed8..22d4f36d4bbd95447a454cceb9084af46927e023:/o815/obs.cpp diff --git a/o815/obs.cpp b/o815/obs.cpp index cd86bf6..c927935 100644 --- a/o815/obs.cpp +++ b/o815/obs.cpp @@ -1,24 +1,29 @@ #include "o815.h" -void o815::obs::_meas(bool loadedobs) { - *olog << "OBS_" << obsid << ": meas not implemented!" << endl << flush; -}; - -void o815::obs::_finish() { - *olog << "OBS_" << obsid << ": finish not implemented!" << endl << flush; -}; - void o815::obs::finish() { _finish(); } +void o815::obs::start() { + if(O815->rank==0) { + *oout << "#" << obsid << O815->headMaster() << endl << flush; + *oout << "#" << obsid << O815->headMaster() << "-" << datadesc << endl << flush; + } + + if (O815->comargs.outdir=="") + MPI_Barrier(MPI_COMM_WORLD); + + _start(); +} + void o815::obs::meas() { _meas(true); } -o815::obs::obs(const string& _obsid, o815 *_O815) { +o815::obs::obs(const string& _obsid, const string& _datadesc, o815 *_O815, char *_obsmem, const int& _obsmemSize) { obsid = _obsid; O815 = _O815; + datadesc = _datadesc; O815->out->newsub(obsid); oout = O815->out->out[obsid];