Skip to content

Commit 20eb643

Browse files
committed
bugfix with new setter
1 parent a759ef6 commit 20eb643

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/volume_mesh.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -869,10 +869,11 @@ void VolumeMesh::computeConnectivityData() {
869869
baryCoord.setHostValue(3 * iData + 2, glm::vec3{0., 0., 1.});
870870

871871
// Mark edges as real or not
872+
glm::vec3 eReal{faceRealEdges[f][j][0] ? 1.0f : 0.0f,
873+
faceRealEdges[f][j][1] ? 1.0f : 0.0f,
874+
faceRealEdges[f][j][2] ? 1.0f : 0.0f};
872875
for (int k = 0; k < 3; k++) {
873-
for (int c = 0; c < 3; c++) {
874-
edgeIsReal.setHostValue(3 * iData + k, c, faceRealEdges[f][j][c] ? 1.0f : 0.0f);
875-
}
876+
edgeIsReal.setHostValue(3 * iData + k, eReal);
876877
}
877878
}
878879

0 commit comments

Comments
 (0)