![]() |
Peano
|
A patch is a square or cube in the domain. More...
#include <PatchData.h>
Public Member Functions | |
PatchData (int dimensions, double *offset_, double *size_, int dofsPerAxis, int unknownsPerDoF, int originTree) | |
bool | samePatch (const PatchData &otherPatch) |
bool | overlaps (const PatchData &otherPatch) |
void | free () |
Free internal dynamic data types if there's still data left. | |
void | copyData (const PatchData &otherData, int dofsPerAxis, int unknownsPerDoF) |
Data Fields | |
const int | dimensions |
double | offset [MaxDimensions] |
double | size [MaxDimensions] |
size of the patch in each dimension | |
double * | data |
Mapping from variables onto the actual data. | |
int | originTree |
Tree that has originally written this piece of data. | |
A patch is a square or cube in the domain.
It can hold variables which have been identified before via a Variable entry.
Definition at line 25 of file PatchData.h.
convert::data::PatchData::PatchData | ( | int | dimensions, |
double * | offset_, | ||
double * | size_, | ||
int | dofsPerAxis, | ||
int | unknownsPerDoF, | ||
int | originTree ) |
Definition at line 15 of file PatchData.cpp.
References tarch::la::aPowI(), data, dimensions, offset, and size.
void convert::data::PatchData::copyData | ( | const PatchData & | otherData, |
int | dofsPerAxis, | ||
int | unknownsPerDoF ) |
Definition at line 53 of file PatchData.cpp.
References tarch::la::aPowI(), and data.
Referenced by convert::filter::Copy::apply(), convert::filter::Intersection::apply(), convert::filter::SelectValue::apply(), and convert::filter::SeparateResolutions::apply().
void convert::data::PatchData::free | ( | ) |
Free internal dynamic data types if there's still data left.
Definition at line 61 of file PatchData.cpp.
Definition at line 41 of file PatchData.cpp.
References tarch::la::greater(), offset, size, and tarch::la::smaller().
Definition at line 29 of file PatchData.cpp.
References tarch::la::equals(), offset, and size.
double* convert::data::PatchData::data |
Mapping from variables onto the actual data.
We store data as AoS. It is furthermore ordered lexicographically, i.e. the x index is the fastest running index.
Definition at line 54 of file PatchData.h.
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(), convert::input::PeanoTextPatchFileReader::addDataToPatch(), convert::filter::ConvertTreeIdIntoDataField::apply(), 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(), copyData(), 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(), PatchData(), 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().
const int convert::data::PatchData::dimensions |
Definition at line 37 of file PatchData.h.
Referenced by peano4.visualisation.input.PatchFileParser.PatchFileParser::__parse_meta_data_region(), peano4.visualisation.input.PatchFileParser.PatchFileParser::__parse_patch_region(), exahype2.symhype.PDE.PDE::_implementation_of_mapping_onto_named_quantities(), peano4.visualisation.input.PatchFileParser.UnknownAttributes::_initialise_default_mapping_if_no_mapping_specified(), mghype.api.matrixgenerators.MatrixGenerator.MatrixGenerator::convert_index_to_dim(), equations.euler.Euler::eigenvalues(), mghype.api.matrixgenerators.MatrixGenerator.MatrixGenerator::eval_integral(), equations.elastic.Elastic::flux(), equations.euler.Euler::flux(), mghype.api.matrixgenerators.GaussLobatto.GLMatrixFree::get_boundary_matrix(), mghype.api.matrixgenerators.GaussLobatto.GLMatrixFree::get_cell_from_face_matrix(), mghype.api.matrixgenerators.DLinear.DLinear::get_cell_identity_matrix(), mghype.api.matrixgenerators.DLinearMassIdentity.DLinearMassIdentity::get_cell_identity_matrix(), mghype.api.matrixgenerators.DLinear.DLinear::get_cell_mass_matrix(), mghype.api.matrixgenerators.DLinear.DLinear::get_cell_system_matrix_for_laplacian(), mghype.api.matrixgenerators.DLinearMassIdentity.DLinearMassIdentity::get_cell_system_matrix_for_laplacian(), api.solvers.DiscontinuousGalerkinDiscretisation.AssemblePetscMatrix::get_constructor_body(), mghype.api.matrixgenerators.MatrixGenerator.MatrixGenerator::get_deriv(), mghype.api.matrixgenerators.MatrixGenerator.MatrixGenerator::get_points_for_dimension(), mghype.api.matrixgenerators.MatrixGenerator.MatrixGenerator::get_polynomial(), mghype.api.matrixgenerators.GaussLobatto.GLMatrixFree::get_projection_matrices(), mghype.api.matrixgenerators.MatrixGenerator.MatrixGenerator::get_weights_for_dimension(), matrices.DgGenerator::getCellToFaceMatrix(), exahype2.symhype.FirstOrderConservativePDEFormulation.FirstOrderConservativePDEFormulation::implementation_of_eigenvalues(), exahype2.symhype.FirstOrderConservativePDEFormulation.FirstOrderConservativePDEFormulation::implementation_of_flux(), exahype2.symhype.FirstOrderConservativePDEFormulation.FirstOrderConservativePDEFormulation::implementation_of_max_eigenvalue(), exahype2.symhype.FirstOrderConservativePDEFormulation.FirstOrderConservativePDEFormulation::implementation_of_ncp(), peano4.visualisation.input.PatchFileParser.PatchFileParser::parse_file(), PatchData(), and convert::output::PeanoWriter::writeFile().
double convert::data::PatchData::offset[MaxDimensions] |
Definition at line 42 of file PatchData.h.
Referenced by peano4.visualisation.input.Patch.Patch::__repr__(), kernel_impl.Enumerator::index(), overlaps(), PatchData(), samePatch(), kernel_impl.Enumerator::shift(), and convert::output::PeanoWriter::writeFile().
int convert::data::PatchData::originTree |
Tree that has originally written this piece of data.
Or -1 if data does not result directly from any tree.
Definition at line 60 of file PatchData.h.
double convert::data::PatchData::size[MaxDimensions] |
size of the patch in each dimension
Definition at line 47 of file PatchData.h.
Referenced by peano4.visualisation.input.Patch.Patch::__repr__(), kernel_impl.Enumerator::fetch(), kernel_impl.Enumerator::lower(), overlaps(), PatchData(), samePatch(), kernel_impl.Enumerator::upper(), and convert::output::PeanoWriter::writeFile().