ouankou / llnl-work-notes

Record TODO, Work-in-Progress and Done tasks in LLNL.
GNU Affero General Public License v3.0
0 stars 0 forks source link

OpenMP implementation in 3D-LBM-AMR caused incorrect result #6

Open ouankou opened 4 years ago

ouankou commented 4 years ago

https://github.com/ouankou/3D-LBM-AMR Without OpenMP disabled, the program runs fine.

With OpenMP enabled, it gives the following error.

...
Iter: 145
Iter: 146
Iter: 147
Iter: 148
Iter: 149
Iter: 150
Iter: 151
Velocity explosion124, 0, 29
Negative density at124, 0, 29
Velocity explosion124, 0, 31
Velocity explosion125, 0, 30
Error has occured. Exiting at timestep: 151

There might be data race caused by some OpenMP code.