From d70885fa0e321f66dbb6042a089a13f5991213f0 Mon Sep 17 00:00:00 2001
From: Antoine Hoffmann <antoine.hoffmann@epfl.ch>
Date: Tue, 31 Jan 2023 13:58:53 +0100
Subject: [PATCH] checked the nonlinear term with chap 2.2 of Tilman Dannert
 2004 thesis.

---
 src/geometry_mod.F90 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/geometry_mod.F90 b/src/geometry_mod.F90
index 9774219b..4c90e1e5 100644
--- a/src/geometry_mod.F90
+++ b/src/geometry_mod.F90
@@ -167,7 +167,7 @@ CONTAINS
 
         ! Nonlinear term prefactor
         ! (according to my derivations, there should be a metric dependent factor in front of the Poisson bracket)
-        hatB_NL(iz,eo) = 1._dp !Jacobian(iz,eo)*(gxx(iz,eo)*gyy(iz,eo) - gxy(iz,eo)**2)/hatB(iz,eo)
+        hatB_NL(iz,eo) = (gxx(iz,eo)*gyy(iz,eo) - gxy(iz,eo)**2)
 
       ENDDO
     ENDDO
-- 
GitLab