Skip to content

Commit

Permalink
updated version of code for pseudo spec paper
Browse files Browse the repository at this point in the history
  • Loading branch information
danielru committed Jan 3, 2025
1 parent 183d283 commit 5a1f55b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions scripts/pseudo-spectrum/figure_13-16.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@


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

defect_inf = np.zeros((1,maxiter))
defect_l2 = np.zeros((1,maxiter))
Expand Down
3 changes: 1 addition & 2 deletions scripts/pseudo-spectrum/figure_9-12.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@


Pmat, Bmat = para.get_parareal_matrix()

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

0 comments on commit 5a1f55b

Please sign in to comment.