Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
One compiler complained that "‘kdtree’ is predetermined ‘shared’ for ‘shared’". kdtree is a const variable, which are always shared. The solution is to remove kdtree from the shared clause (not explicitly declare it as shared again). Then we also have to remove `default(none)` because otherwise other compilers complain that the data sharing attribute is not explicitly defined for kdtree. Normally, `default(none)` is recommended because it forces the programmer to consider which variables should be shared and which ones private. But since the code is finished, it is okay to remove `default(none)`. Basically, this solution (no `default(none)` and don't explicitly define the const `kdtree` as shared) is the only one that works with all compilers.
- Loading branch information