Skip to content

Commit aca7439

Browse files
authored
Merge pull request #168 from fredroy/fix_compilation_float
Fix compilation with FLOATING_POINT_TYPE=float
2 parents af7dc14 + 114e006 commit aca7439

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/BeamAdapter/component/mapping/BeamLengthMapping.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ namespace sofa::component::mapping
4545

4646
namespace _beamlengthmapping_
4747
{
48-
template class SOFA_BEAMADAPTER_API BeamLengthMapping<sofa::defaulttype::Rigid3dTypes, sofa::defaulttype::Vec1dTypes>;
48+
template class SOFA_BEAMADAPTER_API BeamLengthMapping<sofa::defaulttype::Rigid3Types, sofa::defaulttype::Vec1Types>;
4949
}
5050

5151
} // namespace sofa::component::mapping
@@ -56,7 +56,7 @@ namespace beamadapter
5656
void registerBeamLengthMapping(sofa::core::ObjectFactory* factory)
5757
{
5858
factory->registerObjects(sofa::core::ObjectRegistrationData("Compute the lengths of the beams.")
59-
.add< sofa::component::mapping::BeamLengthMapping<sofa::defaulttype::Rigid3Types, sofa::defaulttype::Vec1dTypes> >());
59+
.add< sofa::component::mapping::BeamLengthMapping<sofa::defaulttype::Rigid3Types, sofa::defaulttype::Vec1Types> >());
6060
}
6161

6262
} // namespace beamadapter

src/BeamAdapter/component/mapping/BeamLengthMapping.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ class BeamLengthMapping : public Mapping<TIn, TOut>
225225
};
226226

227227
#ifndef BEAMADAPTER_BEAMLENGTHMAPPING_CPP
228-
extern template class SOFA_BEAMADAPTER_API BeamLengthMapping<defaulttype::Rigid3dTypes, defaulttype::Vec1dTypes >;
228+
extern template class SOFA_BEAMADAPTER_API BeamLengthMapping<defaulttype::Rigid3Types, defaulttype::Vec1Types >;
229229
#endif
230230

231231
} /// _beamlengthmapping_

0 commit comments

Comments
 (0)