add elastic force differential for mass spring

This commit is contained in:
Xuchen Han
2019-08-27 21:43:33 -07:00
parent d4a15e016e
commit 5826492020
2 changed files with 35 additions and 12 deletions

View File

@@ -105,7 +105,6 @@ public:
psb->updateDeformation();
}
TVStack dx;
dx.resize(getNumNodes());
TVStack dphi_dx;
@@ -140,7 +139,6 @@ public:
}
btAlignedObjectArray<double> errors;
double h = 1;
for (int it = 0; it < 10; ++it)
{
for (int i = 0; i < dx.size(); ++i)