18 #include <utility/io/izstream.hh>
29 Throw a compiler error because MPI and BOINC cannot be used together!
30 If you got
this message, something is wrong with your build settings.
48 #include <basic/Tracer.hh>
49 #include <numeric/random/random.hh>
50 #include <utility/file/file_sys_util.hh>
51 #include <utility/io/ozstream.hh>
56 #include <utility/vector1.hh>
57 #include <basic/options/keys/OptionKeys.hh>
60 static basic::Tracer
TR(
"protocols.jd2.BOINCJobDistributor");
69 total_completed_nstruct_( 0 )
90 for(
core::Size i = 1; i <= jobs.size(); i ++ ){
122 static time_t last_chkpt_time = time(NULL);
123 time_t time_now = time(NULL);
126 if( time_now - last_chkpt_time > 60 ) {
129 utility::io::ozstream ozs(
"rng.state.gz");
130 numeric::random::RandomGenerator::saveAllStates(ozs);
134 last_chkpt_time = time_now;
145 utility::io::izstream izs(
"rng.state.gz");
146 numeric::random::RandomGenerator::restoreAllStates(izs);
158 utility::file::file_delete(
"rng.state.gz");
183 using namespace basic::options;
201 boinc_begin_critical_section();
207 boinc_end_critical_section();