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


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 = [] |
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.
| exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle.__init__ | ( | self, | |
| name, | |||
| particles_per_cell = 0, | |||
| min_h = 0.3, | |||
| max_h = 0.3 ) |
Definition at line 24 of file DastgenTestDummyParticle.py.
References __init__(), _generate_boolean_array_attributes(), _generate_boolean_attributes(), _generate_double_array_attributes(), _generate_double_attributes(), _generate_enum_attributes(), _generate_integer_array_attributes(), _generate_integer_attributes(), _generate_peano_double_array_attributes(), _generate_peano_integer_array_attributes(), _generate_string_attributes(), and _generate_user_defined_attributes().
Referenced by __init__().


|
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__().

|
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__().

|
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__().

|
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__().

|
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__().

|
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__().

|
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__().

|
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__().

|
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__().

|
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__().

|
protected |
Definition at line 88 of file DastgenTestDummyParticle.py.
References convert::data::PatchData.data, and peano4.api.datamodel.DaStGen2.DaStGen2.data.
Referenced by __init__().

| exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle.algorithm_steps | ( | self | ) |
Return algorithm steps: A list of AlgorithmStep objects to be executed in that order.
Reimplemented from exaparty.api.particle.Particle.Particle.
Definition at line 710 of file DastgenTestDummyParticle.py.
References convert::data::Variable.name, exagrype.api.euler.CCZ4WithEuler_OuterAdditiveCoupling.CCZ4WithEuler_OuterAdditiveCoupling.name, exagrype.api.euler.CCZ4WithEuler_OuterMultiplicativeCoupling.CCZ4WithEuler_OuterMultiplicativeCoupling.name, exagrype.api.FOSOSolver.FOSOSolver.name, exagrype.api.scalarfield.CCZ4WithScalarField_InnerCoupling.CCZ4WithScalarField_InnerCoupling.name, exagrype.api.scalarfield.CCZ4WithScalarField_OuterMultiplicativeCoupling.CCZ4WithScalarField_OuterMultiplicativeCoupling.name, exahype2.api.dslhype2.AbstractSyntaxTree.Argument.name, exahype2.api.dslhype2.AbstractSyntaxTree.Function.name, exahype2.api.dslhype2.AbstractSyntaxTree.FunctionCall.name, exahype2.api.dslhype2.Expressions.Variable.name, exahype2.api.dslhype2.Types.TFunction.name, exahype2.api.dslhype2.Types.TStruct.name, exahype2.api.PDETerm.PDETerm.name, exahype2.api.Solver.Solver.Plotter.name, exaparty.api.particle.AlgorithmStep.AlgorithmStep.name, and peano4.api.datamodel.DoF.DoF.name.
| 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.
| 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.
| 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.
| exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle.mantissa_size | ( | self, | |
| mantissa_size ) |
Definition at line 766 of file DastgenTestDummyParticle.py.
| 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.
|
protected |
Definition at line 769 of file DastgenTestDummyParticle.py.
Referenced by mantissa_size().