From 18c5269423a1a902236e0fcfe504cb8bf1b717e3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Del=20Pino?= <stephane.delpino44@gmail.com>
Date: Tue, 23 Jul 2024 16:14:33 +0200
Subject: [PATCH] Add access to velocity for LineTransformation

---
 src/geometry/LineTransformation.hpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/geometry/LineTransformation.hpp b/src/geometry/LineTransformation.hpp
index ae0b00a8a..c9f7def71 100644
--- a/src/geometry/LineTransformation.hpp
+++ b/src/geometry/LineTransformation.hpp
@@ -59,6 +59,13 @@ class LineTransformation
     return x[0] * m_velocity + m_shift;
   }
 
+  PUGS_INLINE
+  const TinyVector<Dimension>&
+  velocity() const
+  {
+    return m_velocity;
+  }
+
   double
   velocityNorm() const
   {
-- 
GitLab