@@ -31,7 +31,7 @@ void Integrator::Step(Scalar dt, Index iterations, Index substeps, Scalar rho)
31
31
// Store previous positions
32
32
data.xt = data.x ;
33
33
// Compute inertial target positions
34
- tbb::parallel_for (IndexType (0 ), nVertices, [&](auto i) {
34
+ tbb::parallel_for (IndexType (0 ), nVertices, [&](IndexType i) {
35
35
auto xtilde = kernels::InertialTarget (
36
36
FromEigen (data.xt .col (i).head <3 >()),
37
37
FromEigen (data.v .col (i).head <3 >()),
@@ -41,7 +41,7 @@ void Integrator::Step(Scalar dt, Index iterations, Index substeps, Scalar rho)
41
41
data.xtilde .col (i) = ToEigen (xtilde);
42
42
});
43
43
// Initialize block coordinate descent's, i.e. BCD's, solution
44
- tbb::parallel_for (IndexType (0 ), nVertices, [&](auto i) {
44
+ tbb::parallel_for (IndexType (0 ), nVertices, [&](IndexType i) {
45
45
auto x = kernels::InitialPositionsForSolve (
46
46
FromEigen (data.xt .col (i).head <3 >()),
47
47
FromEigen (data.vt .col (i).head <3 >()),
@@ -64,7 +64,7 @@ void Integrator::Step(Scalar dt, Index iterations, Index substeps, Scalar rho)
64
64
for (auto const & partition : data.partitions )
65
65
{
66
66
auto const nVerticesInPartition = static_cast <std::size_t >(partition.size ());
67
- tbb::parallel_for (std::size_t (0 ), nVerticesInPartition, [&](auto v) {
67
+ tbb::parallel_for (std::size_t (0 ), nVerticesInPartition, [&](IndexType v) {
68
68
auto i = partition[v];
69
69
auto begin = data.GVGp [i];
70
70
auto end = data.GVGp [i + 1 ];
@@ -104,7 +104,7 @@ void Integrator::Step(Scalar dt, Index iterations, Index substeps, Scalar rho)
104
104
105
105
if (bUseChebyshevAcceleration)
106
106
{
107
- tbb::parallel_for (IndexType (0 ), nVertices, [&](auto i) {
107
+ tbb::parallel_for (IndexType (0 ), nVertices, [&](IndexType i) {
108
108
auto xkm2eig = data.xchebm2 .col (i).head <3 >();
109
109
auto xkm1eig = data.xchebm1 .col (i).head <3 >();
110
110
auto xkeig = data.x .col (i).head <3 >();
@@ -117,7 +117,7 @@ void Integrator::Step(Scalar dt, Index iterations, Index substeps, Scalar rho)
117
117
}
118
118
// Update velocity
119
119
data.vt = data.v ;
120
- tbb::parallel_for (IndexType (0 ), nVertices, [&](auto i) {
120
+ tbb::parallel_for (IndexType (0 ), nVertices, [&](IndexType i) {
121
121
auto v = kernels::IntegrateVelocity (
122
122
FromEigen (data.xt .col (i).head <3 >()),
123
123
FromEigen (data.x .col (i).head <3 >()),
0 commit comments