Skip to content

Commit

Permalink
op - reorder AtPoints QFunction for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylt committed Nov 28, 2023
1 parent 7b4aac2 commit 0f348f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/t591-operator.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
#include <ceed.h>

CEED_QFUNCTION(setup)(void *ctx, const CeedInt Q, const CeedScalar *const *in, CeedScalar *const *out) {
const CeedScalar(*J)[2][2] = (const CeedScalar(*)[2][2])in[0];
CeedScalar *q_data = out[0];
const CeedScalar(*J)[2][CEED_Q_VLA] = (const CeedScalar(*)[2][CEED_Q_VLA])in[0];
CeedScalar *q_data = out[0];

// Quadrature point loop
CeedPragmaSIMD for (CeedInt i = 0; i < Q; i++) { q_data[i] = J[i][0][0] * J[i][1][0] - J[i][0][1] * J[i][1][1]; }
CeedPragmaSIMD for (CeedInt i = 0; i < Q; i++) { q_data[i] = J[0][0][i] * J[1][1][i] - J[0][1][i] * J[1][0][i]; }
return 0;
}

Expand Down

0 comments on commit 0f348f9

Please sign in to comment.