Skip to content

Commit

Permalink
Merge pull request #1703 from EulalieCoevoet/addTemplateToMMMapper
Browse files Browse the repository at this point in the history
[SofaGeneralAnimationLoop] MechanicalMatrixMapper: adds template
  • Loading branch information
epernod authored Jan 12, 2021
2 parents d40992c + 22b0212 commit 113cfc6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ using namespace sofa::defaulttype;
//////////////////////////////////////////// FACTORY //////////////////////////////////////////////
int MechanicalMatrixMapperClass = core::RegisterObject("This component allows to map the stiffness (and mass) matrix through a mapping.")

.add< MechanicalMatrixMapper<Rigid3Types, Rigid3Types> >(true)
.add< MechanicalMatrixMapper<Vec3Types, Rigid3Types> >(true)
.add< MechanicalMatrixMapper<Vec3Types, Vec3Types> >(true)
.add< MechanicalMatrixMapper<Vec1Types, Rigid3Types> >(true)
.add< MechanicalMatrixMapper<Vec1Types, Vec1Types> >(true)
.add< MechanicalMatrixMapper<Rigid3Types, Rigid3Types> >()
.add< MechanicalMatrixMapper<Vec3Types, Rigid3Types> >()
.add< MechanicalMatrixMapper<Vec3Types, Vec3Types> >()
.add< MechanicalMatrixMapper<Vec1Types, Rigid3Types> >()
.add< MechanicalMatrixMapper<Vec1Types, Vec3Types> >()
.add< MechanicalMatrixMapper<Vec1Types, Vec1Types> >()
.add< MechanicalMatrixMapper<Rigid3Types, Vec1Types> >(true)

;
Expand All @@ -47,9 +48,10 @@ template class SOFA_SOFAGENERALANIMATIONLOOP_API MechanicalMatrixMapper<Rigid3Ty
template class SOFA_SOFAGENERALANIMATIONLOOP_API MechanicalMatrixMapper<Vec3Types, Rigid3Types>;
template class SOFA_SOFAGENERALANIMATIONLOOP_API MechanicalMatrixMapper<Vec3Types, Vec3Types>;
template class SOFA_SOFAGENERALANIMATIONLOOP_API MechanicalMatrixMapper<Vec1Types, Rigid3Types>;
template class SOFA_SOFAGENERALANIMATIONLOOP_API MechanicalMatrixMapper<Vec1Types, Vec3Types>;
template class SOFA_SOFAGENERALANIMATIONLOOP_API MechanicalMatrixMapper<Vec1Types, Vec1Types>;
template class SOFA_SOFAGENERALANIMATIONLOOP_API MechanicalMatrixMapper<Rigid3Types, Vec1Types> ;



} // namespace sofa::component::interactionforcefield
} // namespace sofa::component::interactionforcefield
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,13 @@ class MechanicalMatrixMapper : public MixedInteractionForceField<TDataTypes1, TD
};

#if !defined(SOFA_COMPONENT_ANIMATIONLOOP_MECHANICALMATRIXMAPPER_CPP)
extern template class SOFA_SOFAGENERALANIMATIONLOOP_API MechanicalMatrixMapper<defaulttype::Rigid3Types, defaulttype::Rigid3Types>;
extern template class SOFA_SOFAGENERALANIMATIONLOOP_API MechanicalMatrixMapper<defaulttype::Vec3Types, defaulttype::Rigid3Types>;
extern template class SOFA_SOFAGENERALANIMATIONLOOP_API MechanicalMatrixMapper<defaulttype::Vec3Types, defaulttype::Vec3Types>;
extern template class SOFA_SOFAGENERALANIMATIONLOOP_API MechanicalMatrixMapper<defaulttype::Vec1Types, defaulttype::Rigid3Types>;
extern template class SOFA_SOFAGENERALANIMATIONLOOP_API MechanicalMatrixMapper<defaulttype::Vec1Types, defaulttype::Vec3Types>;
extern template class SOFA_SOFAGENERALANIMATIONLOOP_API MechanicalMatrixMapper<defaulttype::Vec1Types, defaulttype::Vec1Types>;
extern template class SOFA_SOFAGENERALANIMATIONLOOP_API MechanicalMatrixMapper<defaulttype::Rigid3Types, defaulttype::Vec1Types>;
#endif

} // namespace sofa::component::interactionforcefield

0 comments on commit 113cfc6

Please sign in to comment.