Skip to content

Commit

Permalink
test - fix input misordering
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylt committed Aug 22, 2024
1 parent bf84744 commit df8a6b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/t593-operator.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ int main(int argc, char **argv) {

// Setup geometric scaling
CeedQFunctionCreateInterior(ceed, 1, setup, setup_loc, &qf_setup);
CeedQFunctionAddInput(qf_setup, "x", dim * dim, CEED_EVAL_GRAD);
CeedQFunctionAddInput(qf_setup, "weight", 1, CEED_EVAL_WEIGHT);
CeedQFunctionAddInput(qf_setup, "x", dim * dim, CEED_EVAL_GRAD);
CeedQFunctionAddOutput(qf_setup, "rho", 1, CEED_EVAL_NONE);

CeedOperatorCreateAtPoints(ceed, qf_setup, CEED_QFUNCTION_NONE, CEED_QFUNCTION_NONE, &op_setup);
CeedOperatorSetField(op_setup, "x", elem_restriction_x, basis_x, CEED_VECTOR_ACTIVE);
CeedOperatorSetField(op_setup, "weight", CEED_ELEMRESTRICTION_NONE, basis_x, CEED_VECTOR_NONE);
CeedOperatorSetField(op_setup, "x", elem_restriction_x, basis_x, CEED_VECTOR_ACTIVE);
CeedOperatorSetField(op_setup, "rho", elem_restriction_q_data, CEED_BASIS_NONE, CEED_VECTOR_ACTIVE);
CeedOperatorAtPointsSetPoints(op_setup, elem_restriction_x_points, x_points);

Expand Down
4 changes: 2 additions & 2 deletions tests/t594-operator.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ int main(int argc, char **argv) {

// Setup geometric scaling
CeedQFunctionCreateInterior(ceed, 1, setup, setup_loc, &qf_setup);
CeedQFunctionAddInput(qf_setup, "x", dim * dim, CEED_EVAL_GRAD);
CeedQFunctionAddInput(qf_setup, "weight", 1, CEED_EVAL_WEIGHT);
CeedQFunctionAddInput(qf_setup, "x", dim * dim, CEED_EVAL_GRAD);
CeedQFunctionAddOutput(qf_setup, "rho", 1, CEED_EVAL_NONE);

CeedOperatorCreateAtPoints(ceed, qf_setup, CEED_QFUNCTION_NONE, CEED_QFUNCTION_NONE, &op_setup);
CeedOperatorSetField(op_setup, "x", elem_restriction_x, basis_x, CEED_VECTOR_ACTIVE);
CeedOperatorSetField(op_setup, "weight", CEED_ELEMRESTRICTION_NONE, basis_x, CEED_VECTOR_NONE);
CeedOperatorSetField(op_setup, "x", elem_restriction_x, basis_x, CEED_VECTOR_ACTIVE);
CeedOperatorSetField(op_setup, "rho", elem_restriction_q_data, CEED_BASIS_NONE, CEED_VECTOR_ACTIVE);
CeedOperatorAtPointsSetPoints(op_setup, elem_restriction_x_points, x_points);

Expand Down

0 comments on commit df8a6b4

Please sign in to comment.