Loading...
Searching...
No Matches
kernel_helpers Namespace Reference

Functions

 make_float_symbol (name)
 
 make_wedge_surface_physical_coord_assignments (local_subdomain_id, x_cell, y_cell, scalar_type)
 
 make_rad_assignments (local_subdomain_id, r_cell)
 
 make_extract_local_wedge_scalar_assignments (local_subdomain_id, x_cell, y_cell, r_cell, global_array, scalar_type)
 
 make_extract_local_wedge_vector_assignments (local_subdomain_id, x_cell, y_cell, r_cell, global_array, scalar_type)
 
 make_atomic_add_local_wedge_scalar_coefficients (local_subdomain_id, x_cell, y_cell, r_cell, dsts)
 
 make_atomic_add_local_wedge_vector_coefficients (local_subdomain_id, x_cell, y_cell, r_cell, dsts)
 
 make_boundary_handling (matrix_name)
 
 make_diagonal_handling (matrix_name)
 
 make_hex_assignments (local_subdomain_id, x_cell, y_cell, r_cell, prefix="src_local_hex")
 

Variables

list quad_points_3x2
 
list quad_weights_3x2
 
list quad_points_1x1 = [[1.0 / 3.0, 1.0 / 3.0, 0.0]]
 
list quad_weights_1x1 = [1.0]
 

Function Documentation

◆ make_atomic_add_local_wedge_scalar_coefficients()

kernel_helpers.make_atomic_add_local_wedge_scalar_coefficients (   local_subdomain_id,
  x_cell,
  y_cell,
  r_cell,
  dsts 
)

◆ make_atomic_add_local_wedge_vector_coefficients()

kernel_helpers.make_atomic_add_local_wedge_vector_coefficients (   local_subdomain_id,
  x_cell,
  y_cell,
  r_cell,
  dsts 
)

◆ make_boundary_handling()

kernel_helpers.make_boundary_handling (   matrix_name)

◆ make_diagonal_handling()

kernel_helpers.make_diagonal_handling (   matrix_name)

◆ make_extract_local_wedge_scalar_assignments()

kernel_helpers.make_extract_local_wedge_scalar_assignments (   local_subdomain_id,
  x_cell,
  y_cell,
  r_cell,
  global_array,
  scalar_type 
)

◆ make_extract_local_wedge_vector_assignments()

kernel_helpers.make_extract_local_wedge_vector_assignments (   local_subdomain_id,
  x_cell,
  y_cell,
  r_cell,
  global_array,
  scalar_type 
)

◆ make_float_symbol()

kernel_helpers.make_float_symbol (   name)

◆ make_hex_assignments()

kernel_helpers.make_hex_assignments (   local_subdomain_id,
  x_cell,
  y_cell,
  r_cell,
  prefix = "src_local_hex" 
)
Generate unrolled assignments for src_local_hex based on the given offsets.

Returns:
    list of (lhs_symbol, rhs_expression) pairs

◆ make_rad_assignments()

kernel_helpers.make_rad_assignments (   local_subdomain_id,
  r_cell 
)

◆ make_wedge_surface_physical_coord_assignments()

kernel_helpers.make_wedge_surface_physical_coord_assignments (   local_subdomain_id,
  x_cell,
  y_cell,
  scalar_type 
)

Variable Documentation

◆ quad_points_1x1

list kernel_helpers.quad_points_1x1 = [[1.0 / 3.0, 1.0 / 3.0, 0.0]]

◆ quad_points_3x2

list kernel_helpers.quad_points_3x2
Initial value:
1= [
2 [0.6666666666666666, 0.1666666666666667, -0.5773502691896257],
3 [0.1666666666666667, 0.6666666666666666, -0.5773502691896257],
4 [0.1666666666666667, 0.1666666666666667, -0.5773502691896257],
5 [0.6666666666666666, 0.1666666666666667, 0.5773502691896257],
6 [0.1666666666666667, 0.6666666666666666, 0.5773502691896257],
7 [0.1666666666666667, 0.1666666666666667, 0.5773502691896257],
8]

◆ quad_weights_1x1

list kernel_helpers.quad_weights_1x1 = [1.0]

◆ quad_weights_3x2

list kernel_helpers.quad_weights_3x2
Initial value:
1= [
2 0.1666666666666667,
3 0.1666666666666667,
4 0.1666666666666667,
5 0.1666666666666667,
6 0.1666666666666667,
7 0.1666666666666667,
8]