20 #include <utility/pointer/ReferenceCount.hh>
34 namespace constraints {
39 if( fabs( x -
x0_ ) <=
tol_ )
return 0.0;
53 if( fabs( x -
x0_ ) <=
tol_ )
return 0.0;
55 else return 2 * ( x -
x0_ +
tol_ ) / ( sd_ * sd_ );
65 out <<
"HARMONIC " <<
x0_ <<
" " <<
sd_ <<
" " <<
tol_ << std::endl;
70 if (verbose_level > 100 ) {
71 if( fabs( x -
x0_ ) <=
tol_ ) out <<
"HARM " << 0.0 << std::endl;
74 out <<
"HARM " << z << std::endl;
78 out <<
"HARM " << z << std::endl;
80 }
else if (verbose_level > 70 ) {
81 if ( x <
x0_ +
tol_ && ( this->
func(x) > threshold ) ) out <<
"-";
82 else if ( x >
x0_ +
tol_ && ( this->
func(x) > threshold )) out <<
"+";