To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 34cd8a29 authored by ahuegli's avatar ahuegli

bug fixing

parent 7d78fc2b
......@@ -329,12 +329,11 @@ void WaveEquation::run(double t_end) {
int i1_max = N;
int i2_max = N;*/
int tid = omp_get_thread_num();
int ti0, ti1, ti2;
thread_coordinates(tid, threads_per_dim, ti0, ti1, ti2);
int nloc = N / threads_per_dim;
int i0_min = ti0 * nloc;
int i1_min = ti1 * nloc;
int i2_min = ti2 * nloc;
......@@ -383,7 +382,7 @@ void WaveEquation::run(double t_end) {
// ********************************************************************************
// Question 3: You will need to add the following barrier (why?)
// ********************************************************************************
//#pragma omp barrier
#pragma omp barrier
std::swap(u_new, u);
std::swap(u_new, u_old);
......
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