From f619e0ac6d305d89554916681f064f078fafb57c Mon Sep 17 00:00:00 2001 From: littlemine Date: Tue, 2 Jul 2024 18:19:06 +0800 Subject: [PATCH] fix build --- projects/CUDA/zpc | 2 +- projects/CuLagrange/pbd/ConstraintsBuilder.cu | 2 +- .../CuLagrange/pbd/constraint_function_kernel/constraint.cuh | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/projects/CUDA/zpc b/projects/CUDA/zpc index 740079464b..282e0b1f19 160000 --- a/projects/CUDA/zpc +++ b/projects/CUDA/zpc @@ -1 +1 @@ -Subproject commit 740079464b56bfd84269610509bb5ab941710826 +Subproject commit 282e0b1f197fdf37b1c4a496b502b85d4d24f359 diff --git a/projects/CuLagrange/pbd/ConstraintsBuilder.cu b/projects/CuLagrange/pbd/ConstraintsBuilder.cu index d3f86b7f60..b025c7e676 100644 --- a/projects/CuLagrange/pbd/ConstraintsBuilder.cu +++ b/projects/CuLagrange/pbd/ConstraintsBuilder.cu @@ -470,7 +470,7 @@ virtual void apply() override { rest_scale = rest_scale, eles = proxy({},eles), verts = proxy({},verts)] ZS_LAMBDA(auto ai,const auto& pair) mutable { - eles.tuple(dim_c<2>,"inds",ai) = pair.reinterpret_bits(); + eles.tuple(dim_c<2>,"inds",ai) = pair.template reinterpret_bits(); auto v0 = verts.pack(dim_c<3>,"x",pair[0]); auto v1 = verts.pack(dim_c<3>,"x",pair[1]); eles("r",ai) = (v0 - v1).norm() * rest_scale; diff --git a/projects/CuLagrange/pbd/constraint_function_kernel/constraint.cuh b/projects/CuLagrange/pbd/constraint_function_kernel/constraint.cuh index 3572e62c43..e7c55a7971 100644 --- a/projects/CuLagrange/pbd/constraint_function_kernel/constraint.cuh +++ b/projects/CuLagrange/pbd/constraint_function_kernel/constraint.cuh @@ -976,6 +976,7 @@ constexpr bool solve_BendTwistConstraint( } // ---------------------------------------------------------------------------------------------- +#if 0 template constexpr bool solve_PerpendiculaBisectorConstraint( const VECTOR3d &p0, SCALER invMass0, @@ -1002,6 +1003,7 @@ constexpr bool solve_PerpendiculaBisectorConstraint( return true; } +#endif // // ---------------------------------------------------------------------------------------------- // template