|
Peano
|
Go to the source code of this file.
Namespaces | |
| namespace | parseTwoGrid |
| Plot residual norm vs number of DG iterations and two-grid cycles. | |
Variables | |
| list | parseTwoGrid.res_norm = [] |
| parseTwoGrid.lines = file.readlines() | |
| parseTwoGrid.next_line = lines[i + 1] | |
| str | parseTwoGrid.pattern = r"([-+]?\d*\.?\d+(?:e[-+]?\d+)?)" |
| str | parseTwoGrid.full_pattern = rf"\|r\|\_max={pattern},\s*\|r\|\_2={pattern},\s*\|r\|\_h={pattern}" |
| parseTwoGrid.norms = re.search(full_pattern, next_line) | |
| parseTwoGrid.r_max | |
| parseTwoGrid.r_2 | |
| parseTwoGrid.r_h | |
| parseTwoGrid.res_norm_array = np.array(res_norm) | |
| parseTwoGrid.label | |
| parseTwoGrid.marker | |
| int | parseTwoGrid.steps = 4 |
| parseTwoGrid.max_id = len(res_norm_array[:,0]) | |
| parseTwoGrid.cycle_ticks = np.arange(3, max_id, steps) | |
| parseTwoGrid.cycle_labels = np.arange(len(cycle_ticks)) | |
| parseTwoGrid.cycles = plt.gca().secondary_xaxis('top') | |
| parseTwoGrid.x | |
| parseTwoGrid.i | |
| parseTwoGrid.color | |
| parseTwoGrid.linestyle | |
| parseTwoGrid.linewidth | |