HPCSys-Lab / simwave

Simulates the propagation of the acoustic wave using the finite difference method in 2D and 3D domains.
GNU General Public License v3.0
40 stars 13 forks source link

Critical section issue with multiple sources/receivers loop #38

Closed jaimesouza closed 3 years ago

jaimesouza commented 3 years ago

Fix OpenMP parallelization in sources/receivers loop. The following line should execute in serial order:

offset_src_kws_index_z += (src_z_num_points + src_x_num_points);

jaimesouza commented 3 years ago

Use serial version until fix.

jaimesouza commented 3 years ago

Fixed.