Skip to content

Commit

Permalink
TEMP: Remove coordinates from training QF
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwrigh committed Oct 16, 2023
1 parent c537696 commit 73054ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/fluids/qfunctions/sgs_dd_training.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ CEED_QFUNCTION_HELPER int ComputeSGS_DDAnisotropicTrainingDataNodal(void *ctx, C
StateVariable state_var) {
const CeedScalar(*q)[CEED_Q_VLA] = (const CeedScalar(*)[CEED_Q_VLA])in[0];
const CeedScalar(*velo_prod)[CEED_Q_VLA] = (const CeedScalar(*)[CEED_Q_VLA])in[1];
const CeedScalar(*x)[CEED_Q_VLA] = (const CeedScalar(*)[CEED_Q_VLA])in[2];
// const CeedScalar(*x)[CEED_Q_VLA] = (const CeedScalar(*)[CEED_Q_VLA])in[2];
const CeedScalar(*grad_velo)[3][CEED_Q_VLA] = (const CeedScalar(*)[3][CEED_Q_VLA])in[3];
const CeedScalar(*A_ij_delta)[CEED_Q_VLA] = (const CeedScalar(*)[CEED_Q_VLA])in[4];
const CeedScalar(*inv_multiplicity) = (const CeedScalar(*))in[5];
Expand All @@ -43,15 +43,15 @@ CEED_QFUNCTION_HELPER int ComputeSGS_DDAnisotropicTrainingDataNodal(void *ctx, C

CeedPragmaSIMD for (CeedInt i = 0; i < Q; i++) {
const CeedScalar qi[5] = {q[0][i], q[1][i], q[2][i], q[3][i], q[4][i]};
const CeedScalar x_i[3] = {x[0][i], x[1][i], x[2][i]};
// const CeedScalar x_i[3] = {x[0][i], x[1][i], x[2][i]};
const CeedScalar grad_velo_aniso[3][3] = {
{grad_velo[0][0][i], grad_velo[0][1][i], grad_velo[0][2][i]},
{grad_velo[1][0][i], grad_velo[1][1][i], grad_velo[1][2][i]},
{grad_velo[2][0][i], grad_velo[2][1][i], grad_velo[2][2][i]}
};
const CeedScalar km_A_ij[6] = {A_ij_delta[0][i], A_ij_delta[1][i], A_ij_delta[2][i], A_ij_delta[3][i], A_ij_delta[4][i], A_ij_delta[5][i]};
const CeedScalar delta = A_ij_delta[6][i];
const State s = StateFromQ(gas, qi, x_i, state_var);
const State s = StateFromQ(gas, qi, state_var);
CeedScalar inputs[6];
CeedScalar eigenvectors[3][3], grad_velo_magnitude; // dummy variables, don't actually use them

Expand Down

0 comments on commit 73054ca

Please sign in to comment.