Peano
Loading...
Searching...
No Matches
kernel_testbed.CCZ4Solver Class Reference
Inheritance diagram for kernel_testbed.CCZ4Solver:
Collaboration diagram for kernel_testbed.CCZ4Solver:

Public Member Functions

 __init__ (self, name, patch_size, min_volume_h, max_volume_h, cfl, domain_r, KOSig)
 create_action_sets (self)
 get_user_action_set_includes (self)
 We take this routine to add a few additional include statements.

Data Fields

str postprocess_updated_patch

Protected Attributes

str _my_user_includes
 _patch_size = patch_size
 _domain_r = domain_r

Detailed Description

Definition at line 30 of file kernel_testbed.py.

Constructor & Destructor Documentation

◆ __init__()

kernel_testbed.CCZ4Solver.__init__ ( self,
name,
patch_size,
min_volume_h,
max_volume_h,
cfl,
domain_r,
KOSig )

Definition at line 31 of file kernel_testbed.py.

Member Function Documentation

◆ create_action_sets()

◆ get_user_action_set_includes()

kernel_testbed.CCZ4Solver.get_user_action_set_includes ( self)

We take this routine to add a few additional include statements.

Definition at line 105 of file kernel_testbed.py.

References _my_user_includes, and get_user_action_set_includes().

Referenced by get_user_action_set_includes().

Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ _domain_r

kernel_testbed.CCZ4Solver._domain_r = domain_r
protected

Definition at line 68 of file kernel_testbed.py.

◆ _my_user_includes

str kernel_testbed.CCZ4Solver._my_user_includes
protected
Initial value:
= """
#include "exagrype/ccz4/Kernels.h"
"""

Definition at line 55 of file kernel_testbed.py.

Referenced by get_user_action_set_includes().

◆ _patch_size

kernel_testbed.CCZ4Solver._patch_size = patch_size
protected

Definition at line 67 of file kernel_testbed.py.

◆ postprocess_updated_patch

str kernel_testbed.CCZ4Solver.postprocess_updated_patch
Initial value:
= """
{
#if Dimensions==2
constexpr int itmax = {{NUMBER_OF_VOLUMES_PER_AXIS}} * {{NUMBER_OF_VOLUMES_PER_AXIS}};
#endif
#if Dimensions==3
constexpr int itmax = {{NUMBER_OF_VOLUMES_PER_AXIS}} * {{NUMBER_OF_VOLUMES_PER_AXIS}} * {{NUMBER_OF_VOLUMES_PER_AXIS}};
#endif
int index = 0;
for (int i=0;i<itmax;i++)
{
exagrype::ccz4::enforceCCZ4constraints( newQ+index );
index += {{NUMBER_OF_UNKNOWNS}} + {{NUMBER_OF_AUXILIARY_VARIABLES}};
}
}
"""

Definition at line 80 of file kernel_testbed.py.


The documentation for this class was generated from the following file: