Commit 21d7608f authored by Peter W. Draper's avatar Peter W. Draper

Updates so that optimized tests run on COSMA7

intel/2018
parent e83a5b66
......@@ -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);
}
}
......
......@@ -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;
......
# 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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment