Skip to content

Commit 6ecec66

Browse files
authored
Replace CSparse linear solver by Eigen (#119)
1 parent 6f2b6e0 commit 6ecec66

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/AdaptiveBeamController.scn

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<Node name="root" gravity="0 -9.81 0" dt="0.01" >
33
<RequiredPlugin name="Sofa.Component.Constraint.Projective"/> <!-- Needed to use components [FixedConstraint] -->
4-
<RequiredPlugin name="Sofa.Component.LinearSolver.Direct"/> <!-- Needed to use components [SparseLUSolver] -->
4+
<RequiredPlugin name="Sofa.Component.LinearSolver.Direct"/> <!-- Needed to use components [EigenSparseLU] -->
55
<RequiredPlugin name="Sofa.Component.ODESolver.Backward"/> <!-- Needed to use components [EulerImplicitSolver] -->
66
<RequiredPlugin name="Sofa.Component.StateContainer"/> <!-- Needed to use components [MechanicalObject] -->
77
<RequiredPlugin name="Sofa.Component.Topology.Container.Constant"/> <!-- Needed to use components [MeshTopology] -->
@@ -11,7 +11,7 @@
1111

1212
<Node name="AdaptiveBeam1">
1313
<EulerImplicitSolver rayleighStiffness="0" rayleighMass="0" printLog="false" />
14-
<SparseLUSolver template="CompressedRowSparseMatrixMat3x3d"/>
14+
<EigenSparseLU template="CompressedRowSparseMatrixMat3x3d"/>
1515
<MechanicalObject template="Rigid3d" name="DOFs" position="0 0 0 0 0 0 1 0.5 0 0 0 0 0 1 1 0 0 0 0 0 1 1.5 0 0 0 0 0 1 2 0 0 0 0 0 1 2.5 0 0 0 0 0 1 3 0 0 0 0 0 1"/>
1616
<MeshTopology name="lines" lines="0 1 1 2 2 3 3 4 4 5 5 6" />
1717
<FixedConstraint name="FixedConstraint" indices="0" />
@@ -29,7 +29,7 @@
2929

3030
<Node name="AdaptiveBeam2">
3131
<EulerImplicitSolver rayleighStiffness="0" rayleighMass="0" printLog="false" />
32-
<SparseLUSolver template="CompressedRowSparseMatrixMat3x3d"/>
32+
<EigenSparseLU template="CompressedRowSparseMatrixMat3x3d"/>
3333
<MeshTopology name="lines" lines="0 1 1 2 2 3" />
3434
<MechanicalObject template="Rigid3d" name="DOFs" position="0 0 2 0 0 0 1 1 0 2 0 0 0 1 2 0 2 0 0 0 1 3 0 2 0 0 0 1"/>
3535
<BeamInterpolation name="BeamInterpolation2" radius="0.1" />

0 commit comments

Comments
 (0)