X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/863c9da2356ce3fc92d6a39550ac6c181252781a..d09f5f0aeff338a0262c3faf5272b82945a3bf8f:/o815/o815.cpp diff --git a/o815/o815.cpp b/o815/o815.cpp index 708aceb..3fe43c8 100644 --- a/o815/o815.cpp +++ b/o815/o815.cpp @@ -100,6 +100,14 @@ void o815::postParaInit() { exit(0); } + if( comargs.showjobnum ) { + for( int i=1; i<=paraQ->getTotalJobs(); i++ ) { + if( paraQ->getTotalJobs()%i == 0 ) cout << paraQ->getTotalJobs()/i << "@" << i << " "; + } + cout << endl; + exit(0); + } + if(rank==0) { timestamp = time(NULL); for(int idest=1; idestgetTotalJobs(); i++ ) { - if( paraQ->getTotalJobs()%i == 0 ) cout << paraQ->getTotalJobs()/i << "@" << i << " "; - } - cout << endl; - exit(0); - } - *out->log << "OBS: Starting main loop." << endl; for (vector::iterator obsit = observables.begin(); obsit != observables.end(); ++obsit) @@ -149,14 +149,14 @@ void o815::mainLoop() { hypercache::readO( (*obsit)->ocid, &readnewObs, &nequileftNewObs ); if ( readnewObs && nequileftNewObs < 0 ) { - (*obsit)->meas(true); + (*obsit)->meas(true, imeas); } else { if (!nextAlready) { Sim->nextConfig(); nextAlready = true; } - (*obsit)->meas(false); + (*obsit)->meas(false, imeas); hypercache::writeO( (*obsit)->ocid ); }