|
Peano
|
VolumetricSource-specific code generation. More...


Additional Inherited Members | |
Public Member Functions inherited from exahype2.api.PDETerm.PDETerm.Generator | |
| __init__ (self, "PDETerm" term) | |
| 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 | |
Protected Member Functions inherited from exahype2.api.PDETerm.PDETerm.Generator | |
| str | _generate_static_offloadable_declaration (self) |
| static GPU-offloadable declaration, or the empty string if the term isn't stateless. | |
VolumetricSource-specific code generation.
Reuses PDETerm.Generator's declaration/definition/GPU-offload logic as-is - VolumetricSource.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 volumetricSource-specific generation behaviour later, and so volumetric_source_term.generator reports its type as VolumetricSource.Generator rather than the more generic PDETerm.Generator.
Definition at line 63 of file VolumetricSource.py.