29 #include <basic/Tracer.hh>
39 #include <utility/vector1.hh>
40 #include <numeric/xyz.functions.hh>
44 static basic::Tracer
tr(
"core.LocalCoordinateConstraint");
48 namespace constraints {
57 if ( verbose_level > 80 ) {
58 out <<
"CoordConstraint ("
62 return func_->show_violations( out,
dist( pose ), verbose_level, threshold );
106 id::StubID remap_stub( remap_s1, remap_s2, remap_s3 );
136 tr.Trace <<
"stub: " << my_stub << std::endl;
161 >> name2 >> name3 >> name4 >> tempres2
170 tr.Debug <<
"read: " << name1 <<
" " << res1 <<
" " << name2 <<
" " << name3
171 <<
" " << name4 <<
" " << res2 <<
" func: " << func_type << std::endl;
173 tr.Warning <<
"ignored constraint (no such atom in pose!)"
174 << name1 <<
" " << name2 <<
" " << res1 <<
" " << res2 << std::endl;
175 data.setstate( std::ios_base::failbit );
182 tr.Warning <<
"Error reading atoms: read in atom names("
183 << name1 <<
"," << name2 <<
"), "
184 <<
"and found AtomIDs (" <<
atom_ <<
"," <<
fixed_stub_ <<
")" << std::endl;
185 data.setstate( std::ios_base::failbit );
190 func_->read_data( data );
194 while( data.good() && (data.get() !=
'\n') ) {}
195 if ( !data.good() ) data.setstate( std::ios_base::eofbit );
198 if (
tr.Debug.visible() ) {
199 func_->show_definition( std::cout );
200 std::cout << std::endl;
211 out << stubid.
atom( 1 ).
atom() <<
" " <<
216 func_->show_definition( out );