From 4f8d7614a9fe8369d48f72f4d7382f9af629549f Mon Sep 17 00:00:00 2001 From: Karthik Chandrashekara Date: Wed, 13 Nov 2024 09:28:12 +0100 Subject: [PATCH] Corrected calculation of fs. --- Bogoliubov-deGennes-Solver/solveBogoliubovdeGennesIn2D.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bogoliubov-deGennes-Solver/solveBogoliubovdeGennesIn2D.m b/Bogoliubov-deGennes-Solver/solveBogoliubovdeGennesIn2D.m index 11e1757..8458d8d 100644 --- a/Bogoliubov-deGennes-Solver/solveBogoliubovdeGennesIn2D.m +++ b/Bogoliubov-deGennes-Solver/solveBogoliubovdeGennesIn2D.m @@ -56,7 +56,7 @@ end % Obtain f from g f = zeros(size(g)); for ii = 1:Neigs - f(:,ii) = muHC(g(:,ii)) + (2.*X(g(:,ii))); + f(:,ii) = (1/evals(ii)) * (muHC(g(:,ii)) + (2.*X(g(:,ii)))); end % Obtain u and v from f and g