diff options
author | schnetter <schnetter@0f49ee68-0e4f-0410-9b9c-b2c123ded7ef> | 2012-05-06 22:14:23 +0000 |
---|---|---|
committer | schnetter <schnetter@0f49ee68-0e4f-0410-9b9c-b2c123ded7ef> | 2012-05-06 22:14:23 +0000 |
commit | 66261fe7dc204aab0d0b8a03b39a4e604a6db498 (patch) | |
tree | 774093ff98e9dea96f46ef96b00fb6b83742c8bf /src/molecule_posn.c | |
parent | 18bc4665359045d9ef115c7817b2c6b76ab0cfc5 (diff) |
Parallelize AEILocalInterp with OpenMP
This leads to a slight change in behaviour. Currently, AEILocalInterp
traverses the list of points sequentially, and aborts when the first
error is encountered. After parallelisation, there is no fixed order
in which the points are traversed, and if several errors are
encountered, any one of the errors may be returned, not necessarily
the first. I am not aware of any thorn that would or should rely on
such an ordering.
This patch also adds "restrict" and "const" statements that may
improve performance as it gives the compiler more information about
dependencies between pointers.
git-svn-id: http://svn.aei.mpg.de/numrel/AEIThorns/AEILocalInterp/trunk@55 0f49ee68-0e4f-0410-9b9c-b2c123ded7ef
Diffstat (limited to 'src/molecule_posn.c')
-rw-r--r-- | src/molecule_posn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/molecule_posn.c b/src/molecule_posn.c index 553a176..e6528ad 100644 --- a/src/molecule_posn.c +++ b/src/molecule_posn.c @@ -188,7 +188,7 @@ int AEILocalInterp_molecule_posn(fp grid_origin, fp grid_delta, fp boundary_extrapolation_tolerance_max, fp x, int debug, - int* i_center, fp* x_rel) + int *restrict i_center, fp *restrict x_rel) { /* * ***** IMPORTANT ***** |