From 4badc3f6cf982905a54dce542f586d91706f6b0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ne=C4=8Dada?= Date: Tue, 26 Jul 2016 08:04:24 +0300 Subject: [PATCH] Output also lMax into the progress info Former-commit-id: 6ecb0132a5ef908b2c64ec4e1fbe1572136a169a --- qpms/qpms_p.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qpms/qpms_p.py b/qpms/qpms_p.py index 758accf..ea999b2 100644 --- a/qpms/qpms_p.py +++ b/qpms/qpms_p.py @@ -1127,7 +1127,6 @@ def scatter_plane_wave_rectarray(omega, epsilon_b, xN, yN, xd, yd, TMatrices, k_ if (watch_time): timec = time.time() print('%.4f: running scatter_plane_wave_rectarray' % timec, file = sys.stderr) - print('xN = %d, yN = %d' % (xN, yN), file = sys.stderr) sys.stderr.flush() nelem = TMatrices.shape[-1] if ((nelem != TMatrices.shape[-3]) or (2 != TMatrices.shape[-2]) or (2 != TMatrices.shape[-4])): @@ -1135,6 +1134,9 @@ def scatter_plane_wave_rectarray(omega, epsilon_b, xN, yN, xd, yd, TMatrices, k_ lMax = nelem2lMax(nelem) if not lMax: raise ValueError('The "nelem" dimension of T-matrix has invalid value (%d).' % nelem) + if (watch_time): + print('xN = %d, yN = %d, lMax = %d' % (xN, yN, lMax), file = sys.stderr) + sys.stderr.flush() # TODO perhaps more checks. k_out = omega * math.sqrt(epsilon_b) / c # wave number my, ny = get_mn_y(lMax)