From 995ca43e2ac31a470856c54439df837277090425 Mon Sep 17 00:00:00 2001
From: weisse02 <andreas.weissenbrunner@ptb.de>
Date: Fri, 20 Jan 2023 15:14:37 +0100
Subject: [PATCH] prepare speedup for interpolation

---
 Flow_class.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Flow_class.py b/Flow_class.py
index b6fdf6e..f7e2b6c 100644
--- a/Flow_class.py
+++ b/Flow_class.py
@@ -234,8 +234,10 @@ class Elbow_profile():
         self.regint_ux   = []
         self.regint_uy   = []
         self.regint_uz   = []
-        methodstr = 'linear'
+        methodstr = 'linear' # 'linear' 'cubic' or 'quintic' are possible
         # the spline interpolation attention it can only evaluate ordered input arrays 
+        # RegularGridInterpolator can also handle multiple output values --> all modes a loop is not neccessary!!!!!
+        # to do: Remove the loops, regint is not a list but a interpolater object 
         if case=="SingleElbow":
             for i in range(0,self.Nmodes):
                 # self.splineint_ux.append(interpol.RectBivariateSpline(self.dist,self.Rk,self.dl,pod_x["coeffs"][:,:,i].T,kx= polydeg,ky=polydeg ))
-- 
GitLab