Peano
Loading...
Searching...
No Matches
exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle Class Reference

A dummy particle containing meaningless variables to test the functionality of dastgen2. More...

Inheritance diagram for exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle:
Collaboration diagram for exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle:

Public Member Functions

 __init__ (self, name, particles_per_cell=0, min_h=0.3, max_h=0.3)
 algorithm_steps (self)
 Return algorithm steps: A list of AlgorithmStep objects to be executed in that order.
 mantissa_size (self)
 Set the mantissa size of doubles and Peano double arrays if we want to use reduced precission via Clang annotations.
 mantissa_size (self, mantissa_size)
 get_cpp_namespace_from_project_namespace (self)
 Transform namespace into cpp format.
 initialisation_steps (self)
 Return sequence of algorithm steps that have to be performed throughout initialisation.
 readme_descriptor (self)
 Create default readme descriptor.
Public Member Functions inherited from exaparty.api.particle.Particle.Particle
 __init__ (self, name, particles_per_cell, min_h, max_h)
 Initialise the particle.
Public Member Functions inherited from peano4.api.toolbox.particles.Particle.Particle
 __init__ (self, name)
 Constructor.
Public Member Functions inherited from peano4.api.datamodel.DaStGen2.DaStGen2
 __init__ (self, name)
 Construct a DaStGen2 object.
 configure (self, namespace, association, subdirectory="", temporary_subdirectory="")
 Configure output.
 additional_load_and_store_arguments (self)
 additional_load_and_store_arguments (self, new_arguments)
 hosts_smart_pointer_attribute (self)
 Does class host a smart pointer attribute.
Public Member Functions inherited from peano4.api.datamodel.DoF.DoF
 __init__ (self, name)
 Create a degree of freedom object.
 get_full_qualified_type (self)
 get_logical_type_name (self)
 What should the data type be called within the data repository, or within action sets.
 get_enumeration_type (self)
 What should the data type be called within the data repository.
 additional_load_and_store_arguments_for_other_dof (self, argument_name, use_dof_association=None)
 You can make Peano's store and load arguments of any DoF depend on other DoFs that you have loaded before.
 subnamespace (self)

Protected Member Functions

 _generate_user_defined_attributes (self, bool ifdefs)
 _generate_boolean_attributes (self, bool ifdefs)
 Generate boolean attributes.
 _generate_double_attributes (self, bool compress, bool ifdefs)
 Generate double attributes.
 _generate_enum_attributes (self, bool ifdefs)
 Generate enum attributes.
 _generate_integer_attributes (self, bool compress, bool ifdefs)
 Generate integer attributes.
 _generate_string_attributes (self, bool ifdefs)
 Generate string attributes.
 _generate_boolean_array_attributes (self, bool compress, bool ifdefs)
 Generate boolean-array attributes.
 _generate_integer_array_attributes (self, bool compress, bool ifdefs)
 Generate integer-array attributes.
 _generate_double_array_attributes (self, bool compress, bool ifdefs)
 Generate double-array attributes.
 _generate_peano_integer_array_attributes (self, bool compress, bool ifdefs)
 Generate peano4 integer-array attributes.
 _generate_peano_double_array_attributes (self, bool compress, bool ifdefs)
 Generate peano4 double-array attributes.
Protected Member Functions inherited from exaparty.api.particle.Particle.Particle
 _dependency_checks_modify_steps (self, steplist, step_type_name, peano4_event_enum)
 Add dependency checks as well as mesh consistency checks to the algorithm steps.
 _add_dependency_checks (self)
 Add dependency (particle consistency) checks.

Protected Attributes

 _mantissa_size = mantissa_size
Protected Attributes inherited from exaparty.api.particle.Particle.Particle
 _algorithm_steps = modified_steps
 _initialisation_steps = modified_steps
Protected Attributes inherited from peano4.api.datamodel.DoF.DoF
list _additional_load_and_store_arguments = []

Additional Inherited Members

Data Fields inherited from exaparty.api.particle.Particle.Particle
 particles_per_cell = particles_per_cell
 min_h = min_h
 max_h = max_h
Data Fields inherited from peano4.api.toolbox.particles.Particle.Particle
 partid = dastgen2.attributes.Integer("partid", ifdefs=["PeanoDebug > 0"], initval="-1")
Data Fields inherited from peano4.api.datamodel.DaStGen2.DaStGen2
 generator = None
 data = dastgen2.DataModel(name)
 peano4_mpi_and_storage_aspect = peano4.api.dastgen2.MPIAndStorageAspect(peano4.api.datamodel.DoFAssociation.Undef)
Data Fields inherited from peano4.api.datamodel.DoF.DoF
 association = DoFAssociation.Undef
 name = name
list namespace = []
 grid_selector = None
 subdirectory = subdirectory
 temporary_subdirectory = temporary_subdirectory
Static Public Attributes inherited from exaparty.api.particle.Particle.Particle
str DependencyChecks_Attribute_Prefix = "dependencyChecks"
list DependencyChecks_Ifdefs = ["PeanoDebug > 0"]
Static Public Attributes inherited from peano4.api.datamodel.DaStGen2.DaStGen2
str readme_package_descriptor

Detailed Description

A dummy particle containing meaningless variables to test the functionality of dastgen2.

All this particle does is define variables, and then test getters, setters, and constructors.

Definition at line 13 of file DastgenTestDummyParticle.py.

Constructor & Destructor Documentation

◆ __init__()

exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle.__init__ ( self,
name,
particles_per_cell = 0,
min_h = 0.3,
max_h = 0.3 )

Member Function Documentation

◆ _generate_boolean_array_attributes()

exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle._generate_boolean_array_attributes ( self,
bool compress,
bool ifdefs )
protected

Generate boolean-array attributes.

compress: Boolean if True, enable compression.

ifdefs: Boolean if True, add debug ifdefs to the attributes.

Definition at line 496 of file DastgenTestDummyParticle.py.

References convert::data::PatchData.data, and peano4.api.datamodel.DaStGen2.DaStGen2.data.

Referenced by __init__().

Here is the caller graph for this function:

◆ _generate_boolean_attributes()

exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle._generate_boolean_attributes ( self,
bool ifdefs )
protected

Generate boolean attributes.

ifdefs: Boolean if True, add debug ifdefs to the attributes.

Definition at line 108 of file DastgenTestDummyParticle.py.

References convert::data::PatchData.data, and peano4.api.datamodel.DaStGen2.DaStGen2.data.

Referenced by __init__().

Here is the caller graph for this function:

◆ _generate_double_array_attributes()

exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle._generate_double_array_attributes ( self,
bool compress,
bool ifdefs )
protected

Generate double-array attributes.

compress: Boolean if True, enable compression.

ifdefs: Boolean if True, add debug ifdefs to the attributes.

Definition at line 580 of file DastgenTestDummyParticle.py.

References convert::data::PatchData.data, and peano4.api.datamodel.DaStGen2.DaStGen2.data.

Referenced by __init__().

Here is the caller graph for this function:

◆ _generate_double_attributes()

exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle._generate_double_attributes ( self,
bool compress,
bool ifdefs )
protected

Generate double attributes.

compress: Boolean if True, enable compression.

ifdefs: Boolean if True, add debug ifdefs to the attributes.

Definition at line 186 of file DastgenTestDummyParticle.py.

References convert::data::PatchData.data, and peano4.api.datamodel.DaStGen2.DaStGen2.data.

Referenced by __init__().

Here is the caller graph for this function:

◆ _generate_enum_attributes()

exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle._generate_enum_attributes ( self,
bool ifdefs )
protected

Generate enum attributes.

ifdefs: Boolean if True, add debug ifdefs to the attributes.

Definition at line 283 of file DastgenTestDummyParticle.py.

References convert::data::PatchData.data, and peano4.api.datamodel.DaStGen2.DaStGen2.data.

Referenced by __init__().

Here is the caller graph for this function:

◆ _generate_integer_array_attributes()

exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle._generate_integer_array_attributes ( self,
bool compress,
bool ifdefs )
protected

Generate integer-array attributes.

compress: Boolean if True, enable compression.

ifdefs: Boolean if True, add debug ifdefs to the attributes.

Definition at line 534 of file DastgenTestDummyParticle.py.

References convert::data::PatchData.data, and peano4.api.datamodel.DaStGen2.DaStGen2.data.

Referenced by __init__().

Here is the caller graph for this function:

◆ _generate_integer_attributes()

exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle._generate_integer_attributes ( self,
bool compress,
bool ifdefs )
protected

Generate integer attributes.

compress: Boolean if True, enable compression.

ifdefs: Boolean if True, add debug ifdefs to the attributes.

Definition at line 312 of file DastgenTestDummyParticle.py.

References convert::data::PatchData.data, and peano4.api.datamodel.DaStGen2.DaStGen2.data.

Referenced by __init__().

Here is the caller graph for this function:

◆ _generate_peano_double_array_attributes()

exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle._generate_peano_double_array_attributes ( self,
bool compress,
bool ifdefs )
protected

Generate peano4 double-array attributes.

compress: Boolean if True, enable compression.

ifdefs: Boolean if True, add debug ifdefs to the attributes.

Definition at line 668 of file DastgenTestDummyParticle.py.

References convert::data::PatchData.data, and peano4.api.datamodel.DaStGen2.DaStGen2.data.

Referenced by __init__().

Here is the caller graph for this function:

◆ _generate_peano_integer_array_attributes()

exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle._generate_peano_integer_array_attributes ( self,
bool compress,
bool ifdefs )
protected

Generate peano4 integer-array attributes.

compress: Boolean if True, enable compression.

ifdefs: Boolean if True, add debug ifdefs to the attributes.

Definition at line 623 of file DastgenTestDummyParticle.py.

References convert::data::PatchData.data, and peano4.api.datamodel.DaStGen2.DaStGen2.data.

Referenced by __init__().

Here is the caller graph for this function:

◆ _generate_string_attributes()

exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle._generate_string_attributes ( self,
bool ifdefs )
protected

Generate string attributes.

ifdefs: Boolean if True, add debug ifdefs to the attributes.

Definition at line 418 of file DastgenTestDummyParticle.py.

References convert::data::PatchData.data, and peano4.api.datamodel.DaStGen2.DaStGen2.data.

Referenced by __init__().

Here is the caller graph for this function:

◆ _generate_user_defined_attributes()

exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle._generate_user_defined_attributes ( self,
bool ifdefs )
protected

Definition at line 88 of file DastgenTestDummyParticle.py.

References convert::data::PatchData.data, and peano4.api.datamodel.DaStGen2.DaStGen2.data.

Referenced by __init__().

Here is the caller graph for this function:

◆ algorithm_steps()

◆ get_cpp_namespace_from_project_namespace()

exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle.get_cpp_namespace_from_project_namespace ( self)

Transform namespace into cpp format.

Could be used to append namespace to constants in kernels (not used currently).

Definition at line 771 of file DastgenTestDummyParticle.py.

References exaparty.api.particle.SPHParticle.SPHParticle._exaparty_project_namespace.

◆ initialisation_steps()

exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle.initialisation_steps ( self)

Return sequence of algorithm steps that have to be performed throughout initialisation.

Reimplemented from exaparty.api.particle.Particle.Particle.

Definition at line 782 of file DastgenTestDummyParticle.py.

◆ mantissa_size() [1/2]

exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle.mantissa_size ( self)

Set the mantissa size of doubles and Peano double arrays if we want to use reduced precission via Clang annotations.

As a reference, floats have mantissa size = 23.

Definition at line 755 of file DastgenTestDummyParticle.py.

References exaparty.api.particle.SPHParticle.SPHParticle._mantissa_size, and _mantissa_size.

◆ mantissa_size() [2/2]

exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle.mantissa_size ( self,
mantissa_size )

Definition at line 766 of file DastgenTestDummyParticle.py.

◆ readme_descriptor()

exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle.readme_descriptor ( self)

Create default readme descriptor.

You might want to overwrite this for your particular particle species to get more detailed info the the README.md file generated by Peano.

Reimplemented from exaparty.api.particle.Particle.Particle.

Definition at line 786 of file DastgenTestDummyParticle.py.

Field Documentation

◆ _mantissa_size

exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle._mantissa_size = mantissa_size
protected

Definition at line 769 of file DastgenTestDummyParticle.py.

Referenced by mantissa_size().


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