Peano
Loading...
Searching...
No Matches
benchmarks Namespace Reference

Namespaces

namespace  exahype2
 
namespace  exaparty
 
namespace  mghype
 
namespace  multigrid
 

Variables

 parser = argparse.ArgumentParser(description='Multigrid - Poisson solver')
 
 dest
 
 type
 
 int
 
 default
 
 help
 
 action
 
 False
 
 required
 
 True
 
 choices
 
 args = parser.parse_args()
 
 project
 
 matrices
 
 assembly_matrix
 
 assembly_matrix_scaling
 
 mass_matrix
 
 mass_matrix_scaling
 
 face_from_cell_projection_scaling = matrices.get_face_from_cell_matrix()
 
 cell_from_face_projection_scaling = matrices.get_cell_from_face_matrix()
 
 approximate_system_matrix_scaling = matrices.get_A_tilde()
 
 Solver_Type = None
 
str name = "DGPoisson"
 
 solver
 
 build_mode = peano4.api.output.CompileMode.ASSERTS
 
float cube_size = 1.0
 
int max_iterations = 10
 
 dimensions = 2
 
 offset
 
 domain_size
 
 plot_after_each_mesh_sweep
 
 max_trees = args.max_trees
 
 tree_levels = toolbox.loadbalancing.api.real_mesh_size_and_level(float(args.meshsize),1.0)[1]
 
 split_iteration = toolbox.loadbalancing.api.compute_regular_mesh_construction_grid_construction_sweeps(tree_levels)
 
list new_partitions = [ int(3**(dimensions*tree_levels)/2) ]
 
list target_ranks = [0 for x in new_partitions]
 
 peano4_project = project.generate_Peano4_project(args.verbose)
 

Variable Documentation

◆ action

benchmarks.action

Definition at line 19 of file benchmarks.py.

◆ approximate_system_matrix_scaling

benchmarks.approximate_system_matrix_scaling = matrices.get_A_tilde()

Definition at line 51 of file benchmarks.py.

◆ args

benchmarks.args = parser.parse_args()

Definition at line 29 of file benchmarks.py.

◆ assembly_matrix

benchmarks.assembly_matrix

Definition at line 44 of file benchmarks.py.

◆ assembly_matrix_scaling

benchmarks.assembly_matrix_scaling

Definition at line 44 of file benchmarks.py.

◆ build_mode

benchmarks.build_mode = peano4.api.output.CompileMode.ASSERTS

Definition at line 108 of file benchmarks.py.

◆ cell_from_face_projection_scaling

benchmarks.cell_from_face_projection_scaling = matrices.get_cell_from_face_matrix()

Definition at line 49 of file benchmarks.py.

◆ choices

benchmarks.choices

Definition at line 25 of file benchmarks.py.

◆ cube_size

float benchmarks.cube_size = 1.0

Definition at line 115 of file benchmarks.py.

◆ default

benchmarks.default

Definition at line 17 of file benchmarks.py.

◆ dest

benchmarks.dest

Definition at line 17 of file benchmarks.py.

◆ dimensions

int benchmarks.dimensions = 2

Definition at line 120 of file benchmarks.py.

◆ domain_size

benchmarks.domain_size

Definition at line 122 of file benchmarks.py.

◆ face_from_cell_projection_scaling

benchmarks.face_from_cell_projection_scaling = matrices.get_face_from_cell_matrix()

Definition at line 47 of file benchmarks.py.

◆ False

benchmarks.False

Definition at line 19 of file benchmarks.py.

◆ help

benchmarks.help

Definition at line 17 of file benchmarks.py.

◆ int

benchmarks.int

Definition at line 17 of file benchmarks.py.

◆ mass_matrix

benchmarks.mass_matrix

Definition at line 45 of file benchmarks.py.

◆ mass_matrix_scaling

benchmarks.mass_matrix_scaling

Definition at line 45 of file benchmarks.py.

◆ matrices

benchmarks.matrices
Initial value:
2 args.dimensions,
3 args.poly_degree,
4 1, # Unknowns per cell dof. Scalar PDE here
5 2, # We use the penalty formulation (see docu in tutorials)
6 2,
7)

Definition at line 36 of file benchmarks.py.

◆ max_iterations

int benchmarks.max_iterations = 10

Definition at line 116 of file benchmarks.py.

◆ max_trees

str benchmarks.max_trees = args.max_trees

Definition at line 128 of file benchmarks.py.

◆ name

str benchmarks.name = "DGPoisson"

Definition at line 62 of file benchmarks.py.

◆ new_partitions

list benchmarks.new_partitions = [ int(3**(dimensions*tree_levels)/2) ]

Definition at line 151 of file benchmarks.py.

◆ offset

benchmarks.offset

Definition at line 121 of file benchmarks.py.

◆ parser

benchmarks.parser = argparse.ArgumentParser(description='Multigrid - Poisson solver')

Definition at line 16 of file benchmarks.py.

◆ peano4_project

benchmarks.peano4_project = project.generate_Peano4_project(args.verbose)

Definition at line 174 of file benchmarks.py.

◆ plot_after_each_mesh_sweep

benchmarks.plot_after_each_mesh_sweep

Definition at line 123 of file benchmarks.py.

◆ project

benchmarks.project
Initial value:
1= mghype.matrixfree.api.Project( project_name = "DGPointwise",
2 namespace = [ "benchmarks", "mghype", "poisson" ],
3 executable = args.output
4 )

Definition at line 31 of file benchmarks.py.

◆ required

benchmarks.required

Definition at line 23 of file benchmarks.py.

◆ solver

benchmarks.solver
Initial value:
1= Solver_Type(
2 name = name,
3 dimensions = args.dimensions,
4 poly_degree = args.poly_degree,
5 unknowns_per_cell_node = 1,
6 solutions_per_face_node = 2,
7 projections_per_face_node = 2,
8 min_h = args.meshsize,
9 max_h = args.meshsize,
10 assembly_matrix= assembly_matrix,
11 assembly_matrix_scaling = assembly_matrix_scaling,
12 mass_matrix = mass_matrix,
13 mass_matrix_scaling = mass_matrix_scaling,
14 face_from_cell_projection = face_from_cell_projection,
15 face_from_cell_projection_scaling = face_from_cell_projection_scaling,
16 cell_from_face_projection = cell_from_face_projection,
17 cell_from_face_projection_scaling = cell_from_face_projection_scaling,
18 riemann_matrix = matrices.get_face_face_riemann_problem_matrix(),
19 boundary_matrix = matrices.get_boundary_matrix(),
20 cell_relaxation = 0.5,
21 face_relaxation = 1.0,
22 approximate_system_matrix = approximate_system_matrix,
23 approximate_system_matrix_scaling = approximate_system_matrix_scaling,
24 solver_tolerance = 0.01,
25 integration_points = 0.5*(matrices.get_nodal_points_1d() + 1.0), # Should be specified in [0,1] interval
26 enable_plotting = False,
27)

Definition at line 74 of file benchmarks.py.

◆ Solver_Type

benchmarks.Solver_Type = None

Definition at line 54 of file benchmarks.py.

◆ split_iteration

benchmarks.split_iteration = toolbox.loadbalancing.api.compute_regular_mesh_construction_grid_construction_sweeps(tree_levels)

Definition at line 147 of file benchmarks.py.

◆ target_ranks

list benchmarks.target_ranks = [0 for x in new_partitions]

Definition at line 159 of file benchmarks.py.

◆ tree_levels

benchmarks.tree_levels = toolbox.loadbalancing.api.real_mesh_size_and_level(float(args.meshsize),1.0)[1]

Definition at line 146 of file benchmarks.py.

◆ True

benchmarks.True

Definition at line 23 of file benchmarks.py.

◆ type

benchmarks.type

Definition at line 17 of file benchmarks.py.