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

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

Inheritance diagram for peano4.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
 
 merge_method_definition
 
 send_condition
 
 receive_and_merge_condition
 
 load_store_compute_flag
 
 includes
 
 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.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.

Reimplemented in peano4.datamodel.PatchToDoubleArrayOnHeap.PatchToDoubleArrayOnHeap, and peano4.datamodel.PatchToDoubleArrayWithSmartPointer.PatchToDoubleArrayWithSmartPointer.

Definition at line 56 of file PatchToDoubleArray.py.

Member Function Documentation

◆ __str__()

◆ _get_dictionary_for_output()

peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray._get_dictionary_for_output ( self)
protected

Definition at line 106 of file PatchToDoubleArray.py.

References peano4.datamodel.DaStGen2.DaStGen2.data, peano4.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool.data, peano4.datamodel.DynamicArrayOverPrimitivesToStdVector.DynamicArrayOverPrimitivesToStdVector.data, peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.data, convert::data::DataSet.data, convert::data::PatchData.data, exahype2::EnclaveBookkeeping::Entry.data, tarch::la::DynamicMatrix.data(), tarch::la::Matrix< Rows, Cols, Scalar >.data(), tarch::la::Vector< Dimensions, int >.data(), tarch::la::Vector< TwoTimesD, int >.data(), tarch::la::Vector< TwoPowerD, int >.data(), tarch::la::Vector< Size, Scalar >.data(), tarch::la::Vector< Dimensions, double >.data(), tarch::la::Vector< DimensionsTimesTwo, int >.data(), Vec< ITEM, ALLOCATOR >.data(), tarch::la::DynamicMatrix.data(), tarch::la::Matrix< Rows, Cols, Scalar >.data(), tarch::la::Vector< TwoTimesD, int >.data(), tarch::la::Vector< TwoPowerD, int >.data(), tarch::la::Vector< DimensionsTimesTwo, int >.data(), tarch::la::Vector< Size, Scalar >.data(), tarch::la::Vector< Dimensions, int >.data(), tarch::la::Vector< Dimensions, double >.data(), toolbox::blockstructured::GlobalDatabase::Entry.data, toolbox::particles::memorypool::GlobalContinuousMemoryPool< T >::GlobalMemory.data, toolbox::particles::TrajectoryDatabase::Entry.data, peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.float_type, peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.includes, peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.includes, swift2.particle.AlgorithmStep.AlgorithmStep.includes, int, peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.load_store_compute_flag, peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.load_store_compute_flag, peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.merge_method_definition, peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.receive_and_merge_condition, and peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.send_condition.

Referenced by peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.construct_output(), peano4.datamodel.PatchToDoubleArrayOnHeap.PatchToDoubleArrayOnHeap.construct_output(), and peano4.datamodel.PatchToDoubleArrayWithSmartPointer.PatchToDoubleArrayWithSmartPointer.construct_output().

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

◆ construct_output()

peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.construct_output ( self,
output )

Reimplemented in peano4.datamodel.PatchToDoubleArrayOnHeap.PatchToDoubleArrayOnHeap, and peano4.datamodel.PatchToDoubleArrayWithSmartPointer.PatchToDoubleArrayWithSmartPointer.

Definition at line 127 of file PatchToDoubleArray.py.

References peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray._get_dictionary_for_output(), tarch::la::DynamicMatrix.data(), tarch::la::Matrix< Rows, Cols, Scalar >.data(), tarch::la::Vector< TwoTimesD, int >.data(), tarch::la::Vector< TwoPowerD, int >.data(), tarch::la::Vector< Dimensions, int >.data(), tarch::la::Vector< Dimensions, double >.data(), tarch::la::Vector< DimensionsTimesTwo, int >.data(), tarch::la::Vector< Size, Scalar >.data(), Vec< ITEM, ALLOCATOR >.data(), peano4.datamodel.DaStGen2.DaStGen2.data, peano4.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool.data, peano4.datamodel.DynamicArrayOverPrimitivesToStdVector.DynamicArrayOverPrimitivesToStdVector.data, peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.data, convert::data::DataSet.data, convert::data::PatchData.data, exahype2::EnclaveBookkeeping::Entry.data, tarch::la::DynamicMatrix.data(), tarch::la::Matrix< Rows, Cols, Scalar >.data(), tarch::la::Vector< TwoPowerD, int >.data(), tarch::la::Vector< DimensionsTimesTwo, int >.data(), tarch::la::Vector< TwoTimesD, int >.data(), tarch::la::Vector< Dimensions, double >.data(), tarch::la::Vector< Dimensions, int >.data(), tarch::la::Vector< Size, Scalar >.data(), toolbox::blockstructured::GlobalDatabase::Entry.data, toolbox::particles::memorypool::GlobalContinuousMemoryPool< T >::GlobalMemory.data, and toolbox::particles::TrajectoryDatabase::Entry.data.

Here is the call graph for this function:

◆ get_header_file_include()

peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.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 in peano4.datamodel.PatchToDoubleArrayOnHeap.PatchToDoubleArrayOnHeap, and peano4.datamodel.PatchToDoubleArrayWithSmartPointer.PatchToDoubleArrayWithSmartPointer.

Definition at line 93 of file PatchToDoubleArray.py.

References peano4.datamodel.DaStGen2.DaStGen2.data, peano4.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool.data, peano4.datamodel.DynamicArrayOverPrimitivesToStdVector.DynamicArrayOverPrimitivesToStdVector.data, peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.data, convert::data::DataSet.data, convert::data::PatchData.data, exahype2::EnclaveBookkeeping::Entry.data, tarch::la::DynamicMatrix.data(), tarch::la::Matrix< Rows, Cols, Scalar >.data(), tarch::la::Vector< DimensionsTimesTwo, int >.data(), tarch::la::Vector< Dimensions, double >.data(), tarch::la::Vector< Size, Scalar >.data(), tarch::la::Vector< Dimensions, int >.data(), tarch::la::Vector< TwoPowerD, int >.data(), tarch::la::Vector< TwoTimesD, int >.data(), Vec< ITEM, ALLOCATOR >.data(), tarch::la::DynamicMatrix.data(), tarch::la::Matrix< Rows, Cols, Scalar >.data(), tarch::la::Vector< Size, Scalar >.data(), tarch::la::Vector< Dimensions, int >.data(), tarch::la::Vector< Dimensions, double >.data(), tarch::la::Vector< TwoPowerD, int >.data(), tarch::la::Vector< DimensionsTimesTwo, int >.data(), tarch::la::Vector< TwoTimesD, int >.data(), toolbox::blockstructured::GlobalDatabase::Entry.data, toolbox::particles::memorypool::GlobalContinuousMemoryPool< T >::GlobalMemory.data, and toolbox::particles::TrajectoryDatabase::Entry.data.

Here is the call graph for this function:

◆ get_stack_container()

peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.get_stack_container ( self)

Reimplemented in peano4.datamodel.PatchToDoubleArrayOnHeap.PatchToDoubleArrayOnHeap, and peano4.datamodel.PatchToDoubleArrayWithSmartPointer.PatchToDoubleArrayWithSmartPointer.

Definition at line 89 of file PatchToDoubleArray.py.

References peano4.datamodel.DaStGen2.DaStGen2.data, peano4.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool.data, peano4.datamodel.DynamicArrayOverPrimitivesToStdVector.DynamicArrayOverPrimitivesToStdVector.data, peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.data, convert::data::DataSet.data, convert::data::PatchData.data, exahype2::EnclaveBookkeeping::Entry.data, tarch::la::DynamicMatrix.data(), tarch::la::Matrix< Rows, Cols, Scalar >.data(), tarch::la::Vector< DimensionsTimesTwo, int >.data(), tarch::la::Vector< Dimensions, double >.data(), tarch::la::Vector< Size, Scalar >.data(), tarch::la::Vector< Dimensions, int >.data(), tarch::la::Vector< TwoPowerD, int >.data(), tarch::la::Vector< TwoTimesD, int >.data(), Vec< ITEM, ALLOCATOR >.data(), tarch::la::DynamicMatrix.data(), tarch::la::Matrix< Rows, Cols, Scalar >.data(), tarch::la::Vector< Size, Scalar >.data(), tarch::la::Vector< Dimensions, int >.data(), tarch::la::Vector< Dimensions, double >.data(), tarch::la::Vector< TwoPowerD, int >.data(), tarch::la::Vector< DimensionsTimesTwo, int >.data(), tarch::la::Vector< TwoTimesD, int >.data(), toolbox::blockstructured::GlobalDatabase::Entry.data, toolbox::particles::memorypool::GlobalContinuousMemoryPool< T >::GlobalMemory.data, and toolbox::particles::TrajectoryDatabase::Entry.data.

Here is the call graph for this function:

Field Documentation

◆ data

peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.data

Definition at line 64 of file PatchToDoubleArray.py.

Referenced by peano4.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool.__generate_dastgen_input_file(), peano4.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool.__get_file_name(), peano4.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool.__get_full_qualified_file_name(), swift2.particle.Particle.Particle.__init__(), swift2.particle.Particle.Particle._add_dependency_checks(), swift2.particle.Particle.Particle._dependency_checks_modify_steps(), swift2.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle._generate_boolean_array_attributes(), swift2.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle._generate_boolean_attributes(), swift2.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle._generate_double_array_attributes(), swift2.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle._generate_double_attributes(), swift2.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle._generate_enum_attributes(), swift2.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle._generate_integer_array_attributes(), swift2.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle._generate_integer_attributes(), swift2.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle._generate_peano_double_array_attributes(), swift2.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle._generate_peano_integer_array_attributes(), swift2.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle._generate_string_attributes(), swift2.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle._generate_user_defined_attributes(), peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray._get_dictionary_for_output(), peano4.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool.construct_output(), peano4.datamodel.DynamicArrayOverPrimitivesToStdVector.DynamicArrayOverPrimitivesToStdVector.construct_output(), peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.construct_output(), peano4.datamodel.PatchToDoubleArrayOnHeap.PatchToDoubleArrayOnHeap.construct_output(), peano4.datamodel.PatchToDoubleArrayWithSmartPointer.PatchToDoubleArrayWithSmartPointer.construct_output(), peano4.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool.get_header_file_include(), peano4.datamodel.DynamicArrayOverPrimitivesToStdVector.DynamicArrayOverPrimitivesToStdVector.get_header_file_include(), peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.get_header_file_include(), peano4.datamodel.PatchToDoubleArrayOnHeap.PatchToDoubleArrayOnHeap.get_header_file_include(), peano4.datamodel.PatchToDoubleArrayWithSmartPointer.PatchToDoubleArrayWithSmartPointer.get_header_file_include(), peano4.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool.get_stack_container(), peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.get_stack_container(), peano4.datamodel.PatchToDoubleArrayOnHeap.PatchToDoubleArrayOnHeap.get_stack_container(), peano4.datamodel.PatchToDoubleArrayWithSmartPointer.PatchToDoubleArrayWithSmartPointer.get_stack_container(), swift2.particle.Particle.Particle.readme_descriptor(), swift2.particle.SPHLeapfrogFixedSearchRadius.SPHLeapfrogFixedSearchRadius.set_parameters(), swift2.particle.SPHParticle.SPHParticle.set_parameters(), and swift2.particle.tests.testLeapfrogFixedTimeStepSize.testLeapfrogFixedTimeStepSize.set_parameters().

◆ float_type

peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.float_type

◆ includes

peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.includes

◆ load_store_compute_flag

◆ merge_method_definition

peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.merge_method_definition

◆ receive_and_merge_condition

peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.receive_and_merge_condition

◆ send_condition

peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.send_condition

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