Skip to content

Commit

Permalink
[SofaCuda] Forward declaration in wrong namespace (#2923)
Browse files Browse the repository at this point in the history
* [SofaCuda] Forward declaration in wrong namespace

* Added changes for double

Co-authored-by: p.baksic <[email protected]>
  • Loading branch information
bakpaul and p.baksic authored May 9, 2022
1 parent 918cd66 commit 471a3df
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions applications/plugins/SofaCUDA/sofa/gpu/cuda/CudaCollision.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,21 @@
#include <sofa/core/Mapping.inl>
#include <fstream>

namespace sofa::component::collision
{
template class SOFA_GPU_CUDA_API MouseInteractor<CudaVec3fTypes>;
template class SOFA_GPU_CUDA_API TComponentMouseInteraction< CudaVec3fTypes >;
template class SOFA_GPU_CUDA_API AttachBodyPerformer< CudaVec3fTypes >;
template class SOFA_GPU_CUDA_API FixParticlePerformer< CudaVec3fTypes >;

#ifdef SOFA_GPU_CUDA_DOUBLE
template class SOFA_GPU_CUDA_API MouseInteractor<CudaVec3dTypes>;
template class SOFA_GPU_CUDA_API TComponentMouseInteraction< CudaVec3dTypes >;
template class SOFA_GPU_CUDA_API AttachBodyPerformer< CudaVec3dTypes >;
template class SOFA_GPU_CUDA_API FixParticlePerformer< CudaVec3dTypes >;
#endif
}

namespace sofa::component::userinteraction::performer
{

Expand All @@ -56,17 +71,6 @@ using namespace sofa::component::collision;
using namespace sofa::component::collision::geometry;
using namespace sofa::component::collision::response::mapper;

template class SOFA_GPU_CUDA_API MouseInteractor<CudaVec3fTypes>;
template class SOFA_GPU_CUDA_API TComponentMouseInteraction< CudaVec3fTypes >;
template class SOFA_GPU_CUDA_API AttachBodyPerformer< CudaVec3fTypes >;
template class SOFA_GPU_CUDA_API FixParticlePerformer< CudaVec3fTypes >;

#ifdef SOFA_GPU_CUDA_DOUBLE
template class SOFA_GPU_CUDA_API MouseInteractor<CudaVec3dTypes>;
template class SOFA_GPU_CUDA_API TComponentMouseInteraction< CudaVec3dTypes >;
template class SOFA_GPU_CUDA_API AttachBodyPerformer< CudaVec3dTypes >;
template class SOFA_GPU_CUDA_API FixParticlePerformer< CudaVec3dTypes >;
#endif

response::mapper::ContactMapperCreator< response::mapper::ContactMapper<geometry::SphereCollisionModel<gpu::cuda::CudaVec3Types>> > CudaSphereContactMapperClass("PenalityContactForceField", true);

Expand Down

0 comments on commit 471a3df

Please sign in to comment.