Peano
Loading...
Searching...
No Matches
peano4.api.datamodel.PatchToDoubleArray.PatchToDoubleArray Class Reference

Very simple converter which maps the patch 1:1 onto a double array. More...

Inheritance diagram for peano4.api.datamodel.PatchToDoubleArray.PatchToDoubleArray:

Public Member Functions

 __init__ (self, patch, float_type="double")
 includes Includes to be added to the generated file.
 __str__ (self)
 get_stack_container (self)
 get_header_file_include (self)
 This is the include statement for the data container.
 construct_output (self, output)

Data Fields

 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

 _get_dictionary_for_output (self)

Detailed Description

Very simple converter which maps the patch 1:1 onto a double array.

By default, I leave all the MPI merges empty though obviously the merges often are plain copying over along faces (see the discussion on Finite Volumes in the guidebook). If you need any proper MPI handling, use merge_method_definition to inject it. Depending on how you use your patch (as cell or face or vertex data structure) the thing you pass has the respective semantics. The most popular default merge implementation is the one you find in the blockstructured toolbox.

Definition at line 42 of file PatchToDoubleArray.py.

Constructor & Destructor Documentation

◆ __init__()

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

includes Includes to be added to the generated file.

This is something totally different than get_header_file_include(). You will need to set something here if your send/receive conditions, e.g., call other stuff.

Definition at line 56 of file PatchToDoubleArray.py.

Member Function Documentation

◆ __str__()

peano4.api.datamodel.PatchToDoubleArray.PatchToDoubleArray.__str__ ( self)

◆ _get_dictionary_for_output()

◆ construct_output()

◆ get_header_file_include()

peano4.api.datamodel.PatchToDoubleArray.PatchToDoubleArray.get_header_file_include ( self)

◆ get_stack_container()

Field Documentation

◆ data

◆ float_type

peano4.api.datamodel.PatchToDoubleArray.PatchToDoubleArray.float_type = FloatTypes(float_type)

Definition at line 71 of file PatchToDoubleArray.py.

Referenced by _get_dictionary_for_output().

◆ includes

str peano4.api.datamodel.PatchToDoubleArray.PatchToDoubleArray.includes = ""

Definition at line 70 of file PatchToDoubleArray.py.

Referenced by _get_dictionary_for_output().

◆ load_store_compute_flag

str peano4.api.datamodel.PatchToDoubleArray.PatchToDoubleArray.load_store_compute_flag = "::peano4::grid::LoadStoreComputeFlag::LoadFromInputStream_ProvideToCalculations_StoreToOutputStream"

Definition at line 69 of file PatchToDoubleArray.py.

Referenced by __str__(), and _get_dictionary_for_output().

◆ merge_method_definition

str peano4.api.datamodel.PatchToDoubleArray.PatchToDoubleArray.merge_method_definition = ""

Definition at line 65 of file PatchToDoubleArray.py.

Referenced by __str__(), and _get_dictionary_for_output().

◆ receive_and_merge_condition

str peano4.api.datamodel.PatchToDoubleArray.PatchToDoubleArray.receive_and_merge_condition = "true"

Definition at line 67 of file PatchToDoubleArray.py.

Referenced by __str__(), and _get_dictionary_for_output().

◆ send_condition

str peano4.api.datamodel.PatchToDoubleArray.PatchToDoubleArray.send_condition = "true"

Definition at line 66 of file PatchToDoubleArray.py.

Referenced by __str__(), and _get_dictionary_for_output().


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