23 #include <basic/prof.hh>
39 #include <utility/string_util.hh>
41 #include <utility/vector1.hh>
45 namespace optimization {
49 PROF_START( basic::FUNC );
52 PROF_STOP( basic::FUNC );
59 PROF_START( basic::DFUNC );
66 PROF_STOP( basic::DFUNC );
89 if ( ! debug_inaccurateG )
return;
91 static int count_dumped( 0 );
92 static bool after(
true );
94 if ( after ) { ++count_dumped; after =
false; }
95 else { after =
true; }
109 pose1.
dump_pdb(
"Cartesian_multifunc_error_pose_before" + utility::to_string( count_dumped ) +
".pdb" );
112 pose2.
dump_pdb(
"Cartesian_multifunc_error_pose_after" + utility::to_string( count_dumped ) +
".pdb" );
114 std::cerr <<
"starting pose energies: " << score_vars <<
" vs " << alt_score_vars << std::endl;
116 std::cerr << std::endl;
117 std::cerr <<
"moved pose energies: " << score_vars2 <<
" vs " << alt_score_vars2 << std::endl;
119 std::cerr << std::endl;
120 using namespace scoring;
122 if ( check_score_components ) {
125 if ( check_score_components_verbose ) {
131 using namespace scoring;
143 dfunc( vars, dvars );
161 if ( check_hbonds ) {
165 for (
Size ii = 1; ii <= hbond_set.
nhbonds(); ++ii ) {
167 std::cerr <<
"Hbond " << ii <<
170 " e: " << iihbond.
energy() <<
" " << iihbond.
weight() <<
171 " good? " << hbond_set.
allow_hbond( iihbond ) << std::endl;
180 bool const deriv_check_in,
181 bool const deriv_check_verbose_in