From 075306074069b3666ec2c2bfd627c3312ded2ba8 Mon Sep 17 00:00:00 2001 From: Jesse Michel Date: Tue, 16 Jan 2024 23:12:51 -0500 Subject: [PATCH] fix argument order for eigenstuffL --- enzyme/test/Integration/Sparse/eigen_analysis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enzyme/test/Integration/Sparse/eigen_analysis.cpp b/enzyme/test/Integration/Sparse/eigen_analysis.cpp index d8dc311f957a..fa0aed5225e6 100644 --- a/enzyme/test/Integration/Sparse/eigen_analysis.cpp +++ b/enzyme/test/Integration/Sparse/eigen_analysis.cpp @@ -101,7 +101,7 @@ static T eigenstuffM(const T *__restrict__ pos0, size_t n, const int *__restrict // Calculate total energy for all faces in 3D template __attribute__((always_inline)) -static T eigenstuffL(const T *__restrict__ x, size_t num_faces, const int *__restrict__ faces, const T *__restrict__ pos0) { +static T eigenstuffL(const T *__restrict__ pos0, size_t num_faces, const int *__restrict__ faces, const T *__restrict__ x) { T sum = 0; __builtin_assume(num_faces != 0); for (size_t idx=0; idx