30 #include <basic/Tracer.hh>
32 #include <utility/file/FileName.hh>
39 #include <basic/options/option_macros.hh>
41 #include <utility/vector1.hh>
45 static basic::Tracer
tr(
"protocols.iterative");
49 using namespace basic;
50 using namespace basic::options;
51 using namespace basic::options::OptionKeys;
57 using namespace jd2::archive;
64 NEW_OPT( iterative::fullatom,
"sample fullatom structures in iterative protocol",
false );
72 IterativeAbrelax::IterativeAbrelax()
74 centroid_archive_( &fullatom_archive_ ),
77 fullatom_ = option[ iterative::fullatom ]();
85 sfd.
begin()->fill_pose( pose );
86 sfd.
begin()->has_energy(
"user_tag" );
88 bool isPseudoFullatom ( centroid_str ==
"centroid" );
91 tr.Debug <<
"reading full-atom structures into fullatom_pool" << std::endl;
94 tr.Debug <<
"reading " << (isPseudoFullatom ?
" pseuod-fullatom " :
"centroid" ) <<
" structures into centroid_pool" << std::endl;
142 tr.Info <<
"IterativeAbrelax: set ArchiveManager also for sub-archives... " << std::endl;
149 int start_time( time(NULL) );
151 int later( time(NULL) );
152 int centroid_idle( later-start_time);
153 if ( centroid_idle > 10 ) {
154 tr.Debug <<
"spend " << centroid_idle <<
" seconds in idle() function of " <<
centroid_archive_.
name() << std::endl;
159 int final( time(NULL) );
160 int fullatom_idle(
final-later );
161 if ( fullatom_idle > 10 ) {
162 tr.Debug <<
"spend " << fullatom_idle <<
" seconds in idle() function of " <<
fullatom_archive_.
name() << std::endl;
181 return b_have_restored;