Skip to content

Commit 924cfc4

Browse files
committed
- Linux fix
1 parent 09c39a4 commit 924cfc4

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

SPlisHSPlasH/Common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ using AlignedBox2r = Eigen::AlignedBox<Real, 2>;
3737
using AlignedBox3r = Eigen::AlignedBox<Real, 3>;
3838
using AngleAxisr = Eigen::AngleAxis<Real>;
3939
using Quaternionr = Eigen::Quaternion<Real>;
40+
using VectorXr = Eigen::Matrix<Real, -1, 1, 0, -1, 1>;
4041

4142
//allocators to be used in STL collections containing Eigen structures
4243
using Alloc_Vector2r = Eigen::aligned_allocator<Vector2r>;

SPlisHSPlasH/Utilities/MatrixFreeSolver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ namespace SPH
252252
#pragma omp for schedule(static)
253253
for (int i = 0; i < (int)m_dim; i++)
254254
{
255-
x.block<3, 1>(3 * i, 0) = m_invDiag[i] * b.block<3, 1>(3 * i, 0);
255+
static_cast<VectorXr&>(x).block<3, 1>(3 * i, 0) = m_invDiag[i] * static_cast<const VectorXr&>(b).block<3, 1>(3 * i, 0);
256256
}
257257
}
258258
}

0 commit comments

Comments
 (0)