Skip to content

Commit 5a1f55b

Browse files
committed
updated version of code for pseudo spec paper
1 parent 183d283 commit 5a1f55b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/pseudo-spectrum/figure_13-16.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484

8585

8686
Pmat, Bmat = para.get_parareal_matrix()
87+
print("|| E ||_2 = %5.2f" % np.linalg.norm(Pmat.todense(),2))
8788

8889
defect_inf = np.zeros((1,maxiter))
8990
defect_l2 = np.zeros((1,maxiter))

scripts/pseudo-spectrum/figure_9-12.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282

8383

8484
Pmat, Bmat = para.get_parareal_matrix()
85-
85+
print("|| E ||_2 = %5.2f" % np.linalg.norm(Pmat.todense(), 2))
8686
nreal = 20
8787
nimag = 20
8888
lambda_real = np.linspace(-3.0, 3.0, nreal)
@@ -96,7 +96,6 @@
9696
Also, the eps-isolines are very much circles.
9797
QUESTION: can we work out the D matrix above and say something about how it looks like for diffusive/non-diffusive problems?
9898
'''
99-
print("2-Norm of E: %5.3f" % np.linalg.norm(Pmat.todense(),2))
10099
for i in range(0,nreal):
101100
for j in range(0,nimag):
102101
z = lambda_real[i] + 1j*lambda_imag[j]

0 commit comments

Comments
 (0)