Skip to content

Commit a5655fc

Browse files
author
Daniel Ruprecht
committed
more output added to acoustic-advection test script
1 parent a33fbeb commit a5655fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/advac_disp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def normalise(R, T, targets, verbose=False, exact=None):
7878

7979
imax = 21
8080
#imax = Nsamples
81-
for i in range(17,imax):
81+
for i in range(0,imax):
8282
print ("---- i = %2i ---- " % i)
8383
Lmat = -1j*k_vec[i]*np.array([ [Uadv, cspeed], [cspeed, Uadv] ], dtype = 'complex')
8484

@@ -136,6 +136,7 @@ def normalise(R, T, targets, verbose=False, exact=None):
136136
omegas_diag_normalised = findomega(Dtilde)
137137
err_omega = np.linalg.norm(omegas_diag_unit - omegas_diag_normalised, np.inf)
138138
print ("Defect between frequencies from diagonalised normalised system and diagonalised unit intervall: %5.3E" % err_omega)
139+
assert err_omega<1e-12, "Mismatch in frequencies..."
139140
# end of loop body over k_vec
140141

141142
print "------"

0 commit comments

Comments
 (0)