|
Peano
|
Realise patch via smart pointers. More...


Public Member Functions | |
| __init__ (self, patch, float_type="double") | |
| get_stack_container (self) | |
| construct_output (self, output) | |
| get_header_file_include (self) | |
| This is the include statement for the data container. | |
| Public Member Functions inherited from peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray | |
| __init__ (self, patch, float_type="double") | |
| includes Includes to be added to the generated file. | |
| __str__ (self) | |
Additional Inherited Members | |
| Data Fields inherited from peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray | |
| data = patch | |
| str | merge_method_definition = "" |
| str | send_condition = "true" |
| str | receive_and_merge_condition = "true" |
| str | load_store_compute_flag = "::peano4::grid::LoadStoreComputeFlag::LoadFromInputStream_ProvideToCalculations_StoreToOutputStream" |
| str | includes = "" |
| float_type = FloatTypes(float_type) | |
| Protected Member Functions inherited from peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray | |
| _get_dictionary_for_output (self) | |
Realise patch via smart pointers.
Converter which maps the patch 1:1 onto a double array administered through a smart pointer. This is an alternative to the patch realisation on the call stack, which can become really costly and lead to call stack overflows.
Even though the name of the class does not highlight this, we use smart pointers here, i.e. we do not only store data on the heap. This means
Definition at line 11 of file PatchToDoubleArrayOnHeap.py.
| peano4.datamodel.PatchToDoubleArrayOnHeap.PatchToDoubleArrayOnHeap.__init__ | ( | self, | |
| patch, | |||
| float_type = "double" ) |
Definition at line 27 of file PatchToDoubleArrayOnHeap.py.
References __init__().
Referenced by __init__().


| peano4.datamodel.PatchToDoubleArrayOnHeap.PatchToDoubleArrayOnHeap.construct_output | ( | self, | |
| output ) |
Reimplemented from peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.
Definition at line 38 of file PatchToDoubleArrayOnHeap.py.
References peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray._get_dictionary_for_output(), convert::data::DataSet.data, convert::data::PatchData.data, exahype2::EnclaveBookkeeping::Entry.data, peano4.datamodel.DaStGen2.DaStGen2.data, peano4.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool.data, peano4.datamodel.DynamicArrayOverPrimitivesToStdVector.DynamicArrayOverPrimitivesToStdVector.data, peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.data, toolbox::blockstructured::GlobalDatabase::Entry.data, toolbox::curvi::Edge.data, toolbox::particles::memorypool::GlobalContinuousMemoryPool< T >::GlobalMemory.data, and toolbox::particles::TrajectoryDatabase::Entry.data.

| peano4.datamodel.PatchToDoubleArrayOnHeap.PatchToDoubleArrayOnHeap.get_header_file_include | ( | self | ) |
This is the include statement for the data container.
It is not something directly generated but how to use the generated code.
Reimplemented from peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.
Definition at line 60 of file PatchToDoubleArrayOnHeap.py.
References convert::data::DataSet.data, convert::data::PatchData.data, exahype2::EnclaveBookkeeping::Entry.data, peano4.datamodel.DaStGen2.DaStGen2.data, peano4.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool.data, peano4.datamodel.DynamicArrayOverPrimitivesToStdVector.DynamicArrayOverPrimitivesToStdVector.data, peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.data, toolbox::blockstructured::GlobalDatabase::Entry.data, toolbox::curvi::Edge.data, toolbox::particles::memorypool::GlobalContinuousMemoryPool< T >::GlobalMemory.data, and toolbox::particles::TrajectoryDatabase::Entry.data.
| peano4.datamodel.PatchToDoubleArrayOnHeap.PatchToDoubleArrayOnHeap.get_stack_container | ( | self | ) |
Reimplemented from peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.
Definition at line 31 of file PatchToDoubleArrayOnHeap.py.
References convert::data::DataSet.data, convert::data::PatchData.data, exahype2::EnclaveBookkeeping::Entry.data, peano4.datamodel.DaStGen2.DaStGen2.data, peano4.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool.data, peano4.datamodel.DynamicArrayOverPrimitivesToStdVector.DynamicArrayOverPrimitivesToStdVector.data, peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.data, toolbox::blockstructured::GlobalDatabase::Entry.data, toolbox::curvi::Edge.data, toolbox::particles::memorypool::GlobalContinuousMemoryPool< T >::GlobalMemory.data, and toolbox::particles::TrajectoryDatabase::Entry.data.