From afb0b2010bbc8579a13d49b9c20495b9028f22a9 Mon Sep 17 00:00:00 2001
From: PabloIbannez
Date: Fri, 26 Jul 2024 17:09:05 +0200
Subject: [PATCH] Made functions inline to resolve multiple definition issues
during compilation and linking
---
src/misc/BoundaryValueProblem/BVPMemory.cuh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/misc/BoundaryValueProblem/BVPMemory.cuh b/src/misc/BoundaryValueProblem/BVPMemory.cuh
index 1fafcdc9..d4f49227 100644
--- a/src/misc/BoundaryValueProblem/BVPMemory.cuh
+++ b/src/misc/BoundaryValueProblem/BVPMemory.cuh
@@ -19,7 +19,7 @@ namespace uammd{
};
namespace detail{
- size_t computeExtraAlignment(size_t addressOffset, size_t alignment){
+ inline size_t computeExtraAlignment(size_t addressOffset, size_t alignment){
size_t extraAlignment = 0;
bool isMissAligned = addressOffset%alignment != 0;
if(isMissAligned)
@@ -120,4 +120,4 @@ namespace uammd{
}
}
-#endif
\ No newline at end of file
+#endif