Skip to content

Commit 13395b7

Browse files
authored
Merge pull request #18 from openkim/hot_fix
FIX computing inverse matrix
2 parents 054b0ac + 7687cb4 commit 13395b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kimpy/neighlist/helper.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ inline int inverse(double const * mat, double * const inv)
7676
inv[1] = det2(mat[2], mat[1], mat[8], mat[7]);
7777
inv[2] = det2(mat[1], mat[2], mat[4], mat[5]);
7878
inv[3] = det2(mat[5], mat[3], mat[8], mat[6]);
79-
inv[4] = det2(mat[0], mat[3], mat[6], mat[8]);
79+
inv[4] = det2(mat[0], mat[2], mat[6], mat[8]);
8080
inv[5] = det2(mat[2], mat[0], mat[5], mat[3]);
8181
inv[6] = det2(mat[3], mat[4], mat[6], mat[7]);
8282
inv[7] = det2(mat[1], mat[0], mat[7], mat[6]);

0 commit comments

Comments
 (0)