Peano
Loading...
Searching...
No Matches
peano4.datamodel.PatchToDoubleArrayOnHeap.PatchToDoubleArrayOnHeap Class Reference

Realise patch via smart pointers. More...

Inheritance diagram for peano4.datamodel.PatchToDoubleArrayOnHeap.PatchToDoubleArrayOnHeap:
Collaboration diagram for peano4.datamodel.PatchToDoubleArrayOnHeap.PatchToDoubleArrayOnHeap:

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)

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

peano4.datamodel.PatchToDoubleArrayOnHeap.PatchToDoubleArrayOnHeap.__init__ ( self,
patch,
float_type = "double" )

Definition at line 27 of file PatchToDoubleArrayOnHeap.py.

References __init__().

Referenced by __init__().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ construct_output()

◆ get_header_file_include()

◆ get_stack_container()


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