Added prune step before compressing global stiffness matrix.
This commit is contained in:
parent
535daa9b49
commit
2e5393a4b6
|
@ -423,8 +423,9 @@ namespace fea {
|
||||||
if (forces.size() > 0) {
|
if (forces.size() > 0) {
|
||||||
loadForces(force_vec, forces);
|
loadForces(force_vec, forces);
|
||||||
}
|
}
|
||||||
|
|
||||||
// compress global stiffness matrix since all non-zero values have been added.
|
// compress global stiffness matrix since all non-zero values have been added.
|
||||||
|
Kg.prune(1.e-14);
|
||||||
Kg.makeCompressed();
|
Kg.makeCompressed();
|
||||||
|
|
||||||
// initialize solver based on whether MKL should be used
|
// initialize solver based on whether MKL should be used
|
||||||
|
|
Loading…
Reference in New Issue