Skip to content

Commit

Permalink
[SofaSparseSolver] Clean examples scenes of sparse linear solvers (so…
Browse files Browse the repository at this point in the history
…fa-framework#2422)

* [SofaSparseSolver] Remove scenes as their equivalent are in examples\Components\linearsolver

* [examples] Add example for PrecomputedLinearSolver

* [examples] Add example for SVDLinearSolver

* [SofaSparseSolver] msg_info without parameter

* Cleaning

* [examples] Speed up the example using multithreading

* Turn multithreading on

* [examples] Run only a few iterations to test FEMBAR-SVDLinearSolver.scn

* Lower number of iterations

* Clean scenes

Remove collision components
Add a scene for CGLinearSolver
Set the right RequiredPlugin

* ignore FEMBAR-SVDLinearSolver.scn on the CI
  • Loading branch information
alxbilger authored Oct 22, 2021
1 parent 0864acd commit 154917c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* *
* Contact information: contact@sofa-framework.org *
******************************************************************************/
#define SOFA_COMPONENT_LINEARSOLVER_SPARSELUSOLVER_CPP
#include <sofa/core/ObjectFactory.h>
#include <SofaSparseSolver/SparseLUSolver.inl>

Expand All @@ -29,5 +30,7 @@ int SparseLUSolverClass = core::RegisterObject("Direct linear solver based on Sp
.add< SparseLUSolver< CompressedRowSparseMatrix<double>,FullVector<double> > >()
;

template class SOFA_SOFASPARSESOLVER_API SparseLUSolver< CompressedRowSparseMatrix<double>,FullVector<double> >;

} // namespace sofa::component::linearsolver

Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
namespace sofa::component::linearsolver
{

//defaut structure for a LDL factorization
//defaut structure for a LU factorization
template<class Real>
class SparseLUInvertData : public MatrixInvertData {
public :
Expand Down Expand Up @@ -81,6 +81,10 @@ protected :

};

#if !defined(SOFA_COMPONENT_LINEARSOLVER_SPARSELUSOLVER_CPP)
extern template class SOFA_SOFASPARSESOLVER_API SparseLUSolver< CompressedRowSparseMatrix< double>,FullVector<double> >;
#endif

} // namespace sofa::component::linearsolver

#endif

0 comments on commit 154917c

Please sign in to comment.