Peano
Loading...
Searching...
No Matches
exahype2.api.MassMatrix.MassMatrix.Generator Class Reference

MassMatrix-specific code generation. More...

Inheritance diagram for exahype2.api.MassMatrix.MassMatrix.Generator:
Collaboration diagram for exahype2.api.MassMatrix.MassMatrix.Generator:

Additional Inherited Members

Public Member Functions inherited from exahype2.api.PDETerm.PDETerm.Generator
 __init__ (self, "PDETerm" term, solver=None)
str kernel_signature (self)
 The signature without the auxiliary variables.
str signature (self)
 The term's C++ parameter list.
str generate_declaration (self)
 Declaration text for the abstract solver header: the static, GPU-offloadable overload if this term is stateless, otherwise the virtual instance method - never both from one term.
str generate_definition (self)
 Body of the generated method: the term's implementation verbatim.
str generate_out_of_class_definitions (self, str qualified_class_name)
 Out-of-class method body for the solver's .cpp file: the static, GPU-offloadable overload if this term is stateless, otherwise the virtual instance method - mirrors generate_declaration(), never both from one term.
str generate_stub_declaration (self)
 Override declaration for the concrete solver class that the Python API generates when the user hasn't provided their own implementation of this term - the empty string if the term isn't left abstract (term.implementation is not None; a stateless term's method is static and thus never overridable in the first place, but that combination cannot occur anyway,.
str generate_stub_definition (self, str qualified_class_name)
 Out-of-class body for generate_stub_declaration(): a trace-in (with x, and normal too if the term's signature has one), a logWarning noting the method is unimplemented, a "// @todo implement" comment, and logTraceOut - or the empty string under the same condition as generate_stub_declaration().
Data Fields inherited from exahype2.api.PDETerm.PDETerm.Generator
 term = term
 solver = solver
 kernel_signature
Protected Member Functions inherited from exahype2.api.PDETerm.PDETerm.Generator
bool _has_auxiliary_variables (self)
bool _needs_kernel_adapter (self)
 The compute kernels know nothing about auxiliary variables.
str _kernel_adapter_arguments (self)
str _generate_kernel_adapter_declaration (self)
str _generate_kernel_adapter_definition (self, str qualified_class_name)
str _generate_static_offloadable_declaration (self)
 static GPU-offloadable declaration, or the empty string if the term isn't stateless.
Protected Attributes inherited from exahype2.api.PDETerm.PDETerm.Generator
 _has_auxiliary_variables

Detailed Description

MassMatrix-specific code generation.

Reuses PDETerm.Generator's declaration/definition/GPU-offload logic as-is - MassMatrix.SIGNATURE is picked up automatically. Declared explicitly (rather than left to be inherited implicitly) for the same reason as Flux.Generator: the obvious place to add massMatrix-specific generation behaviour later, and so mass_matrix_term.generator reports its type as MassMatrix.Generator rather than the more generic PDETerm.Generator.

Definition at line 60 of file MassMatrix.py.


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