Skip to content

Commit

Permalink
Updates so that optimized tests run on COSMA7
Browse files Browse the repository at this point in the history
intel/2018
  • Loading branch information
pwdraper committed Jan 10, 2020
1 parent e83a5b6 commit 21d7608
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tests/testActivePair.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ void end_calculation_density(struct cell *c, const struct cosmology *cosmo) {
*/
void end_calculation_force(struct cell *c, const struct cosmology *cosmo) {
for (int pid = 0; pid < c->hydro.count; pid++) {
hydro_end_force(&c->hydro.parts[pid], cosmo);
struct part *volatile part = &c->hydro.parts[pid];
hydro_end_force(part, cosmo);
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/testCbrt.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ int main(int argc, char *argv[]) {
message("executing %i runs of each command.", num_vals);

/* Create and fill an array of floats. */
float *data = (float *)malloc(sizeof(float) * num_vals);
float *volatile data = (float *)malloc(sizeof(float) * num_vals);
for (int k = 0; k < num_vals; k++) {
data[k] = (float)rand() / RAND_MAX;
data[k] = (1.0f - data[k]) * range_min + data[k] * range_max;
Expand Down
2 changes: 1 addition & 1 deletion tests/tolerance_27_perturbed.dat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ID pos_x pos_y pos_z v_x v_y v_z rho rho_dh wcount wcount_dh div_v curl_vx curl_vy curl_vz
0 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 2e-6 1e-4 2e-4 1e-2 1e-5 3e-6 3e-6 7e-6
0 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1.5e-3 1e-5 2e-3 6e-5 3e-3 2e-3 2e-3
0 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 3e-3 1e-5 2e-3 6e-5 3e-3 2e-3 2e-3
0 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 2e-3 1e-6 1e0 1e-6 2e-6 2e-6 2e-6

0 comments on commit 21d7608

Please sign in to comment.