Output also lMax into the progress info
Former-commit-id: 6ecb0132a5ef908b2c64ec4e1fbe1572136a169a
This commit is contained in:
parent
7ae729b1b1
commit
4badc3f6cf
|
@ -1127,7 +1127,6 @@ def scatter_plane_wave_rectarray(omega, epsilon_b, xN, yN, xd, yd, TMatrices, k_
|
||||||
if (watch_time):
|
if (watch_time):
|
||||||
timec = time.time()
|
timec = time.time()
|
||||||
print('%.4f: running scatter_plane_wave_rectarray' % timec, file = sys.stderr)
|
print('%.4f: running scatter_plane_wave_rectarray' % timec, file = sys.stderr)
|
||||||
print('xN = %d, yN = %d' % (xN, yN), file = sys.stderr)
|
|
||||||
sys.stderr.flush()
|
sys.stderr.flush()
|
||||||
nelem = TMatrices.shape[-1]
|
nelem = TMatrices.shape[-1]
|
||||||
if ((nelem != TMatrices.shape[-3]) or (2 != TMatrices.shape[-2]) or (2 != TMatrices.shape[-4])):
|
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)
|
lMax = nelem2lMax(nelem)
|
||||||
if not lMax:
|
if not lMax:
|
||||||
raise ValueError('The "nelem" dimension of T-matrix has invalid value (%d).' % nelem)
|
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.
|
# TODO perhaps more checks.
|
||||||
k_out = omega * math.sqrt(epsilon_b) / c # wave number
|
k_out = omega * math.sqrt(epsilon_b) / c # wave number
|
||||||
my, ny = get_mn_y(lMax)
|
my, ny = get_mn_y(lMax)
|
||||||
|
|
Loading…
Reference in New Issue