From 323bcf88ad224f5a77df7f4e3d4c25e46055ffcf Mon Sep 17 00:00:00 2001 From: jan Date: Mon, 15 Jan 2018 22:44:26 -0800 Subject: [PATCH] Propagate mu correctly --- fdfd_tools/bloch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdfd_tools/bloch.py b/fdfd_tools/bloch.py index aabc96c..cbfdf1c 100644 --- a/fdfd_tools/bloch.py +++ b/fdfd_tools/bloch.py @@ -389,7 +389,7 @@ def find_k(frequency: float, def get_f(k0_mag: float, band: int = 0): k0 = direction * k0_mag - n, _v = eigsolve(band + 1, k0, G_matrix=G_matrix, epsilon=epsilon) + n, _v = eigsolve(band + 1, k0, G_matrix=G_matrix, epsilon=epsilon, mu=mu) f = numpy.sqrt(numpy.abs(numpy.real(n[band]))) return f