*** empty log message ***

This commit is contained in:
Nico Pietroni 2005-04-26 09:20:15 +00:00
parent b07f6f2343
commit 1fa8b3ec4b
1 changed files with 2 additions and 2 deletions

View File

@ -159,9 +159,9 @@ public:
{ {
ScalarType diff=(l0-l1); ScalarType diff=(l0-l1);
if (diff>0)//compression if (diff>0)//compression
return ((diff/l1)*_k); return ((diff/(l1))*_k)+(diff *_k);
else else
return (diff *_k); return (diff *_k);
} }
///update of the internal forces using the dihedral angle ///update of the internal forces using the dihedral angle