15 #include <basic/options/option.hh>
20 #include <basic/Tracer.hh>
21 #include <utility/tag/Tag.hh>
24 #include <basic/options/keys/remodel.OptionKeys.gen.hh>
31 using namespace chemical;
32 using namespace conformation;
33 using namespace basic::options;
35 using namespace rotamer_set;
37 using namespace operation;
42 static basic::Tracer
TR(
"protocols.forge.remodel.RemodelRotamerLinks",t_info);
69 links->resize( nres );
71 Size repeat_number = basic::options::option[ OptionKeys::remodel::repeat_structure];
72 Size segment_length = nres / repeat_number;
77 for (
Size res = 1; res<= segment_length ; res++){
80 for (
Size rep = 0; rep < repeat_number; rep++){
81 list.push_back(res+(segment_length*rep));
83 equiv_pos.push_back(list);
89 for (
Size i = 1; i <= nres ; i++){
90 Size subcounter = (i%segment_length);
92 subcounter = segment_length;
95 links->set_equiv(i, equiv_pos[subcounter]);
98 for (
Size k=1; k<= equiv_pos[subcounter].size(); k++){