added more debug output

This commit is contained in:
Dave Schuyler 2004-09-01 01:04:03 +00:00
parent 2e492adab7
commit 79ae46385a
2 changed files with 4 additions and 4 deletions

View File

@ -79,7 +79,7 @@ is_linear() const {
void AngularForce::
output(ostream &out) const {
#ifndef NDEBUG //[
out<<"AngularForce";
out<<"AngularForce (id "<<this<<")";
#endif //] NDEBUG
}
@ -92,7 +92,7 @@ output(ostream &out) const {
void AngularForce::
write(ostream &out, unsigned int indent) const {
#ifndef NDEBUG //[
out.width(indent); out<<""; out<<"AngularForce:\n";
out.width(indent); out<<""; out<<"AngularForce (id "<<this<<")\n";
BaseForce::write(out, indent+2);
#endif //] NDEBUG
}

View File

@ -99,7 +99,7 @@ is_linear() const {
void LinearForce::
output(ostream &out) const {
#ifndef NDEBUG //[
out<<"LinearForce";
out<<"LinearForce (id "<<this<<")";
#endif //] NDEBUG
}
@ -112,7 +112,7 @@ output(ostream &out) const {
void LinearForce::
write(ostream &out, unsigned int indent) const {
#ifndef NDEBUG //[
out.width(indent); out<<""; out<<"LinearForce:\n";
out.width(indent); out<<""; out<<"LinearForce (id "<<this<<")\n";
out.width(indent+2); out<<""; out<<"_amplitude "<<_amplitude<<"\n";
out.width(indent+2); out<<""; out<<"_mass_dependent "<<_mass_dependent<<"\n";
out.width(indent+2); out<<""; out<<"_x_mask "<<_x_mask<<"\n";