gitlab is upgraded to version 13, please report any issues and enjoy

Commit 1e77ec7a authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Better function signature for space_getsid()

parent 6c6a5af1
......@@ -39,14 +39,13 @@
* @param s The space
* @param ci Pointer to first #cell.
* @param cj Pointer second #cell.
* @param shift Vector from ci to cj.
* @param shift (return) Vector from ci to cj.
*
* @return The shift ID and set shift, may or may not swap ci and cj.
*/
__attribute__((always_inline)) INLINE static int space_getsid(struct space *s,
struct cell **ci,
struct cell **cj,
double *shift) {
__attribute__((always_inline, nonnull)) INLINE static int space_getsid(
const struct space *s, struct cell **ci, struct cell **cj,
double shift[3]) {
/* Get the relative distance between the pairs, wrapping. */
const int periodic = s->periodic;
......
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