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


Public Member Functions | |
| str | generate_stub_definition (self, str qualified_class_name) |
| Same as PDETerm.Generator.generate_stub_definition(), but traces normal only. | |
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,. | |
Additional Inherited Members | |
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. | |
GradientRefinement-specific code generation.
Reuses PDETerm.Generator: GradientRefinement.SIGNATURE is picked up automatically. Only the stub for the user's solver differs, as the term is not handed any position x which the stub could trace.
Definition at line 72 of file GradientRefinement.py.
| str exahype2.api.GradientRefinement.GradientRefinement.Generator.generate_stub_definition | ( | self, | |
| str | qualified_class_name | ||
| ) |
Same as PDETerm.Generator.generate_stub_definition(), but traces normal only.
Reimplemented from exahype2.api.PDETerm.PDETerm.Generator.
Definition at line 83 of file GradientRefinement.py.
References exahype2.api.PDETerm.PDETerm.Generator.term.