Added prune step before compressing global stiffness matrix.

This commit is contained in:
Ryan Latture 2016-07-05 11:17:33 -07:00
parent 535daa9b49
commit 2e5393a4b6
1 changed files with 2 additions and 1 deletions

View File

@ -423,8 +423,9 @@ namespace fea {
if (forces.size() > 0) {
loadForces(force_vec, forces);
}
// compress global stiffness matrix since all non-zero values have been added.
Kg.prune(1.e-14);
Kg.makeCompressed();
// initialize solver based on whether MKL should be used