From 3e57bf375507cecfbbd8cc422c150c999c4964b4 Mon Sep 17 00:00:00 2001
From: Giovanni La Mura <giovanni.lamura@inaf.it>
Date: Mon, 2 Sep 2024 16:36:43 +0200
Subject: [PATCH] Fix dielectric constant scale dependence in single sphere
 case

---
 src/sphere/sphere.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/sphere/sphere.cpp b/src/sphere/sphere.cpp
index 020a176c..c0e789ff 100644
--- a/src/sphere/sphere.cpp
+++ b/src/sphere/sphere.cpp
@@ -312,11 +312,12 @@ void sphere(const string& config_file, const string& data_file, const string& ou
 	    }
 	    continue; // i132
 	  }
+	  // label 125
 	  int nsh = c1->nshl[i132];
 	  int ici = (nsh + 1) / 2;
 	  if (idfc == 0) {
 	    for (int ic = 0; ic < ici; ic++)
-	      c2->dc0[ic] = sconf->get_dielectric_constant(ic, i132, 0); // WARNING: IDFC=0 is not tested!
+	      c2->dc0[ic] = sconf->get_dielectric_constant(ic, i132, jxi488); // WARNING: IDFC=0 is not tested!
 	  } else { // IDFC != 0
 	    if (jxi == 1) {
 	      for (int ic = 0; ic < ici; ic++) {
-- 
GitLab