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

PointSource-specific code generation. More...

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

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.
 

Detailed Description

PointSource-specific code generation.

Reuses PDETerm.Generator's declaration/definition/GPU-offload logic as-is - PointSource.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 pointSource-specific generation behaviour later, and so point_source_term.generator reports its type as PointSource.Generator rather than the more generic PDETerm.Generator.

Definition at line 60 of file PointSource.py.


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