Peano
Loading...
Searching...
No Matches
parseDG.py File Reference

Go to the source code of this file.

Namespaces

namespace  parseDG
 Plot residual norm vs number of DG iterations for DG solver.
 

Variables

list parseDG.res_norm = []
 
 parseDG.lines = file.readlines()
 
 parseDG.n_mesh = None
 
 parseDG.match = re.search(r'h_min=([\d.]+)', line)
 
 parseDG.next_line = lines[i + 1]
 
str parseDG.pattern = r"([-+]?\d*\.?\d+(?:e[-+]?\d+)?)"
 
str parseDG.full_pattern = rf"\|r\|\_max={pattern},\s*\|r\|\_2={pattern},\s*\|r\|\_h={pattern}"
 
 parseDG.norms = re.search(full_pattern, next_line)
 
 parseDG.r_max
 
 parseDG.r_2
 
 parseDG.r_h
 
 parseDG.res_norm_array = np.array(res_norm)
 
 parseDG.degree = input("Enter polynomial degree: ")
 
 parseDG.label
 
 parseDG.marker
 
 parseDG.res_norm_stable = np.load(f"../../../../../PeanoData/res_norm_dg_mesh_{n_mesh}_p_{degree}_STABLE.npy")
 Compare to the stable version output ###.
 
str parseDG.dir = '../../../../../PeanoData/'
 
str parseDG.file_name = f'res_norm_dg_mesh_{n_mesh}_p_{degree}.npy'