From 1aa1e07f30275a47ae41f27b9773e402e444db87 Mon Sep 17 00:00:00 2001
From: Valentin Bruch <valentin.bruch@rwth-aachen.de>
Date: Thu, 24 Nov 2022 15:37:51 +0100
Subject: [PATCH] version 14.15: set tk=1 in 2nd order truncation

---
 README.md   | 3 +++
 kondo.py    | 2 +-
 settings.py | 2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 8f52ad7..e0068c6 100644
--- a/README.md
+++ b/README.md
@@ -71,6 +71,9 @@ Depending on the extra options the duration varies:
 | `solve_integral_exactly`, `include_Ga`, `ignore_symmetries` | 122.82 |
 
 ## Versions
+version 14.15:
+* set Tk=1 in second order truncation
+
 version 14.x:
 * based on versions 8 and 13
 * implements the RG for the system with and without unitary transformation (version 8 and 13)
diff --git a/kondo.py b/kondo.py
index f8a35c2..69e8663 100644
--- a/kondo.py
+++ b/kondo.py
@@ -138,7 +138,7 @@ def gen_init_matrix(nmax, *fourier_coef, resonant_dc_shift=0, resolution=5000):
 
 def solveTV0_scalar_order2(
         d,
-        tk = 0.32633176486110027,
+        tk = 1, # TODO: prior to version 14.15 this was 0.32633176486110027
         rtol = 1e-8,
         atol = 1e-10,
         full_output = False,
diff --git a/settings.py b/settings.py
index 34fc36d..81f8e9d 100644
--- a/settings.py
+++ b/settings.py
@@ -86,7 +86,7 @@ class GlobalFlags:
         BASEPATH = os.path.abspath("data"),
         DB_CONNECTION_STRING = "sqlite:///" + os.path.join(os.path.abspath("data"), "frtrg.sqlite"),
         FILENAME = "frtrg-04.h5",
-        VERSION = (14, 14, -1, -1),
+        VERSION = (14, 15, -1, -1),
         MIN_VERSION = (14, 0),
         LOG_TIME = 10, # in s
         ENFORCE_SYMMETRIC = 0,
-- 
GitLab