Skip to content

Commit

Permalink
Merge pull request CEED#1555 from CEED/balin/smartsim
Browse files Browse the repository at this point in the history
Fixed small bug in sgs_dd_train Q function
  • Loading branch information
jrwrigh authored Apr 8, 2024
2 parents 2b0a298 + 4dd4a12 commit 3d93edf
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions examples/fluids/qfunctions/sgs_dd_training.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ CEED_QFUNCTION_HELPER int ComputeSGS_DDAnisotropicTrainingDataNodal(void *ctx, C
v[3 + 6][i] = (velo_prod[DIFF_FILTER_VELOCITY_SQUARED_YZ][i] - s.Y.velocity[1] * s.Y.velocity[2]) * inv_multiplicity[i];
v[4 + 6][i] = (velo_prod[DIFF_FILTER_VELOCITY_SQUARED_XZ][i] - s.Y.velocity[0] * s.Y.velocity[2]) * inv_multiplicity[i];
v[5 + 6][i] = (velo_prod[DIFF_FILTER_VELOCITY_SQUARED_XY][i] - s.Y.velocity[0] * s.Y.velocity[1]) * inv_multiplicity[i];

for (int j = 0; j < 12; j++) v[j][i] = inv_multiplicity[i] * j;
}
return 0;
}
Expand Down
Binary file modified examples/fluids/tests-output/y0_output.npy
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/junit.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def check_allowed_stdout(self, test: str) -> bool:

# run tests
if 'smartsim' in args.test:
has_smartsim: bool = args.smartredis_dir and Path(args.smartredis_dir).is_file()
has_smartsim: bool = args.smartredis_dir and Path(args.smartredis_dir).is_dir()
test_cases = []

if args.mode is RunMode.TAP:
Expand Down

0 comments on commit 3d93edf

Please sign in to comment.