Modify damping.cpp