18 #include <basic/Tracer.hh>
21 #include <utility/string_util.hh>
23 #include <utility/vector1.hh>
30 static basic::Tracer
tr(
"core.pack.task.IGEdgeReweightContainer");
50 assert( res1id <=
nres_ );
51 assert( res2id <=
nres_ );
54 bool firstpass =
true;
61 Real weight_this_upweighter = (*re_it)->get_edge_reweight( pose, task, res1id, res2id );
64 reweight = weight_this_upweighter;
65 if( reweight != 1.0 ) firstpass =
false;
68 else if ( (reweight != weight_this_upweighter) && (weight_this_upweighter != 1.0) ){
70 reweight = ( reweight > weight_this_upweighter) ? reweight : weight_this_upweighter ;
72 tr.Info <<
"WARNING WARNING!!! Conflicting IG-reweighting factors specified for residues "+utility::to_string( res1id )+
" and "+utility::to_string( res2id )+
"are given, will user the larger value ( "+utility::to_string( reweight )+
" )." << std::endl;