2from postProcess
import parse_patch_file, reorder_array, plot_field, plot_field_dg
4if __name__ ==
"__main__":
6 v_ACG = parse_patch_file(
"Test5CG.acg-1.peano-patch-file",
"CG")
8 v_restricted_ADG = parse_patch_file(
"Test5CG.vrestrictADG-1.peano-patch-file",
"CG")
11 v_MCG = parse_patch_file(
"Test5CG.mcg-1.peano-patch-file",
"CG")
13 v_restricted_MDG = parse_patch_file(
"Test5CG.vrestrictMDG-1.peano-patch-file",
"CG")
16 v_restricted_ADG = reorder_array(v_ACG, v_restricted_ADG)
17 v_restricted_MDG = reorder_array(v_MCG, v_restricted_MDG)
19 print(f
'|R*A_DG*P*u_cg_random - A_CG*u_cg_random|_max = {np.max(np.abs(v_restricted_ADG[:,2] - v_ACG[:,2]))}')
20 print(f
'|R*M_DG*P*u_cg_random - M_CG*u_cg_random|_max = {np.max(np.abs(v_restricted_MDG[:,2] - v_MCG[:,2]))}')