|
Peano
|
Represents Peano's MPI and storage aspect injected into a DaStGen model. More...


Public Member Functions | |
| __init__ (self, dof_association_) | |
| Create the aspect. | |
| __str__ (self) | |
| get_attributes (self) | |
| get_include (self) | |
| get_method_declarations (self, full_qualified_name) | |
| get_implementation (self, full_qualified_name) | |
Public Member Functions inherited from dastgen2.aspects.Aspect.Aspect | |
| set_model (self, data_model) | |
| Inform aspect about model. | |
Data Fields | |
| dof_association | |
| merge_implementation | |
| receive_predicate | |
| send_predicate | |
| load_store_compute_flag | |
| includes | |
| implementation_file_includes | |
Additional Inherited Members | |
Protected Attributes inherited from dastgen2.aspects.Aspect.Aspect | |
| _data_model | |
Represents Peano's MPI and storage aspect injected into a DaStGen model.
This is an aspect to a DaStGen object, i.e. something that's added to a data model to augment it with some behaviour. The realisation of this aspect is manifold yet all serves the purpose to make data fit for MPI:
The aspect also determines how and if we store data or not in Peano. Therefore, it covers more than solely MPI. Use the store and load attribute to control these predicates. Please study Localisation of data and data exchange for further documentation.
The instance is to be added to a DaStGen2 model through add_aspect().
If you want to inject a particular merge code, just set the internal string self.merge_implementation.
dof_association: DoFAssociation Clarifies which grid entity the underlying datatype is associated to.
Definition at line 9 of file MPIAndStorageAspect.py.
| peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.__init__ | ( | self, | |
| dof_association_ ) |
Create the aspect.
| includes | C++ expression Typically a full-blown set of include statements, but it can also hold preprocessor macros or similar. |
| implementation_file_includes | C++ expression If you add includes to the includes attribute, they are embedded into the header. This can lead to cyclic dependencies. If you want the includes only in the implementation file, use this attribute instead. |
Reimplemented from dastgen2.aspects.Aspect.Aspect.
Definition at line 51 of file MPIAndStorageAspect.py.
References peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.__init__().
Referenced by peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.__init__().


| peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.__str__ | ( | self | ) |
Definition at line 76 of file MPIAndStorageAspect.py.
References ScenarioFactory.createScenario(), peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.dof_association, peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.load_store_compute_flag, peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.load_store_compute_flag, peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.merge_implementation, peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.receive_predicate, and peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.send_predicate.
Referenced by peano4.toolbox.particles.postprocessing.ParticleVTUReader.VTUParticleSet.__repr__().


| peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.get_attributes | ( | self | ) |
Reimplemented from dastgen2.aspects.Aspect.Aspect.
Definition at line 101 of file MPIAndStorageAspect.py.
| peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.get_implementation | ( | self, | |
| full_qualified_name ) |
Reimplemented from dastgen2.aspects.Aspect.Aspect.
Definition at line 183 of file MPIAndStorageAspect.py.
References peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.dof_association, peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.load_store_compute_flag, peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.load_store_compute_flag, peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.merge_implementation, peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.receive_predicate, and peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.send_predicate.
| peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.get_include | ( | self | ) |
Reimplemented from dastgen2.aspects.Aspect.Aspect.
Definition at line 104 of file MPIAndStorageAspect.py.
References peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.dof_association, peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.includes, peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.includes, and swift2.particle.AlgorithmStep.AlgorithmStep.includes.
| peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.get_method_declarations | ( | self, | |
| full_qualified_name ) |
Reimplemented from dastgen2.aspects.Aspect.Aspect.
Definition at line 126 of file MPIAndStorageAspect.py.
References peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.dof_association.
| peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.dof_association |
Definition at line 67 of file MPIAndStorageAspect.py.
Referenced by peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.__str__(), peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.get_implementation(), peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.get_include(), and peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.get_method_declarations().
| peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.implementation_file_includes |
Definition at line 73 of file MPIAndStorageAspect.py.
| peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.includes |
Definition at line 72 of file MPIAndStorageAspect.py.
Referenced by peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray._get_dictionary_for_output(), and peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.get_include().
| peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.load_store_compute_flag |
Definition at line 71 of file MPIAndStorageAspect.py.
Referenced by peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.__str__(), peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray.__str__(), peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray._get_dictionary_for_output(), and peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.get_implementation().
| peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.merge_implementation |
Definition at line 68 of file MPIAndStorageAspect.py.
Referenced by peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.__str__(), and peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.get_implementation().
| peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.receive_predicate |
Definition at line 69 of file MPIAndStorageAspect.py.
Referenced by peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.__str__(), and peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.get_implementation().
| peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.send_predicate |
Definition at line 70 of file MPIAndStorageAspect.py.
Referenced by peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.__str__(), and peano4.dastgen2.MPIAndStorageAspect.MPIAndStorageAspect.get_implementation().